Datumwell

Annotation API

사용자 한 명이 기본적으로 최대 10개의 작업을 동시에 제출할 수 있습니다. 모든 API 토큰이 모델 추론, 영상 주석, 단독 3D Hand Pose에 이 한도를 공유합니다. 배치에서는 접수된 영상 한 편당 한 자리를 사용하며, 실행 대기 중인 영상도 포함됩니다. 동시 작업 한도 상향이나 처리 속도 개선이 필요하면 별도로 문의해 주세요.

Annotation: 3D Pose 제외 시 영상 1시간당 $6, 포함 시 $9.
단독 3D Hand Pose 요금은 원본 영상 1시간당 $3입니다.

영상 일괄 제출 · 손 3D Pose 실행 예시

영상 입력 요구 사항

MP4, MOV, WebM을 최대 50,000,000바이트까지 업로드할 수 있으며 영상 길이에는 고정된 상한이 없습니다. 워커는 29.97 fps와 가변 프레임 레이트를 지원하며 처리할 때 30 fps로 변환합니다. 주석 시각은 원본 비디오 트랙의 첫 표시 프레임을 기준으로 합니다. 요금은 해당 트랙의 실측 재생 시간에 따라 계산합니다. 업로드 세션을 요청할 때는 원본 파일의 크기와 SHA-256을 사용하세요.

파일에는 너비와 높이를 읽을 수 있는 동영상 트랙이 있어야 합니다. 너비와 높이는 각각 최대 4096픽셀이며 너비 × 높이는 최대 8,294,400픽셀입니다. 3840 × 2160은 해상도 제한을 충족합니다. 4096 × 2160은 총 픽셀 수 제한을 초과합니다.

업로드 확인은 파일 저장만 확인합니다. 영상을 하나씩 제출할 때는 작업에 processing_mode=automatic이 표시되더라도 조회 전에 POST /api/v1/annotations/{id}/process를 한 번 호출하세요. 작업을 재개할 때는 원래 UUID를 사용하세요.

Annotation은 세밀한 영상 구간과 1초 미만 단위의 동작 주석을 제공합니다. 각 이벤트에는 원본 영상의 시작·종료 시각, 영어 action, 중국어 action_zh가 포함됩니다. RoboRouter와 계정 API 토큰을 공유합니다.

공개 API 기본 URL은 https://datumwell.io/api/v1입니다. 프로젝트 API 토큰을 사용해 아래 예시대로 업로드 양식을 요청하고 작업을 처리한 뒤 결과를 조회하세요.

작업 UUID를 만들어 보관하세요. POST /api/v1/annotations/{id}/upload-session에 filename, size_bytes, 전체 파일의 SHA-256 소문자 16진수 해시 sha256, 선택 사항인 language(en 또는 zh)를 보냅니다. upload.fields의 모든 필드와 마지막에 file을 포함하는 multipart 양식을 upload.url로 보내세요. 성공하면 /api/v1/annotations/{id}/upload-complete에 upload.generation을 POST하세요. 프로젝트 토큰은 Datumwell API에만 보내세요.

업로드를 확인한 뒤 POST /api/v1/annotations/{id}/process를 한 번 호출하세요. 응답에 processing_mode=automatic이 있으면 서버가 나머지 단계를 진행합니다. GET /api/v1/annotations/{id}로 completed, failed, cancelled 또는 uncertain 상태가 될 때까지 조회하세요. 제출 응답을 받지 못했다면 기존 UUID로 다시 시도할 수 있습니다. 전환 기간에 processing_mode가 없는 202 응답은 이전의 단계별 방식이므로 같은 UUID로 POST /process를 계속 호출해야 합니다.

파일은 비공개 TOS로 직접 업로드됩니다. 각 양식은 객체 하나와 지정한 파일 크기에만 유효합니다. 연결이 끊기면 기존 작업과 업로드 상태를 확인한 뒤 진행하세요.

상세 결과는 result.hands에 있습니다. segments[]에는 description, description_zh와 인물의 신체 기준 왼손·오른손의 독립적인 left[] 및 right[] 이벤트가 들어갑니다. result_paged가 true이면 GET /api/v1/annotations/{id}/result?offset=0부터 조회하고 next_offset이 null이 될 때까지 순서대로 결과를 합치세요.

