8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ac8b46 commit 31e7748Copy full SHA for 31e7748
vision/cloud-client/crop_hints/crop_hints.py
@@ -67,6 +67,7 @@ def draw_hint(image_file):
67
vects[2].x, vects[2].y,
68
vects[3].x, vects[3].y], None, 'red')
69
im.save('output-hint.jpg', 'JPEG')
70
+ print('Saved new image to output-crop.jpg')
71
# [END vision_crop_hints_tutorial_draw_crop_hints]
72
73
@@ -79,6 +80,7 @@ def crop_to_hint(image_file):
79
80
im2 = im.crop([vects[0].x, vects[0].y,
81
vects[2].x - 1, vects[2].y - 1])
82
im2.save('output-crop.jpg', 'JPEG')
83
84
# [END vision_crop_hints_tutorial_crop_to_hints]
85
86
0 commit comments