eikon 0.1.4 → 0.1.5
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/README.md +1 -1
- data/lib/eikon/version.rb +1 -1
- data/lib/eikon.rb +3 -3
- metadata +1 -2
- data/eikon-0.1.0.gem +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 24e03b53236236989ffb235048a5a27c45b060e7be16fd417f3f9cb33f7bf630
|
4
|
+
data.tar.gz: 768aca67bb323962f93b1e488035e86b6261099d507ae6e20dfb162c5547acef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 30e2055cdee287fd90491cdda63bed5d16621b900e90e67ecab6dc33628510a2f84a2b4bb13b26ed2834888b522358be9f38279ded9d5c8a1a949f6c848bab90
|
7
|
+
data.tar.gz: 71524ce43256b89eb92ff0a75ed05b2fe4620b2bd1a6b137fab397774056ef3529f55564ca8b2e1366d208f37d14496db0b66a11ffdd681a89f547c553ffc22f
|
data/README.md
CHANGED
@@ -4,7 +4,7 @@ This is an implementation of the DHash image matching algorithm in pure Ruby, as
|
|
4
4
|
https://www.hackerfactor.com/blog/?/archives/529-Kind-of-Like-That.html. Its main use is reverse
|
5
5
|
image searching.
|
6
6
|
|
7
|
-
This library is fully
|
7
|
+
This library is fully typed in Sorbet.
|
8
8
|
|
9
9
|
## Installation
|
10
10
|
|
data/lib/eikon/version.rb
CHANGED
data/lib/eikon.rb
CHANGED
@@ -20,10 +20,10 @@ module Eikon
|
|
20
20
|
image.byte_array
|
21
21
|
end
|
22
22
|
|
23
|
-
sig { params(filename: String).returns(T::Array[T::Hash[String, T.any(Integer, String)]]) }
|
24
|
-
def self.dhash_for_video(filename)
|
23
|
+
sig { params(filename: String, number_of_frames: Integer).returns(T::Array[T::Hash[String, T.any(Integer, String)]]) }
|
24
|
+
def self.dhash_for_video(filename, number_of_frames = 0)
|
25
25
|
video_processor = Eikon::VideoProcessor.new(filename)
|
26
|
-
storage_path = video_processor.split_video_into_images
|
26
|
+
storage_path = video_processor.split_video_into_images(number_of_frames)
|
27
27
|
dhashes = video_processor.get_frames_dhash(storage_path)
|
28
28
|
dhashes
|
29
29
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eikon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christopher Guess
|
@@ -73,7 +73,6 @@ files:
|
|
73
73
|
- bin/console
|
74
74
|
- bin/setup
|
75
75
|
- bin/tapioca
|
76
|
-
- eikon-0.1.0.gem
|
77
76
|
- eikon.gemspec
|
78
77
|
- lib/eikon.rb
|
79
78
|
- lib/eikon/comparator.rb
|
data/eikon-0.1.0.gem
DELETED
Binary file
|