@glodon-aiot/dataset-annotation 3.19.0-alpha.25 → 3.19.0-alpha.27

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.
@@ -1,18 +1,19 @@
1
- var l = Object.defineProperty, j = Object.defineProperties;
2
- var s = Object.getOwnPropertyDescriptors;
3
- var o = Object.getOwnPropertySymbols;
4
- var r = Object.prototype.hasOwnProperty, c = Object.prototype.propertyIsEnumerable;
5
- var m = (e, p, g) => p in e ? l(e, p, { enumerable: !0, configurable: !0, writable: !0, value: g }) : e[p] = g, i = (e, p) => {
6
- for (var g in p || (p = {}))
7
- r.call(p, g) && m(e, g, p[g]);
8
- if (o)
9
- for (var g of o(p))
10
- c.call(p, g) && m(e, g, p[g]);
11
- return e;
12
- }, n = (e, p) => j(e, s(p));
13
- import { MB as t } from "../../constant.mjs";
14
- const a = {
15
- maxImageSize: 14 * t,
1
+ var j = Object.defineProperty, d = Object.defineProperties;
2
+ var r = Object.getOwnPropertyDescriptors;
3
+ var t = Object.getOwnPropertySymbols;
4
+ var c = Object.prototype.hasOwnProperty, b = Object.prototype.propertyIsEnumerable;
5
+ var m = (p, e, g) => e in p ? j(p, e, { enumerable: !0, configurable: !0, writable: !0, value: g }) : p[e] = g, i = (p, e) => {
6
+ for (var g in e || (e = {}))
7
+ c.call(e, g) && m(p, g, e[g]);
8
+ if (t)
9
+ for (var g of t(e))
10
+ b.call(e, g) && m(p, g, e[g]);
11
+ return p;
12
+ }, n = (p, e) => d(p, r(e));
13
+ import { GB as a, MB as l } from "../../constant.mjs";
14
+ const o = {
15
+ maxImageSize: 14 * l,
16
+ maxZipSize: 2 * a,
16
17
  imageMimeTypes: ["image/jpeg", "image/jpg", "image/png", "image/bmp"],
17
18
  imageAccept: "image/png, image/jpeg, image/jpg, image/bmp",
18
19
  imageFormatsText: "jpg、png 、jpeg 、bmp",
@@ -25,9 +26,10 @@ const a = {
25
26
  description: ["压缩包内图片格式要求为:图片类型为jpg/png/bmp/jpeg,单张图片不超过14M;"]
26
27
  }
27
28
  }
28
- }, d = {
29
- maxImageSize: 10 * t,
29
+ }, s = {
30
+ maxImageSize: 10 * l,
30
31
  // VLM 可能是 10M(可根据实际需求调整)
32
+ maxZipSize: 2 * a,
31
33
  imageMimeTypes: ["image/jpeg", "image/jpg", "image/png"],
32
34
  imageAccept: "image/png, image/jpeg, image/jpg",
33
35
  imageFormatsText: "jpg、png 、jpeg",
@@ -47,7 +49,7 @@ const a = {
47
49
  ]
48
50
  }
49
51
  }
50
- }, b = n(i({}, a), {
52
+ }, f = n(i({}, o), {
51
53
  zipUploadTexts: {
52
54
  labeled: {
53
55
  description: ["压缩包内每张图片(jpg、png 、jpeg 、bmp格式)需要对应一个json文件,名称需一致,位置处在一级目录下;", "json文件须符合labelme标注规范,仅支持矩形框,必须包含标签、标签类型和两点坐标,格式可参考样例。"]
@@ -56,7 +58,7 @@ const a = {
56
58
  description: ["压缩包内图片格式要求为:图片类型为jpg/png/bmp/jpeg,单张图片不超过14M;"]
57
59
  }
58
60
  }
59
- }), f = n(i({}, a), {
61
+ }), x = n(i({}, o), {
60
62
  labelFormat: "folder",
61
63
  labelFormatLabel: "以文件夹命名分类",
62
64
  zipUploadTexts: {
@@ -67,7 +69,18 @@ const a = {
67
69
  description: ["压缩包内图片格式要求为:图片类型为jpg/png/jpeg/bmp,单张图片不超过14M;"]
68
70
  }
69
71
  }
70
- }), M = (e) => e === "vlm" ? d : e === "detection" ? b : e === "classification" ? f : a;
72
+ }), u = n(i({}, s), {
73
+ maxZipSize: 1 * a,
74
+ labelFormat: "dwg-json",
75
+ zipUploadTexts: {
76
+ labeled: {
77
+ description: ["压缩包内每个文件需对应3种格式:png、svg、json,位置处在一级目录下;"]
78
+ },
79
+ unlabeled: {
80
+ description: []
81
+ }
82
+ }
83
+ }), F = (p, e) => p === "vlm" ? e === "dwg-json" ? u : s : p === "detection" ? f : p === "classification" ? x : o;
71
84
  export {
72
- M as getImportConfig
85
+ F as getImportConfig
73
86
  };