Class: Google::Cloud::DocumentAI::V1::Document::Page::ImageQualityScores

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/documentai/v1/document.rb

Overview

Image quality scores for the page image.

Defined Under Namespace

Classes: DetectedDefect

Instance Attribute Summary collapse

Instance Attribute Details

#detected_defects::Array<::Google::Cloud::DocumentAI::V1::Document::Page::ImageQualityScores::DetectedDefect>

Returns A list of detected defects.



647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
# File 'proto_docs/google/cloud/documentai/v1/document.rb', line 647

class ImageQualityScores
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Image Quality Defects
  # @!attribute [rw] type
  #   @return [::String]
  #     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`
  # @!attribute [rw] confidence
  #   @return [::Float]
  #     Confidence of detected defect. Range `[0, 1]` where `1` indicates
  #     strong confidence that the defect exists.
  class DetectedDefect
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#quality_score::Float

Returns The overall quality score. Range [0, 1] where 1 is perfect quality.

Returns:

  • (::Float)

    The overall quality score. Range [0, 1] where 1 is perfect quality.



647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
# File 'proto_docs/google/cloud/documentai/v1/document.rb', line 647

class ImageQualityScores
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Image Quality Defects
  # @!attribute [rw] type
  #   @return [::String]
  #     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`
  # @!attribute [rw] confidence
  #   @return [::Float]
  #     Confidence of detected defect. Range `[0, 1]` where `1` indicates
  #     strong confidence that the defect exists.
  class DetectedDefect
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end