https://github.com/robmarkcole/streamlit-segmentation-app
streamlit app for binary segmentation
https://github.com/robmarkcole/streamlit-segmentation-app
Last synced: 9 months ago
JSON representation
streamlit app for binary segmentation
- Host: GitHub
- URL: https://github.com/robmarkcole/streamlit-segmentation-app
- Owner: robmarkcole
- License: apache-2.0
- Created: 2022-09-12T04:43:40.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-09-15T04:47:24.000Z (over 3 years ago)
- Last Synced: 2025-05-06T22:11:36.923Z (about 1 year ago)
- Language: Python
- Size: 3.35 MB
- Stars: 18
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# segmentation-annotation-app
Streamlit app to perform annotation for binary segmentation.
- Use the file picker to load an image to annotate with polygons covering target class pixels
- Save the mask file: this will use the input filename and save to the masks directory
- The generated masks are 8-bit images with 0 representing background and 255 representing target
## Tips
- The file picker is used to select the image to annotate, if you are working through a long list of images it is easy to loose your place and spend lots of time searching for the next file. A workaround is to periodically move the annotated images to a folder called `annotated`, making it easier to find the unannotated images
- If you refresh the app page, be sure to update the `Mask directory path:` or masks will be saved in the default location (they can be just copied over so not a big deal)
## Development (mac)
```
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
streamlit run app.py
```
## References
- [streamlit-drawable-canvas](https://github.com/andfanilo/streamlit-drawable-canvas)