mirror of
https://gitlab.fdmci.hva.nl/technische-informatica-sm3/ti-projectten/rooziinuubii79.git
synced 2025-08-04 12:24:57 +00:00
use astra backend
This commit is contained in:
@@ -283,9 +283,10 @@ void sendKobukiData(TKobukiData &data) {
|
||||
|
||||
|
||||
void CapnSend() {
|
||||
VideoCapture cap(0);
|
||||
if (!cap.isOpened()) {
|
||||
cerr << "Error: Could not open camera" << endl;
|
||||
// Use OpenNI2 backend to access the Astra camera
|
||||
VideoCapture cap(cv::CAP_OPENNI2);
|
||||
if (!cap.isOpened()) {
|
||||
cerr << "Error: Could not open Astra camera with OpenNI2 backend" << endl;
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user