aardio 文档

aardio 范例: 简单 OCR

//简单 OCR
import soImage;
import inet.http;

//字库由 soImage 范例提供的工具自动生成
var ziku = {
"1":"11111111111111111111111111";
"2":"11111111000000110000001100";
"3":"11111110000000100000001000";
"4":"10000010100000101000001010";
"5":"11111110100000001000000010";
"6":"11111111100000011000000110";
"7":"11111110000000100000001000";
"8":"11111111100000111000001110";
"8":"11111111100000111000001110";
"9":"11111110100000101000001010"; 
"0":"11111111100000111000001110";
}

//创建图像对象
var img = soImage();

//下载图像
img.loadUrl("https://www.******.com/***.php")

//识别图像并返回文本
var text = img.ocr(ziku);
Markdown 格式