generated from roboflow/template-python
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed
Labels
enhancementNew feature or requestNew feature or requestversion: 0.9.0Feature to be added in `0.9.0` releaseFeature to be added in `0.9.0` release
Description
Search before asking
- I have searched the Supervision issues and found no similar feature requests.
Description

OpenCV errors out with an uninformative error when the dtype of the mask is wrong.
Would be good to add catch if dtype != np.int32 and raise an Exception.
Use case
I was trying to create a mask in CVAT, the exported segmentation had decimal places, np.array(coords) did not convert to np.int32, and I was confused by the bad error message.
This is likely to happen to other users too .
Additional
Happy to submit PR
Are you willing to submit a PR?
- Yes I'd like to help by submitting a PR!
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestversion: 0.9.0Feature to be added in `0.9.0` releaseFeature to be added in `0.9.0` release