3D Pose를 제외한 작업이 성공하면 영상 1시간당 $6입니다. 예약 시 요금 버전으로 작업당 한 번만 정산합니다. 실행 중이지 않은 작업은 POST /api/v1/annotations/{id}/cancel로 취소해 예약을 해제할 수 있습니다. 미완료 작업은 24시간 동안 활동이 없으면 만료될 수 있습니다. 타임스탬프를 검토하고 영상과 주석 텍스트를 처리 서비스에 공유할 권한이 있는지 확인하세요.

예시는 Python 3과 curl을 사용합니다. 토큰과 clip.mp4를 본인의 인증 정보와 파일로 바꾸세요. 같은 작업을 재개할 수 있도록 생성된 .request-id 파일을 보관합니다. 연결이 끊기거나 결과가 불확실하면 먼저 기존 작업의 상태를 확인하세요.

GET이 HTTP 200을 반환해도 작업 status는 failed일 수 있습니다. 응답 본문의 error_code를 확인하세요. annotation_preprocessing_failed인 경우 failure.message에 서버의 영상 전처리 오류가 표시되며, 지원팀에 문의할 때 failure.task_id의 작업 UUID를 전달할 수 있습니다. failure.no_charge=true는 차감되거나 예약된 크레딧이 없음을 뜻합니다.

영상 업로드, 작업 상태 확인, 결과 조회는 실행 한도를 사용하지 않습니다.

429 account_concurrency_exceeded는 계정의 실행 한도가 찼음을, 503 service_capacity_exceeded는 서비스가 일시적으로 새 작업을 받을 수 없음을 뜻합니다. 503 capacity_busy는 요청 접수가 일시적으로 혼잡하다는 뜻입니다. 이 응답은 작업을 대기열에 넣거나 상위 서비스를 호출하거나 새 크레딧을 예약하지 않습니다.

이 세 가지 오류는 Retry-After에 지정된 시간(초, 현재 5초)이 지난 뒤 재시도하세요. 짧은 임의 지연을 추가하고 재시도 횟수에 상한을 두세요. 추론에는 동일한 request_key와 페이로드를, 영상 주석에는 동일한 작업 UUID를 사용하세요. 그 밖의 503 응답이나 네트워크 시간 초과가 발생하면 재시도 전에 원래 요청의 상태를 확인하세요.

단계별 손 타임라인에 공백, 겹침 또는 잘못된 경계가 있으면 같은 영상 구간을 최대 두 번 다시 확인하고 유효하지 않은 손의 출력만 교체합니다. 유효한 손 출력을 재사용하고 이전 호출 기록을 보존하며 빠진 시간을 가상의 동작으로 채우지 않습니다. 내부 재확인으로 고객에게 두 번째 요금이 청구되지 않습니다. 검증이 계속 실패하면 원래 UUID로 조회한 뒤 지원팀에 문의하세요. 확정 실패한 작업을 다시 시도하려고 새 요청을 만들지 마세요.

새 자동 작업은 recovery.automatic=true를 반환합니다. 호출 중단이나 Worker 장애 후 원래 UUID, 성공한 체크포인트와 크레딧 예약을 재사용하여 최초 실행 이후 최대 두 차례 자동 복구합니다. 누적 처리 시간에 따른 새 제한은 추가하지 않습니다. status=processing이고 recovery.retrying=true이면 같은 UUID로 GET 조회를 계속하세요. retries_used, max_retries, next_retry_at이 복구 진행 상황을 나타냅니다. 응답이 유실된 단계는 재전송할 수 있지만 고객 정산은 원래 예약 요금으로 한 번만 이루어집니다. 복구 횟수가 소진되면 failed 및 annotation_retry_exhausted로 종료하며 기존 실패 요금 규칙을 적용합니다. 새 작업을 만들거나 /recover를 호출할 필요가 없습니다.

HTTP 요청 전송 전임이 확인된 연결 실패는 처리 단계 제한 시간 내에서 한 번만 자동 재시도할 수 있습니다. 원래 작업 UUID, 저장된 체크포인트와 크레딧 예약을 재사용합니다. 연결 시도 한도에 도달하면 대기 상태를 유지하지 않고 annotation_provider_connect_failed와 함께 failed로 종료됩니다. 모든 처리 시도가 전송 전에 실패하면 모델 처리 실패 요금이 부과되지 않습니다. recovery.automatic=true가 없는 기존 작업은 요청이 전송되었을 가능성이 있고 응답이 유실되면 uncertain 상태로 확인이 필요합니다.

