Raspberry Pi摄像头模块

时间:2019-02-25 14:37:52

标签: python opencv

我一直在尝试使用OpenCV进行对象检测。使用pyimagesearch中的代码:https://www.pyimagesearch.com/2017/09/18/real-time-object-detection-with-deep-learning-and-opencv/

尝试仅针对“人员检测”而不是代码中提到的所有类运行模块,我得到了回溯:

[INFO] loading model...
[INFO] starting video stream...
Traceback (most recent call last):
  File "real_time_object_detection.py", line 78, in <module>
    label = "{}: {:.2f}%".format(CLASSES[idx],
IndexError: list index out of range

有人可以帮忙吗,在其他地方要进行哪些更改。

0 个答案:

没有答案