|
|
@@ -447,7 +447,7 @@ export const getAITaggingInfos = async (
|
|
|
const name = itemIcon?.name || "";
|
|
|
const isTag = icon === "Tag";
|
|
|
if (getTag && !isTag) continue;
|
|
|
- if (!name) continue;
|
|
|
+ if (!name && !isTag) continue;
|
|
|
|
|
|
const pixelCenter = {
|
|
|
x: (shape.bbox[0] + shape.bbox[2]) / 2 / data.imageWidth,
|
|
|
@@ -484,7 +484,6 @@ export const getAIBorderTaggingInfos = async (
|
|
|
scale: number
|
|
|
) => {
|
|
|
const taggingInfos = await getAITaggingInfos(scene, subgroup, bound, false);
|
|
|
- console.log(taggingInfos)
|
|
|
return taggingInfos.map((item) => {
|
|
|
const size = item.size!;
|
|
|
const p = item.position!;
|
|
|
@@ -665,7 +664,6 @@ export const getResource = async ({
|
|
|
let coverLine: CoverLine;
|
|
|
|
|
|
const compass = await getCompass(scene);
|
|
|
- console.log(compass);
|
|
|
const reqs: Promise<any>[] = [
|
|
|
getCompass(scene),
|
|
|
getCoverLine(scene, key, scale)
|
|
|
@@ -675,9 +673,9 @@ export const getResource = async ({
|
|
|
getWallAITaggingInfos(scene, key, scale, cover).then((ts) =>
|
|
|
wallTaggings.push(...ts)
|
|
|
),
|
|
|
- getAITaggingInfos(scene, key, cover.bound).then((ts) =>
|
|
|
+ getAITaggingInfos(scene, key, cover.bound).then((ts) => {
|
|
|
taggings.push(...ts)
|
|
|
- ),
|
|
|
+ }),
|
|
|
getAIBorderTaggingInfos(scene, key, cover.bound, scale).then((ts) =>
|
|
|
borderTaggings.push(...ts)
|
|
|
),
|