How to segment characters/find contours from image

Thanks ! I ended up using utime.sleep_ms() and it worked well enough. the photos didn’t get corrupted or anything.