fix(test): sam2

This commit is contained in:
zhangheng
2026-03-23 17:33:46 +08:00
parent 59aeb0bf39
commit 764d0a726f
2 changed files with 228 additions and 5 deletions

View File

@@ -120,6 +120,25 @@ export const getAuxiliaryAnnotation = (data: any) => {
})
}
export const getAuxiliaryAnnotation2 = (data: {
project_id: string
image_name: string
prompt: {
foreground_points?: Array<[number, number]>
background_points?: Array<[number, number]>
boxes?: Array<[number, number, number, number]>
}
}) => {
return httpFetch<{
contours: Array<Array<[[number, number]]>>
hollows: Array<boolean>
}>({
url: "http://172.30.21.211:9000/image_predictor",
method: "POST",
body: JSON.stringify(data),
})
}
// 模型标注 追踪
export const getTrackingAuxiliaryAnnotation = (data: any) => {
return httpFetch<any>({