识别屏幕范围(x1,y1,x2,y2)内符合color_format的字符串,并且相似度为sim,sim取值范围(0.1-1.0), 这个值越大越精确,越大速度越快,越小速度越慢,请斟酌使用! @param x1 左上角X坐标 @param y1 左上角Y坐标 @param x2 右下角X坐标 @param y2 右下角Y坐标 @param color_format 颜色格式串. 可以包含换行分隔符,语法是","后加分割字符串. 具体可以查看下面的示例.注意,RGB和HSV格式都支持. @param sim 相似度,取值范围0.1-1.0 @return 返回识别到的字符串
(int x1,int y1,int x2,int y2,String color_format,double sim)
| 2239 | * @return 返回识别到的字符串 |
| 2240 | */ |
| 2241 | public String Ocr(int x1,int y1,int x2,int y2,String color_format,double sim){ |
| 2242 | return Dispatch.call(dm,"Ocr",x1,y1,x2,y2,color_format,sim).getString(); |
| 2243 | } |
| 2244 | |
| 2245 | /** |
| 2246 | * 识别屏幕范围(x1,y1,x2,y2)内符合color_format的字符串,并且相似度为sim,sim取值范围(0.1-1.0),<br/> |