| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
|
||
| detected_objects = [] | ||
| feature_key = _REVERSE_TYPES[feature_type] | ||
| annotations = results.get(feature_key, []) |
There was a problem hiding this comment.
LGTM
Sorry, something went wrong.
| self.assertEqual(5, image_request['features'][0]['maxResults']) | ||
|
|
||
| def test_face_detection_from_content_no_results(self): | ||
| RETURNED = { |
| faces = image.detect_faces(limit=5) | ||
| self.assertEqual(faces, []) | ||
| self.assertEqual(len(faces), 0) | ||
| image_request = client._connection._requested[0]['data']['requests'][0] |
|
@dhermes, I'll merge this and follow up with some test improvements. |
Sorry, something went wrong.
…-results Fix vision error when no results returned.
Fix vision error when no results returned.
…#2750)](GoogleCloudPlatform/python-docs-samples#2750) * automl: video beta - move beta samples out of branch and into master * lint * update error message on batch predict Co-authored-by: Leah E. Cole <6719667+leahecole@users.noreply.github.com>
| Back | FazBrowse Home | New Git URL |
Fixes #2749.