Skip to content

Commit

Permalink
Add print output to crop hints tutorial (#1797)
Browse files Browse the repository at this point in the history
  • Loading branch information
beccasaurus committed Oct 29, 2018
1 parent 9ac8b46 commit 31e7748
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vision/cloud-client/crop_hints/crop_hints.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ def draw_hint(image_file):
vects[2].x, vects[2].y,
vects[3].x, vects[3].y], None, 'red')
im.save('output-hint.jpg', 'JPEG')
print('Saved new image to output-crop.jpg')
# [END vision_crop_hints_tutorial_draw_crop_hints]


Expand All @@ -79,6 +80,7 @@ def crop_to_hint(image_file):
im2 = im.crop([vects[0].x, vects[0].y,
vects[2].x - 1, vects[2].y - 1])
im2.save('output-crop.jpg', 'JPEG')
print('Saved new image to output-crop.jpg')
# [END vision_crop_hints_tutorial_crop_to_hints]


Expand Down

0 comments on commit 31e7748

Please sign in to comment.