Class: Google::Apis::DlpV2::GooglePrivacyDlpV2BoundingBox
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::DlpV2::GooglePrivacyDlpV2BoundingBox
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dlp_v2/classes.rb,
 lib/google/apis/dlp_v2/representations.rb,
 lib/google/apis/dlp_v2/representations.rb
Overview
Bounding box encompassing detected text within an image.
Instance Attribute Summary collapse
- 
  
    
      #height  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Height of the bounding box in pixels. 
- 
  
    
      #left  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Left coordinate of the bounding box. 
- 
  
    
      #top  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Top coordinate of the bounding box. 
- 
  
    
      #width  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Width of the bounding box in pixels. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ GooglePrivacyDlpV2BoundingBox 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of GooglePrivacyDlpV2BoundingBox. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Constructor Details
#initialize(**args) ⇒ GooglePrivacyDlpV2BoundingBox
Returns a new instance of GooglePrivacyDlpV2BoundingBox.
| 801 802 803 | # File 'lib/google/apis/dlp_v2/classes.rb', line 801 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#height ⇒ Fixnum
Height of the bounding box in pixels.
Corresponds to the JSON property height
| 784 785 786 | # File 'lib/google/apis/dlp_v2/classes.rb', line 784 def height @height end | 
#left ⇒ Fixnum
Left coordinate of the bounding box. (0,0) is upper left.
Corresponds to the JSON property left
| 789 790 791 | # File 'lib/google/apis/dlp_v2/classes.rb', line 789 def left @left end | 
#top ⇒ Fixnum
Top coordinate of the bounding box. (0,0) is upper left.
Corresponds to the JSON property top
| 794 795 796 | # File 'lib/google/apis/dlp_v2/classes.rb', line 794 def top @top end | 
#width ⇒ Fixnum
Width of the bounding box in pixels.
Corresponds to the JSON property width
| 799 800 801 | # File 'lib/google/apis/dlp_v2/classes.rb', line 799 def width @width end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 806 807 808 809 810 811 | # File 'lib/google/apis/dlp_v2/classes.rb', line 806 def update!(**args) @height = args[:height] if args.key?(:height) @left = args[:left] if args.key?(:left) @top = args[:top] if args.key?(:top) @width = args[:width] if args.key?(:width) end |