alpr_ruby 0.2.0 → 0.3.0

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
  SHA1:
3
- metadata.gz: 1b031fd67ab51bd7f10c949eefe67c40397fdf5b
4
- data.tar.gz: 6574be8152079036844d4088f408b8a9531f726c
3
+ metadata.gz: 744d5549bbeb8ee1d1a303d607e35fd6f2704340
4
+ data.tar.gz: b50190af0b12ed83b3a9ad43b4cf3e0d9b9a360f
5
5
  SHA512:
6
- metadata.gz: 3088c41d85362dba221dc39e71848ca1bc521940bc9f50896c65fef3c5e6a02f969a73b786042062970ac6126e297676bb5ebc85c3ed348000d06fcd1ecd3475
7
- data.tar.gz: bb996065090ca5023c4fe38ce0aff287c663016fff0f09a362ffedfc84fd379b091bf3e9367bdbe9e7c81bfb4732c0ad27536409a1cd7a206d9ef6471330b155
6
+ metadata.gz: 89d469ccf84a50c94d4d30319206a45c89653124d18304fa927f51c679caaebac3ad3085c0a555b0af0be8f72bff26254b560fae66e0417bda96c1659124d09e
7
+ data.tar.gz: 404e6193d010c8497d0faa1194350e6ee5d702e8a9e2c909f57c79acd008d11809a99b89f6bede07dd72941ee1e44dde9ab53037ad95b0846fd86c51a7206b44
@@ -7,6 +7,7 @@ require 'alpr_ruby/connection'
7
7
  require 'alpr_ruby/client'
8
8
  require 'alpr_ruby/candidate'
9
9
  require 'alpr_ruby/coordinate'
10
+ require 'alpr_ruby/region_of_interest'
10
11
  require 'alpr_ruby/result'
11
12
  require 'alpr_ruby/plate'
12
13
  require 'alpr_ruby/color'
@@ -5,7 +5,10 @@ module AlprRuby
5
5
  attribute :img_height, Integer
6
6
  attribute :img_width, Integer
7
7
  attribute :results, Array[Result]
8
+ attribute :regions_of_interest, Array[RegionOfInterest]
8
9
  attribute :version, Integer
10
+ attribute :epoch_time, Integer
11
+ attribute :data_type, String
9
12
  attribute :processing_time_ms, Float
10
13
  end
11
14
  end
@@ -14,5 +14,7 @@ module AlprRuby
14
14
  attribute :credits_monthly_total, Integer
15
15
  attribute :image_bytes_prefix, String
16
16
  attribute :credit_cost, Integer
17
+
18
+ alias_method :model, :makemodel
17
19
  end
18
20
  end
@@ -0,0 +1,10 @@
1
+ module AlprRuby
2
+ class RegionOfInterest
3
+ include Virtus.model
4
+
5
+ attribute :x, Integer
6
+ attribute :y, Integer
7
+ attribute :width, Integer
8
+ attribute :height, Integer
9
+ end
10
+ end
@@ -4,6 +4,7 @@ module AlprRuby
4
4
 
5
5
  attribute :plate, String
6
6
  attribute :confidence, Float
7
+ attribute :region, String
7
8
  attribute :region_confidence, Integer
8
9
  attribute :plate_index, Integer
9
10
  attribute :processing_time_ms, Float
@@ -1,3 +1,3 @@
1
1
  module AlprRuby
2
- VERSION = '0.2.0'.freeze
2
+ VERSION = '0.3.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alpr_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mateusz Urbański
@@ -126,6 +126,7 @@ files:
126
126
  - lib/alpr_ruby/model.rb
127
127
  - lib/alpr_ruby/plate.rb
128
128
  - lib/alpr_ruby/recognition.rb
129
+ - lib/alpr_ruby/region_of_interest.rb
129
130
  - lib/alpr_ruby/result.rb
130
131
  - lib/alpr_ruby/version.rb
131
132
  homepage: https://github.com/MatUrbanski/alpr_ruby