Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I work with OpenCV functions in a multi-threaded software for decoding/encoding and tracking, and the only issue that I have find so far is with functions from highgui module which deal with windows events such as "cv::imshow" and "cv::waitKey". If such functions are called by one single thread, there is no problem at all, but it crashes or locks up if I try to do it in two or more threads. This with OpenCV compiled with QT and OpenGL support (Linux). Did you tried to remove these function calls and see how it works only with the processing step ? Also, as berak said, make sure that "detImg" and "detImg2" are not empty before call the HOG functions.