How would I go about turning this into a rectangle in cv2? Also, if there’s a way to save the image with overlay from ocr.space, that would work too.
Example return. This is the top line of one of my images:
{
“LineText”: “New Jersey”,
“MaxHeight”: 76.0,
“MinTop”: 48.0,
“Words”: [
{
“Height”: 56.0,
“Left”: 188.0,
“Top”: 48.0,
“Width”: 216.0,
“WordText”: “New”
},
{
“Height”: 76.0,
“Left”: 416.0,
“Top”: 48.0,
“Width”: 320.0,
“WordText”: “Jersey”
}
]
}