Basic video navigation controls.

master
sigonasr2 1 year ago
parent 8dde87d40b
commit ff39c9fc95
  1. 2
      OpenCVVideoParser/main.cpp

@ -94,7 +94,7 @@ public:
cv::Mat targetFrame=get_frame(video,std::clamp(int(frameView),0,int(video.get(cv::CAP_PROP_FRAME_COUNT))));
for(int y=0;y<targetFrame.rows;y++){
for(int x=0;x<targetFrame.cols;x++){
cv::Vec3b col=targetFrame.at<cv::Vec3b>(cv::Point{x,y});
cv::Vec3b col=targetFrame.at<cv::Vec3b>(y,x);
Draw(x,y,{col[2],col[1],col[0]});
}
}

Loading…
Cancel
Save