Class: Google::Cloud::Vision::V1::Feature

Inherits:
Object
  • Object
show all
Defined in:
lib/google/cloud/vision/v1/doc/google/cloud/vision/v1/image_annotator.rb

Overview

The Feature indicates what type of image detection task to perform. Users describe the type of Google Cloud Vision API tasks to perform over images by using Features. Features encode the Cloud Vision API vertical to operate on and the number of top-scoring results to return.

Defined Under Namespace

Modules: Type

Instance Attribute Summary collapse

Instance Attribute Details

#max_resultsInteger

Returns Maximum number of results of this type.

Returns:

  • (Integer)

    Maximum number of results of this type.



29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# File 'lib/google/cloud/vision/v1/doc/google/cloud/vision/v1/image_annotator.rb', line 29

class Feature
  # Type of image feature.
  module Type
    # Unspecified feature type.
    TYPE_UNSPECIFIED = 0

    # Run face detection.
    FACE_DETECTION = 1

    # Run landmark detection.
    LANDMARK_DETECTION = 2

    # Run logo detection.
    LOGO_DETECTION = 3

    # Run label detection.
    LABEL_DETECTION = 4

    # Run OCR.
    TEXT_DETECTION = 5

    # Run various computer vision models to compute image safe-search properties.
    SAFE_SEARCH_DETECTION = 6

    # Compute a set of properties about the image (such as the image's dominant colors).
    IMAGE_PROPERTIES = 7
  end
end

#typeGoogle::Cloud::Vision::V1::Feature::Type

Returns The feature type.

Returns:



29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# File 'lib/google/cloud/vision/v1/doc/google/cloud/vision/v1/image_annotator.rb', line 29

class Feature
  # Type of image feature.
  module Type
    # Unspecified feature type.
    TYPE_UNSPECIFIED = 0

    # Run face detection.
    FACE_DETECTION = 1

    # Run landmark detection.
    LANDMARK_DETECTION = 2

    # Run logo detection.
    LOGO_DETECTION = 3

    # Run label detection.
    LABEL_DETECTION = 4

    # Run OCR.
    TEXT_DETECTION = 5

    # Run various computer vision models to compute image safe-search properties.
    SAFE_SEARCH_DETECTION = 6

    # Compute a set of properties about the image (such as the image's dominant colors).
    IMAGE_PROPERTIES = 7
  end
end