Class: BlackRois
Overview
The BlackRois class holds all the black ROIs for the given platform instance.
Direct Known Subclasses
AppleTvBlackRois, DtaBlackRois, MdnBlackRois, MobileBlackRois, OdnBlackRois, PassportBlackRois, RokuBlackRois, RokuTv1080BlackRois, RokuTv720BlackRois, RokuTvBlackRois, SamsungTvBlackRois, SaraBlackRois, StbBlackRois, TivoBlackRois
Instance Method Summary collapse
-
#initialize(dut) ⇒ BlackRois
constructor
Public: Initializes BlackRois.
-
#new(args = {}) ⇒ Object
Public: Creates a dynamic black Roi.
- #SAMPLE ⇒ Object
Constructor Details
#initialize(dut) ⇒ BlackRois
Public: Initializes BlackRois. NOT FOR USE IN TESTS.
8 9 10 |
# File 'lib/rois/black_rois.rb', line 8 def initialize(dut) @dut = dut end |
Instance Method Details
#new(args = {}) ⇒ Object
Public: Creates a dynamic black Roi.
x - Integer x coordinate (default: nil). y - Integer y coordinate (default: nil). width - Integer width (default: nil). height - Integer height (default: nil). rectangle - Hash defining rectangle with keys :x, :y, :width, :height (default: nil). element - Hash same as rectangle (default: nil). blackness - Integer blackness percent 0 - 100 (default: 80). ref_img - String path to reference image (default: nil).
Returns the new BlackRoi object.
24 25 26 |
# File 'lib/rois/black_rois.rb', line 24 def new(args={}) BlackRoi.new(@dut, args) end |
#SAMPLE ⇒ Object
28 29 30 31 |
# File 'lib/rois/black_rois.rb', line 28 def SAMPLE new(:x => 100, :y => 50, :width => 300, :height => 200, :blackness => 45, :ref_img => 'tsimages/reference/mobile/android/phone/mini_guide.JPG') end |