Skip to content

draw_bbox fails for grayscale images #806

@lgvaz

Description

@lgvaz

🐛 Bug

draw_data contains the line: img = PIL.Image.fromarray(img). If the image is grayscale and in the format (h,w,1) (which is what icevision expects` it fails with the error:

TypeError: Cannot handle this data type: (1, 1, 1), |u1

More info:
https://stackoverflow.com/questions/63367136/pil-typeerror-cannot-handle-this-data-type-1-1-1-u1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions