[[["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,["# Google Cloud Document Ai V1 Client - Class DetectedDefect (2.3.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.3.0 (latest)](/php/docs/reference/cloud-document-ai/latest/V1.Document.Page.ImageQualityScores.DetectedDefect)\n- [2.2.2](/php/docs/reference/cloud-document-ai/2.2.2/V1.Document.Page.ImageQualityScores.DetectedDefect)\n- [2.1.3](/php/docs/reference/cloud-document-ai/2.1.3/V1.Document.Page.ImageQualityScores.DetectedDefect)\n- [2.0.0](/php/docs/reference/cloud-document-ai/2.0.0/V1.Document.Page.ImageQualityScores.DetectedDefect)\n- [1.14.0](/php/docs/reference/cloud-document-ai/1.14.0/V1.Document.Page.ImageQualityScores.DetectedDefect)\n- [1.13.1](/php/docs/reference/cloud-document-ai/1.13.1/V1.Document.Page.ImageQualityScores.DetectedDefect)\n- [1.12.2](/php/docs/reference/cloud-document-ai/1.12.2/V1.Document.Page.ImageQualityScores.DetectedDefect)\n- [1.9.0](/php/docs/reference/cloud-document-ai/1.9.0/V1.Document.Page.ImageQualityScores.DetectedDefect)\n- [1.8.2](/php/docs/reference/cloud-document-ai/1.8.2/V1.Document.Page.ImageQualityScores.DetectedDefect)\n- [1.7.0](/php/docs/reference/cloud-document-ai/1.7.0/V1.Document.Page.ImageQualityScores.DetectedDefect)\n- [1.6.0](/php/docs/reference/cloud-document-ai/1.6.0/V1.Document.Page.ImageQualityScores.DetectedDefect)\n- [1.5.0](/php/docs/reference/cloud-document-ai/1.5.0/V1.Document.Page.ImageQualityScores.DetectedDefect)\n- [1.4.0](/php/docs/reference/cloud-document-ai/1.4.0/V1.Document.Page.ImageQualityScores.DetectedDefect)\n- [1.3.0](/php/docs/reference/cloud-document-ai/1.3.0/V1.Document.Page.ImageQualityScores.DetectedDefect)\n- [1.2.2](/php/docs/reference/cloud-document-ai/1.2.2/V1.Document.Page.ImageQualityScores.DetectedDefect)\n- [1.1.1](/php/docs/reference/cloud-document-ai/1.1.1/V1.Document.Page.ImageQualityScores.DetectedDefect)\n- [1.0.1](/php/docs/reference/cloud-document-ai/1.0.1/V1.Document.Page.ImageQualityScores.DetectedDefect) \nReference documentation and code samples for the Google Cloud Document Ai V1 Client class DetectedDefect.\n\nImage Quality Defects\n\nGenerated from protobuf message `google.cloud.documentai.v1.Document.Page.ImageQualityScores.DetectedDefect`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ DocumentAI \\\\ V1 \\\\ Document \\\\ Page \\\\ ImageQualityScores\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getType\n\nName of the defect type. Supported values are:\n\n- `quality/defect_blurry`\n- `quality/defect_noisy`\n- `quality/defect_dark`\n- `quality/defect_faint`\n- `quality/defect_text_too_small`\n- `quality/defect_document_cutoff`\n- `quality/defect_text_cutoff`\n- `quality/defect_glare`\n\n### setType\n\nName of the defect type. Supported values are:\n\n- `quality/defect_blurry`\n- `quality/defect_noisy`\n- `quality/defect_dark`\n- `quality/defect_faint`\n- `quality/defect_text_too_small`\n- `quality/defect_document_cutoff`\n- `quality/defect_text_cutoff`\n- `quality/defect_glare`\n\n### getConfidence\n\nConfidence of detected defect. Range `[0, 1]` where `1` indicates\nstrong confidence that the defect exists.\n\n### setConfidence\n\nConfidence of detected defect. Range `[0, 1]` where `1` indicates\nstrong confidence that the defect exists."]]