Interface Document.Page.ImageQualityScores.DetectedDefectOrBuilder (2.51.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 that the defect exists.

float confidence = 2;

Returns
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for type.