rr1706 / vision2015

Computer vision solution for FRC 2015 game
https://rr1706.github.io/vision2015/
Other
5 stars 0 forks source link

Put the camera in a separate thread to prevent buffering #4

Closed nikolos-antonio closed 9 years ago

nikolos-antonio commented 9 years ago

A thought to prevent slow processing from buffering data.

http://www.chiefdelphi.com/forums/showthread.php?t=123390&highlight=OpenCV

H-Park commented 9 years ago

@Antonio217 I don't think this is necessary. It may be, as we haven't tested the code on the XU yet, but I have a feeling our fps will be fine without threading.

cmastudios commented 9 years ago

I decided to thread the contours each instead (see e1a43e37aa8fe82c1cb195493c65f31f1901843c). It appeared that OpenCV must automatically thread the camera or something because buffering is not an issue like it was with V4L2.