Go to the documentation of this file.
9 int main(
int argc,
char** argv) {
13 std::string nnPath(BLOB_PATH);
17 nnPath = std::string(argv[1]);
21 printf(
"Using blob at path: %s\n", nnPath.c_str());
30 camRgb->setInterleaved(
false);
40 right->out.link(manipRight->inputImage);
49 left->out.link(manipLeft->inputImage);
53 nn->setNumInferenceThreads(2);
55 manipLeft->out.link(nn->inputs[
"img1"]);
56 camRgb->preview.link(nn->inputs[
"img2"]);
57 manipRight->out.link(nn->inputs[
"img3"]);
61 nn->out.link(xout->input);
71 cv::imshow(
"Concat",
fromPlanarFp16(inNn->getFirstLayerFp16(), 900, 300));
73 int key = cv::waitKey(1);
74 if(key ==
'q' || key ==
'Q') {
XLinkOut node. Sends messages over XLink.
void setCamera(std::string name)
Represents the pipeline, set of nodes and connections between them.
MonoCamera node. For use with grayscale sensors.
ColorCamera node. For use with color sensors.
NeuralNetwork node. Runs a neural inference on input data.
std::shared_ptr< DataOutputQueue > getOutputQueue(const std::string &name)
ImageManipConfig & setResize(int w, int h)
void setOpenVINOVersion(OpenVINO::Version version)
Set a specific OpenVINO version to use with this pipeline.
ImageManipConfig & setFrameType(ImgFrame::Type name)
std::shared_ptr< N > create()
void setBlobPath(const dai::Path &path)
ImageManip node. Capability to crop, resize, warp, ... incoming image frames.
cv::Mat fromPlanarFp16(const std::vector< float > &data, int w, int h, float mean, float scale)
void setPreviewSize(int width, int height)
Set preview output size.
ImageManipConfig initialConfig
void setStreamName(const std::string &name)
depthai
Author(s): Martin Peterlin
autogenerated on Sat Mar 22 2025 02:58:19