public class OcrCommonRecModelImpl extends Object implements OcrCommonRecModel
| 构造器和说明 |
|---|
OcrCommonRecModelImpl() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPoolpublic void loadModel(OcrRecModelConfig config)
OcrCommonRecModelloadModel 在接口中 OcrCommonRecModelpublic OcrInfo recognize(String imagePath, OcrRecOptions options)
OcrCommonRecModelrecognize 在接口中 OcrCommonRecModelimagePath - 图片路径public OcrInfo recognize(ai.djl.modality.cv.Image image, OcrRecOptions options)
OcrCommonRecModelrecognize 在接口中 OcrCommonRecModelimage - options - public void recognizeAndDraw(String imagePath, String outputPath, int fontSize, OcrRecOptions options)
OcrCommonRecModelrecognizeAndDraw 在接口中 OcrCommonRecModelpublic OcrInfo recognize(BufferedImage image, OcrRecOptions options)
OcrCommonRecModelrecognize 在接口中 OcrCommonRecModelimage - BufferedImagepublic OcrInfo recognize(byte[] imageData, OcrRecOptions options)
OcrCommonRecModelrecognize 在接口中 OcrCommonRecModelimageData - 图片字节数组public BufferedImage recognizeAndDraw(BufferedImage sourceImage, int fontSize, OcrRecOptions options)
OcrCommonRecModelrecognizeAndDraw 在接口中 OcrCommonRecModelpublic List<OcrInfo> batchRecognize(List<BufferedImage> imageList, OcrRecOptions options)
batchRecognize 在接口中 OcrCommonRecModelpublic List<OcrInfo> batchRecognizeDJLImage(List<ai.djl.modality.cv.Image> imageList, OcrRecOptions options)
batchRecognizeDJLImage 在接口中 OcrCommonRecModelpublic void setTextDetModel(OcrCommonDetModel detModel)
setTextDetModel 在接口中 OcrCommonRecModelpublic OcrCommonDetModel getTextDetModel()
getTextDetModel 在接口中 OcrCommonRecModelpublic void setDirectionModel(OcrDirectionModel directionModel)
setDirectionModel 在接口中 OcrCommonRecModelpublic OcrDirectionModel getDirectionModel()
getDirectionModel 在接口中 OcrCommonRecModelpublic org.apache.commons.pool2.impl.GenericObjectPool<ai.djl.inference.Predictor<ai.djl.modality.cv.Image,String>> getRecPredictorPool()
public void close()
throws Exception
close 在接口中 AutoCloseableExceptionCopyright © 2025. All rights reserved.