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