Qengineering / Face-Recognition-Jetson-Nano

Recognize 2000+ faces on your Jetson Nano with database auto-fill and anti-spoofing
https://qengineering.eu/deep-learning-examples-on-raspberry-32-64-os.html
BSD 3-Clause "New" or "Revised" License
108 stars 31 forks source link

Excessive latency in camera frames if the fps are high #12

Open fadsamo opened 2 years ago

fadsamo commented 2 years ago

Hello, thank you for your support in launching this great application. My problem is that when I use a camera, the fps is around 25, but the latency is very high, while after a few seconds from the start of the program, this latency value becomes more and more. I use your tutorial. I installed opencv 4.5.2 cuda enabled on your website, but the problem remains.

Qengineering commented 2 years ago

Dear @fadsamo,

It has to do with the image buffering in OpenCV. I've use the 'simple' way of grabbing a live video, the cap(0) method. Better to use GStreamer. It has a latency of one frame. You could look at the website how to stream with GStreamer. However, using the Jetson Nano, this site is your solution.