기존 uncertain 작업은 확인을 위해 원본 미디어, 호출 기록과 크레딧 예약을 보존하며, 유휴 만료로 취소하거나 자동 환불하지 않습니다. 10분의 안전 대기 시간이 지나면 실행 중이 아닌 uncertain 작업은 업로드 슬롯을 차지하지 않습니다. 일반 GET 및 POST /process는 결과가 불확실한 호출을 다시 보내지 않습니다.

자동 복구가 없고 3D Pose가 없는 기존 단계별 작업은 불확실한 결과를 검토한 뒤에만 명시적으로 복구하세요. POST /api/v1/annotations/{id}/recover에 {"recovery_key":"이번 복구용으로 새로 만들어 저장한 UUID","acknowledge_possible_duplicate_upstream":true}를 보냅니다. 작업과 미확인 호출의 업데이트가 멈춘 뒤 최소 10분 기다리세요. 이 확인은 상위 서비스가 이미 해당 호출을 처리했을 가능성을 인정합니다. 이후 POST /process를 한 번 호출하고 원래 작업 UUID로 조회하세요. 성공한 체크포인트와 원래 예약을 재사용하며 같은 작업 비용을 다시 예약하지 않습니다. 복구 요청을 재시도할 때는 같은 recovery_key를 사용하세요. 작업당 최대 두 번 복구할 수 있으며 Pose, 미디어 누락, 횟수 한도 또는 이미 정산된 예약은 지원팀의 확인이 필요합니다.

3D 손 Pose는 선택 사항입니다. upload-session에 pose3d: true와 pose3d_scope: "egocentric_single_wearer"를 명시하세요. 카메라 착용자 한 명의 두 손을 보여 주는 1인칭 영상만 지원하며 최대 120초, 50,000,000바이트입니다. 여러 사람이나 3인칭 손 추적은 지원하지 않습니다. 영상이 이 범위에 맞을 때만 선언하세요. 서비스는 장면을 자동 판별하지 않습니다. 기본값은 비활성입니다.

completed 이후 result.pose3d.result_endpoint에서 비공개 키포인트를 받고 next_offset이 null이 될 때까지 모든 페이지를 읽으세요. track_id는 같은 작업의 페이지, 재시도, 앞뒤 탐색에서 일관됩니다. detected_is_right는 원래의 좌우 예측이고 is_right는 전체 궤적으로 안정화한 해부학적 좌우입니다. 짧은 관측 누락에서는 ID를 유지하지만 hands는 비어 있을 수 있습니다. 긴 누락 뒤 새로 확인된 궤적에는 새 ID가 부여됩니다. 서로 다른 작업의 ID는 연결되지 않습니다.

추적은 순서가 있는 전체 결과를 대상으로 수행해 저장하며 페이지마다 ID를 다시 만들지 않습니다. 연결과 중복 제거가 관절 형상 오류를 교정하거나 모든 검출의 정확성을 보장하지는 않습니다. 3D 좌표는 기본 카메라 내부 파라미터를 사용한 추정값입니다. 원본 예측과 처리 버전은 내부에 보관합니다. 영상은 HTTPS로 캐나다 GPU 처리에 전송되며 비공개 결과는 원래 프로젝트의 권한으로만 읽을 수 있습니다.

3D Pose를 포함한 성공 요금은 영상 1시간당 $9이며 미포함 요금은 $6으로 유지됩니다. 두 처리 분기가 끝나면 원래 UUID와 예약한 요금으로 한 번만 정산합니다. 결과 재조회는 추론이나 정산을 반복하지 않습니다. 자동 복구로 결과가 유실된 단계를 다시 실행해도 고객 정산은 한 번입니다. 결과가 불확실하면 확인 때까지 예약을 유지합니다.

이 페이지의 언어를 바꿔도 API 입출력은 달라지지 않습니다. 예시에는 language=en을 사용합니다.

Python 3 / 재개 가능한 업로드
export ROBOROUTER_TOKEN='YOUR_API_TOKEN'
python3 - <<'PY'
import hashlib, json, os, sys, time, uuid
from pathlib import Path
from urllib.error import HTTPError, URLError
from urllib.request import Request, urlopen

