react-image-annotate
react-image-annotate copied to clipboard
Pre-Loading previously annotated data in the image
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.
We should improve the documentation around providing saved annotations.
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.
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?