Class: Google::Cloud::Vision::V1::WebDetection

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/vision/v1/web_detection.rb

Overview

Relevant information for the image from the Internet.

Defined Under Namespace

Classes: WebEntity, WebImage, WebLabel, WebPage

Instance Attribute Summary collapse

Instance Attribute Details

#best_guess_labels::Array<::Google::Cloud::Vision::V1::WebDetection::WebLabel>

Returns The service's best guess as to the topic of the request image. Inferred from similar images on the open web.

Returns:



47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
# File 'proto_docs/google/cloud/vision/v1/web_detection.rb', line 47

class WebDetection
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Entity deduced from similar images on the Internet.
  # @!attribute [rw] entity_id
  #   @return [::String]
  #     Opaque entity ID.
  # @!attribute [rw] score
  #   @return [::Float]
  #     Overall relevancy score for the entity.
  #     Not normalized and not comparable across different image queries.
  # @!attribute [rw] description
  #   @return [::String]
  #     Canonical description of the entity, in English.
  class WebEntity
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Metadata for online images.
  # @!attribute [rw] url
  #   @return [::String]
  #     The result image URL.
  # @!attribute [rw] score
  #   @return [::Float]
  #     (Deprecated) Overall relevancy score for the image.
  class WebImage
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Metadata for web pages.
  # @!attribute [rw] url
  #   @return [::String]
  #     The result web page URL.
  # @!attribute [rw] score
  #   @return [::Float]
  #     (Deprecated) Overall relevancy score for the web page.
  # @!attribute [rw] page_title
  #   @return [::String]
  #     Title for the web page, may contain HTML markups.
  # @!attribute [rw] full_matching_images
  #   @return [::Array<::Google::Cloud::Vision::V1::WebDetection::WebImage>]
  #     Fully matching images on the page.
  #     Can include resized copies of the query image.
  # @!attribute [rw] partial_matching_images
  #   @return [::Array<::Google::Cloud::Vision::V1::WebDetection::WebImage>]
  #     Partial matching images on the page.
  #     Those images are similar enough to share some key-point features. For
  #     example an original image will likely have partial matching for its
  #     crops.
  class WebPage
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Label to provide extra metadata for the web detection.
  # @!attribute [rw] label
  #   @return [::String]
  #     Label for extra metadata.
  # @!attribute [rw] language_code
  #   @return [::String]
  #     The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
  #     For more information, see
  #     http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
  class WebLabel
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#full_matching_images::Array<::Google::Cloud::Vision::V1::WebDetection::WebImage>

Returns Fully matching images from the Internet. Can include resized copies of the query image.

Returns:



47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
# File 'proto_docs/google/cloud/vision/v1/web_detection.rb', line 47

class WebDetection
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Entity deduced from similar images on the Internet.
  # @!attribute [rw] entity_id
  #   @return [::String]
  #     Opaque entity ID.
  # @!attribute [rw] score
  #   @return [::Float]
  #     Overall relevancy score for the entity.
  #     Not normalized and not comparable across different image queries.
  # @!attribute [rw] description
  #   @return [::String]
  #     Canonical description of the entity, in English.
  class WebEntity
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Metadata for online images.
  # @!attribute [rw] url
  #   @return [::String]
  #     The result image URL.
  # @!attribute [rw] score
  #   @return [::Float]
  #     (Deprecated) Overall relevancy score for the image.
  class WebImage
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Metadata for web pages.
  # @!attribute [rw] url
  #   @return [::String]
  #     The result web page URL.
  # @!attribute [rw] score
  #   @return [::Float]
  #     (Deprecated) Overall relevancy score for the web page.
  # @!attribute [rw] page_title
  #   @return [::String]
  #     Title for the web page, may contain HTML markups.
  # @!attribute [rw] full_matching_images
  #   @return [::Array<::Google::Cloud::Vision::V1::WebDetection::WebImage>]
  #     Fully matching images on the page.
  #     Can include resized copies of the query image.
  # @!attribute [rw] partial_matching_images
  #   @return [::Array<::Google::Cloud::Vision::V1::WebDetection::WebImage>]
  #     Partial matching images on the page.
  #     Those images are similar enough to share some key-point features. For
  #     example an original image will likely have partial matching for its
  #     crops.
  class WebPage
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Label to provide extra metadata for the web detection.
  # @!attribute [rw] label
  #   @return [::String]
  #     Label for extra metadata.
  # @!attribute [rw] language_code
  #   @return [::String]
  #     The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
  #     For more information, see
  #     http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
  class WebLabel
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#pages_with_matching_images::Array<::Google::Cloud::Vision::V1::WebDetection::WebPage>

