Class: Google::Cloud::Vision::Annotation::Web::Image
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Cloud::Vision::Annotation::Web::Image
 
 
- Defined in:
 - lib/google/cloud/vision/annotation/web.rb
 
Overview
Instance Method Summary collapse
- 
  
    
      #score  ⇒ Float 
    
    
  
  
  
  
  
  
  
  
  
    
Overall relevancy score for the image.
 - 
  
    
      #to_a  ⇒ Array 
    
    
  
  
  
  
  
  
  
  
  
    
Returns the object's property values as an array.
 - 
  
    
      #to_h  ⇒ Hash 
    
    
  
  
  
  
  
  
  
  
  
    
Converts object to a hash.
 - 
  
    
      #url  ⇒ String 
    
    
  
  
  
  
  
  
  
  
  
    
The result image URL.
 
Instance Method Details
#score ⇒ Float
Overall relevancy score for the image. Not normalized and not comparable across different image queries.
      291 292 293  | 
    
      # File 'lib/google/cloud/vision/annotation/web.rb', line 291 def score @grpc.score end  | 
  
#to_a ⇒ Array
Returns the object's property values as an array.
      300 301 302  | 
    
      # File 'lib/google/cloud/vision/annotation/web.rb', line 300 def to_a [url, score] end  | 
  
#to_h ⇒ Hash
Converts object to a hash. All keys will be symbolized.
      309 310 311  | 
    
      # File 'lib/google/cloud/vision/annotation/web.rb', line 309 def to_h { url: url, score: score } end  | 
  
#url ⇒ String
The result image URL.
      281 282 283  | 
    
      # File 'lib/google/cloud/vision/annotation/web.rb', line 281 def url @grpc.url end  |