Skip to content

Commit

Permalink
Merge pull request #182 from algocompretto/patch-1
Browse files Browse the repository at this point in the history
fixed drawAnnotations
  • Loading branch information
faustomorales committed Oct 7, 2021
2 parents 6473e14 + c157e7d commit c85eab1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keras_ocr/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def drawAnnotations(image, predictions, ax=None):
xy = box[0] / np.array([image.shape[1], image.shape[0]])
xy[1] = 1 - xy[1]
ax.annotate(
s=text,
text=text,
xy=xy,
xytext=(-0.05 if side == "left" else 1.05, y),
xycoords="axes fraction",
Expand Down

0 comments on commit c85eab1

Please sign in to comment.