export async function annotateImageByUri()

in src/frontend/src/queries.ts [132:142]


export async function annotateImageByUri(
  imageUri: string,
  features: string[]
): Promise<ImageAnnotationResult> {
  const formData = new FormData();
  formData.append("image_uri", imageUri);
  formData.append("features", features.join(","));
  return client
    .post<ImageAnnotationResult>("/annotate", formData)
    .then((response) => response.data);
}