Datumwell

EGOHOME 주석 예시

왼손·오른손 동작 주석

화면은 한국어로 제공되며 동작 라벨은 기록된 영어로 표시됩니다. 다운로드에는 영어 원문과 중국어 번역이 포함됩니다. 화면 언어를 바꿔도 API 입출력은 달라지지 않습니다.

싱크대에서 헹구기

17.20 s
30 fps · 왼손 / 오른손
주석 타임라인0.00 / 17.20 s
Segment왼손오른손
0 s17.20 s

Segment 01

0.00–3.00 s

They move the bottle toward the dish rack and place it there among the other dishes, then withdraw their hands.

왼손 4

오른손 3

Pose는 모델이 추정한 손 키포인트입니다. 3D 보기는 손목 기준이며 기본 카메라 내부 파라미터를 사용합니다. 실제 크기 측정용이 아닙니다.

평가 데이터 출처: EgoHome · PerceptronAI ↗ · 36ec34a731cc_010 · 원본 영상 32.4–49.6 s

평가 이용 허가에 따라 표시합니다. 재생용 영상은 크기를 조정하고 오디오를 제거했습니다.발췌 영상은 기록된 구간 경계에 맞춰 잘랐으며 시각은 발췌 시작점을 기준으로 합니다. Datumwell Annotation은 참조 라벨을 입력으로 사용하지 않고 예측했습니다. 이 예시는 전체 벤치마크 점수가 아닙니다. 동작과 시각을 원본 영상과 비교해 확인하세요. CC BY-NC 4.0 · 평가 이용 허가

2D / 3D Pose JSON 다운로드 ↓평가 결과 JSON 다운로드 ↓

API로 영상에 주석 달기

왼손과 오른손의 동작 타임라인을 각각 가져올 수 있습니다. 위 예시에는 영어 설명과 중국어 번역이 포함됩니다.

MP4 / MOV / WebM · 고정 30 fps

최대 50 MB의 영상을 비공개 오브젝트 스토리지에 직접 업로드합니다.

annotation:write · annotation:read

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