video = Path("clip.mp4")
data = video.read_bytes()
key_file = video.with_suffix(video.suffix + ".request-id")
try:
    with key_file.open("x", encoding="ascii") as saved:
        saved.write(str(uuid.uuid4()))
except FileExistsError:
    pass
job_id = str(uuid.UUID(key_file.read_text(encoding="ascii").strip()))
base = "https://datumwell.io/api/v1/annotations/" + job_id
headers = {"Authorization": "Bearer " + os.environ["ROBOROUTER_TOKEN"]}
print("Request ID:", job_id, file=sys.stderr)

def request(path, method="GET", data=None, content_type=None):
    fields = dict(headers)
    if content_type:
        fields["Content-Type"] = content_type
    try:
        with urlopen(Request(base + path, data, fields, method=method),
                     timeout=300) as response:
            return json.load(response)
    except HTTPError as error:
        print(error.read().decode("utf-8", errors="replace"), file=sys.stderr)
        if error.headers.get("Retry-After"):
            print("Retry-After:", error.headers["Retry-After"], file=sys.stderr)
        sys.exit("Check the original request ID before continuing.")
    except (URLError, TimeoutError):
        sys.exit("Connection interrupted. Check the original request ID.")

metadata = json.dumps({
    "filename": video.name, "size_bytes": len(data),
    "sha256": hashlib.sha256(data).hexdigest(), "language": "en",
}).encode()
session = request("/upload-session", "POST", metadata, "application/json")
if session.get("upload"):
    import subprocess
    upload = session["upload"]
    if not upload["url"].startswith("https://"):
        sys.exit("Expected an HTTPS object storage URL.")
    fields = [arg for key, value in upload["fields"].items()
              for arg in ("--form-string", f"{key}={value}")]
    subprocess.run(["curl", "--fail", "--silent", "--show-error",
                    "--max-time", "120", *fields,
                    "--form", f"file=@{video}", upload["url"]], check=True)
    complete = json.dumps({"generation": upload["generation"]}).encode()
    request("/upload-complete", "POST", complete, "application/json")

job = request("")
active = {"uploading", "processing", "translation_pending"}
retryable = {"annotation_recognition_retry", "annotation_translation_retry"}
# Upload confirmation alone does not start annotation. Submit once even when
# an unsubmitted job already advertises automatic processing.
if job["status"] in active and not job.get("worker_active"):
    if not job.get("error_code") or job["error_code"] in retryable:
        job = request("/process", "POST")
while job["status"] in active:
    if job.get("processing_mode") == "automatic" or job.get("worker_active"):
        time.sleep(5)
        job = request("")
    elif not job.get("error_code") or job["error_code"] in retryable:
        job = request("/process", "POST")
        if job["status"] in active:
            time.sleep(1)
    else:
        break

if job["status"] == "completed" and job.get("result_paged"):
    result = job["result"]
    result["segments"] = []
    offset = 0
    while offset is not None:
        page = request(f"/result?offset={offset}")
        result["segments"].extend(page["segments"])
        if offset == 0:
            result["hands"] = page["hands"]
        else:
            result["hands"]["segments"].extend(page["hands"]["segments"])
            result["hands"]["audit"].extend(page["hands"]["audit"])
        next_offset = page["next_offset"]
        if next_offset is not None and next_offset <= offset:
            sys.exit("Invalid result cursor. Check the saved job ID.")
        offset = next_offset
    job["result_paged"] = False

print(json.dumps(job, ensure_ascii=False, indent=2))
if job["status"] != "completed":
    sys.exit(1)
PY

영상 일괄 제출

Batch는 프로덕션 API를 사용합니다. 영상마다 원래 작업 UUID를 보관하고 upload-session 생성, 파일 업로드, upload-complete 호출을 마치세요. 3D Pose가 필요한 영상의 upload-session에 pose3d: true와 pose3d_scope: egocentric_single_wearer를 설정하세요. 업로드를 확인한 UUID 1~10개를 한 번에 제출하세요.

ROBOROUTER_TOKEN을 설정하고 새 UUID를 Idempotency-Key로 사용한 뒤 요청 본문과 함께 보관하세요. 제출 결과가 불확실하면 같은 키와 본문으로 다시 요청하세요.

