我是新手OpenCV用户。我只是想学习一些东西,但我不知道从哪里开始。
不幸的是,我可以找到很多有关openCV的教程,但是它们对我不起作用(有时是因为使用了旧版本)。
因此,在真正开始之前,我想看看环境是否运行良好,以避免将来浪费时间。这是我发现的一个示例:
#include <opencv\cv.h>
#include <opencv\highgui.h>
using namespace cv;
int main()
{
//create an image to store the video screen grab
Mat image;
//setup the video capture method using the default camera
VideoCapture cap;
cap.open(0);
//create the window that will show the video feed
namedWindow("VideoCaptureTutorial", 1);
//create a loop to update the image with video camera image capture
while(1)
{
//grad a frame from the video camers
cap>>image;
//show the image on the screen
imshow("VideoCaptureTutorial", image);
//create a 33ms delay
waitKey(33);
}
return 0;
}
最佳答案
告诉您如何使程序正常工作是不可能的,因为您几乎没有提供任何有助于理解问题原因的信息。但是在阅读了以下几行之后:
I can find a lots of tutorials about openCV but they doesn't work for me (sometime because of the old version they used)
I'm new to Visual Studio and I can't understand really well "him" and what he "doesn't like". I'm learning how to move inside the IDE but's its hard.
https://stackoverflow.com/questions/15463455/
相关文章:
qt - 无法运行编译qt应用程序。 Qt Creator忽略斜线
compiler-errors - 这怎么了? Submit.CommandText = SQL?
compiler-errors - 在NME中定位-演示项目无法转换为例如JavaScript-目标
java - Play Framework CompilationException
scala - 斯卡拉(Scala),卡斯巴(Casbah): MongoCollection.in
Excel VBA 错误 - 函数或接口(interface)标记为受限。或函数使用 Visual