update video_io/sv_video_input.cpp.

Signed-off-by: jario-jin <jariof@foxmail.com>
This commit is contained in:
jario-jin 2024-01-05 12:26:47 +00:00 committed by Gitee
parent 9612f9fe83
commit 4a2cf609c4
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@ void Camera::openImpl()
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",
nvvidconv ! video/x-raw, format=(string)BGRx ! videoconvert ! video/x-raw, format=(string)BGR ! appsink",
this->_camera_id, this->_width, this->_height, this->_fps);
this->_cap.open(pipe, cv::CAP_GSTREAMER);
}