Returns Web pages containing the matching images from the Internet.

Returns:



47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
# File 'proto_docs/google/cloud/vision/v1/web_detection.rb', line 47

class WebDetection
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Entity deduced from similar images on the Internet.
  # @!attribute [rw] entity_id
  #   @return [::String]
  #     Opaque entity ID.
  # @!attribute [rw] score
  #   @return [::Float]
  #     Overall relevancy score for the entity.
  #     Not normalized and not comparable across different image queries.
  # @!attribute [rw] description
  #   @return [::String]
  #     Canonical description of the entity, in English.
  class WebEntity
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Metadata for online images.
  # @!attribute [rw] url
  #   @return [::String]
  #     The result image URL.
  # @!attribute [rw] score
  #   @return [::Float]
  #     (Deprecated) Overall relevancy score for the image.
  class WebImage
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Metadata for web pages.
  # @!attribute [rw] url
  #   @return [::String]
  #     The result web page URL.
  # @!attribute [rw] score
  #   @return [::Float]
  #     (Deprecated) Overall relevancy score for the web page.
  # @!attribute [rw] page_title
  #   @return [::String]
  #     Title for the web page, may contain HTML markups.
  # @!attribute [rw] full_matching_images
  #   @return [::Array<::Google::Cloud::Vision::V1::WebDetection::WebImage>]
  #     Fully matching images on the page.
  #     Can include resized copies of the query image.
  # @!attribute [rw] partial_matching_images
  #   @return [::Array<::Google::Cloud::Vision::V1::WebDetection::WebImage>]
  #     Partial matching images on the page.
  #     Those images are similar enough to share some key-point features. For
  #     example an original image will likely have partial matching for its
  #     crops.
  class WebPage
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Label to provide extra metadata for the web detection.
  # @!attribute [rw] label
  #   @return [::String]
  #     Label for extra metadata.
  # @!attribute [rw] language_code
  #   @return [::String]
  #     The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
  #     For more information, see
  #     http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
  class WebLabel
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#partial_matching_images::Array<::Google::Cloud::Vision::V1::WebDetection::WebImage>

Returns Partial matching images from the Internet. Those images are similar enough to share some key-point features. For example an original image will likely have partial matching for its crops.

Returns:

  • (::Array<::Google::Cloud::Vision::V1::WebDetection::WebImage>)

    Partial matching images from the Internet. Those images are similar enough to share some key-point features. For example an original image will likely have partial matching for its crops.



47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
# File 'proto_docs/google/cloud/vision/v1/web_detection.rb', line 47

class WebDetection
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Entity deduced from similar images on the Internet.
  # @!attribute [rw] entity_id
  #   @return [::String]
  #     Opaque entity ID.
  # @!attribute [rw] score
  #   @return [::Float]
  #     Overall relevancy score for the entity.
  #     Not normalized and not comparable across different image queries.
  # @!attribute [rw] description
  #   @return [::String]
  #     Canonical description of the entity, in English.
  class WebEntity
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Metadata for online images.
  # @!attribute [rw] url
  #   @return [::String]
  #     The result image URL.
  # @!attribute [rw] score
  #   @return [::Float]
  #     (Deprecated) Overall relevancy score for the image.
  class WebImage
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Metadata for web pages.
  # @!attribute [rw] url
  #   @return [::String]
  #     The result web page URL.
  # @!attribute [rw] score
  #   @return [::Float]
  #     (Deprecated) Overall relevancy score for the web page.
  # @!attribute [rw] page_title
  #   @return [::String]
  #     Title for the web page, may contain HTML markups.
  # @!attribute [rw] full_matching_images
  #   @return [::Array<::Google::Cloud::Vision::V1::WebDetection::WebImage>]
  #     Fully matching images on the page.
  #     Can include resized copies of the query image.
  # @!attribute [rw] partial_matching_images
  #   @return [::Array<::Google::Cloud::Vision::V1::WebDetection::WebImage>]
  #     Partial matching images on the page.
  #     Those images are similar enough to share some key-point features. For
  #     example an original image will likely have partial matching for its
  #     crops.
  class WebPage
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Label to provide extra metadata for the web detection.
  # @!attribute [rw] label
  #   @return [::String]
  #     Label for extra metadata.
  # @!attribute [rw] language_code
  #   @return [::String]
  #     The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
  #     For more information, see
  #     http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
  class WebLabel
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#visually_similar_images::Array<::Google::Cloud::Vision::V1::WebDetection::WebImage>

