Reference documentation and code samples for the Cloud Vision V1 Client class TextAnnotation.
TextAnnotation contains a structured representation of OCR extracted text.
The hierarchy of an OCR extracted text structure is like this:
TextAnnotation -> Page -> Block -> Paragraph -> Word -> Symbol
Each structural component, starting from Page, may further have their own
properties. Properties describe detected languages, breaks etc.. Please refer
to the
TextAnnotation.TextProperty
message definition below for more detail.
Generated from protobuf message google.cloud.vision.v1.TextAnnotation
[[["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-04 UTC."],[],[],null,["# Cloud Vision V1 Client - Class TextAnnotation (2.0.3)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.3 (latest)](/php/docs/reference/cloud-vision/latest/V1.TextAnnotation)\n- [2.0.2](/php/docs/reference/cloud-vision/2.0.2/V1.TextAnnotation)\n- [1.10.3](/php/docs/reference/cloud-vision/1.10.3/V1.TextAnnotation)\n- [1.9.4](/php/docs/reference/cloud-vision/1.9.4/V1.TextAnnotation)\n- [1.8.0](/php/docs/reference/cloud-vision/1.8.0/V1.TextAnnotation)\n- [1.7.6](/php/docs/reference/cloud-vision/1.7.6/V1.TextAnnotation)\n- [1.6.8](/php/docs/reference/cloud-vision/1.6.8/V1.TextAnnotation) \nReference documentation and code samples for the Cloud Vision V1 Client class TextAnnotation.\n\nTextAnnotation contains a structured representation of OCR extracted text.\n\nThe hierarchy of an OCR extracted text structure is like this:\nTextAnnotation -\\\u003e Page -\\\u003e Block -\\\u003e Paragraph -\\\u003e Word -\\\u003e Symbol\nEach structural component, starting from Page, may further have their own\nproperties. Properties describe detected languages, breaks etc.. Please refer\nto the\n[TextAnnotation.TextProperty](/php/docs/reference/cloud-vision/latest/V1.TextAnnotation.TextProperty)\nmessage definition below for more detail.\n\nGenerated from protobuf message `google.cloud.vision.v1.TextAnnotation`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Vision \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getPages\n\nList of pages detected by OCR.\n\n### setPages\n\nList of pages detected by OCR.\n\n### getText\n\nUTF-8 text detected on the pages.\n\n### setText\n\nUTF-8 text detected on the pages."]]