c++ - cv has no member CAP_PROP_POS_FRAMES -
I am trying to run some code to add trackbacks to some videos, it is from the Learning OpenCV Second Edition Book, But I can not compile my code and give an error "Namespace CV is not a member of CAP_PROP_POS_FRAMES"
This is the first bit of code
#include & lt; Opencv2 \ highgui \ highgui.hpp & gt; #include & lt; Opencv2 \ imgproc \ imgproc.hpp & gt; # Include & lt; Iostream & gt; # Include & lt; Fstream & gt; using namespace std; Int g_slider_position = 0; Int g_run = 1, g_dontset = 0; // start in a single-stage mode cv :: VideoCapture g_cap; Zero at Tatasbar slides (integer, zero *) {g_cap.set (cv :: CAP_PROP_POS_FRAMES, position); If (! G_dontset) g_run = 1; G_dontset = 0; }
this CV_CAP_PROP_POS_FRAME s (note s) and it Highgue Should be brought by HP. This is an anonymous name in the global namespace.
Comments
Post a Comment