I would like to capture still image from mono camera, but my code won't compile. I followed the code from script node which has example for rgb and that code works but extending to mono, it would not work.
Getting error: ‘Camera’ is not a member of ‘dai::node’ for the following code:
auto camR = pipeline.create<dai::node::Camera>();
camR->setCamera("right");
auto jpegR = pipeline.create<dai::node::VideoEncoder>();
jpegR->setDefaultProfilePreset(cam->getFps(), dai::VideoEncoderProperties:😛rofile::MJPEG);
camR->still.link(jpegR->input);
script->outputs["outR"].link(camR->inputControl);
jpegR->bitstream.link(script->inputs["jpegR"]);
If changing ::Camera to ::MonoCamera, I got the error, class dai::node::MonoCamera’} has no member named ‘still’
auto camR = pipeline.create<dai::node::MonoCamera>();
camR->setCamera("right");
auto jpegR = pipeline.create<dai::node::VideoEncoder>();
jpegR->setDefaultProfilePreset(cam->getFps(), dai::VideoEncoderProperties:😛rofile::MJPEG);
camR->still.link(jpegR->input);
script->outputs["outR"].link(camR->inputControl);
jpegR->bitstream.link(script->inputs["jpegR"]);