a-PyTorch-Tutorial-to-Object-Detection icon indicating copy to clipboard operation
a-PyTorch-Tutorial-to-Object-Detection copied to clipboard

Not able to display the detected image after executing detect.py

Open ramachandra1022 opened this issue 5 years ago • 3 comments

ramachandra1022 avatar Mar 14 '19 09:03 ramachandra1022

What's the error you get (with traceback)?

sgrvinod avatar Mar 16 '19 14:03 sgrvinod

Hello @sgrvinod , thank you so much for your SSD codes repo. I have the same problem, and it prompts that I don't have the file 'calibril.ttf'

But I fix this using font = ImageFont.load_default()

yurayli avatar Apr 17 '19 09:04 yurayli

Only the font size is too small to see

image

Solved it by downloading the font file from here: https://www.freefontspro.com/d/14454/arial.zip then extracting it to the root directory and using this line: font = ImageFont.truetype("./arial.ttf", 20)

Now the output image is:

image

ashleylid avatar Sep 05 '19 18:09 ashleylid