use astra backend

This commit is contained in:
2024-12-11 16:12:16 +01:00
parent e682969ec8
commit 8158c85d6e

View File

@@ -283,9 +283,10 @@ void sendKobukiData(TKobukiData &data) {
void CapnSend() {
VideoCapture cap(0);
// Use OpenNI2 backend to access the Astra camera
VideoCapture cap(cv::CAP_OPENNI2);
if (!cap.isOpened()) {
cerr << "Error: Could not open camera" << endl;
cerr << "Error: Could not open Astra camera with OpenNI2 backend" << endl;
return;
}