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

TypeError: 'float' object cannot be interpreted as an integer #14

Open
HripsimeS opened this issue Apr 9, 2023 · 0 comments
Open

TypeError: 'float' object cannot be interpreted as an integer #14

HripsimeS opened this issue Apr 9, 2023 · 0 comments

Comments

@HripsimeS
Copy link

HripsimeS commented Apr 9, 2023

@alessandro-gentilini @suyashkumar I tried to test on your video by running the following line on Command Prompt

python seven_segment_ocr.py --video C:/Users/files/sample_files/test.mov --output C:/Users/files/out.csv --period 1

Unfortunately I received the following error when drag rectangular selections around the digits in the video and then pressed "d"

[(366, 231), (448, 349), (470, 231), (556, 353), (464, 363), (561, 485)]
Traceback (most recent call last):
File "C:\Users\files\seven_segment_ocr.py", line 58, in
digitsReadArray = read_video_digits(args.video, args.period)
File "C:\Users\files\seven_segment_ocr.py", line 20, in read_video_digits
selections=image_selection.getSelectionsFromImage(image)
File "C:\Users\files\image_selection.py", line 56, in getSelectionsFromImage
for selection in range(0, len(refPts)/2):
TypeError: 'float' object cannot be interpreted as an integer

Do you have some ideas how to fix this issue in the code? Thanks in advance!

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

1 participant