alantrrs / OpenTLD

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

Video appears misaligned by 2 pixels #2

Open dreamcat4 opened 13 years ago

dreamcat4 commented 13 years ago
 ./run_tld ../parameters.yml -s motorbike.mp4 

Source video (motorbike.mp4) appears misaligned. Its slanted diagonally across the screen. This is weird because it plays correctly in other applications.

Either a couple of pixels are added at the end of each line, shifting it across a little too much each time. Or otherwise the horizontal width of the window is not quite enough. The window seems too small by 2 pixel per line.

I'm not sure if its OpenTLD or the input video. It would be a good idea for others to try using different source video also. With the new -s switch

alantrrs commented 13 years ago

Thats weird I do get a 2 pixel horizontal offset in the left margin but I don't get a slanted image. The offset is constant in all the rows.

dreamcat4 commented 13 years ago

Screenshot:

https://gist.github.com/1045468

Note: This is OpenCV on Mac OS X.

alantrrs commented 13 years ago

Wow..that's weird, maybe other Mac users should comment on this, I think it might be a OpenCV bug in Mac, what version are you using. Im using 2.2 Check this thread tl;dr http://tech.groups.yahoo.com/group/OpenCV/message/53785

dreamcat4 commented 13 years ago

Thank you Alan, that link to OpenCV forum provides valuable information, very encouraging. I believe i also have some kind of OpenCV 2.2, which was installed recently with the Homebrew Mac OS X package manager.

At any rate, its good news to hear that the other platforms aren't affected.