Interface Document.Page.ImageQualityScores.DetectedDefectOrBuilder (2.18.0)

public static interface Document.Page.ImageQualityScores.DetectedDefectOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getConfidence()

public abstract float getConfidence()

Confidence of detected defect. Range [0, 1] where 1 indicates strong confidence of that the defect exists.

float confidence = 2;

Returns
TypeDescription
float

The confidence.

getType()

public abstract String getType()

Name of the defect type. Supported values are:

  • quality/defect_blurry
  • quality/defect_noisy
  • quality/defect_dark
  • quality/defect_faint
  • quality/defect_text_too_small
  • quality/defect_document_cutoff
  • quality/defect_text_cutoff
  • quality/defect_glare

string type = 1;

Returns
TypeDescription
String

The type.

getTypeBytes()

public abstract ByteString getTypeBytes()

Name of the defect type. Supported values are:

  • quality/defect_blurry
  • quality/defect_noisy
  • quality/defect_dark
  • quality/defect_faint
  • quality/defect_text_too_small
  • quality/defect_document_cutoff
  • quality/defect_text_cutoff
  • quality/defect_glare

string type = 1;

Returns
TypeDescription
ByteString

The bytes for type.