harikc456 / speech-bubble-extraction

Extracting the text from speech bubbles from manga
14 stars 3 forks source link

valueError: unkown file extension #1

Open zzinzziny opened 2 years ago

zzinzziny commented 2 years ago

Hi. Thank you for opening code. While I run this code, it appears error messages. What happens? What can I do to solve this situations?

File "/data/anaconda3/envs/imt_221125/lib/python3.8/site-packages/PIL/Image.py", line 2331, in save format = EXTENSION[ext] KeyError: ''

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "easyocr_translate.py", line 76, in im_pil.save(OUT_PATH) File "/data/anaconda3/envs/imt_221125/lib/python3.8/site-packages/PIL/Image.py", line 2333, in save raise ValueError(f"unknown file extension: {ext}") from e ValueError: unknown file extension:

harikc456 commented 2 years ago

Can you share how you are running the script?

zzinzziny commented 1 year ago

I'm running easyocr_translate.py with this script.

python easyocr_translate.py --img_path /home/ubuntu/speech-bubble-extraction/image_kor/kor_1.png --out_path /home/ubuntu/speech-bubble-extraction/

harikc456 commented 1 year ago

Ok, thanks for the reply. Can you try running the same script with the output file name? Something like this

python easyocr_translate.py --img_path /home/ubuntu/speech-bubble-extraction/image_kor/kor_1.png --out_path /home/ubuntu/speech-bubble-extraction/output.png