revert video format change

This commit is contained in:
2024-12-11 16:39:45 +01:00
parent 3c23d37be1
commit eef4f9c79c

View File

@@ -283,7 +283,7 @@ void sendKobukiData(TKobukiData &data) {
void CapnSend() {
// Use GStreamer pipeline to access the Astra camera with libcamera
std::string pipeline = "libcamerasrc ! video/x-raw,format=YUY2,width=640,height=480,framerate=30/1 ! videoconvert ! appsink";
std::string pipeline = "libcamerasrc ! video/x-raw,width=640,height=480,framerate=30/1 ! videoconvert ! appsink";
VideoCapture cap(pipeline, cv::CAP_GSTREAMER);
if (!cap.isOpened()) {
cerr << "Error: Could not open camera with GStreamer pipeline" << endl;