OcrOptions - 识别配置
识别配置
const {String} color;
二值化识别需要指定文字颜色
const {Number[]} region;
识别区域
const {Integer} threshold;
二值化识别文字用到的阈值
const {Boolean} gray;
是否使用灰度化识别
const {Boolean} number;
是否提取数字
const {Boolean} save;
是否保存结果
const {String} savePath;
保存路径
当开启保存结果图片的时候才会按照这个路径来保存处理后的图片