unify-external-plugin-platform 0.0.3-80 → 0.0.3-81
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.
|
@@ -85905,17 +85905,17 @@ class ViisanPluginService {
|
|
|
85905
85905
|
const res = await this.send(ViisanMethodCode.SetCameraImageInfo, {
|
|
85906
85906
|
devNum,
|
|
85907
85907
|
// 裁切方式,默认单图裁切(裁边)
|
|
85908
|
-
cropType: options.cropType
|
|
85908
|
+
cropType: options.cropType || ViisanCropType.SingleImage,
|
|
85909
85909
|
// 图像效果,默认彩色原色
|
|
85910
|
-
imageType: options.imageType
|
|
85910
|
+
imageType: options.imageType || ViisanImageType.ColorOriginal,
|
|
85911
85911
|
// 补边方式,默认不填充
|
|
85912
|
-
fillBorderType: options.fillBorderType
|
|
85912
|
+
fillBorderType: options.fillBorderType || ViisanFillBorderType.None,
|
|
85913
85913
|
// 异物去除,默认无
|
|
85914
|
-
removalForeign: options.removalForeign
|
|
85914
|
+
removalForeign: options.removalForeign || ViisanRemovalForeign.None,
|
|
85915
85915
|
// 旋转角度,默认不旋转
|
|
85916
|
-
rotate: options.rotate
|
|
85916
|
+
rotate: options.rotate || ViisanRotateType.None,
|
|
85917
85917
|
// 照片 DPI,0 表示默认
|
|
85918
|
-
dpi: options.dpi
|
|
85918
|
+
dpi: options.dpi || 0,
|
|
85919
85919
|
// OCR 语言 ID,不使用 OCR 时传 0
|
|
85920
85920
|
textOrientationLangId: 0
|
|
85921
85921
|
});
|
|
@@ -85915,17 +85915,17 @@ class ViisanPluginService {
|
|
|
85915
85915
|
const res = await this.send(ViisanMethodCode.SetCameraImageInfo, {
|
|
85916
85916
|
devNum,
|
|
85917
85917
|
// 裁切方式,默认单图裁切(裁边)
|
|
85918
|
-
cropType: options.cropType
|
|
85918
|
+
cropType: options.cropType || ViisanCropType.SingleImage,
|
|
85919
85919
|
// 图像效果,默认彩色原色
|
|
85920
|
-
imageType: options.imageType
|
|
85920
|
+
imageType: options.imageType || ViisanImageType.ColorOriginal,
|
|
85921
85921
|
// 补边方式,默认不填充
|
|
85922
|
-
fillBorderType: options.fillBorderType
|
|
85922
|
+
fillBorderType: options.fillBorderType || ViisanFillBorderType.None,
|
|
85923
85923
|
// 异物去除,默认无
|
|
85924
|
-
removalForeign: options.removalForeign
|
|
85924
|
+
removalForeign: options.removalForeign || ViisanRemovalForeign.None,
|
|
85925
85925
|
// 旋转角度,默认不旋转
|
|
85926
|
-
rotate: options.rotate
|
|
85926
|
+
rotate: options.rotate || ViisanRotateType.None,
|
|
85927
85927
|
// 照片 DPI,0 表示默认
|
|
85928
|
-
dpi: options.dpi
|
|
85928
|
+
dpi: options.dpi || 0,
|
|
85929
85929
|
// OCR 语言 ID,不使用 OCR 时传 0
|
|
85930
85930
|
textOrientationLangId: 0
|
|
85931
85931
|
});
|