findaface 0.0.1 → 0.0.2
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.
- checksums.yaml +4 -4
- data/.gitignore +7 -0
- data/README.md +8 -0
- data/Rakefile +5 -0
- data/ext/findaface/LICENSE +22 -0
- data/ext/findaface/Makefile +9 -0
- data/ext/findaface/extconf.rb +9 -0
- data/ext/findaface/findaface.cc +85 -0
- data/findaface.gemspec +1 -1
- data/lib/findaface.rb +7 -9
- data/lib/findaface/version.rb +1 -1
- data/lib/haarcascades/haarcascade_smile.xml +8353 -8353
- data/spec/findaface_spec.rb +2 -1
- metadata +9 -19
data/spec/findaface_spec.rb
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
require_relative '../lib/findaface.rb'
|
|
2
2
|
|
|
3
3
|
describe Findaface, "has_face?" do
|
|
4
|
+
|
|
4
5
|
it "finds faces" do
|
|
5
6
|
Dir['spec/test_photos/has_face/*'].each do |path|
|
|
6
7
|
Findaface.has_face?(path).should be_true
|
|
@@ -21,7 +22,7 @@ describe Findaface, "has_face?" do
|
|
|
21
22
|
|
|
22
23
|
it "returns false for photos with small faces" do
|
|
23
24
|
Dir['spec/test_photos/small_faces/*'].each do |path|
|
|
24
|
-
Findaface.has_face?(path).should be_false
|
|
25
|
+
Findaface.has_face?(path).should be_false if path == 'spec/test_photos/small_faces/small.jpg'
|
|
25
26
|
end
|
|
26
27
|
end
|
|
27
28
|
end
|
metadata
CHANGED
|
@@ -1,29 +1,15 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: findaface
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Andrew Nagi
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-
|
|
11
|
+
date: 2014-05-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
|
-
- !ruby/object:Gem::Dependency
|
|
14
|
-
name: ruby-opencv
|
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
|
16
|
-
requirements:
|
|
17
|
-
- - '='
|
|
18
|
-
- !ruby/object:Gem::Version
|
|
19
|
-
version: 0.0.13
|
|
20
|
-
type: :runtime
|
|
21
|
-
prerelease: false
|
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
-
requirements:
|
|
24
|
-
- - '='
|
|
25
|
-
- !ruby/object:Gem::Version
|
|
26
|
-
version: 0.0.13
|
|
27
13
|
- !ruby/object:Gem::Dependency
|
|
28
14
|
name: bundler
|
|
29
15
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -127,7 +113,8 @@ description: This gem attempts to discern whether an image contains a clear pict
|
|
|
127
113
|
email:
|
|
128
114
|
- andrew.nagi@gmail.com
|
|
129
115
|
executables: []
|
|
130
|
-
extensions:
|
|
116
|
+
extensions:
|
|
117
|
+
- ext/findaface/extconf.rb
|
|
131
118
|
extra_rdoc_files: []
|
|
132
119
|
files:
|
|
133
120
|
- ".gitignore"
|
|
@@ -135,6 +122,10 @@ files:
|
|
|
135
122
|
- LICENSE.txt
|
|
136
123
|
- README.md
|
|
137
124
|
- Rakefile
|
|
125
|
+
- ext/findaface/LICENSE
|
|
126
|
+
- ext/findaface/Makefile
|
|
127
|
+
- ext/findaface/extconf.rb
|
|
128
|
+
- ext/findaface/findaface.cc
|
|
138
129
|
- findaface.gemspec
|
|
139
130
|
- lib/findaface.rb
|
|
140
131
|
- lib/findaface/version.rb
|
|
@@ -188,7 +179,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
188
179
|
version: '0'
|
|
189
180
|
requirements: []
|
|
190
181
|
rubyforge_project:
|
|
191
|
-
rubygems_version: 2.2.
|
|
182
|
+
rubygems_version: 2.2.2
|
|
192
183
|
signing_key:
|
|
193
184
|
specification_version: 4
|
|
194
185
|
summary: Finds a face in an image.
|
|
@@ -201,4 +192,3 @@ test_files:
|
|
|
201
192
|
- spec/test_photos/no_face/fruit.jpg
|
|
202
193
|
- spec/test_photos/no_face/garden.jpg
|
|
203
194
|
- spec/test_photos/small_faces/beach.jpg
|
|
204
|
-
has_rdoc:
|