ms-types 0.7.0 → 0.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ms-types",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -35,14 +35,15 @@ declare namespace paddleOcr {
35
35
  /**
36
36
  * 初始化PP-OCRv5模型
37
37
  * @param maxSideLen 最大边长,默认640,可不传
38
+ * @param useGpu 是否使用GPU,默认false,可不传
38
39
  * @returns 初始化是否成功
39
40
  * @example
40
- * const loaded = paddleOcr.loadV5(640)
41
+ * const loaded = paddleOcr.loadV5(640, true)
41
42
  * if (loaded) {
42
43
  * logi("加载成功")
43
44
  * }
44
45
  */
45
- function loadV5(maxSideLen?: number): boolean;
46
+ function loadV5(maxSideLen?: number, useGpu?: boolean): boolean;
46
47
  /**
47
48
  * 执行OCR识别
48
49
  * @param input 输入源(imageId、URL字符串、文件路径或"screen","screen"表示使用当前屏幕)
@@ -36,14 +36,15 @@ declare namespace $PaddleOCR {
36
36
  /**
37
37
  * 初始化PP-OCRv5模型
38
38
  * @param maxSideLen 最大边长,默认640,可不传
39
+ * @param useGpu 是否使用GPU,默认false,可不传
39
40
  * @returns 初始化是否成功
40
41
  * @example
41
- * const 是否加载成功 = $PaddleOCR.加载V5模型(640)
42
+ * const 是否加载成功 = $PaddleOCR.加载V5模型(640, true)
42
43
  * if (是否加载成功) {
43
44
  * $打印信息日志("加载成功")
44
45
  * }
45
46
  */
46
- function 加载V5模型(最大边长?: 数字): 布尔值;
47
+ function 加载V5模型(最大边长?: 数字, useGpu?: 布尔值): 布尔值;
47
48
  /**
48
49
  * 执行OCR识别
49
50
  * @param 输入源(imageId、URL字符串、文件路径或"screen","screen"表示使用当前屏幕)