Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'ImageDraw' object has no attribute 'textsize' #26

Open
RajaIAB opened this issue Aug 7, 2024 · 0 comments
Open

AttributeError: 'ImageDraw' object has no attribute 'textsize' #26

RajaIAB opened this issue Aug 7, 2024 · 0 comments

Comments

@RajaIAB
Copy link

RajaIAB commented Aug 7, 2024

(Yolo-to-COCO) bash-4.4$ python coco-viewer/cocoviewer.py -i tutorial/images/ -a output/train.json INFO: Starting... INFO: Parsing output/train.json... Traceback (most recent call last): File "coco-viewer/cocoviewer.py", line 899, in <module> main() File "coco-viewer/cocoviewer.py", line 894, in main Controller(data, root, image_panel, statusbar, menu, objects_panel, sliders) File "coco-viewer/cocoviewer.py", line 589, in __init__ self.update_img() File "coco-viewer/cocoviewer.py", line 653, in update_img self.compose_image( File "coco-viewer/cocoviewer.py", line 620, in compose_image draw_bboxes(draw, objects, labels_on, names_colors, ignore, width, label_size) File "coco-viewer/cocoviewer.py", line 183, in draw_bboxes tw, th = draw.textsize(text, font) AttributeError: 'ImageDraw' object has no attribute 'textsize'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant