seven-segment-ocr
seven-segment-ocr copied to clipboard
'NoneType' object has no attribute 'copy'
Hi, would you be able to help with the error below?
Traceback (most recent call last):
File "seven_segment_ocr.py", line 59, in <module>
digitsReadArray = read_video_digits(args.video, args.period)
File "seven_segment_ocr.py", line 20, in read_video_digits
selections=image_selection.getSelectionsFromImage(image)
File "C:\obtv\seven-segment-ocr\image_selection.py", line 40, in getSelectionsFromImage
clone = image.copy()
AttributeError: 'NoneType' object has no attribute 'copy'
Sorry about the delay, I haven't really been maintaining this anymore -- did you make sure to click and drag the mouse to select the display digit(s) in the video?
obeewnn - did you solve this? If so, what was the solution? Thanks, Justin
update: I think I solved this because images weren't being read because opencv and ffmpeg were not setup properly. I think I had to make sure opencv_ffmpeg2413.dll and opencv_ffmpeg2413_64.dll were in my Python27 directory where 2413 is for OpenCV version 2.4.13