hhlaowang|百度ocr

  • 作者: qq88481
  • 热度: 19945
  • 更新: 2024-01-03 07:32:54

# 引入插件

   compile("hhlaowang:11.14")
1

# 使用说明

1.初始化命令 hhlaowang.init(API_Key,Secret_Key)--参数为百度获取的API Key,Secret Key 2.调用百度进行ocr识别,返回识别到的文字 hhlaowang.ocr(x1,y1,x2,y2) 例: 文字=hhlaowang.cor(348,404,741,513) if 文字~=nil then print("识字结果:"..文字) else print("没有识别到文字") end 3.分割字符串 hhlaowang.split(cs1,cs2) cs1对它进行分割 cs2分割字符 分割成功返回数组,失败返回nil 例:print(hhlaowang.split("123456","3")) 输出结果:["12","456"]


# 历史版本

更新记录

  • 2020-11-14 22:24:33 11.14
  • 2020-11-14 22:22:15 10.11