GithubHelp home page GithubHelp logo

Comments (9)

akonanykhin avatar akonanykhin commented on August 24, 2024 1

Seems like fps_cap.get(cv2.CAP_PROP_FPS) only reports incorrect FPS for the version of OpenCV we're currently using. 4.7.0.72 does not have this problem, for example. So rolling OpenCV back (or forward) could solve this issue.

from deep-license-plate-recognition.

danleyb2 avatar danleyb2 commented on August 24, 2024

@akonanykhin Could you kindly share a test video of this? I have test several videos and unable to reproduce

from deep-license-plate-recognition.

akonanykhin avatar akonanykhin commented on August 24, 2024

@danleyb2 It's one of those 2:
https://drive.google.com/file/d/11le_bXaoZZtr0-sBRRsED4ZFYd0mT8jk/view?usp=sharing
https://drive.google.com/file/d/1JiCurUGvTVczErST2nruJyqyBCOWa5yD/view?usp=sharing

from deep-license-plate-recognition.

danleyb2 avatar danleyb2 commented on August 24, 2024

@akonanykhin
Videos don't have a defined fps defined but there is a tbr that can be a replacement.
Upgrading OpenCV resolves the issue but existing version of ffmpegcv didn't have the issue either.

Fprobe output:

Input #0, matroska,webm, from '/home/danleyb2/Work/platerecognizer/stream-test-videos/trinam.mkv':
  Metadata:
    encoder         : MilestoneMux
  Duration: 00:01:59.87, start: 0.000000, bitrate: 2259 kb/s
  Stream #0:0(eng): Video: h264 (Baseline), yuvj420p(pc, bt709, progressive), 1920x1080, SAR 1:1 DAR 16:9, 60 tbr, 1k tbn (default)
  Stream #0:1(eng): Video: mjpeg, none(bt470bg/unknown/unknown), 1920x1080, SAR 1:1 DAR 16:9, 1k tbr, 1k tbn (default)

from deep-license-plate-recognition.

akonanykhin avatar akonanykhin commented on August 24, 2024

@danleyb2 I don't think 60 is the correct fps for this video. VLC plays it at around 15, maybe even less, which feels correct. Is there no other way to determine fps?

from deep-license-plate-recognition.

akonanykhin avatar akonanykhin commented on August 24, 2024

@danleyb2 Here is another video, which actually has FPS of ~17, but ffmpegcv reads it as 60 again:
https://drive.google.com/file/d/1PTVJ0QJj1mzzvMisfR-h-E78yQI8pxBp/view?usp=sharing

from deep-license-plate-recognition.

akonanykhin avatar akonanykhin commented on August 24, 2024

@danleyb2 In this video ffmpegcv reads FPS as 25, when in reality it is 12:
https://drive.google.com/file/d/1RahC8Qr9tv4D4vUQ6-cpVSjyeQbS3nMR/view?usp=sharing

from deep-license-plate-recognition.

danleyb2 avatar danleyb2 commented on August 24, 2024

@akonanykhin I have been able to reproduce the issue, I am checking on an alternative way to get FPS.

from deep-license-plate-recognition.

danleyb2 avatar danleyb2 commented on August 24, 2024

@akonanykhin @marcbelmont Kindly review PR again
Fixed by calculating FPS manually by counting frames for 500ms

from deep-license-plate-recognition.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.