Friday 15 August 2014

c++ - cv has no member CAP_PROP_POS_FRAMES -



c++ - cv has no member CAP_PROP_POS_FRAMES -

i'm trying run bit of code add together trackbars onto video, it's learning opencv sec edition book, can't compile code , gives error "namespace cv has no fellow member cap_prop_pos_frames"

here's first bit of code

class="lang-css prettyprint-override">#include <opencv2\highgui\highgui.hpp> #include <opencv2\imgproc\imgproc.hpp> #include <iostream> #include <fstream> using namespace std; int g_slider_position = 0; int g_run = 1, g_dontset = 0; //start out in single step mode cv::videocapture g_cap; void ontrackbarslide(int pos, void *) { g_cap.set(cv::cap_prop_pos_frames, pos); if(!g_dontset) g_run = 1; g_dontset = 0; }

it's cv_cap_prop_pos_frames (note s) , should brought in highgui.hpp. it's unnamed enum in global namespace.

c++ opencv

No comments:

Post a Comment