Class: VideoRois
Overview
The VideoRois class holds all the video ROIs for the given platform instance.
Direct Known Subclasses
AppleTvVideoRois, DtaVideoRois, MdnVideoRois, MobileVideoRois, OdnVideoRois, PassportVideoRois, RokuTv1080VideoRois, RokuTv720VideoRois, RokuTvVideoRois, RokuVideoRois, SamsungTvVideoRois, SaraVideoRois, StbVideoRois, TivoVideoRois
Instance Method Summary collapse
-
#initialize(dut) ⇒ VideoRois
constructor
Public: Initializes VideoRois.
-
#new(args = {}) ⇒ Object
Public: Creates a dynamic video Roi.
- #SAMPLE ⇒ Object
Constructor Details
#initialize(dut) ⇒ VideoRois
Public: Initializes VideoRois. NOT FOR USE IN TESTS.
8 9 10 |
# File 'lib/rois/video_rois.rb', line 8 def initialize(dut) @dut = dut end |
Instance Method Details
#new(args = {}) ⇒ Object
Public: Creates a dynamic video 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). threshold - Integer video motion threshold 0 - 100 (default: 0.1). ref_img - String path to reference image (default: nil).
Returns the new VideoRoi object.
24 25 26 |
# File 'lib/rois/video_rois.rb', line 24 def new(args={}) VideoRoi.new(@dut, args) end |
#SAMPLE ⇒ Object
28 29 30 31 |
# File 'lib/rois/video_rois.rb', line 28 def SAMPLE new(:x => 100, :y => 50, :width => 300, :height => 200, :threshold => 0.1, :ref_img => 'tsimages/reference/mobile/android/phone/mini_guide.JPG') end |