alantrrs / OpenTLD

:eyes: C++ implementation of TLD
GNU General Public License v3.0
225 stars 99 forks source link

OpenCV Error: Assertion failed (dsize.area() || (inv_scale_x > 0 && inv_scale_y > 0)) in resize #21

Open QiJohn opened 8 years ago

QiJohn commented 8 years ago

I an using ubuntu14.04 with linux kernel 3.13.0-24-generic gcc 4.8.2 opencv 2.4.6 cmake 2.8.12.2

Everything is find, but at running the command "sudo ./run_tld -p ../paramers.yml -s ../datasets/06_car/car.mpg" ,The program crashed.

**Error message is following***** Initial Bounding Box = x:131 y:116 h:114 w:55 Created 269028 bounding boxes Found 0 good boxes, 0 bad boxes Best Box: 133 115 114 55 Bounding box hull: 2147483647 2147483647 -2147483647 -2147483647 OpenCV Error: Assertion failed (dsize.area() || (inv_scale_x > 0 && inv_scale_y > 0)) in resize, file /home/johnqi/softWare/opencv-2.4.6.1/modules/imgproc/src/imgwarp.cpp, line 1724 terminate called after throwing an instance of 'cv::Exception' what(): /home/johnqi/softWare/opencv-2.4.6.1/modules/imgproc/src/imgwarp.cpp:1724: error: (-215) dsize.area() || (inv_scale_x > 0 && inv_scale_y > 0) in function resize


I doesn't change the program at all, So, what is wrong? Thanks, in advance.