react-image-annotate icon indicating copy to clipboard operation
react-image-annotate copied to clipboard

Pre-Loading previously annotated data in the image

Open AjayKumarMP opened this issue 4 years ago • 3 comments

Once the annotation is complete and saved on the DB or some storage. If we want to see what we annotated previously, How can we reload the annotation data into the image without missing a pixel value.

Documentation is not clear and also seen the Source. Nothing is helping out.

AjayKumarMP avatar Sep 14 '20 15:09 AjayKumarMP

We should improve the documentation around providing saved annotations.

seveibar avatar Sep 14 '20 15:09 seveibar

Each image in the images prop has an optional regions, that's where the saved regions go. I think it'd be a good idea to throw that in a code sandbox.

seveibar avatar Sep 14 '20 19:09 seveibar

I want to integrate this to a server with a DB. I've extracted the data with the onExit callback function. Once the values are already stored in a DB, I would like to show the marked bounding boxes, selected tags, and class labels when I select the same image again. Is there a way to pass these pre-loaded props to the ReactImageAnnotate component?

I've tried passing an array of arrays to regions, as I have multiple bounding boxes (x, y, w, h), but it isn't working. Have you added any examples or documentation about how to do this?

josepdecid avatar May 16 '21 16:05 josepdecid