Skip to content

Commit

Permalink
Fix text box using incorrect y coordinate
Browse files Browse the repository at this point in the history
  • Loading branch information
Saba-Sabato committed Jan 25, 2024
1 parent ae52196 commit ffb8619
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ocrmac/ocrmac.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,6 @@ def annotate_PIL(self, color="red", fontsize=12) -> Image.Image:
bbox, annotated_image.width, annotated_image.height
)
draw.rectangle((x1, y1, x2, y2), outline=color)
draw.text((x1, y1), text, font=font, align="left", fill=color)
draw.text((x1, y2), text, font=font, align="left", fill=color)

return annotated_image

0 comments on commit ffb8619

Please sign in to comment.