Go to the documentation of this file.
20 ctrl = CameraControl()
21 ctrl.setCaptureStill(True)
22 # Initially send still event
23 node.io['ctrl'].send(ctrl)
27 frame = node.io['frames'].get()
29 ctrl.setAutoExposureCompensation(3)
30 node.io['stream1'].send(frame)
33 ctrl.setAutoExposureCompensation(-3)
34 node.io['stream2'].send(frame)
36 node.io['ctrl'].send(ctrl)
39 cam->still.link(script->inputs["frames"]);
44 script->outputs[
"stream1"].link(xout1->input);
48 script->outputs[
"stream2"].link(xout2->input);
51 script->outputs[
"ctrl"].link(cam->inputControl);
60 if(cv::waitKey(1) ==
'q') {
XLinkOut node. Sends messages over XLink.
Represents the pipeline, set of nodes and connections between them.
ColorCamera node. For use with color sensors.
std::shared_ptr< DataOutputQueue > getOutputQueue(const std::string &name)
void setScript(const std::string &script, const std::string &name="")
std::shared_ptr< N > create()
void setIspScale(int numerator, int denominator)
void setStreamName(const std::string &name)
depthai
Author(s): Martin Peterlin
autogenerated on Sat Mar 22 2025 02:58:19