Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions vision/cloud-client/crop_hints/crop_hints.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +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')
print('Saved new image to output-hint.jpg')
# [END vision_crop_hints_tutorial_draw_crop_hints]


Expand All @@ -91,8 +91,6 @@ def crop_to_hint(image_file):
parser.add_argument('mode', help='Set to "crop" or "draw".')
args = parser.parse_args()

parser = argparse.ArgumentParser()

if args.mode == 'crop':
crop_to_hint(args.image_file)
elif args.mode == 'draw':
Expand Down