update 开始贡献/openKylin+SDK开发指南V2.0.md.

Signed-off-by: chipo <gugudu@sina.com>
This commit is contained in:
chipo 2022-11-11 04:31:19 +00:00
parent d8322aa984
commit a6ab28a9e8
1 changed files with 22 additions and 33 deletions

View File

@ -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<std::vector<std::vector<int>>> kdk::kdkOCR::getRect(const std::string &imagePath) | 获取文字框 |
| 子模块 | 编程语言 | 声明 | | 描述 |
|--------------------|------|-----------------------------------------------------------------------------|------------------|----------------------------------|
| OCR文字识别功能 | C++ | Std::vector<std::vector<std::vector<int>>> kdk::kdkOCR::getRect(const std::string &imagePath) || 获取文字框 |
| | | 参数说明 | 返回值说明 | |
| | | String 图片文件路径 | Vector<vector<vector<vector<int> |
| 文字框点的坐标矩阵、以及文字框的个数 |
| | | String 图片文件路径 | Vector<vector<vector<vector<int> <br> 文字框点的坐标矩阵、以及文字框的个数 |
获取文字内容
| 子模块 | 编程语言 | 声明 | 描述 |
|---------------------|-------------------------|--------------------------------------------------------------------------------|--------|
| OCR文字识别功能 | C++ | Std::vector<std::vector<getCls>>>getCls(const std::string &imagePath,int nums) | 获取文字内容 |
| | | 参数说明 | 返回值说明 | |
| | | String 图片文件路径 |
| Int nums 同时处理的文字栈个数 | Vector<string>图片中的文字字符串 |
| 子模块 | 编程语言 | 声明 || 描述 |
|----------------|---------|-------------------------------------------------------------------|-|--------|
| OCR文字识别功能 | C++ | Std::vector<std::vector<getCls>>>getCls(const std::string &imagePath,int nums) || 获取文字内容 |
| | | 参数说明 | 返回值说明 | |
| | | String 图片文件路径<br>Vector<string>图片中的文字字符串 | 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_layoutcups属性如lrtb |
| sides单面one-sided双面长边翻转two_sided_long_dege |
| 双面(短边翻转): |
| two_sided_short_dege | 无 | |
| |
| | | number_up一张纸打印几页 <br> media纸张类型 <br> number_up_layoutcups属性如lrtb <br> sides单面one-sided双面长边翻转two_sided_long_dege <br> 双面(短边翻转):<br> two_sided_short_dege | 无 |
打印文件
| 子模块 | 编程语言 | 声明 | 描述 |
|-----------------|-------|-----------------------------------------------|--------|
| 打印机管理 | C | extern int kdk_printer_print_local_file(const char *printername, char *filepath); | 打印文件 |
| | | 参数说明 | 返回值说明 | |
| | | printername: 打印机名 |
| filepath打印文件绝对路径 | int 打印作业的id | |
| | | 参数说明 | 返回值说明 | |
| | | printername: 打印机名 <br> filepath打印文件绝对路径 | int 打印作业的id | |
| |
取消打印作业
| 子模块 | 编程语言 | 声明 | 描述 |
|-----------------|-------|-----------------------------------------------|--------|
| 打印机管理 | C | extern int kdk_printer_cancel_all_jobs(const char *printername); | 取消打印作业 |
| | | 参数说明 | 返回值说明 | |
| | | printername打印机名 | int |
| 成功0 |
| 失败:-1 | |
| |
| | | 参数说明 | 返回值说明 | |
| | | printername打印机名 | int <br> 成功0 <br> 失败:-1 |
获取打印机状态
| 子模块 | 编程语言 | 声明 | 描述 |