Class: AlprCam::PlateResult
- Inherits:
-
Object
- Object
- AlprCam::PlateResult
- Defined in:
- lib/alpr_cam/plate_result.rb
Instance Attribute Summary collapse
-
#candidates ⇒ Object
readonly
Returns the value of attribute candidates.
-
#confidence ⇒ Object
readonly
Returns the value of attribute confidence.
-
#image_path ⇒ Object
readonly
Returns the value of attribute image_path.
-
#plate ⇒ Object
readonly
Returns the value of attribute plate.
-
#region ⇒ Object
readonly
Returns the value of attribute region.
-
#timestamp ⇒ Object
readonly
Returns the value of attribute timestamp.
Instance Method Summary collapse
-
#initialize(plate:, confidence:, region: "", candidates: [], timestamp: Time.now, image_path: nil) ⇒ PlateResult
constructor
A new instance of PlateResult.
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 = @image_path = image_path end |
Instance Attribute Details
#candidates ⇒ Object (readonly)
Returns the value of attribute candidates.
5 6 7 |
# File 'lib/alpr_cam/plate_result.rb', line 5 def candidates @candidates end |
#confidence ⇒ Object (readonly)
Returns the value of attribute confidence.
5 6 7 |
# File 'lib/alpr_cam/plate_result.rb', line 5 def confidence @confidence end |
#image_path ⇒ Object (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 |
#plate ⇒ Object (readonly)
Returns the value of attribute plate.
5 6 7 |
# File 'lib/alpr_cam/plate_result.rb', line 5 def plate @plate end |
#region ⇒ Object (readonly)
Returns the value of attribute region.
5 6 7 |
# File 'lib/alpr_cam/plate_result.rb', line 5 def region @region end |
#timestamp ⇒ Object (readonly)
Returns the value of attribute timestamp.
5 6 7 |
# File 'lib/alpr_cam/plate_result.rb', line 5 def @timestamp end |