image_match 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.
- data/README.md +4 -4
- data/image_match.gemspec +1 -1
- data/lib/image_match/version.rb +1 -1
- metadata +4 -4
data/README.md
CHANGED
@@ -39,7 +39,7 @@ Basic flow is following.
|
|
39
39
|
|
40
40
|
Following 3 functions are prepared.
|
41
41
|
|
42
|
-
1. perfect_match
|
42
|
+
1. perfect_match function :
|
43
43
|
Calc match score between image1 and image2.
|
44
44
|
This function requires same size image as image1 and image2
|
45
45
|
This returns true if match score is higher than limit_similarity.
|
@@ -50,7 +50,7 @@ Following 3 functions are prepared.
|
|
50
50
|
perfect_match(image1_filename, image2_filename, limit_similarity=0.9, is_output=false)
|
51
51
|
```
|
52
52
|
|
53
|
-
2. perfect_match_template
|
53
|
+
2. perfect_match_template function :
|
54
54
|
Try to find template image in scene image.
|
55
55
|
This function requires that template image's size is smaller than image2.
|
56
56
|
This returns true if match score is higher than limit_similarity.
|
@@ -61,13 +61,13 @@ Following 3 functions are prepared.
|
|
61
61
|
perfect_match_template(scene_filename, template_filename, limit_similarity=0.9, is_output=false)
|
62
62
|
```
|
63
63
|
|
64
|
-
3. fuzzy_match_template
|
64
|
+
3. fuzzy_match_template function :
|
65
65
|
Try to find template image in scene image.
|
66
66
|
This function requires that template image's size is smaller(or equal) than image2.
|
67
67
|
This function ignore image size, color and image detail.
|
68
68
|
When you set true to is_output, you can check matching result with image.
|
69
69
|
The output image will be created at your current directory.
|
70
|
-
Note that
|
70
|
+
Note that some times this is useful I think, but accuracy is not so high currently.
|
71
71
|
|
72
72
|
```ruby
|
73
73
|
fuzzy_match_template(scene_filename, template_filename, is_output=false)
|
data/image_match.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
10
10
|
spec.email = ["zuqqhi2@gmail.com"]
|
11
11
|
spec.summary = %q{Check web page or widget design with image file automatically}
|
12
12
|
spec.description = %q{1.Make page or widget image file. 2.Get current page or widget image on the web. 3.Compare them with this gem.}
|
13
|
-
spec.homepage = "https://github.com/zuqqhi2/
|
13
|
+
spec.homepage = "https://github.com/zuqqhi2/image_match"
|
14
14
|
spec.license = "The BSD Liscense"
|
15
15
|
|
16
16
|
spec.files = `git ls-files -z`.split("\x0")
|
data/lib/image_match/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: image_match
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -104,7 +104,7 @@ files:
|
|
104
104
|
- spec/images/lena-noise.jpg
|
105
105
|
- spec/images/lena.jpg
|
106
106
|
- spec/spec_helper.rb
|
107
|
-
homepage: https://github.com/zuqqhi2/
|
107
|
+
homepage: https://github.com/zuqqhi2/image_match
|
108
108
|
licenses:
|
109
109
|
- The BSD Liscense
|
110
110
|
post_install_message:
|
@@ -119,7 +119,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
119
119
|
version: '0'
|
120
120
|
segments:
|
121
121
|
- 0
|
122
|
-
hash: -
|
122
|
+
hash: -1656355716927277807
|
123
123
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
124
124
|
none: false
|
125
125
|
requirements:
|
@@ -128,7 +128,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
128
128
|
version: '0'
|
129
129
|
segments:
|
130
130
|
- 0
|
131
|
-
hash: -
|
131
|
+
hash: -1656355716927277807
|
132
132
|
requirements: []
|
133
133
|
rubyforge_project:
|
134
134
|
rubygems_version: 1.8.23.2
|