Solved by pfloat in post #2 
              
              
                Hello, 
it seems like the code 
            cv2.rectangle(
                img=image,
                pt1=(box_x-box_w//2, box_y-box_h//2),
                pt2=(box_x+box_w//2, box_y+box_h//2),
                color=(255, 0, 0),
                thickness=3
            )

is considering box_x and box…