ms-types 0.1.23 → 0.1.26

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.
Files changed (45) hide show
  1. package/package.json +20 -20
  2. package/types/action.d.ts +298 -298
  3. package/types/{appleocr.d.ts → appleOcr.d.ts} +102 -102
  4. package/types/config.d.ts +54 -54
  5. package/types/device.d.ts +105 -105
  6. package/types/global.d.ts +185 -185
  7. package/types/hid.d.ts +289 -289
  8. package/types/hotUpdate.d.ts +104 -104
  9. package/types/http.d.ts +300 -300
  10. package/types/ime.d.ts +99 -99
  11. package/types/index.d.ts +26 -26
  12. package/types/media.d.ts +90 -90
  13. package/types/mysql.d.ts +174 -174
  14. package/types/netCard.d.ts +77 -42
  15. package/types/node.d.ts +279 -279
  16. package/types/{paddleocr.d.ts → paddleOcr.d.ts} +73 -73
  17. package/types/pip.d.ts +51 -51
  18. package/types/system.d.ts +195 -195
  19. package/types/thread.d.ts +101 -101
  20. package/types/{tomatoocr.d.ts → tomatoOcr.d.ts} +199 -199
  21. package/types/tts.d.ts +91 -91
  22. package/types/ui.d.ts +165 -165
  23. package/types/yolo.d.ts +98 -98
  24. package/types/zh/HID/346/250/241/345/235/227.d.ts +293 -293
  25. package/types/zh/HTTP/346/250/241/345/235/227.d.ts +301 -301
  26. package/types/zh/{MySql → MySQL}/346/250/241/345/235/227.d.ts +175 -175
  27. package/types/zh/PaddleOCR/346/250/241/345/235/227.d.ts +74 -74
  28. package/types/zh/YOLO/346/250/241/345/235/227.d.ts +101 -101
  29. package/types/zh/index.d.ts +24 -24
  30. package/types/zh//345/205/250/345/261/200/346/250/241/345/235/227.d.ts +180 -180
  31. package/types/zh//345/212/250/344/275/234/346/250/241/345/235/227.d.ts +300 -300
  32. package/types/zh//345/215/241/345/257/206/346/250/241/345/235/227.d.ts +90 -55
  33. package/types/zh//345/252/222/344/275/223/346/250/241/345/235/227.d.ts +91 -91
  34. package/types/zh//345/267/245/345/205/267/346/250/241/345/235/227.d.ts +30 -30
  35. package/types/zh//346/202/254/346/265/256/347/252/227/346/250/241/345/235/227.d.ts +55 -55
  36. package/types/zh//346/226/207/345/255/227/350/275/254/350/257/255/351/237/263/346/250/241/345/235/227.d.ts +92 -92
  37. package/types/zh//347/203/255/346/233/264/346/226/260/346/250/241/345/235/227.d.ts +105 -105
  38. package/types/zh//347/263/273/347/273/237/346/250/241/345/235/227.d.ts +194 -194
  39. package/types/zh//347/272/277/347/250/213/346/250/241/345/235/227.d.ts +102 -102
  40. package/types/zh//350/212/202/347/202/271/346/250/241/345/235/227.d.ts +280 -280
  41. package/types/zh//350/213/271/346/236/234OCR.d.ts +104 -104
  42. package/types/zh//350/247/206/345/233/276/346/250/241/345/235/227.d.ts +167 -167
  43. package/types/zh//350/256/276/345/244/207/346/250/241/345/235/227.d.ts +106 -106
  44. package/types/zh//350/276/223/345/205/245/346/263/225/346/250/241/345/235/227.d.ts +100 -100
  45. package/types/zh//351/205/215/347/275/256/346/250/241/345/235/227.d.ts +56 -56
package/types/yolo.d.ts CHANGED
@@ -1,98 +1,98 @@
1
- /**
2
- * YOLO目标检测模块 包含加载模型、目标检测等功能
3
- */
4
- declare namespace yolo {
5
- /**
6
- * YOLO检测结果
7
- */
8
- interface YoloResult {
9
- /**
10
- * 检测框的左上角x坐标
11
- */
12
- x: number;
13
- /**
14
- * 检测框的左上角y坐标
15
- */
16
- y: number;
17
- /**
18
- * 检测框的右下角x坐标
19
- */
20
- ex: number;
21
- /**
22
- * 检测框的右下角y坐标
23
- */
24
- ey: number;
25
- /**
26
- * 检测框的中心点x坐标
27
- */
28
- centerX: number;
29
- /**
30
- * 检测框的中心点y坐标
31
- */
32
- centerY: number;
33
- /**
34
- * 检测框的宽度
35
- */
36
- width: number;
37
- /**
38
- * 检测框的高度
39
- */
40
- height: number;
41
- /**
42
- * 检测框的置信度
43
- */
44
- confidence: number;
45
- /**
46
- * 检测框的类别ID
47
- */
48
- classId: number;
49
- }
50
- /**
51
- * 加载YOLOv11模型 (兼容 yolov8 模型)
52
- * @param paramPath ncnn模型的param文件的绝对路径
53
- * @param binPath ncnn模型的bin文件绝对路径
54
- * @param nc 模型的标签数量,可在标签集data.yaml中看到
55
- * @returns 加载成功返回模型ID字符串,失败返回null
56
- * @example
57
- * const modelId = yolo.loadV11("yolov11n.param", "yolov11n.bin", 80)
58
- */
59
- function loadV11(
60
- paramPath: string,
61
- binPath: string,
62
- nc: number
63
- ): string | null;
64
-
65
- /**
66
- * 目标检测
67
- * @param modelId 模型ID
68
- * @param img 图像ID,"screen"用当前屏幕检测,可以填入图像ID或者http图片地址或文件地址
69
- * @param targetSize 图像进入后缩放的检测大小,模型训练一般都用640,因此这里的640一般不要改
70
- * @param threshold 置信度,默认0.4,小于这个值的会被过滤掉
71
- * @param nmsThreshold 重叠阈值,一般是0.5不需要更改
72
- * @returns 检测结果数组
73
- * @example
74
- * const results = yolo.detect(modelId, "screen", 640, 0.4, 0.5)
75
- */
76
- function detect(
77
- modelId: string,
78
- img: string,
79
- targetSize?: number,
80
- threshold?: number,
81
- nmsThreshold?: number
82
- ): YoloResult[];
83
-
84
- /**
85
- * 释放指定模型资源
86
- * @param modelId 模型ID
87
- * @example
88
- * yolo.free(modelId)
89
- */
90
- function free(modelId: string): void;
91
-
92
- /**
93
- * 释放所有模型资源
94
- * @example
95
- * yolo.freeAll()
96
- */
97
- function freeAll(): void;
98
- }
1
+ /**
2
+ * YOLO目标检测模块 包含加载模型、目标检测等功能
3
+ */
4
+ declare namespace yolo {
5
+ /**
6
+ * YOLO检测结果
7
+ */
8
+ interface YoloResult {
9
+ /**
10
+ * 检测框的左上角x坐标
11
+ */
12
+ x: number;
13
+ /**
14
+ * 检测框的左上角y坐标
15
+ */
16
+ y: number;
17
+ /**
18
+ * 检测框的右下角x坐标
19
+ */
20
+ ex: number;
21
+ /**
22
+ * 检测框的右下角y坐标
23
+ */
24
+ ey: number;
25
+ /**
26
+ * 检测框的中心点x坐标
27
+ */
28
+ centerX: number;
29
+ /**
30
+ * 检测框的中心点y坐标
31
+ */
32
+ centerY: number;
33
+ /**
34
+ * 检测框的宽度
35
+ */
36
+ width: number;
37
+ /**
38
+ * 检测框的高度
39
+ */
40
+ height: number;
41
+ /**
42
+ * 检测框的置信度
43
+ */
44
+ confidence: number;
45
+ /**
46
+ * 检测框的类别ID
47
+ */
48
+ classId: number;
49
+ }
50
+ /**
51
+ * 加载YOLOv11模型 (兼容 yolov8 模型)
52
+ * @param paramPath ncnn模型的param文件的绝对路径
53
+ * @param binPath ncnn模型的bin文件绝对路径
54
+ * @param nc 模型的标签数量,可在标签集data.yaml中看到
55
+ * @returns 加载成功返回模型ID字符串,失败返回null
56
+ * @example
57
+ * const modelId = yolo.loadV11("yolov11n.param", "yolov11n.bin", 80)
58
+ */
59
+ function loadV11(
60
+ paramPath: string,
61
+ binPath: string,
62
+ nc: number
63
+ ): string | null;
64
+
65
+ /**
66
+ * 目标检测
67
+ * @param modelId 模型ID
68
+ * @param img 图像ID,"screen"用当前屏幕检测,可以填入图像ID或者http图片地址或文件地址
69
+ * @param targetSize 图像进入后缩放的检测大小,模型训练一般都用640,因此这里的640一般不要改
70
+ * @param threshold 置信度,默认0.4,小于这个值的会被过滤掉
71
+ * @param nmsThreshold 重叠阈值,一般是0.5不需要更改
72
+ * @returns 检测结果数组
73
+ * @example
74
+ * const results = yolo.detect(modelId, "screen", 640, 0.4, 0.5)
75
+ */
76
+ function detect(
77
+ modelId: string,
78
+ img: string,
79
+ targetSize?: number,
80
+ threshold?: number,
81
+ nmsThreshold?: number
82
+ ): YoloResult[];
83
+
84
+ /**
85
+ * 释放指定模型资源
86
+ * @param modelId 模型ID
87
+ * @example
88
+ * yolo.free(modelId)
89
+ */
90
+ function free(modelId: string): void;
91
+
92
+ /**
93
+ * 释放所有模型资源
94
+ * @example
95
+ * yolo.freeAll()
96
+ */
97
+ function freeAll(): void;
98
+ }