Код: Выделить всё
#include
#include
#include
int main()
{
std::string path = "wallpaperflare.jpg";
cv::Mat img=cv::imread(path);
cv::imshow("Frame",img);
cv::waitKey(5000);
cv::VideoCapture cam(0);
while (1)
{
cam.read(img);
cv::imshow("VideoFrame",img);
cv::waitKey(1);
}
return 0;
}
Я новичок в OpenCV, проясните мои сомнения.
Подробнее здесь: https://stackoverflow.com/questions/787 ... -x-seconds