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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b1ad60cf41c77add0178d6372fdf1e8501ceb2e3f85c753e66acd3d91121de5c
4
- data.tar.gz: 877f7cb92526cf750a91fd53e2005e956b0abdfe1ddcafb0abc98761fed934b8
3
+ metadata.gz: 24e03b53236236989ffb235048a5a27c45b060e7be16fd417f3f9cb33f7bf630
4
+ data.tar.gz: 768aca67bb323962f93b1e488035e86b6261099d507ae6e20dfb162c5547acef
5
5
  SHA512:
6
- metadata.gz: 2592bd8a187d0edecc53623e3eb83e566450103bf93de7b553e9e2aceb160d0e583503c7c6da4b5f7a665033ca565aa227621e1d5699a8994fc3fca93b600533
7
- data.tar.gz: e6e7371c75cb80fdba71ce4194753b57d8bcd6b57b7cc11a47a9095f3d4975330fcb375bd678263fb68b863bcb51f93dbf35cc50f9f36defb5b2baee929cb1ca
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 types in Sorbet.
7
+ This library is fully typed in Sorbet.
8
8
 
9
9
  ## Installation
10
10
 
data/lib/eikon/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  # typed: true
2
2
  module Eikon
3
- VERSION = "0.1.4".freeze
3
+ VERSION = "0.1.5".freeze
4
4
  end
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
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