These are the values that set different properties of the VideoCapture class. I have already included opencv2/opencv.hpp, but when I try to run
VideoCapture::set(CV_CAP_PROP_FPS, 20);
As seen in this documentation :
It gives me an error saying that CV_CAP_PROP_FPS is undefined. Where are the PropID values located?
I think you will need to include the opencv2/videoio/videoio_c.h file too. (It is unfortunate it was not mentioned in the docs.)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.