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

IndexError: list index out of range #66

Open
ganesh314159 opened this issue Nov 27, 2021 · 1 comment
Open

IndexError: list index out of range #66

ganesh314159 opened this issue Nov 27, 2021 · 1 comment

Comments

@ganesh314159
Copy link

Hello, I was making font file and got following error

Command I used

handwrite Handwrite.jpg ./

Error I got

Traceback (most recent call last):
File "/home/ganesh314159/.local/bin/handwrite", line 8, in <module>
sys.exit(main())
File "/home/ganesh314159/.local/lib/python3.9/site-packages/handwrite/cli.py", line 56, in main
converters(
File "/home/ganesh314159/.local/lib/python3.9/site-packages/handwrite/cli.py", line 34, in converters
run(sheet, output_directory, directory, config, metadata)
File "/home/ganesh314159/.local/lib/python3.9/site-packages/handwrite/cli.py", line 12, in run
SHEETtoPNG().convert(sheet, characters_dir, config)
File "/home/ganesh314159/.local/lib/python3.9/site-packages/handwrite/sheettopng.py", line 44, in convert
characters = self.detect_characters(
File "/home/ganesh314159/.local/lib/python3.9/site-packages/handwrite/sheettopng.py", line 116, in detect_characters
x, y, w, h = cv2.boundingRect(contours[i])
IndexError: list index out of range

This is my Handwrite jpg
Handwrite

@yashlamba
Copy link
Member

yashlamba commented Nov 28, 2021

Hi @ganesh314159, thanks for trying out handwrite and letting us know about the issue; So handwrite currently doesn't apply any filters on its own, so when scanning an image you'll have to try to make the light consistent or use a filter from the adobe scan/camscanner app. I'll open a new to issue for this feature, let's see if we can add it soon.

Related: #3

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

2 participants