DepthAI v2 has been superseded by DepthAI v3. You are viewing legacy documentation.
此页面由 AI 自动翻译。查看英文原版
最后更新

本页目录

  • 如何放置
  • 输入和输出
  • 用法
  • 功能示例
  • 参考
Claude CodeCodexCursor
Luxonis 智能体工具包为你常用的编程智能体加载 Luxonis 上下文与技能,更快地基于 OAK 开发应用。
安装工具包

MobileNetDetectionNetwork

最后更新
MobileNet 检测网络节点与 NeuralNetwork(实际上是它的扩展)非常相似。唯一的区别是,该节点专门用于 MobileNet NN,并且它在设备上解码 NN 的结果。这意味着该节点的 out 不是字节数组,而是可以轻松在代码中使用的 ImgDetections。

如何放置

Python

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

C++

C++
1dai::Pipeline pipeline;
2auto mobilenetDet = pipeline.create<dai::node.MobileNetDetectionNetwork>();

输入和输出

用法

Python

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)

C++

C++
1dai::Pipeline pipeline;
2auto mobilenetDet = pipeline.create<dai::node.MobileNetDetectionNetwork>();
3
4mobilenetDet->setConfidenceThreshold(0.5f);
5mobilenetDet->setBlobPath(nnBlobPath);
6mobilenetDet->setNumInferenceThreads(2);
7mobilenetDet->input.setBlocking(false);

功能示例

参考

class

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

需要帮助?

请访问讨论论坛以获取技术支持或您可能有的任何其他问题。