face_detect 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +4 -2
- data/lib/face_detect/adapter/google.rb +6 -2
- data/lib/face_detect/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b37ad69e41e1e661025cc9c0872767ec41ed2d19
|
4
|
+
data.tar.gz: 8d1e5b665aab9cc39faf4492d448d36c13ee1a8d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a3461ef2e261413abb83d751a49420313aa1641c6d5c7ed11907345880dc6c72a923db07ae543621110f59fbeabe1911573d3f50fed33bb719f2617936d6e0f
|
7
|
+
data.tar.gz: 94ebcc1e1f0b033063665f64435a2099dc7bd1d320db9d1b03ffabe30c5c7d8491998351749064c67d69cfbcb0a773a7c2f34989e268de4fdcc523e848f3c483
|
data/.travis.yml
CHANGED
@@ -13,8 +13,12 @@ class FaceDetect
|
|
13
13
|
def run
|
14
14
|
batch_response = execute
|
15
15
|
response = batch_response.responses.first
|
16
|
-
response.face_annotations
|
17
|
-
|
16
|
+
if response && response.face_annotations
|
17
|
+
response.face_annotations.map do |annotation|
|
18
|
+
convert_face(annotation)
|
19
|
+
end
|
20
|
+
else
|
21
|
+
[]
|
18
22
|
end
|
19
23
|
end
|
20
24
|
|
data/lib/face_detect/version.rb
CHANGED