MCPcopy Create free account
hub / github.com/HelloBush/Java_MHXYdemo / OcrInFile

Method OcrInFile

src/pkgDm/Dm2Java.java:2272–2274  ·  view source on GitHub ↗

识别位图中区域(x1,y1,x2,y2)的文字 @param x1 左上角X坐标 @param y1 左上角Y坐标 @param x2 右下角X坐标 @param y2 右下角Y坐标 @param pic_name 图片文件名 @param color_format 颜色格式串. 可以包含换行分隔符,语法是","后加分割字符串. 具体可以查看下面的示例.注意,RGB和HSV格式都支持. @param sim 相似度,取值范围0.1-1.0 @return 返回识别到的字符串

(int x1,int y1,int x2,int y2,String pic_name,String color_format,double sim)

Source from the content-addressed store, hash-verified

2270 * @return 返回识别到的字符串
2271 */
2272 public String OcrInFile(int x1,int y1,int x2,int y2,String pic_name,String color_format,double sim){
2273 return Dispatch.call(dm,"OcrInFile",x1, y1, x2, y2, pic_name, color_format, sim).getString();
2274 }
2275
2276 /**
2277 * 保存指定的字库到指定的文件中.

Callers

nothing calls this directly

Calls 2

callMethod · 0.95
getStringMethod · 0.45

Tested by

no test coverage detected