ms-types 0.0.33 → 0.0.36
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 +3 -2
- package/types/paddleOcr.d.ts +4 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ms-types",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.36",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
"docs:preview": "vitepress preview docs"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
|
-
"vitepress": "^1.0.0"
|
|
18
|
+
"vitepress": "^1.0.0",
|
|
19
|
+
"vitepress-theme-teek": "^1.4.5"
|
|
19
20
|
}
|
|
20
21
|
}
|
package/types/paddleOcr.d.ts
CHANGED
|
@@ -50,6 +50,7 @@ declare namespace paddleOcr {
|
|
|
50
50
|
* @param y 边界框左上角y坐标
|
|
51
51
|
* @param ex 边界框右下角x坐标
|
|
52
52
|
* @param ey 边界框右下角y坐标
|
|
53
|
+
* @param confidenceThreshold 置信度阈值,默认0.6
|
|
53
54
|
* @returns 识别结果数组
|
|
54
55
|
* @example
|
|
55
56
|
* const results = paddleOcr.recognize("screen", 0, 0, 100, 100)
|
|
@@ -62,8 +63,9 @@ declare namespace paddleOcr {
|
|
|
62
63
|
x: number,
|
|
63
64
|
y: number,
|
|
64
65
|
ex: number,
|
|
65
|
-
ey: number
|
|
66
|
-
|
|
66
|
+
ey: number,
|
|
67
|
+
confidenceThreshold?: number
|
|
68
|
+
): OCRResult[];
|
|
67
69
|
/**
|
|
68
70
|
* 释放OCR模型资源
|
|
69
71
|
*/
|