I am new to this kind of programming but am really interested in computer vision.
I have tried to follow this tutorial to but something must have changed between when this tutorial was made and when I tried following the instructions.
Tutorial Link: http://www.youtube.com/watch?v=cgo0UitHfp8
I get this error log, but I'm not sure how to fix it or what the problem even is.
------ Build started: Project: OpenCV_Project_001, Configuration: Debug Win32 ------
Main.cpp c:\documents and settings\lord cluckulon\my documents\visual studio 2010\projects\opencv_project_001\opencv_project_001\main.cpp(7): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\documents and settings\lord cluckulon\my documents\visual studio 2010\projects\opencv_project_001\opencv_project_001\main.cpp(7): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Here is the full code:
#include<opencv\cv.h>
#include <opencv\highgui.h>
using namespace cv;
init ;main()
{
//Create Matrix to store image
Mat image;
//initialize capture
VideoCapture cap;
cap.open(0);
//create window to show image
namedWindow("window",1);
while(1)
{
//Copy webcam stream to image
cap>>image;
//print image to screen
imshow("window",image);
//delay 33ms
waitKey(33);
}
return 0;
}
What is this "error C4430" and how can I fix what it is doing to my little file thing? ( using OpenCV249, Windows XP SP3, MS Visual C++ 2010 Express)