Skip to content

Commit

Permalink
Fix examples/draw.py
Browse files Browse the repository at this point in the history
  • Loading branch information
wkentaro committed Jun 22, 2020
1 parent 1a4010e commit 6e437a6
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions examples/draw.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,6 @@ def draw():
H, W = img.shape[:2]
viz = img

img = imgviz.draw.text_in_rectangle(
img, loc="lt+", text="original", size=30, background=(255, 255, 255),
)
viz = imgviz.draw.text_in_rectangle(
viz, loc="lt+", text="markers", size=30, background=(255, 255, 255),
)

y1, x1 = 200, 180
y2, x2 = 400, 380
viz = imgviz.draw.rectangle(
Expand Down Expand Up @@ -61,6 +54,13 @@ def draw():
else:
raise ValueError("unsupport shape: {}".format(shape))

img = imgviz.draw.text_in_rectangle(
img, loc="lt+", text="original", size=30, background=(255, 255, 255),
)
viz = imgviz.draw.text_in_rectangle(
viz, loc="lt+", text="markers", size=30, background=(255, 255, 255),
)

# -------------------------------------------------------------------------

plt.figure(dpi=200)
Expand Down

0 comments on commit 6e437a6

Please sign in to comment.