ruby_marks 0.3.4 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/ruby_marks/group.rb +1 -1
- data/lib/ruby_marks/recognizer.rb +1 -1
- data/lib/ruby_marks/version.rb +1 -1
- metadata +1 -1
data/lib/ruby_marks/group.rb
CHANGED
@@ -5,7 +5,7 @@ module RubyMarks
|
|
5
5
|
attr_reader :label, :recognizer
|
6
6
|
attr_accessor :mark_width, :mark_height, :marks_options, :coordinates, :expected_coordinates,
|
7
7
|
:mark_width_tolerance, :mark_height_tolerance, :marks, :distance_between_marks,
|
8
|
-
:block_width_tolerance, :block_height_tolerance
|
8
|
+
:block_width_tolerance, :block_height_tolerance, :expected_lines
|
9
9
|
|
10
10
|
def initialize(label, recognizer)
|
11
11
|
@label = label
|
@@ -326,7 +326,7 @@ module RubyMarks
|
|
326
326
|
blocks.tap do |blocks|
|
327
327
|
block_width = RubyMarks::ImageUtils.calc_width(block[:x1], block[:x2])
|
328
328
|
block_height = RubyMarks::ImageUtils.calc_height(block[:y1], block[:y2])
|
329
|
-
lines
|
329
|
+
lines = group.expected_lines
|
330
330
|
columns = @config.default_marks_options.size
|
331
331
|
distance_lin = @config.default_mark_height
|
332
332
|
distance_col = @config.default_mark_width
|
data/lib/ruby_marks/version.rb
CHANGED