>
> Traceback (most recent call last):
> File "yolo_video.py", line 66, in <module>
> detect()
> File "yolo_video.py", line 60, in detect
> detect_video(YOLO(**vars(FLAGS)), FLAGS.output)
> File "/home/dwy5/wy/classface_yolo3/yolo.py", line 239, in detect_video
> image = Image.fromarray(frame)
> File "/root/anaconda3/lib/python3.6/site-packages/PIL/Image.py", line 2508, in fromarray
> arr = obj.__array_interface__
> AttributeError: 'NoneType' object has no attribute '__array_interface__'
>
>
经常异常终止报错
vid = cv2.VideoCapture(0)
···
···
return_value, frame = vid.read()
image = Image.fromarray(frame)
image = yolo.detect_image(image)