alantrrs / OpenTLD

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

While dragging the white rectangle #1

Closed dreamcat4 closed 13 years ago

dreamcat4 commented 13 years ago

Hi,

I'm not sure if others will see this or not. It happened to me whilst dragging the white rectangle the 3rd or 4th time.

janitors-Mac-mini:bin id$ ./run_tld parameter.yml -s motorbike.mp4 
Bounding box too small, try again.
Bounding box too small, try again.
Bounding box too small, try again.
Created 819074 bounding boxes
Found 0 good boxes, 0 bad boxes
Best Box: 13 69 61 41
Bounding box hull: 2147483647 2147483647 -2147483647 -2147483647
OpenCV Error: Assertion failed (!(dsize == Size()) || (inv_scale_x > 0 && inv_scale_y > 0)) in resize, file /tmp/homebrew-opencv-2.2-hzav/OpenCV-2.2.0/modules/imgproc/src/imgwarp.cpp, line 1392
terminate called after throwing an instance of 'cv::Exception'
  what():  /tmp/homebrew-opencv-2.2-hzav/OpenCV-2.2.0/modules/imgproc/src/imgwarp.cpp:1392: error: (-215) !(dsize == Size()) || (inv_scale_x > 0 && inv_scale_y > 0) in function resize

Abort trap
alantrrs commented 13 years ago

Seems like it initialized the bounding box even though it was too small. I just pushed a change that makes the video stay in the first frame until the bounding box is initialized.

dreamcat4 commented 13 years ago

Great. This helps significantly and I can now see past this ^^ BB error to the next ones.