Skip to content

Commit

Permalink
Add print output to crop hints tutorial [(#1797)](GoogleCloudPlatform…
Browse files Browse the repository at this point in the history
  • Loading branch information
beccasaurus authored Oct 29, 2018
1 parent 710b09a commit ed82716
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions samples/snippets/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 ed82716

Please sign in to comment.