@glodon-aiot/dataset-annotation 3.10.0-alpha.11 → 3.10.0-alpha.14
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/dist/es/components/PicZipImportModal/config.mjs +10 -4
- package/dist/es/components/PicZipImportModal/index.mjs +215 -215
- package/dist/es/components/VLMAnnotationDetail/MarkVLMBoxModal/index.mjs +239 -229
- package/dist/es/components/VLMAnnotationDetail/index.mjs +28 -28
- package/dist/es/index.mjs +1 -1
- package/dist/lib/index.js +3 -3
- package/dist/src/components/PicZipImportModal/config.d.ts +3 -0
- package/package.json +2 -2
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { MB as e } from "../../constant.mjs";
|
|
2
|
-
const
|
|
2
|
+
const g = {
|
|
3
3
|
maxImageSize: 14 * e,
|
|
4
|
+
imageMimeTypes: ["image/jpeg", "image/jpg", "image/png", "image/bmp"],
|
|
5
|
+
imageAccept: "image/png, image/jpeg, image/jpg, image/bmp",
|
|
6
|
+
imageFormatsText: "jpg、png 、jpeg 、bmp",
|
|
4
7
|
labeledExampleKey: "FileImportType.Pro.LabelType.Unlabeled",
|
|
5
8
|
unlabeledExampleKey: "FileImportType.Pro.LabelType.Labeled",
|
|
6
9
|
labelFormat: "json",
|
|
@@ -12,9 +15,12 @@ const p = {
|
|
|
12
15
|
description: ["压缩包内图片格式要求为:图片类型为jpg/png/bmp/jpeg,单张图片不超过14M;"]
|
|
13
16
|
}
|
|
14
17
|
}
|
|
15
|
-
},
|
|
18
|
+
}, a = {
|
|
16
19
|
maxImageSize: 10 * e,
|
|
17
20
|
// VLM 可能是 10M(可根据实际需求调整)
|
|
21
|
+
imageMimeTypes: ["image/jpeg", "image/jpg", "image/png"],
|
|
22
|
+
imageAccept: "image/png, image/jpeg, image/jpg",
|
|
23
|
+
imageFormatsText: "jpg、png 、jpeg",
|
|
18
24
|
labeledExampleKey: "FileImportType.Pro.LabelType.Unlabeled",
|
|
19
25
|
// 暂时使用默认,如果不同可后续修改
|
|
20
26
|
unlabeledExampleKey: "FileImportType.Pro.LabelType.Labeled",
|
|
@@ -35,7 +41,7 @@ const p = {
|
|
|
35
41
|
]
|
|
36
42
|
}
|
|
37
43
|
}
|
|
38
|
-
},
|
|
44
|
+
}, l = (p) => p === "vlm" ? a : g;
|
|
39
45
|
export {
|
|
40
|
-
|
|
46
|
+
l as getImportConfig
|
|
41
47
|
};
|