接口 OcrRecModel

  • 所有已知实现类:
    PaddleOCRV4RecModel

    public interface OcrRecModel
    OCR模型
    作者:
    dwj
    • 方法详细资料

      • loadModel

        void loadModel​(OcrRecModelConfig config)
        加载模型
        参数:
        config -
      • detect

        default DetectionResponse detect​(String imagePath)
        人脸检测
        参数:
        imagePath - 图片路径
        返回:
      • detectAndDraw

        default void detectAndDraw​(String imagePath,
                                   String outputPath)
        检测并绘制结果
        参数:
        imagePath - 图片输入路径(包含文件名称)
        outputPath - 图片输出路径(包含文件名称)