You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to add text upon the original image with bounding box. It seems the st_cropper auto-generates the pic with bounding box and the cropped image. Is there any way I can add text on these pics without displaying them one more time using st.image? Thanks!!!
The text was updated successfully, but these errors were encountered:
I'm not sure what you mean by this. If you want to add text, I imagine you could use PIL to add text to the image either before or after cropping. I don't think it would be realistic to add text during cropping.
If you are using PIL to add text before or after, you may need to save and then re-open the image. If my memory is correct, the draw object doesn't actually write to the image until you save it.
@turner-anderson Thanks for your help! I actually want to add text on the original image with the cropping bounding box. In this case this image is one of the outputs from st_cropper. But I feel like the image with bounding box and the cropped image are auto-generated by st_cropper, so I can't directly use PIL to add text upon it. Could you help me with it? Thanks
I want to add text upon the original image with bounding box. It seems the st_cropper auto-generates the pic with bounding box and the cropped image. Is there any way I can add text on these pics without displaying them one more time using st.image? Thanks!!!
The text was updated successfully, but these errors were encountered: