andfanilo / streamlit-drawable-canvas

Do you like Quick, Draw? Well what if you could train/predict doodles drawn inside Streamlit? Also draws lines, circles and boxes over background images for annotation.
https://drawable-canvas.streamlit.app/
MIT License
541 stars 83 forks source link

Keep aspect ratio and save json outputs #122

Closed wheynelau closed 11 months ago

wheynelau commented 1 year ago

Description:

Have modified the function to resize according to aspect ratio. It is left on False by default. Also added a save option to save the outputs as json file with the name automatically input as the original image name

Issue reference:

Fixes #120

Tests:

Tested with image of varying sizes

andfanilo commented 1 year ago

Thanks, I'll have a look this weekend :)