@unizhen/ui 0.1.41 → 0.1.43

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.
@@ -0,0 +1,16 @@
1
+ export interface PreprocessOptions {
2
+ enabled: boolean;
3
+ scale: number;
4
+ grayscale: boolean;
5
+ contrast: boolean;
6
+ binarize: boolean;
7
+ autoThreshold: boolean;
8
+ threshold: number;
9
+ }
10
+ /**
11
+ * 图像预处理函数,输入原图 URL,输出处理后的 Base64 图片 DataURL
12
+ */
13
+ export declare function preprocessImage(imageSrc: string, options: PreprocessOptions): Promise<{
14
+ dataUrl: string;
15
+ thresholdUsed: number;
16
+ }>;