Closed robmarkcole closed 3 years ago
This has been on my mind for a while, and I know it's possible.
But it's not yet something that I had prioritized. Maybe you can check out https://discuss.streamlit.io/t/new-component-streamlit-labelstudio-allows-you-to-embed-the-label-studio-annotation-frontend-into-your-application/9524, and tell me if it does the trick ? I have yet to test it :) if it doesn't fit your needs I'll check out on adding this.
Thanks for the link, label studio does look awesome and obviously designed for annotation. I still think this is a valuable feature addition as I imagine it is a common use case to be able to reference annotations elsewhere in an app
I am currently trying the approach below, where I want to associate the label_name with the stroke_colour. Any suggestions how I can cache this releationship, in order to show the correct label/colour combo in the dataframe?
Alright I kinda hacked together using a persistent dict
Source https://github.com/robmarkcole/aws-text-extraction-app/blob/ISSUE1/app/app.py
https://share.streamlit.io/andfanilo/streamlit-drawable-canvas-demo/app.py in page "Color based image annotation"
Ahah I was just building you an example with SessionState but looks like you managed before me :rofl:
Looks like you settled on a very similar approach! In your demo I get an error:
The ability to clear the state will be useful
Hmmmm this is odd, I reported this here and I thought it was fixed but it seems it isn't depending on users ? What system/browser are you on?
The ability to clear the state will be useful
Yeaaaah...I'll let this as an user exercise :) also Session State should be worked on soonish in Streamlit so I'll be waiting for this before further changes ;)
What system/browser are you on? -> Chrome, Big Sur
Re sessions state, my workaround is to kill and rerun the app
Does it happen on https://share.streamlit.io/andfanilo/s4a-color-picker-bug/main/app.py? Will see if I reopen the issue then.
Also since we have 2 workarounds now on image annotation, I'll close this soon except if you have other things to add ;)
Still an issue on that link you provided
I will close this feature request
I am annotation regions of interest (ROI) and displaying them in a dataframe for a text extraction app. I would like to auto generate an incrementing tag for the regions, e.g. region_1, region_2 etc and have this displayed inside the annotation and also in the dataframe, so that people can associate the data. Is this currently possible, or a feature request? Cheers and great work!