Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CV_CAP_PROP_FPS missing from Java bindings #4667

Closed
opencv-pushbot opened this issue Jul 27, 2015 · 1 comment
Closed

CV_CAP_PROP_FPS missing from Java bindings #4667

opencv-pushbot opened this issue Jul 27, 2015 · 1 comment

Comments

@opencv-pushbot
Copy link
Contributor

Transferred from http://code.opencv.org/issues/3454

|| Steven Goldsmith on 2013-12-23 15:56
|| Priority: High
|| Affected: 2.4.8 (latest release)
|| Category: java bindings
|| Tracker: Bug
|| Difficulty: 
|| PR: 
|| Platform: x64 / Linux

CV_CAP_PROP_FPS missing from Java bindings

CV_CAP_PROP_FPS missing from org.opencv.highgui.Highgui.

History

Evgeny Talanin on 2013-12-27 09:09
-   Assignee set to Andrey Pavlenko
-   Category set to java bindings
Anna Kogan on 2014-01-13 09:36
-   Affected version changed from 2.4.7 (latest release) to 2.4.8
    (latest release)
-   Status changed from New to Open
Jose Gómez on 2014-02-25 01:34
I'd say it's probably not as easy as just exposing the constant. As per the sources, this constant evaluates to 5:

    modules/highgui/include/opencv2/highgui/highgui_c.h:    CV_CAP_PROP_FPS            =5

However, videocapture.get(5) returns NaN [for a videocapture of type VideoCapture].
Will Stewart on 2014-02-25 19:41
videocapture.get(5) normally works for me at the present time, return FPS for most video streams. Occasionally it is zero for some streams, and I can't for the moment remember the exact circumstances though I believe it may be when I'm connected to certain streams from internet webcams.

I'm using 2.4.8 on Ubuntu Studio 13.10
Jose Gómez on 2014-04-07 21:25
Update: from my tests, videocapture.get(5) works only sometimes:

- With mp4 (x264) files, it seems to work fine
- With mov files, it's fine as well
- With avi (mpeg4) files, it is almost always 0/NaN, other than in a few 125 fps videos, in which it reports CV_CAP_PROP_FPS = 59.583333333333336 (instead of 125).
@sturkmen72
Copy link
Contributor

just tried
System.out.print( Videoio.CAP_PROP_FPS );
output : 5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants