'CV_CAP_PROP_FRAME_COUNT is not available in opencv for java
I am trying to transform C++ program into a java program. There are a few lines I can't transform:
long totalFrameNumber = capture.get(CV_CAP_PROP_FRAME_COUNT);
capture.set(CV_CAP_PROP_POS_FRAMES, frameToStart-3);
double rate = capture.get(CV_CAP_PROP_FPS);
cvtColor( frame,fgray, CV_BGR2GRAY );
These macros ,CV_CAP_PROP_FRAME_COUNT, CV_CAP_PROP_POS_FRAMES, CV_CAP_PROP_FPS, CV_BGR2GRAY ,cannot be found in the OpenCV for Java.
What should I do?
Solution 1:[1]
How are you?
I'm not sure but you should write CAP_PROP_FRAME_COUNT not CV_CAP_PROP_FRAME_COUNT.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Ignacio Belitzky |
