Skip to content

Commit

Permalink
Fix get_boxes_img_without_det in the python api (#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
AuroraWright authored Jan 30, 2024
1 parent f686541 commit d05b629
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/rapidocr_onnxruntime/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def auto_text_det(

def get_boxes_img_without_det(self, h, w):
x0, y0, x1, y1 = 0, 0, w, h
dt_boxes = np.array([[x0, y0], [x1, y0], [x1, y1], [x0, y1]])
dt_boxes = np.float32([[x0, y0], [x1, y0], [x1, y1], [x0, y1]])
dt_boxes = dt_boxes[np.newaxis, ...]
return dt_boxes

Expand Down

0 comments on commit d05b629

Please sign in to comment.