POST /api/v1/annotation-batches
BATCH_REQUEST_UUID='YOUR_SAVED_REQUEST_UUID'
FIRST_JOB_UUID='FIRST_CONFIRMED_UPLOAD_UUID'
SECOND_JOB_UUID='SECOND_CONFIRMED_UPLOAD_UUID'

curl -siS https://datumwell.io/api/v1/annotation-batches \
  -H "Authorization: Bearer $ROBOROUTER_TOKEN" \
  -H "Idempotency-Key: $BATCH_REQUEST_UUID" \
  -H 'Content-Type: application/json' \
  --data-binary "{\"items\":[{\"job_id\":\"$FIRST_JOB_UUID\"},{\"job_id\":\"$SECOND_JOB_UUID\"}]}"

HTTP 202는 batch_id와 영상별 admission을 반환합니다. 접수되지 않은 항목에는 이유를 나타내는 code가 포함됩니다. 배치 제출로 접수된 작업의 처리가 시작됩니다. GET /api/v1/annotation-batches/{batch_id}에서 요약을 읽거나 poll_after_seconds 간격으로 항목별 status_url을 조회하세요. queued 또는 waiting_for_gpu는 처리 자원을 기다리는 상태입니다. completed 후에는 원래 작업 UUID로 주석을 읽고, Pose를 사용했다면 해당 결과의 각 페이지도 가져오세요.

자리가 나면 새 멱등 키로 POST /api/v1/annotation-batches/{batch_id}/items를 호출해 영상을 추가하거나 접수되지 않은 항목을 다시 제출하세요. HTTP 429이면 Retry-After만큼 기다리세요. 아직 배치가 생성되지 않았다면 생성 엔드포인트로 요청하세요. 단일 제출과 같은 요율로 영상마다 재생 시간에 따라 정산합니다.

POST /api/v1/annotation-batches/{batch_id}/cancel은 배치를 닫고 처리가 시작되지 않은 항목을 취소합니다. 이미 처리가 시작된 항목은 계속 실행됩니다.

손 3D Pose: 전체 실행 예시

이 예시는 Pose를 명시적으로 활성화합니다. 위 지원 범위에 맞는 영상을 준비하고 Token과 clip.mp4를 바꾼 뒤 Python 3와 curl이 설치된 터미널에서 전체 코드를 실행하세요. 성공 요금은 영상 1시간당 $9입니다. 영상을 업로드하고 처리를 한 번 제출한 뒤 완료를 확인하여 동작 주석과 Pose의 모든 페이지를 읽습니다.

동작 결과는 clip.mp4.annotation.json에, 키포인트는 clip.mp4.pose3d.json에 저장하며 원본 타임스탬프와 track_id를 유지합니다. 작업 UUID는 clip.mp4.pose3d.request-id에 별도로 저장합니다. 재시도나 재개 시 이 파일과 같은 영상을 사용하세요. Pose 없는 작업의 UUID를 재사용하지 마세요.

Python 3 / 업로드·주석·Pose 결과 조회
export ROBOROUTER_TOKEN='YOUR_API_TOKEN'
python3 - <<'PY'
import hashlib, json, os, sys, time, uuid
from pathlib import Path
from urllib.error import HTTPError, URLError
from urllib.request import Request, urlopen

video = Path("clip.mp4")
data = video.read_bytes()
key_file = video.with_suffix(video.suffix + ".pose3d.request-id")
try:
    with key_file.open("x", encoding="ascii") as saved:
        saved.write(str(uuid.uuid4()))
except FileExistsError:
    pass
job_id = str(uuid.UUID(key_file.read_text(encoding="ascii").strip()))
base = "https://datumwell.io/api/v1/annotations/" + job_id
headers = {"Authorization": "Bearer " + os.environ["ROBOROUTER_TOKEN"]}
print("Request ID:", job_id, file=sys.stderr)

def request(path, method="GET", data=None, content_type=None):
    fields = dict(headers)
    if content_type:
        fields["Content-Type"] = content_type
    try:
        with urlopen(Request(base + path, data, fields, method=method),
                     timeout=300) as response:
            return json.load(response)
    except HTTPError as error:
        print(error.read().decode("utf-8", errors="replace"), file=sys.stderr)
        if error.headers.get("Retry-After"):
            print("Retry-After:", error.headers["Retry-After"], file=sys.stderr)
        sys.exit("Check the original request ID before continuing.")
    except (URLError, TimeoutError):
        sys.exit("Connection interrupted. Check the original request ID.")

