Bad input roi in function cvInitImageHeader
I am using MFC to write GUI that allows to display video from webcam using opencv 2.4.10. However, I have a error that recorded in http://youtu.be/j9Z-oKrDMoU .I using thread to show video. I used a thread to open and detect face. However, I have error is
"C:\\builds\\2_4_PackSlave-win32-vc11-shared\\opencv\\modules\\core\\src\\array.cpp:2918: error: (-25) Bad input roi in function cvInitImageHeader\n"
The problem is in code
cv::VideoCapture cap;
cap >> frame;
Can you help me resolve it? For full code. You can download at here.
Sorry to say but your code is a mess, and the video doesn't help either. Please provide a minimum example of the problem you encounter. And add relevant information (stack trace, the actual code, why you think the problem is in a certain part of the code).
Because i used try catch to find it. Please run and see the problem.
No, I can not run (not working on Windows) and I don't have to, to see you have a problem.
You should really simplify your program, the chances of finding help here arae really small if you just post all your garbage and say "my program has an error, tell me where it is". Also provide stack trace and other relevant information because obviously this problem is in your code and not in the cv::VideoCapture cap; cap >> frame; I'm going to give you a few tips to start with: