From 819fd4c82ab6f79f83e0a60e44a0f932aeda84d5 Mon Sep 17 00:00:00 2001 From: jario Date: Wed, 27 Dec 2023 18:42:25 +0800 Subject: [PATCH] optim MIPI reading --- video_io/sv_video_input.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/video_io/sv_video_input.cpp b/video_io/sv_video_input.cpp index 76913d2..2937b48 100644 --- a/video_io/sv_video_input.cpp +++ b/video_io/sv_video_input.cpp @@ -132,7 +132,10 @@ void Camera::openImpl() this->_fps = 30; } - sprintf(pipe, "nvarguscamerasrc sensor-id=%d ! video/x-raw(memory:NVMM), width=(int)%d, height=(int)%d, format=(string)NV12, framerate=(fraction)%d/1 ! nvvidconv flip-method=0 ! video/x-raw, width=(int)%d, height=(int)%d, format=(string)BGRx ! videoconvert ! video/x-raw, format=(string)BGR ! appsink", this->_camera_id, this->_width, this->_height, this->_fps, this->_width, this->_height); + sprintf(pipe, "nvarguscamerasrc sensor-id=%d ee-mode=0 tnr-mode=0 aeantibanding=0 wbmode=0 ! \ + video/x-raw(memory:NVMM), width=(int)%d, height=(int)%d, format=(string)NV12, framerate=(fraction)%d/1 ! \ + nvvidconv ! video/x-raw, format=(string)BGRx ! appsink", + this->_camera_id, this->_width, this->_height, this->_fps); this->_cap.open(pipe, cv::CAP_GSTREAMER); } else if (this->_type == CameraType::RTSP)