Skip to content

Vision face tutorial #880

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Mar 28, 2017
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Nits found after commit
  • Loading branch information
gguuss committed Mar 28, 2017
commit 2dcdb5841df80a8a3c2f30f444eb468f47e91c7c
2 changes: 0 additions & 2 deletions vision/cloud-client/face_detection/faces.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"""Draws squares around faces in the given image."""

import argparse
import base64

from google.cloud import vision
from PIL import Image, ImageDraw
Expand Down Expand Up @@ -54,7 +53,6 @@ def highlight_faces(image, faces, output_filename):
draw = ImageDraw.Draw(im)

for face in faces:
print(dir(face.bounds.vertices))
box = [(bound.x_coordinate, bound.y_coordinate)
for bound in face.bounds.vertices]
draw.line(box + [box[0]], width=5, fill='#00ff00')
Expand Down
3 changes: 1 addition & 2 deletions vision/cloud-client/face_detection/faces_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@

import os

from PIL import Image

from faces import main
from PIL import Image


def test_main(resource, tmpdir):
Expand Down