I'm doing an OCR, I already tried everything in console and it's fine. Now I am doing the visual part, in that I am a newbie and I do not have much experience, so any help is welcome, I am working with python and I have doubts on how to do the image segmentation part. I am supposed to show an image with the predicted segmentation,like this.
[![Automatic Segmentation](https://i.stack.imgur.com/sLSTe.jpg)](https://i.stack.imgur.com/sLSTe.jpg)
But if the user wants to modify it, he should be able to do so: Add a new box or delete and edit one already created. Like this
[![Manual Segmentation](https://i.stack.imgur.com/V2y6R.jpg)](https://i.stack.imgur.com/V2y6R.jpg)

But I don't have the slightest idea how to start with the UI, any recommendations? Please