Hi,
I am all new in code blocks and I wonder if anyone ever used OpenCV with this IDE. If anyone did so, could you please contact me through Skype (cedric1538), which is, I think, a better way of handling my problem.
Where I think the problem is:
I copied my code from a program that actually worked in order to check whether I set up my computer nicely. But obviously, I did mistakes. Undefined function issue appears when it comes to debug. I know it means that I did not put the right library in the folder. But I did so, and the same message still appear.
After several tries to find the solution, I (unintently) did a bit of chaos on my computer and I think it cannot be solved by simply righting on this forum. I might need someone to control my computer through internet (I do not know how dangerous it is though, because it would be the first time I let someone doing it) and to put some order in my computer for me (because I have no idea how it is supposed to be) in order to make the program working.
Once the solution is found, we will just put in this forum where the issu was and how we fixed it.
I hope this is conveniant to anyone. Thank you.
You can contact me through Skype: cedric1538.
Here is the program I used. It is supposed to activate the webcam and display what is instantanously "sees" on a application page.
#include "cv.h"
#include "highgui.h"
using namespace cv;
int main()
{
//Create matrix to store image.
Mat image;
//initialize capture.
VideoCapture cap;
cap.open(0);
//create window to store image.
namedWindow("window",1);
while(1)
{
//copy webcam stream to image.
cap>>image;
//print image screen.
imshow("window",image);
//delay 33ms.
waitKey(33);
}
return 0;
}
I hope you can help me.