Returns The visually similar image results.

Returns:



47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
# File 'proto_docs/google/cloud/vision/v1/web_detection.rb', line 47

class WebDetection
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Entity deduced from similar images on the Internet.
  # @!attribute [rw] entity_id
  #   @return [::String]
  #     Opaque entity ID.
  # @!attribute [rw] score
  #   @return [::Float]
  #     Overall relevancy score for the entity.
  #     Not normalized and not comparable across different image queries.
  # @!attribute [rw] description
  #   @return [::String]
  #     Canonical description of the entity, in English.
  class WebEntity
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Metadata for online images.
  # @!attribute [rw] url
  #   @return [::String]
  #     The result image URL.
  # @!attribute [rw] score
  #   @return [::Float]
  #     (Deprecated) Overall relevancy score for the image.
  class WebImage
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Metadata for web pages.
  # @!attribute [rw] url
  #   @return [::String]
  #     The result web page URL.
  # @!attribute [rw] score
  #   @return [::Float]
  #     (Deprecated) Overall relevancy score for the web page.
  # @!attribute [rw] page_title
  #   @return [::String]
  #     Title for the web page, may contain HTML markups.
  # @!attribute [rw] full_matching_images
  #   @return [::Array<::Google::Cloud::Vision::V1::WebDetection::WebImage>]
  #     Fully matching images on the page.
  #     Can include resized copies of the query image.
  # @!attribute [rw] partial_matching_images
  #   @return [::Array<::Google::Cloud::Vision::V1::WebDetection::WebImage>]
  #     Partial matching images on the page.
  #     Those images are similar enough to share some key-point features. For
  #     example an original image will likely have partial matching for its
  #     crops.
  class WebPage
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Label to provide extra metadata for the web detection.
  # @!attribute [rw] label
  #   @return [::String]
  #     Label for extra metadata.
  # @!attribute [rw] language_code
  #   @return [::String]
  #     The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
  #     For more information, see
  #     http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
  class WebLabel
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#web_entities::Array<::Google::Cloud::Vision::V1::WebDetection::WebEntity>

Returns Deduced entities from similar images on the Internet.

Returns:



47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
# File 'proto_docs/google/cloud/vision/v1/web_detection.rb', line 47

class WebDetection
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Entity deduced from similar images on the Internet.
  # @!attribute [rw] entity_id
  #   @return [::String]
  #     Opaque entity ID.
  # @!attribute [rw] score
  #   @return [::Float]
  #     Overall relevancy score for the entity.
  #     Not normalized and not comparable across different image queries.
  # @!attribute [rw] description
  #   @return [::String]
  #     Canonical description of the entity, in English.
  class WebEntity
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Metadata for online images.
  # @!attribute [rw] url
  #   @return [::String]
  #     The result image URL.
  # @!attribute [rw] score
  #   @return [::Float]
  #     (Deprecated) Overall relevancy score for the image.
  class WebImage
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Metadata for web pages.
  # @!attribute [rw] url
  #   @return [::String]
  #     The result web page URL.
  # @!attribute [rw] score
  #   @return [::Float]
  #     (Deprecated) Overall relevancy score for the web page.
  # @!attribute [rw] page_title
  #   @return [::String]
  #     Title for the web page, may contain HTML markups.
  # @!attribute [rw] full_matching_images
  #   @return [::Array<::Google::Cloud::Vision::V1::WebDetection::WebImage>]
  #     Fully matching images on the page.
  #     Can include resized copies of the query image.
  # @!attribute [rw] partial_matching_images
  #   @return [::Array<::Google::Cloud::Vision::V1::WebDetection::WebImage>]
  #     Partial matching images on the page.
  #     Those images are similar enough to share some key-point features. For
  #     example an original image will likely have partial matching for its
  #     crops.
  class WebPage
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Label to provide extra metadata for the web detection.
  # @!attribute [rw] label
  #   @return [::String]
  #     Label for extra metadata.
  # @!attribute [rw] language_code
  #   @return [::String]
  #     The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
  #     For more information, see
  #     http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
  class WebLabel
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end