ON THIS PAGE

  • MobileNetDetectionNetwork
  • How to place it
  • Inputs and Outputs
  • Usage
  • Examples of functionality
  • Reference

MobileNetDetectionNetwork

MobileNet detection network node is very similar to NeuralNetwork (in fact it extends it). The only difference is that this node is specifically for the MobileNet NN and it decodes the result of the NN on device. This means that out of this node is not a byte array but a ImgDetections that can easily be used in your code.

How to place it

Python
C++
Python
1pipeline = dai.Pipeline()
2mobilenetDet = pipeline.create(dai.node.MobileNetDetectionNetwork)

Inputs and Outputs

Command Line
1/
2              ┌───────────────────┐
3              │                   │       out
4              │                   ├───────────►
5              │     MobileNet     │
6              │     Detection     │
7  input       │     Network       │ passthrough
8  ───────────►│-------------------├───────────►
9              │                   │
10              └───────────────────┘
Message types

Usage

Python
C++
Python
1pipeline = dai.Pipeline()
2mobilenetDet = pipeline.create(dai.node.MobileNetDetectionNetwork)
3
4mobilenetDet.setConfidenceThreshold(0.5)
5mobilenetDet.setBlobPath(nnBlobPath)
6mobilenetDet.setNumInferenceThreads(2)
7mobilenetDet.input.setBlocking(False)

Examples of functionality

Reference

class

depthai.node.MobileNetDetectionNetwork(depthai.node.DetectionNetwork)

Need assistance?

Head over to Discussion Forum for technical support or any other questions you might have.