Reference documentation and code samples for the Cloud Vision V1 API module Google::Cloud::Vision::V1::Feature::Type.
Type of Google Cloud Vision API feature to be extracted.
Constants
TYPE_UNSPECIFIED
value: 0 Unspecified feature type.
FACE_DETECTION
value: 1 Run face detection.
LANDMARK_DETECTION
value: 2 Run landmark detection.
LOGO_DETECTION
value: 3 Run logo detection.
LABEL_DETECTION
value: 4 Run label detection.
TEXT_DETECTION
value: 5 Run text detection / optical character recognition (OCR). Text detection
is optimized for areas of text within a larger image; if the image is
a document, use DOCUMENT_TEXT_DETECTION instead.
DOCUMENT_TEXT_DETECTION
value: 11 Run dense text document OCR. Takes precedence when both
DOCUMENT_TEXT_DETECTION and TEXT_DETECTION are present.
SAFE_SEARCH_DETECTION
value: 6 Run Safe Search to detect potentially unsafe
or undesirable content.
IMAGE_PROPERTIES
value: 7 Compute a set of image properties, such as the
image's dominant colors.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["# Cloud Vision V1 API - Module Google::Cloud::Vision::V1::Feature::Type (v1.3.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.3.1 (latest)](/ruby/docs/reference/google-cloud-vision-v1/latest/Google-Cloud-Vision-V1-Feature-Type)\n- [1.3.0](/ruby/docs/reference/google-cloud-vision-v1/1.3.0/Google-Cloud-Vision-V1-Feature-Type)\n- [1.2.1](/ruby/docs/reference/google-cloud-vision-v1/1.2.1/Google-Cloud-Vision-V1-Feature-Type)\n- [1.1.0](/ruby/docs/reference/google-cloud-vision-v1/1.1.0/Google-Cloud-Vision-V1-Feature-Type)\n- [1.0.1](/ruby/docs/reference/google-cloud-vision-v1/1.0.1/Google-Cloud-Vision-V1-Feature-Type)\n- [0.15.0](/ruby/docs/reference/google-cloud-vision-v1/0.15.0/Google-Cloud-Vision-V1-Feature-Type)\n- [0.14.0](/ruby/docs/reference/google-cloud-vision-v1/0.14.0/Google-Cloud-Vision-V1-Feature-Type)\n- [0.13.2](/ruby/docs/reference/google-cloud-vision-v1/0.13.2/Google-Cloud-Vision-V1-Feature-Type)\n- [0.12.0](/ruby/docs/reference/google-cloud-vision-v1/0.12.0/Google-Cloud-Vision-V1-Feature-Type)\n- [0.11.1](/ruby/docs/reference/google-cloud-vision-v1/0.11.1/Google-Cloud-Vision-V1-Feature-Type)\n- [0.10.0](/ruby/docs/reference/google-cloud-vision-v1/0.10.0/Google-Cloud-Vision-V1-Feature-Type)\n- [0.9.0](/ruby/docs/reference/google-cloud-vision-v1/0.9.0/Google-Cloud-Vision-V1-Feature-Type)\n- [0.8.0](/ruby/docs/reference/google-cloud-vision-v1/0.8.0/Google-Cloud-Vision-V1-Feature-Type)\n- [0.7.0](/ruby/docs/reference/google-cloud-vision-v1/0.7.0/Google-Cloud-Vision-V1-Feature-Type)\n- [0.6.4](/ruby/docs/reference/google-cloud-vision-v1/0.6.4/Google-Cloud-Vision-V1-Feature-Type) \nReference documentation and code samples for the Cloud Vision V1 API module Google::Cloud::Vision::V1::Feature::Type.\n\nType of Google Cloud Vision API feature to be extracted.\n\nConstants\n---------\n\n### TYPE_UNSPECIFIED\n\n**value:** 0 \nUnspecified feature type.\n\n### FACE_DETECTION\n\n**value:** 1 \nRun face detection.\n\n### LANDMARK_DETECTION\n\n**value:** 2 \nRun landmark detection.\n\n### LOGO_DETECTION\n\n**value:** 3 \nRun logo detection.\n\n### LABEL_DETECTION\n\n**value:** 4 \nRun label detection.\n\n### TEXT_DETECTION\n\n**value:** 5 \nRun text detection / optical character recognition (OCR). Text detection\nis optimized for areas of text within a larger image; if the image is\na document, use `DOCUMENT_TEXT_DETECTION` instead.\n\n### DOCUMENT_TEXT_DETECTION\n\n**value:** 11 \nRun dense text document OCR. Takes precedence when both\n`DOCUMENT_TEXT_DETECTION` and `TEXT_DETECTION` are present.\n\n### SAFE_SEARCH_DETECTION\n\n**value:** 6 \nRun Safe Search to detect potentially unsafe\nor undesirable content.\n\n### IMAGE_PROPERTIES\n\n**value:** 7 \nCompute a set of image properties, such as the\nimage's dominant colors.\n\n### CROP_HINTS\n\n**value:** 9 \nRun crop hints.\n\n### WEB_DETECTION\n\n**value:** 10 \nRun web detection.\n\n### PRODUCT_SEARCH\n\n**value:** 12 \nRun Product Search.\n\n### OBJECT_LOCALIZATION\n\n**value:** 19 \nRun localizer for object detection."]]