roboflow / supervision

We write your reusable computer vision tools. 💜
https://supervision.roboflow.com
MIT License
22.65k stars 1.69k forks source link

DotAnnotator support radius proportional to object size #1283

Closed zhaoruibing closed 3 months ago

zhaoruibing commented 3 months ago

Search before asking

Description

Currently DotAnnotator takes a fixed radius. It would be great if the radii can be relative to the object sizes.

Use case

For rebar counting, the size of the rebar in the photo depends on the proximity of the camera, meaning the dots' radii should vary for each image.

For airplanes or insects, objects closer to the camera will appear larger, while those further away will look smaller within the same image. Therefore, the radii should adjust for each object.

Additional

No response

Are you willing to submit a PR?

LinasKo commented 3 months ago

Hi @zhaoruibing 👋

If someone wishes to see the size, they can use sv.CircleAnnotator, with custom thickness. image

I'm closing this for now but adding it to a list of less urgent ideas to be investigated in the future.