seven-segment-ocr icon indicating copy to clipboard operation
seven-segment-ocr copied to clipboard

'NoneType' object has no attribute 'copy'

Open obeewnn opened this issue 7 years ago • 2 comments

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'

obeewnn avatar Feb 22 '17 05:02 obeewnn

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?

suyashkumar avatar Feb 24 '17 06:02 suyashkumar

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

jawhster avatar May 28 '18 19:05 jawhster