metadata = json.dumps({
    "filename": video.name, "size_bytes": len(data),
    "sha256": hashlib.sha256(data).hexdigest(), "language": "en",
    "pose3d": True, "pose3d_scope": "egocentric_single_wearer",
}).encode()
session = request("/upload-session", "POST", metadata, "application/json")
if session.get("upload"):
    import subprocess
    upload = session["upload"]
    if not upload["url"].startswith("https://"):
        sys.exit("Expected an HTTPS object storage URL.")
    fields = [arg for key, value in upload["fields"].items()
              for arg in ("--form-string", f"{key}={value}")]
    subprocess.run(["curl", "--fail", "--silent", "--show-error",
                    "--max-time", "120", *fields,
                    "--form", f"file=@{video}", upload["url"]], check=True)
    complete = json.dumps({"generation": upload["generation"]}).encode()
    request("/upload-complete", "POST", complete, "application/json")

job = request("")
active = {"uploading", "processing", "translation_pending"}
retryable = {"annotation_recognition_retry", "annotation_translation_retry"}
# Upload confirmation alone does not start annotation. Submit once even when
# an unsubmitted job already advertises automatic processing.
if job["status"] in active and not job.get("worker_active"):
    if not job.get("error_code") or job["error_code"] in retryable:
        job = request("/process", "POST")
while job["status"] in active:
    if job.get("processing_mode") == "automatic" or job.get("worker_active"):
        time.sleep(5)
        job = request("")
    elif not job.get("error_code") or job["error_code"] in retryable:
        job = request("/process", "POST")
        if job["status"] in active:
            time.sleep(1)
    else:
        break

if job["status"] == "completed" and job.get("result_paged"):
    result = job["result"]
    result["segments"] = []
    offset = 0
    while offset is not None:
        page = request(f"/result?offset={offset}")
        result["segments"].extend(page["segments"])
        if offset == 0:
            result["hands"] = page["hands"]
        else:
            result["hands"]["segments"].extend(page["hands"]["segments"])
            result["hands"]["audit"].extend(page["hands"]["audit"])
        next_offset = page["next_offset"]
        if next_offset is not None and next_offset <= offset:
            sys.exit("Invalid result cursor. Check the saved job ID.")
        offset = next_offset
    job["result_paged"] = False

if job["status"] != "completed":
    print(json.dumps(job, ensure_ascii=False, indent=2))
    sys.exit("Task not completed. Keep the saved request ID.")

endpoint = (job.get("result", {}).get("pose3d") or {}).get("result_endpoint")
job_path = "/api/v1/annotations/" + job_id
if endpoint != job_path + "/pose3d":
    sys.exit("Missing or unexpected Pose endpoint. Check the original task.")
pose_path = endpoint[len(job_path):]
pose = None
frames = []
offset = 0
while offset is not None:
    page = request(f"{pose_path}?offset={offset}")
    if page.get("offset") != offset or not isinstance(page.get("frames"), list):
        sys.exit("Invalid Pose page. Keep the saved request ID.")
    if pose is None:
        pose = {key: value for key, value in page.items()
                if key not in ("frames", "offset", "next_offset")}
    if page.get("total_frames") != pose.get("total_frames"):
        sys.exit("Pose frame count changed. Check the original task.")
    frames.extend(page["frames"])
    if "next_offset" not in page:
        sys.exit("Missing Pose cursor. Check the original task.")
    next_offset = page["next_offset"]
    if next_offset is not None and (type(next_offset) is not int or
                                   next_offset <= offset or
                                   next_offset != len(frames)):
        sys.exit("Invalid Pose cursor. Check the original task.")
    offset = next_offset

if len(frames) != pose.get("total_frames"):
    sys.exit("Incomplete Pose result. Retry reads with the original task ID.")
pose["frames"] = frames
annotation_file = video.with_suffix(video.suffix + ".annotation.json")
pose_file = video.with_suffix(video.suffix + ".pose3d.json")
annotation_file.write_text(json.dumps(job, ensure_ascii=False, indent=2), encoding="utf-8")
pose_file.write_text(json.dumps(pose, ensure_ascii=False, indent=2), encoding="utf-8")
print("Saved:", annotation_file, pose_file)
PY