meaning of the box coordinates
#6
by
hvenance
- opened
do you know exactly what these coordinates mean? And more importantly, how can they be converted to pdf coordinates ?
need help with the same
The output BBox coordinates are in Image Coordinate Space, if you need to convert to PDF Coordinate space you'll need to do the following:
original_width = int(width / dpi_multiple)
original_height = int(height / dpi_multiple)
x1 = box[0]
y1 = results["original_height"] - box[1]
x2 = box[2]
y2 = results["original_height"] - box[3]
*Notes: I increased the image DPI thus needed to account for DPI multiple.