How can I split an image into rectangles?
AWS Rekognition works very well for detecting typewritten text but not so well for detecting hand written symbols. You can see this is true in your example. What I would do is detect all the boxes associated with the words Problem. Then you can extract a box relative to the position of this word. Then you will have extracted the hand written numbers in each box.