ddddocr
v1.0.0
Published
dddd ocr nodejs version
Downloads
67
Readme
ddddocr
带带弟弟OCR通用验证码识别SDK nodejs版 原版ddddocr
feature:
- [x] OCR识别
- [x] 自定义模型
- [ ] 类型识别
- [ ] 滑块
import Ddddocr from "ddddocr";
const img = "/xxxx=="
Ddddocr.create().then(async ddddocr => {
const ddddocr = await classification(Buffer.from(img, "base64"));
console.log(ddddocr)
})
自定义模型
import Ddddocr from "ddddocr";
const img = "/xxxx=="
Ddddocr.create({charsetsPath:"/xxx",onnxPath:"xxx"}).then(async ddddocr => {
const ddddocr = await classification(Buffer.from(img, "base64"));
console.log(ddddocr)
})