forked from openkylin/docs
update 开始贡献/openKylin+SDK开发指南V2.0.md.
Signed-off-by: chipo <gugudu@sina.com>
This commit is contained in:
parent
d8322aa984
commit
a6ab28a9e8
|
@ -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_layout:cups属性,如lrtb |
|
||||
| sides:单面one-sided,双面(长边翻转):two_sided_long_dege |
|
||||
| 双面(短边翻转): |
|
||||
| two_sided_short_dege | 无 | |
|
||||
| |
|
||||
| | | number_up:一张纸打印几页 <br> media:纸张类型 <br> number_up_layout:cups属性,如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 |
|
||||
|
||||
获取打印机状态
|
||||
| 子模块 | 编程语言 | 声明 | 描述 |
|
||||
|
|
Loading…
Reference in New Issue