Hello,
Im writing an own Camera class in C++.
In this function:
cv::Mat Mono_camera::get_data(dai::Device& device) {
std::shared_ptr<dai::DataOutputQueue> mono_queue = device.getOutputQueue("mono_right_out", 4, false);
auto inMono = mono_queue->get<dai::ImgFrame>();
if(inMono){
cv::Mat frame = inMono->getCvFrame();
}
return frame;
}
Im getting the following error message:
error: conversion from ‘void’ to non-scalar type ‘cv::Mat’ requested
11 | cv::Mat frame = inMono->getCvFrame();