OSError:cannot open resource
ghifaryazmi opened this issue · 1 comments
Saya coba run, tapi muncul eror seperti ini :
Traceback (most recent call last):
File "main.py", line 189, in
main(YOLO())
File "main.py", line 71, in main
boxes, out_class, confidences, midPoint = yolo.detect_image(image)
File "/home/ghifary/Downloads/Traffic-Counting-with-YOLOv3-and-SORT-master/yolo.py", line 132, in detect_image
size=np.floor(3e-2 * image.size[1] + 0.5).astype('int32'))
File "/home/ghifary/.local/lib/python3.6/site-packages/PIL/ImageFont.py", line 648, in truetype
return freetype(font)
File "/home/ghifary/.local/lib/python3.6/site-packages/PIL/ImageFont.py", line 645, in freetype
return FreeTypeFont(font, size, index, encoding, layout_engine)
File "/home/ghifary/.local/lib/python3.6/site-packages/PIL/ImageFont.py", line 194, in init
font, size, index, encoding, layout_engine=layout_engine
OSError: cannot open resource
Bagaimana solusinya ?