类别 | 内容 |
主题 | OCR 识别、指定区域 OCR |
方法 | OcrResult ocr(Single left, Single top, Single right, Single bottom) |
返回值 | OcrResult |
参数 | Single left :左边界(百分比,0 - 1) Single top :上边界(百分比,0 - 1) Single right :右边界(百分比,0 - 1) Single bottom :下边界(百分比,0 - 1) |
案例 | var image = screen.screenShotFull(); printl(image.ocr(0, 0, 1, 1)); image.close(); |
类别 | 内容 |
主题 | 获取图像 Base64 编码 |
方法 | String base64() |
返回值 | String |
参数 | 无 |
案例 | var image = screen.screenShotFull(); printl(image.base64()); |
类别 | 内容 |
主题 | 获取 Mat 对象、Image 转 Mat |
方法 | Mat getMat() |
返回值 | Mat |
参数 | 无 |
案例 | new Image().getMat() |
类别 | 内容 |
主题 | Mat 转 Image、转换 Mat 为 Image |
方法 | Void readMat(Mat mat) |
返回值 | Void |
参数 | Mat mat :待转换的 Mat 对象 |
案例 | var img = new Image(); img.readMat(mat); |
类别 | 内容 |
主题 | Base64 转 Image、转换 Base64 为 Image |
方法 | Void readBase64(String bs) |
返回值 | Void |
参数 | String bs :Base64 编码字符串 |
案例 | var img = new Image(); img.readBase64('base64str'); |
类别 | 内容 |
主题 | 读取图片文件为 Image、文件转 Image |
方法 | Void readFile(String bs) |
返回值 | Void |
参数 | String bs :图片文件路径 |
案例 | var img = new Image(); img.readFile(project.getResourcesPath() + "1.png"); |
类别 | 内容 |
主题 | 释放图像、图像资源释放 |
方法 | Void close() |
返回值 | Void |
参数 | 无 |
案例 | new Image().close() |
欢迎光临 B2B网络软件 (http://bbs.niubt.cn/) | Powered by Discuz! X3.2 |