J3n5en / ddddocr-js

带带弟弟 通用验证码识别OCR nodejs版

Repository from Github https://github.comJ3n5en/ddddocr-jsRepository from Github https://github.comJ3n5en/ddddocr-js

ddddocr

带带弟弟OCR通用验证码识别SDK nodejs版 原版ddddocr

feature:

  • OCR识别
  • 自定义模型
  • 类型识别
  • 滑块
import Ddddocr from "ddddocr";

const img = "/xxxx=="
Ddddocr.create().then(async ddddocr => {
  const result = await ddddocr.classification(Buffer.from(img, "base64"));
  console.log(result)
})

自定义模型

import Ddddocr from "ddddocr";

const img = "/xxxx=="
Ddddocr.create({charsetsPath:"/xxx",onnxPath:"xxx"}).then(async ddddocr => {
  const result = await ddddocr.classification(Buffer.from(img, "base64"));
  console.log(result)
})

About

带带弟弟 通用验证码识别OCR nodejs版


Languages

Language:TypeScript 100.0%