Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
obeewnn opened this issue Feb 22, 2017 · 2 comments
Open

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

obeewnn opened this issue Feb 22, 2017 · 2 comments

Comments

@obeewnn
Copy link

obeewnn commented Feb 22, 2017

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
Copy link
Owner

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
Copy link

jawhster commented May 28, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants