Class DecodeEAST

Object
AnchorBean<DecodeInstanceSegmentation<ai.onnxruntime.OnnxTensor>>
DecodeInstanceSegmentation<ai.onnxruntime.OnnxTensor>
DecodeEAST

public class DecodeEAST extends DecodeInstanceSegmentation<ai.onnxruntime.OnnxTensor>
Extracts text from a RGB image by using the EAST deep neural network model and the ONNX Runtime.

Each object-mask represented rotated-bounding box and is associated with a confidence score.

Particular thanks to Adrian Rosebrock whose tutorial was useful in applying this model

Author:
Owen Feehan
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    List<LabelledWithConfidence<MultiScaleObject>>
    decode(List<ai.onnxruntime.OnnxTensor> inferenceOutput, ImageInferenceContext context)
     
     
    double
    Proposed bounding boxes below this confidence interval are removed from consideration.
    void
    setMinConfidence(double minConfidence)
    Proposed bounding boxes below this confidence interval are removed from consideration.

    Methods inherited from class org.anchoranalysis.bean.AnchorBean

    checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • DecodeEAST

      public DecodeEAST()
  • Method Details

    • decode

      public List<LabelledWithConfidence<MultiScaleObject>> decode(List<ai.onnxruntime.OnnxTensor> inferenceOutput, ImageInferenceContext context) throws OperationFailedException
      Specified by:
      decode in class DecodeInstanceSegmentation<ai.onnxruntime.OnnxTensor>
      Throws:
      OperationFailedException
    • expectedOutputs

      public List<String> expectedOutputs()
      Specified by:
      expectedOutputs in class DecodeInstanceSegmentation<ai.onnxruntime.OnnxTensor>
    • getMinConfidence

      public double getMinConfidence()
      Proposed bounding boxes below this confidence interval are removed from consideration.
    • setMinConfidence

      public void setMinConfidence(double minConfidence)
      Proposed bounding boxes below this confidence interval are removed from consideration.