Go to the documentation of this file.
16 xoutRgb->setStreamName(
"rgb");
20 camRgb->setInterleaved(
true);
21 camRgb->setPreviewSize(300, 300);
24 camRgb->preview.link(xoutRgb->input);
25 camMono->out.link(xoutMono->
input);
38 cv::imshow(
"rgb", rgb->getFrame());
39 }
else if(ev ==
"mono") {
41 cv::imshow(
"mono", mono->getFrame());
44 int key = cv::waitKey(1);
45 if(key ==
'q' || key ==
'Q') {
XLinkOut node. Sends messages over XLink.
Represents the pipeline, set of nodes and connections between them.
MonoCamera node. For use with grayscale sensors.
ColorCamera node. For use with color sensors.
std::shared_ptr< DataOutputQueue > getOutputQueue(const std::string &name)
std::shared_ptr< N > create()
std::string getQueueEvent(const std::vector< std::string > &queueNames, std::chrono::microseconds timeout=std::chrono::microseconds(-1))
std::vector< std::string > getQueueEvents(const std::vector< std::string > &queueNames, std::size_t maxNumEvents=std::numeric_limits< std::size_t >::max(), std::chrono::microseconds timeout=std::chrono::microseconds(-1))
void setStreamName(const std::string &name)
depthai
Author(s): Martin Peterlin
autogenerated on Sat Mar 22 2025 02:58:19