“what(): Communication exception - possible device error/misconfiguration. Original message 'Couldn't read data from stream: 'out' (X_LINK_ERROR)'”
Yes i have also solved common error with usbMode2 is true
我也遇到相同的问题了,我设置usb2mode 为true解决了
“
//结构推送相机
auto deviceInfo = dai:😃eviceInfo();
*// deviceInfo.name= "192.168.110.226";
// deviceInfo.protocol=X_LINK_TCP_IP;
// deviceInfo.state=X_LINK_BOOTLOADER;
// Connect to device and start pipeline
dai:😃evice device(pipeline, deviceInfo,true);//电流不稳定的时候 使用true
// device.setIrLaserDotProjectorBrightness(1000);
//取帧显示
auto outqueue = device.getOutputQueue("out", cam->getFps(), false);//maxsize 代表缓冲数据*
auto depthQueue = device.getOutputQueue("depth", 4, false);
auto spatialCalcQueue = device.getOutputQueue("spatialData", 8, false);
auto spatialCalcConfigInQueue = device.getInputQueue("spatialCalcConfig");
std::string videoPath = "/home/ubuntu/Downloads/fish_project_v3/demo.mp4";
const int thread_num = 5;
std::array<thread, thread_num> threads;
threads = {
”