ability to crete mask from points file
Hi @SigireddyBalasai ,

I am unable to get your query. Could you please elaborate ? i know it is present in other libraries but i am asking in tf
 Basically I am doing a image segmentation project and I need to create a
polygon mask from points file and there are quite a methods in other
modules I want to see if tensor flow has such a method if not I am
suggesting to implement is hope this is clear

On Tue, Jan 2, 2024, 4:24 PM Surya ***@***.***> wrote:

> Hi @SigireddyBalasai <https://github.com/SigireddyBalasai> ,
>
> I am unable to get your query. Could you please elaborate ?
>
> —
> Reply to this email directly, view it on GitHub
> <https://github.com/tensorflow/tensorflow/issues/62719#issuecomment-1873875804>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AYHQ36NKDHVEJM35OK6ZGELYMPROZAVCNFSM6AAAAABBJ3VEQCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZTHA3TKOBQGQ>
> .
> You are receiving this because you were mentioned.Message ID:
> ***@***.***>
>
 @SuryanarayanaY  Hi @SigireddyBalasai ,

Let me put my understandings here.

> i want to know if there is a way to get a label from bbox coordinates
 
For generating labels from bounding boxes you might need a backbone model that can able to detect the objects in the bounding box.You may refer this [example](https://keras.io/examples/vision/sam/) for this.




> Basically I am doing a image segmentation project and I need to create a polygon mask from points file and there are quite a methods in other modules I want to see if tensor flow has such a method if not I am suggesting to implement is hope this is clear

If you want to generate a bbox you may use the [draw_bounding_boxes](https://www.tensorflow.org/api_docs/python/tf/image/draw_bounding_boxes) API.

If you want to generate a mask for the bbox,as per my understanding its not pretty straight forward with a single method/API.You can refer this [tutorial](https://www.tensorflow.org/tfmodels/vision/instance_segmentation) for an implementation.

As you are referring there are methods from other libraries, could you please refer some examples so that it can be better understood and can provide a appropriate response.

Thanks!

 i am not intending to get a bbox label but it was a label with n points as boundaries @SuryanarayanaY  @SuryanarayanaY can you make that available under any contributor welcome  Hi @SigireddyBalasai ,

Can you add some references of other libraries for better understanding. Would you like to contribute to this feature? Hi @SigireddyBalasai ,

I am not 100% getting the requirement. Add a sample demo or equivalent API from other libraries(if any) so that we can take a call on that. Thanks! This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you. This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further.
### Issue type

Documentation Feature Request

### Have you reproduced the bug with TensorFlow Nightly?

Yes

### Source

source

### TensorFlow version

latest

### Custom code

Yes

### OS platform and distribution

_No response_

### Mobile device

_No response_

### Python version

_No response_

### Bazel version

_No response_

### GCC/compiler version

_No response_

### CUDA/cuDNN version

_No response_

### GPU model and memory

_No response_

### Current behavior?

i want to know if there is a way to get a label from bbox coordinates

### Standalone code to reproduce the issue

```shell
i dont have one
```


### Relevant log output

_No response_