From a6ab28a9e883bf4e427fa7747e6082d429da32c0 Mon Sep 17 00:00:00 2001 From: chipo Date: Fri, 11 Nov 2022 04:31:19 +0000 Subject: [PATCH] =?UTF-8?q?update=20=E5=BC=80=E5=A7=8B=E8=B4=A1=E7=8C=AE/o?= =?UTF-8?q?penKylin+SDK=E5=BC=80=E5=8F=91=E6=8C=87=E5=8D=97V2.0.md.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: chipo --- 开始贡献/openKylin+SDK开发指南V2.0.md | 55 +++++++++++---------------- 1 file changed, 22 insertions(+), 33 deletions(-) diff --git a/开始贡献/openKylin+SDK开发指南V2.0.md b/开始贡献/openKylin+SDK开发指南V2.0.md index c65b491d..261add41 100644 --- a/开始贡献/openKylin+SDK开发指南V2.0.md +++ b/开始贡献/openKylin+SDK开发指南V2.0.md @@ -1310,17 +1310,18 @@ aux_source_directory(. SOURCESCODE) ``` -| 声明 | 描述 | | -|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------|---| -| QStringList addWatchTargetRecursive(QString url, FileWatcherType type = PERIODIC, int attr = OPEN|CLOSE|MODIFY|DELETE, int maxdepth = 5, int recurType = DIR|REGULAR); | 增加需要监听的文件路径,对于目录,默认启用递归监听子目录 | | -| QStringList addWatchTargetListRecursive(QStringList urlList, FileWatcherType type = PERIODIC, int attr = OPEN|CLOSE|MODIFY|DELETE, int maxdepth = 5, int recurType = DIR|REGULAR); | 增加需要监听的文件列表 | | -| QStringList removeWatchTargetRecursive(QString url, int maxdepth = 5, int recurType = ALLFILE); | 从监听列表中移除指定的文件 | | -| void clearWatchList(); | 清空监听列表 | | -| void pauseWatcher(); | 暂停文件监听 | | +| 声明 | 描述 | +|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------| +| QStringList addWatchTargetRecursive(QString url, FileWatcherType type = PERIODIC, int attr = OPEN`|`CLOSE`|`MODIFY`|`DELETE, int maxdepth = 5, int recurType = DIR`|`REGULAR); | 增加需要监听的文件路径,对于目录,默认启用递归监听子目录 | +| QStringList addWatchTargetListRecursive(QStringList urlList, FileWatcherType type = PERIODIC, int attr = OPEN`|`CLOSE`|`MODIFY`|`DELETE, int maxdepth = 5, int recurType = DIR`|`REGULAR); | 增加需要监听的文件列表 | +| QStringList removeWatchTargetRecursive(QString url, int maxdepth = 5, int recurType = ALLFILE); | 从监听列表中移除指定的文件 | +| void clearWatchList(); | 清空监听列表 | +| void pauseWatcher(); | 暂停文件监听 | | void restartWatcher(); | 恢复文件监听 | + ## **3.4** AI 能力 该层设计主要为应用提供 AI 识别功能接口,为 OS 增加 OCR @@ -1335,23 +1336,21 @@ aux_source_directory(. SOURCESCODE) 获取文字框 -| 子模块 | 编程语言 | 声明 | 描述 | -|--------------------|------|-----------------------------------------------------------------------------------------------|----------------------------------| -| OCR文字识别功能 | C++ | Std::vector>> kdk::kdkOCR::getRect(const std::string &imagePath) | 获取文字框 | +| 子模块 | 编程语言 | 声明 | | 描述 | +|--------------------|------|-----------------------------------------------------------------------------|------------------|----------------------------------| +| OCR文字识别功能 | C++ | Std::vector>> kdk::kdkOCR::getRect(const std::string &imagePath) || 获取文字框 | | | | 参数说明 | 返回值说明 | | -| | | String 图片文件路径 | Vector | -| 文字框点的坐标矩阵、以及文字框的个数 | +| | | String 图片文件路径 | Vector
文字框点的坐标矩阵、以及文字框的个数 | 获取文字内容 -| 子模块 | 编程语言 | 声明 | 描述 | -|---------------------|-------------------------|--------------------------------------------------------------------------------|--------| -| OCR文字识别功能 | C++ | Std::vector>>getCls(const std::string &imagePath,int nums) | 获取文字内容 | -| | | 参数说明 | 返回值说明 | | -| | | String 图片文件路径 | -| Int nums 同时处理的文字栈个数 | Vector图片中的文字字符串 | +| 子模块 | 编程语言 | 声明 || 描述 | +|----------------|---------|-------------------------------------------------------------------|-|--------| +| OCR文字识别功能 | C++ | Std::vector>>getCls(const std::string &imagePath,int nums) || 获取文字内容 | +| | | 参数说明 | 返回值说明 | | +| | | String 图片文件路径
Vector图片中的文字字符串 | Int nums 同时处理的文字栈个数 | | ## **3.5** 打印机管理 @@ -1385,32 +1384,22 @@ aux_source_directory(. SOURCESCODE) |-----------------|-------|-----------------------------------------------|--------| | 打印机管理 | C | extern void kdk_printer_set_options(int number_up,const char *media,const char *number_up_layout,const char *sides); | 设置打印参数 | | | | 参数说明 | 返回值说明 | | -| | | number_up:一张纸打印几页 | -| media:纸张类型 | -| number_up_layout:cups属性,如lrtb | -| sides:单面one-sided,双面(长边翻转):two_sided_long_dege | -| 双面(短边翻转): | -| two_sided_short_dege | 无 | | -| | +| | | number_up:一张纸打印几页
media:纸张类型
number_up_layout:cups属性,如lrtb
sides:单面one-sided,双面(长边翻转):two_sided_long_dege
双面(短边翻转):
two_sided_short_dege | 无 | 打印文件 | 子模块 | 编程语言 | 声明 | 描述 | |-----------------|-------|-----------------------------------------------|--------| | 打印机管理 | C | extern int kdk_printer_print_local_file(const char *printername, char *filepath); | 打印文件 | -| | | 参数说明 | 返回值说明 | | -| | | printername: 打印机名 | -| filepath:打印文件绝对路径 | int 打印作业的id | | +| | | 参数说明 | 返回值说明 | | +| | | printername: 打印机名
filepath:打印文件绝对路径 | int 打印作业的id | | | | 取消打印作业 | 子模块 | 编程语言 | 声明 | 描述 | |-----------------|-------|-----------------------------------------------|--------| | 打印机管理 | C | extern int kdk_printer_cancel_all_jobs(const char *printername); | 取消打印作业 | -| | | 参数说明 | 返回值说明 | | -| | | printername:打印机名 | int | -| 成功:0 | -| 失败:-1 | | -| | +| | | 参数说明 | 返回值说明 | | +| | | printername:打印机名 | int
成功:0
失败:-1 | 获取打印机状态 | 子模块 | 编程语言 | 声明 | 描述 |