OpenCV error while using the handwrite.exe on windows 10
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- opencv, python
- Domain
- cli, computer-vision
Research direction
Reproduce the reported Windows 10 command with the input image, then inspect the call path in cli.py and sheettopng.py, especially save_images where cv2.imwrite fails. Determine why the image passed to OpenCV is empty and verify that the handwrite command completes and produces the expected output font.
Written by the indexing model from the issue text.
Description
Hi,
Thanks for this wonderful tool.
I am trying to use it on Windows Home 10.
I have installed fontforge in usual program files (x86) folder by download the installer.
Potrace is downloaded as zip and added the path to it in PATH env var.
Then from cmd I am running handwrite --directory "temp" "inputscan.jpg" "outputfont/"
In temp dir it creates all the folders per char.png (folder 59 is empty)
Then program throws error in sheettopng.py > cv2.inwrite() as below:
File "C:\Users\tushar\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\tushar\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\Users\tushar\AppData\Local\Programs\Python\Python39\Scripts\handwrite.exe\__main__.py", line 7, in <module>
File "C:\Users\tushar\AppData\Local\Programs\Python\Python39\lib\site-packages\handwrite\cli.py", line 56, in main
converters(
File "C:\Users\tushar\AppData\Local\Programs\Python\Python39\lib\site-packages\handwrite\cli.py", line 34, in converters
run(sheet, output_directory, directory, config, metadata)
File "C:\Users\tushar\AppData\Local\Programs\Python\Python39\lib\site-packages\handwrite\cli.py", line 12, in run
SHEETtoPNG().convert(sheet, characters_dir, config)
File "C:\Users\tushar\AppData\Local\Programs\Python\Python39\lib\site-packages\handwrite\sheettopng.py", line 47, in convert
self.save_images(
File "C:\Users\tushar\AppData\Local\Programs\Python\Python39\lib\site-packages\handwrite\sheettopng.py", line 158, in save_images
cv2.imwrite(
cv2.error: OpenCV(4.6.0) D:\a\opencv-python\opencv-python\opencv\modules\imgcodecs\src\loadsave.cpp:801: error: (-215:Assertion failed) !_img.empty() in function 'cv::imwrite'
I am new to python, please let me know if I am missing anything.
Thanks,
Tushar
- Dominant language
- Python
- Stars
- 544
- Forks
- 53
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from yashlamba/handwrite
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
-
Add requirements.txtOpen
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
-
Difficulty 4/5 3-5 days Newbie friendliness 72/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
All issues in yashlamba/handwrite
Similar issues
-
[Bug] @deck.gl/arcgis dist import resolves to unpublished @deck.gl/core source path (9.3.11, 9.4.0)Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
workflow: a tick's dispatch counts as 'only this step', and no review self-grants a round unattendedOpenworkflow
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
kristofdegrave/homeassistant-smart-charging#1505 ·
Maintainers usually reply within 1 day
-
metadata submission
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
canonical/content-cache-operator#163 · 1 comment ·
Maintainers usually reply within 1 day
-
[submission]Opensubmission
Difficulty 1/5 Under an hour Newbie friendliness 65/100
leanprover/lean-eval-submissions#1852 ·
Maintainers usually reply within 1 day