Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 414 Bytes

INSTRUCTIONS.md

File metadata and controls

23 lines (16 loc) · 414 Bytes

使用说明

  1. 从Release下载OcrLibrary-版本-release.aar,放到项目的app/libs路径

  2. 编辑app/build.gradle

dependencies {
    implementation fileTree(dir: "libs", include: ["*.jar", "*.aar"])
}
  1. 实例化OcrEngine
OcrEngine ocrEngine = new OcrEngine(this.getApplicationContext());
  1. 调用detect方法
OcrResult result = ocrEngine.detect(img, boxImg, reSize);