Comments (9)
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.
@akonanykhin Could you kindly share a test video of this? I have test several videos and unable to reproduce
from deep-license-plate-recognition.
@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.
@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.
@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.
@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.
@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.
@akonanykhin I have been able to reproduce the issue, I am checking on an alternative way to get FPS.
from deep-license-plate-recognition.
@akonanykhin @marcbelmont Kindly review PR again
Fixed by calculating FPS manually by counting frames for 500ms
from deep-license-plate-recognition.
Related Issues (20)
- Stream Calling Endpoint output {"active": True, "cameras": {}} HOT 13
- Django CSFR Error HOT 8
- FFMPEGCV cannot process grayscale videos HOT 2
- Error With .asf Video Format
- Response to the use of ffmpegcv in the code HOT 2
- Need Help HOT 4
- An error occurs during recognition
- Reorder docker folder HOT 1
- stream_monitor.py ignores log content HOT 2
- How to reduce confidence threshold for lpr reading? HOT 1
- Contact page at PlateRecognizer.com is not working HOT 1
- PlateRecognizer-Installer.exe detected as malware HOT 1
- issue localhost port 8080: Connection refused HOT 18
- Incorrect total_calls (hardcoded to 2500) HOT 1
- Docker run failing with `Low disk space. Make sure to have at least 100MB of free disk space.` error HOT 18
- What is the license for self hosted docker image HOT 3
- Installer cannot run Docker.
- Merge sftp_processor.py and ftp_processor.py HOT 6
- stream_monitor.py not reliable for multiple cameras HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deep-license-plate-recognition.