# MobileNetDetectionNetwork

MobileNet 检测网络节点与 [NeuralNetwork](https://docs.luxonis.com/software/depthai-components/nodes/neural_network.md)
非常相似（实际上它继承自该节点）。唯一的区别是，此节点专门用于 MobileNet NN，并在设备上解码 NN 的结果。这意味着此节点的 out 输出不是字节数组，而是
[ImgDetections](https://docs.luxonis.com/software/depthai-components/messages/img_detections.md) 消息，可以轻松地在代码中使用。

## 如何放置

#### Python

```python
pipeline = dai.Pipeline()
mobilenetDet = pipeline.create(dai.node.MobileNetDetectionNetwork)
```

#### C++

```cpp
dai::Pipeline pipeline;
auto mobilenetDet = pipeline.create<dai::node::MobileNetDetectionNetwork>();
```

## 输入和输出

## 用法

#### Python

```python
pipeline = dai.Pipeline()
mobilenetDet = pipeline.create(dai.node.MobileNetDetectionNetwork)

mobilenetDet.setConfidenceThreshold(0.5)
mobilenetDet.setBlobPath(nnBlobPath)
mobilenetDet.setNumInferenceThreads(2)
mobilenetDet.input.setBlocking(False)
```

#### C++

```cpp
dai::Pipeline pipeline;
auto mobilenetDet = pipeline.create<dai::node::MobileNetDetectionNetwork>();

mobilenetDet->setConfidenceThreshold(0.5f);
mobilenetDet->setBlobPath(nnBlobPath);
mobilenetDet->setNumInferenceThreads(2);
mobilenetDet->input.setBlocking(false);
```

## 功能示例

 * [RGB & MobilenetSSD](https://docs.luxonis.com/software/depthai/examples/rgb_mobilenet.md)
 * [Mono & MobilenetSSD](https://docs.luxonis.com/software/depthai/examples/mono_depth_mobilenetssd.md)
 * [Mono & MobilenetSSD & Depth](https://docs.luxonis.com/software/depthai/examples/mono_depth_mobilenetssd.md)

## 参考

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

Kind: Class

MobileNetDetectionNetwork node. Parses MobileNet results

### 需要帮助？

请前往 [OAKChina 官网](https://www.oakchina.cn/) 获取技术支持或解答您的任何疑问。
