JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q35241F
  • License ISC

科大讯飞图片识别文本

Package Exports

  • xf_ocr
  • xf_ocr/xf_OCR.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (xf_ocr) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

xf_OCR

讯飞通用文字识别 OCR ocr

项目下载

npm i xf_ocr

项目使用

const { xf_OCR } = require('xf_ocr')

const config = {

 APISecret:'', //你的 APISecret 

 apiKey:'',//你的 apiKey

 appId:''//你的 appId

}

const imagePath = 'your picture path';
try {
    const response = await xf_OCR(config, imagePath)
    console.log(response);

} catch (err) {
    console.log(err);
}