Hey Fanilo,
Thanks for the quick response!
I set the width and height to an already square shape like you suggested:
canvas_result = st_canvas(
stroke_width=10,
background_color=“White”,
width = 300,
height= 300,
)
By doing this I am no longer reshaping the incoming data, and I get nice square images. Here are some examples of what I got after the images were augmented for training purposes, and this is exactly what I was trying to get:
This issue is resolved.
Thank you!