mirror of
https://gitlab.fdmci.hva.nl/technische-informatica-sm3/ti-projectten/rooziinuubii79.git
synced 2025-08-04 04:14:58 +00:00
change video format
This commit is contained in:
@@ -283,7 +283,7 @@ void sendKobukiData(TKobukiData &data) {
|
|||||||
|
|
||||||
void CapnSend() {
|
void CapnSend() {
|
||||||
// Use GStreamer pipeline to access the Astra camera with libcamera
|
// Use GStreamer pipeline to access the Astra camera with libcamera
|
||||||
std::string pipeline = "libcamerasrc ! video/x-raw,width=640,height=480,framerate=30/1 ! videoconvert ! appsink";
|
std::string pipeline = "libcamerasrc ! video/x-raw,format=YUY2,width=640,height=480,framerate=30/1 ! videoconvert ! appsink";
|
||||||
VideoCapture cap(pipeline, cv::CAP_GSTREAMER);
|
VideoCapture cap(pipeline, cv::CAP_GSTREAMER);
|
||||||
if (!cap.isOpened()) {
|
if (!cap.isOpened()) {
|
||||||
cerr << "Error: Could not open camera with GStreamer pipeline" << endl;
|
cerr << "Error: Could not open camera with GStreamer pipeline" << endl;
|
||||||
|
Reference in New Issue
Block a user