logo

person detection 例程运行提示找不到文件

2023-11-16 11:35
K
wgok_1700102393
# 加载内置的人检测神经网络模型(该网络位于OpenMV Cam的固件中)。
net = tf.load('person_detection')
labels = ['unsure', 'person', 'no_person']

运行后终端提示

Traceback (most recent call last):
  File "<stdin>", line 21, in <module>
OSError: Could not find the file
OpenMV v4.4.1; MicroPython d8e38d0; OPENMV4P-STM32H743
Type "help()" for more information.
2023-11-16 15:25
I
网红小智智 星瞳科技

person_detection在新的固件中删除了,可以使用这个代码替代:

https://github.com/openmv/openmv/blob/master/scripts/examples/03-Machine-Learning/00-TensorFlow/tf_object_detection.py