Skip to content
Snippets Groups Projects
Commit 04fc0d12 authored by Mathieu Beligon's avatar Mathieu Beligon
Browse files

[camera] (fix) use drop to reduce lattency

parent e75af4a7
No related branches found
No related tags found
No related merge requests found
......@@ -16,11 +16,11 @@ class RaspiV2CameraFrameGenerator(CV2FrameGeneratorABC):
"nvarguscamerasrc ! "
"video/x-raw(memory:NVMM), "
f"width=(int){self.width}, height=(int){self.height}, "
"format=(string)NV12, framerate=(fraction)60/1 ! "
"format=(string)NV12, framerate=60/1 ! "
"nvvidconv flip-method=0 ! "
f"video/x-raw, width=(int){self.width}, height=(int){self.height}, "
"format=(string)BGRx ! "
"videoconvert ! appsink",
"videoconvert ! appsink drop=true sync=false",
cv2.CAP_GSTREAMER,
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment