Skip to content

Conversation

@daspecster
Copy link
Contributor

@daspecster daspecster commented Dec 6, 2016

Towards #2753

This adds system test for detect_faces().

test_detect_faces_content (vision.TestVisionClientFace) ... ok
test_detect_faces_filename (vision.TestVisionClientFace) ... ok
test_detect_faces_gcs (vision.TestVisionClientFace) ... ok
test_detect_logos_content (vision.TestVisionClientLogo) ... ok
test_detect_logos_filename (vision.TestVisionClientLogo) ... ok
test_detect_logos_gcs (vision.TestVisionClientLogo) ... ok

----------------------------------------------------------------------
Ran 6 tests in 9.324s

OK
________________________________________________________ summary ________________________________________________________
  system-tests: commands succeeded
  congratulations :)

@daspecster daspecster added the api: vision Issues related to the Cloud Vision API. label Dec 6, 2016
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Dec 6, 2016
@daspecster daspecster changed the title Add system tests for detect_face(). Add system tests for detect_faces(). Dec 6, 2016
landmark.landmark_type, False)
if valid_landmark_type:
return True
return False

This comment was marked as spam.

self._assert_likelihood(face.headwear)
self.assertGreater(abs(face.angles.roll), 0.0)
self.assertGreater(abs(face.angles.pan), 0.0)
self.assertGreater(abs(face.angles.tilt), 0.0)

This comment was marked as spam.


def _assert_coordinate(self, coordinate):
if coordinate is None:
return True

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

if coordinate is None:
return True

self.assertIn(type(coordinate), [int, float])

This comment was marked as spam.

return True

self.assertIn(type(coordinate), [int, float])
return

This comment was marked as spam.

@daspecster
Copy link
Contributor Author

Travis is green, merging.

@daspecster daspecster merged commit dff8675 into googleapis:master Dec 6, 2016
@daspecster daspecster deleted the vision-face-system-tests branch December 6, 2016 22:49
@daspecster daspecster mentioned this pull request Dec 8, 2016
10 tasks
richkadel pushed a commit to richkadel/google-cloud-python that referenced this pull request May 6, 2017
…-tests

Add system tests for detect_faces().
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: vision Issues related to the Cloud Vision API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants