ms-types 0.3.9 → 0.3.10
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 +1 -1
- package/types/tomatoocr.d.ts +10 -0
package/package.json
CHANGED
package/types/tomatoocr.d.ts
CHANGED
|
@@ -86,6 +86,16 @@ declare namespace tomatoOcr {
|
|
|
86
86
|
*/
|
|
87
87
|
function setDetUnclipRatio(detUnclipRatio: number): void;
|
|
88
88
|
|
|
89
|
+
/**
|
|
90
|
+
* 设置检测框缩放比例
|
|
91
|
+
* @param detScaleRatio 检测框缩放比例
|
|
92
|
+
* @example
|
|
93
|
+
* ```typescript
|
|
94
|
+
* tomatoOcr.setDetScaleRatio(1.2);
|
|
95
|
+
* ```
|
|
96
|
+
*/
|
|
97
|
+
function setDetScaleRatio(detScaleRatio: number): void;
|
|
98
|
+
|
|
89
99
|
/**
|
|
90
100
|
* 设置识别分数阈值
|
|
91
101
|
* @param recScoreThreshold 设置识别模型过滤得分的参数,非必设置,默认0.1。由于返回的识别结果数据太多太乱,可以通过设置该参数,过滤一些得分较低不准的数据,使得结果看起来更加简练。
|