Hi !
To give some context, I create a pipeline with a dai::nodeColorCamera
in it to which I apply the following parameters :
auto camRgb = pipeline.create<dai::node::ColorCamera>();
camRgb->setResolution(dai::ColorCameraProperties::SensorResolution::THE_4_K);
camRgb->setFps(20);
// and so one ...
Then I start the the pipeline using bool DeviceBase::startPipeline(const Pipeline& pipeline)
But now I wondering how I can change the resolution (and FPS) of my ColorCamera Node without having to create a new pipeline ? It seems that the dai::CameraControl
object has no method for changing resolution or frame rate...
TL;DR : What is the idiomatic way of changing the resolution of my dai::nodeColorCamera
at runtime (or the frame rate) ?
Do I need to create a new pipeline ? if so how do I launch this pipeline ?
It seems that calling bool DeviceBase::startPipeline(const Pipeline& pipeline)
with a brand new pipeline when a pipeline is already running has no effect and leaves the current pipeline running... do I have to call close first ?
Thanks in advance !