Class: AlprCam::PlateResult

Inherits:
Object
  • Object
show all
Defined in:
lib/alpr_cam/plate_result.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(plate:, confidence:, region: "", candidates: [], timestamp: Time.now, image_path: nil) ⇒ PlateResult

Returns a new instance of PlateResult.



7
8
9
10
11
12
13
14
# File 'lib/alpr_cam/plate_result.rb', line 7

def initialize(plate:, confidence:, region: "", candidates: [], timestamp: Time.now, image_path: nil)
  @plate = plate
  @confidence = confidence
  @region = region
  @candidates = candidates
  @timestamp = timestamp
  @image_path = image_path
end

Instance Attribute Details

#candidatesObject (readonly)

Returns the value of attribute candidates.



5
6
7
# File 'lib/alpr_cam/plate_result.rb', line 5

def candidates
  @candidates
end

#confidenceObject (readonly)

Returns the value of attribute confidence.



5
6
7
# File 'lib/alpr_cam/plate_result.rb', line 5

def confidence
  @confidence
end

#image_pathObject (readonly)

Returns the value of attribute image_path.



5
6
7
# File 'lib/alpr_cam/plate_result.rb', line 5

def image_path
  @image_path
end

#plateObject (readonly)

Returns the value of attribute plate.



5
6
7
# File 'lib/alpr_cam/plate_result.rb', line 5

def plate
  @plate
end

#regionObject (readonly)

Returns the value of attribute region.



5
6
7
# File 'lib/alpr_cam/plate_result.rb', line 5

def region
  @region
end

#timestampObject (readonly)

Returns the value of attribute timestamp.



5
6
7
# File 'lib/alpr_cam/plate_result.rb', line 5

def timestamp
  @timestamp
end