Closed nicezic closed 7 years ago
Are you using install from source? This was an old issue that happens because of python2/3 inconsistency and has been fixed. Feel free ti reopen if you see this in latest.
I am using Win10, Python 3.5 I still got the problem, no FreeSans.ttf ,so i use the font 'Arial.ttf' img = utils.draw_text(img, 'Filter {}'.format(idx), font='Arial.ttf')
Hi @Lijiachen1018 . Your problem was not reproduced in my test environment. (But I have no Win10, so my environment is Win7, Python3.5 (Anaconda).) Can you give me error log?
It is because no FreeSan.ttf file in my system so I tried 'Arial.ttf' or 'Times.ttf' The error: Failed to lookup font 'FreeSans.ttf', falling back to default
I got a font related error running the first sample code.
My env is , no GPU, Win10, conda with python 3.6
What I did first was downloading and install 'FreeSan.ttf' into system.
However, it didn't help out.
Then, I figured out what the problem was.
For me, this code, "len(font_files)" in vis/util/utils.py causes the problem.
So, This is my way around, just using default font without checking a specific font.
FYI, Below is the traceback.