suyashkumar / seven-segment-ocr

Digitizes numbers from videos & images of seven segment displays
74 stars 18 forks source link

'NoneType' object has no attribute 'copy' #1

Open obeewnn opened 7 years ago

obeewnn commented 7 years ago

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'
suyashkumar commented 7 years ago

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?

jawhster commented 6 years ago

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