Class DocumentDetector.Result

All Implemented Interfaces:
android.os.Parcelable
Enclosing class:
DocumentDetector

public static final class DocumentDetector.Result extends QuadWithSizeDetector.Result
  • Field Details

  • Constructor Details

    • Result

      protected Result(long nativeResult)
  • Method Details

    • getAspectRatio

      public double getAspectRatio()
      Returns the aspect ratio of detected document. The returned aspect ratio matches one of the
      Returns:
      the aspect ratio of detected document.
    • serializeToByteArray

      @Nullable protected byte[] serializeToByteArray()
      Specified by:
      serializeToByteArray in class Entity.Result
    • deserializeFromByteArray

      protected void deserializeFromByteArray(@NonNull byte[] arr)
      Specified by:
      deserializeFromByteArray in class Entity.Result
    • clone

      @NonNull public DocumentDetector.Result clone()
      Description copied from class: Entity.Result
      Create a copy of the result. This is required in order to retain the result even after owning entity has mutated it.
      Specified by:
      clone in class Entity.Result
      Returns:
      a copy of the result
    • terminateNative

      protected void terminateNative(long nativeContext)
      Specified by:
      terminateNative in class Entity.Result