face 0.0.5 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.rdoc +3 -8
- data/face.gemspec +1 -1
- data/lib/face/client/recognition.rb +0 -1
- data/lib/face/client/utils.rb +10 -10
- data/lib/face/version.rb +1 -1
- metadata +51 -63
data/README.rdoc
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
Note: This gem is still under development
|
1
|
+
Note: This gem is still under development, create issues if you meet any problem when using it https://github.com/rociiu/face/issues
|
2
2
|
|
3
|
-
Face is a ruby library of
|
3
|
+
Face is a ruby library of SkyBiometry Face Detection and Recognition API.
|
4
4
|
|
5
5
|
== Getting Started
|
6
6
|
|
@@ -18,11 +18,6 @@ Detect Faces with Raw image data:
|
|
18
18
|
|
19
19
|
>> client.faces_detect(:file => File.new('image.jpg', 'rb'))
|
20
20
|
|
21
|
-
|
22
|
-
|
23
|
-
>> client.twitter_credentials = { :twitter_username => 'twitter_screen_name', :twitter_password => 'twitter_password' }
|
24
|
-
>> client.faces_recognize(:urls => ['http://test.com/1.jpg'], :uids => ['uiicor']) # will make request with twitter credentials
|
25
|
-
|
26
|
-
More Documentation refer to http://developers.face.com/.
|
21
|
+
More Documentation refer to http://www.skybiometry.com/Documentation.
|
27
22
|
|
28
23
|
Author: Roc Yu (rociiu.yu@gmail.com)
|
data/face.gemspec
CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |s|
|
|
9
9
|
s.authors = ["Roc Yu"]
|
10
10
|
s.email = ["rociiu.yu@gmail.com"]
|
11
11
|
s.homepage = "http://rubygems.org/gems/face"
|
12
|
-
s.summary = %q{Ruby wraper of
|
12
|
+
s.summary = %q{Ruby wraper of SkyBiometry Face Detection and Recognition API}
|
13
13
|
s.description = %q{}
|
14
14
|
|
15
15
|
s.rubyforge_project = "face"
|
data/lib/face/client/utils.rb
CHANGED
@@ -5,16 +5,16 @@ module Face
|
|
5
5
|
class FaceError < StandardError; end
|
6
6
|
|
7
7
|
API_METHODS = {
|
8
|
-
:faces_detect => 'http://api.
|
9
|
-
:faces_recognize => 'http://api.
|
10
|
-
:faces_train => 'http://api.
|
11
|
-
:faces_status => 'http://api.
|
12
|
-
:tags_get => 'http://api.
|
13
|
-
:tags_add => 'http://api.
|
14
|
-
:tags_save => 'http://api.
|
15
|
-
:tags_remove => 'http://api.
|
16
|
-
:account_limits => 'http://api.
|
17
|
-
:account_users => 'http://api.
|
8
|
+
:faces_detect => 'http://api.skybiometry.com/fc/faces/detect.json',
|
9
|
+
:faces_recognize => 'http://api.skybiometry.com/fc/faces/recognize.json',
|
10
|
+
:faces_train => 'http://api.skybiometry.com/fc/faces/train.json',
|
11
|
+
:faces_status => 'http://api.skybiometry.com/fc/faces/status.json',
|
12
|
+
:tags_get => 'http://api.skybiometry.com/fc/tags/get.json',
|
13
|
+
:tags_add => 'http://api.skybiometry.com/fc/tags/add.json',
|
14
|
+
:tags_save => 'http://api.skybiometry.com/fc/tags/save.json',
|
15
|
+
:tags_remove => 'http://api.skybiometry.com/fc/tags/remove.json',
|
16
|
+
:account_limits => 'http://api.skybiometry.com/fc/account/limits.json',
|
17
|
+
:account_users => 'http://api.skybiometry.com/fc/account/users.json'
|
18
18
|
}
|
19
19
|
|
20
20
|
def api_crendential
|
data/lib/face/version.rb
CHANGED
metadata
CHANGED
@@ -1,60 +1,55 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: face
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
6
|
-
- 0
|
7
|
-
- 0
|
8
|
-
- 5
|
9
|
-
version: 0.0.5
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.7
|
5
|
+
prerelease:
|
10
6
|
platform: ruby
|
11
|
-
authors:
|
7
|
+
authors:
|
12
8
|
- Roc Yu
|
13
9
|
autorequire:
|
14
10
|
bindir: bin
|
15
11
|
cert_chain: []
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
dependencies:
|
20
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2013-03-20 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
21
15
|
name: rest-client
|
22
|
-
|
23
|
-
|
24
|
-
requirements:
|
25
|
-
- -
|
26
|
-
- !ruby/object:Gem::Version
|
27
|
-
segments:
|
28
|
-
- 1
|
29
|
-
- 6
|
30
|
-
- 1
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
31
21
|
version: 1.6.1
|
32
22
|
type: :runtime
|
33
|
-
version_requirements: *id001
|
34
|
-
- !ruby/object:Gem::Dependency
|
35
|
-
name: json
|
36
23
|
prerelease: false
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 1.6.1
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: json
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
45
37
|
version: 1.4.6
|
46
38
|
type: :runtime
|
47
|
-
|
48
|
-
|
49
|
-
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: 1.4.6
|
46
|
+
description: ''
|
47
|
+
email:
|
50
48
|
- rociiu.yu@gmail.com
|
51
49
|
executables: []
|
52
|
-
|
53
50
|
extensions: []
|
54
|
-
|
55
51
|
extra_rdoc_files: []
|
56
|
-
|
57
|
-
files:
|
52
|
+
files:
|
58
53
|
- .gitignore
|
59
54
|
- Gemfile
|
60
55
|
- LICENSE
|
@@ -71,35 +66,28 @@ files:
|
|
71
66
|
- lib/face/client/tags.rb
|
72
67
|
- lib/face/client/utils.rb
|
73
68
|
- lib/face/version.rb
|
74
|
-
has_rdoc: true
|
75
69
|
homepage: http://rubygems.org/gems/face
|
76
70
|
licenses: []
|
77
|
-
|
78
71
|
post_install_message:
|
79
72
|
rdoc_options: []
|
80
|
-
|
81
|
-
require_paths:
|
73
|
+
require_paths:
|
82
74
|
- lib
|
83
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
requirements:
|
92
|
-
- -
|
93
|
-
- !ruby/object:Gem::Version
|
94
|
-
|
95
|
-
- 0
|
96
|
-
version: "0"
|
75
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
76
|
+
none: false
|
77
|
+
requirements:
|
78
|
+
- - ! '>='
|
79
|
+
- !ruby/object:Gem::Version
|
80
|
+
version: '0'
|
81
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
82
|
+
none: false
|
83
|
+
requirements:
|
84
|
+
- - ! '>='
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: '0'
|
97
87
|
requirements: []
|
98
|
-
|
99
88
|
rubyforge_project: face
|
100
|
-
rubygems_version: 1.
|
89
|
+
rubygems_version: 1.8.24
|
101
90
|
signing_key:
|
102
91
|
specification_version: 3
|
103
|
-
summary: Ruby wraper of
|
92
|
+
summary: Ruby wraper of SkyBiometry Face Detection and Recognition API
|
104
93
|
test_files: []
|
105
|
-
|