Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 31e7748

Browse filesBrowse files
authored
Add print output to crop hints tutorial (GoogleCloudPlatform#1797)
1 parent 9ac8b46 commit 31e7748
Copy full SHA for 31e7748

File tree

Expand file treeCollapse file tree

1 file changed

+2
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-0
lines changed

‎vision/cloud-client/crop_hints/crop_hints.py

Copy file name to clipboardExpand all lines: vision/cloud-client/crop_hints/crop_hints.py
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ def draw_hint(image_file):
6767
vects[2].x, vects[2].y,
6868
vects[3].x, vects[3].y], None, 'red')
6969
im.save('output-hint.jpg', 'JPEG')
70+
print('Saved new image to output-crop.jpg')
7071
# [END vision_crop_hints_tutorial_draw_crop_hints]
7172

7273

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

8486

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.