Class RecognitionResult

java.lang.Object
com.itextpdf.pdf2data.result.RecognitionResult

public class RecognitionResult extends Object
Class which represents recognition result.
  • Constructor Details

    • RecognitionResult

      public RecognitionResult (String resultSchemaVersion, SortedMap<String,DataFieldResult> dataFieldResults)
      Creates an instance of recognition result.
      Parameters:
      resultSchemaVersion - recognition result schema version. Mainly used for deserialization of the result.
      dataFieldResults - map of data field results
  • Method Details

    • getResultSchemaVersion

      public String getResultSchemaVersion()
      Get result schema version.
      Returns:
      result schema version
    • getDataFieldResults

      public SortedMap<String,DataFieldResult> getDataFieldResults()
      Get data field results map.
      Returns:
      data field results map
    • cloneWithoutMeta

      public RecognitionResult cloneWithoutMeta()
      Clones this instance without metadata entries in results.
      Returns:
      clone of the current result without metadata
    • equals

      public boolean equals (Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object