fix(sam2): info

This commit is contained in:
zhangheng
2026-04-17 19:26:32 +08:00
parent 5168f539e0
commit c936c25240
2 changed files with 4 additions and 0 deletions

View File

@@ -123,6 +123,7 @@ export const getAuxiliaryAnnotation = (data: {
background_points?: Array<[number, number]>
boxes?: Array<[number, number, number, number]>
}
contour_approximation?: number
}) => {
return httpFetch<{
contours: Array<Array<[[number, number]]>>

View File

@@ -997,6 +997,7 @@ const PaperContainer = (
: {}),
...(normalizedBoxes.length ? { boxes: normalizedBoxes } : {}),
},
contour_approximation: 0,
})
const { contours = [], hollows = [] } = data || {}
const outerPaths: any[] = []
@@ -1050,6 +1051,8 @@ const PaperContainer = (
})
} catch (error) {
console.log(error)
} finally {
notifications.hide("sam2")
}
} catch (error: any) {
console.log(error)