For the complete documentation index, see llms.txt. This page is also available as Markdown.

이미지 메타데이터

이미지에 사용자 지정 키-값 메타데이터를 첨부해 데이터셋을 검색, 필터링, 정리할 수 있습니다.

메타데이터를 사용하면 Roboflow 작업공간의 이미지에 사용자 지정 키-값 쌍을 추가할 수 있습니다. 메타데이터를 사용해 이미지와 함께 구조화된 정보를 저장하세요. 예를 들어 캡처 조건, 장치 식별자, 품질 점수, 또는 도메인별 속성 등을 저장한 다음, 해당 속성을 기준으로 데이터를 검색, 필터링, 정리할 수 있습니다.

개요

각 이미지는 원하는 수의 메타데이터 항목을 담을 수 있습니다. 항목은 키 (예: 다음과 같은 이름 camera_id)와 짝지어진 값 (문자열, 숫자, 또는 불리언).

값 유형
예시

문자열

location: "warehouse-3", shift: "night"

숫자

temperature: 72.5, quality_score: 95

불리언

reviewed: true, is_night: false

사용 사례

  • 상황 맥락 캡처 - 카메라 ID, GPS 좌표, 날씨, 조명 조건 기록

  • 품질 추적 - 신뢰도 점수, 검토 상태, 주석자 ID 첨부

  • 데이터 분할 - 대상 학습 세트를 만들기 위해 어떤 속성으로든 데이터셋을 필터링

  • 외부 시스템 연결 - 이미지를 내부 도구와 연결하는 식별자 저장

메타데이터 추가

웹 UI, Python SDK, CLI, HTTP API를 통해 이미지에 메타데이터를 추가할 수 있으며, 또는 다음을 통해 자동으로 추가할 수 있습니다: S3 버킷 미러.

이미지가 AWS S3 같은 클라우드 저장소에 있다면, 데이터 소스 및 Bucket Mirror를 사용하여 이미지 파일과 메타데이터 사이드카가 동기화된 상태를 유지하세요. 서명된 URL이나 수동 업로드는 동일한 지속적 메타데이터 동기화 동작을 제공하지 않습니다.

웹 애플리케이션

1

이미지 열기

프로젝트의 아무 이미지나 여세요.

2

키와 값 입력

메타데이터 섹션에서 키 첫 번째 입력란에 값 두 번째 입력란에

3

추가

누른 다음 Enter 를 눌러 저장하거나 Add를 클릭하세요

값은 유형에 따라 자동으로 구문 분석됩니다:

입력한 값
저장 형식

front

"front" (문자열)

95

95 (숫자)

3.14

3.14 (숫자)

true / false

true / false (불리언)

Annotation Tool의 메타데이터 편집기

Python SDK

전달할 metadata 이미지를 업로드할 때의 딕셔너리:

CLI

다음을 사용하세요 roboflow 이미지 메타데이터 기존 이미지의 메타데이터와 태그를 업데이트하는 명령:

단일 이미지 ID는 동기적으로 업데이트됩니다. 쉼표로 구분된 여러 ID(최대 1,000개)는 배치 비동기 엔드포인트를 사용합니다. 추가 --poll 를 추가하여 배치가 완료될 때까지 기다리세요. 그렇지 않으면 명령은 taskId 나중에 다음으로 확인할 수 있습니다: roboflow asynctasks get <task-id>.

플래그
설명

-m, --metadata

설정할 키-값 쌍의 JSON 문자열

--remove-metadata

제거할 메타데이터 키를 쉼표로 구분한 목록

--tags

추가할 태그를 쉼표로 구분한 목록

--remove-tags

제거할 태그를 쉼표로 구분한 목록

--poll / --no-poll

배치 완료까지 대기(배치 모드에서만)

--timeout

폴링 시간 초과(초 단위, 기본값: 1800)

HTTP API

이미지를 업로드하면서 메타데이터를 추가하려면, metadata multipart form의 JSON 객체 문자열이 들어 있는 필드를, 또는 쿼리 매개변수로 전송하세요.

Upload an image

post

Adds an image to the project and puts it in a batch. Send the image as a multipart file or a base64 body, or pass the image query parameter to have Roboflow fetch it from a URL. Uploading an image the project already has returns the existing image ID with duplicate set to true. Requires image:create. /{workspace}/{project}/upload works the same way.

Authorizations
AuthorizationstringRequired

Roboflow API key or OAuth access token.

Path parameters
projectstringRequired

Project URL slug.

Query parameters
imagestring · uriOptional

URL of an image for Roboflow to fetch and add. URL-encode it. Use it when you do not send the image in the body.

Example: https://i.imgur.com/PEEvqPN.png
namestringOptional

File name of the image. Roboflow infers it when you leave it out.

Example: dock-cam-001.jpg
splitstring · enumOptional

Split the image goes to.

Default: trainPossible values:
batchstringOptional

Name of the batch to add the image to. Without it, the image goes to the "Uploaded via API" batch.

Example: Warehouse cams
notesstring · max: 2000Optional

Note for the batch. The batch keeps the first note it gets. Annotation jobs made from the batch use it as their default instructions.

Example: Label every forklift, even when it is partly hidden.
tagstringOptional

Tag to add to the image. Repeat it to add more tags.

Example: night
metadatastringOptional

Custom metadata as a JSON object string. Keys use letters, numbers, underscores, and dots, and do not start with a dot. Keys that start with rf_internal are reserved.

Example: {"camera_id":"cam001"}
sequence_numberintegerOptional

Position of the image in a sequence. Use it to keep images in order.

sequence_sizeintegerOptional

Total number of images in the sequence.

Default: 100000
inference_idstringOptional

Inference ID from a Roboflow prediction. It links the image to that prediction in Model Monitoring.

Body
or
stringOptional

The whole body is the image encoded as base64. A data URL prefix (ex: data:image/jpeg;base64,) is allowed. Send every option as a query parameter.

Responses
200

Successful response.

application/json
successbooleanOptional

True when Roboflow added a new image.

duplicatebooleanOptional

True when the project already has this exact image. No new image is added, and id is the existing image.

idstringOptional

Image ID. Use it to upload an annotation for the image.

post/dataset/{project}/upload
POST /dataset/{project}/upload HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: multipart/form-data
Accept: */*
Content-Length: 134

{
  "file": "binary",
  "name": "dock-cam-001.jpg",
  "split": "train",
  "tag": "night",
  "metadata": "{\"camera_id\":\"cam001\",\"temperature\":72.5}"
}
{
  "success": true,
  "id": "YbNIgavTIk2xOOmJsHv5"
}

이미 이미 작업공간에 있는 이미지의 메타데이터와 태그를 변경하려면, 단일 이미지를 바로 업데이트하세요:

Update metadata and tags for one image

post

Sets and removes custom metadata and tags on one image, right away. The image can be in any project of the workspace. Requires image:tag.

Authorizations
AuthorizationstringRequired

Roboflow API key or OAuth access token.

Path parameters
workspacestringRequired

Workspace URL slug.

imageIdstringRequired

Image ID.

Body

Send at least one field. A key or tag cannot be both set and removed in one request. Keys use letters, numbers, underscores, and dots, and do not start with a dot. Keys that start with rf_internal are reserved.

removeMetadatastring[]Optional

Metadata keys to delete.

addTagsstring[]Optional

Tags to add.

removeTagsstring[]Optional

Tags to remove.

Responses
200

Successful response.

application/json
successbooleanOptional
post/{workspace}/images/{imageId}/metadata
POST /{workspace}/images/{imageId}/metadata HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 71

{
  "metadata": {
    "camera": "front",
    "blur_score": 0.8
  },
  "addTags": [
    "reviewed"
  ]
}
{
  "success": true
}

또는 최대 1,000개의 이미지를 백그라운드에서 업데이트한 다음, 반환된 작업 URL을 Async Tasks API:

Update metadata and tags for multiple images

post

Sets and removes custom metadata and tags on up to 1,000 images in the background. Poll the returned task URL until it finishes. An image that is missing or in another workspace fails on its own and does not stop the others. Requires image:tag.

Authorizations
AuthorizationstringRequired

Roboflow API key or OAuth access token.

Path parameters
workspacestringRequired

Workspace URL slug.

Body
Responses
202

Accepted for asynchronous processing.

application/json
taskIdstringOptional

Asynchronous task ID.

urlstringOptional

URL to poll for the task status. The finished task's result lists totalProcessed, succeeded, failed, and failedItems.

post/{workspace}/images/metadata
POST /{workspace}/images/metadata HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 138

{
  "updates": [
    {
      "imageId": "abc123",
      "metadata": {
        "camera": "front"
      },
      "addTags": [
        "reviewed"
      ]
    },
    {
      "imageId": "def456",
      "removeTags": [
        "needs-review"
      ]
    }
  ]
}
{
  "taskId": "Qm9yZWFsVGFzazEyMw",
  "url": "https://api.roboflow.com/my-workspace/asynctasks/Qm9yZWFsVGFzazEyMw"
}

S3 버킷 미러

사용할 때 데이터 소스 S3 버킷에서 이미지를 동기화하려면, 메타데이터는 각 이미지 옆에 배치된 JSON 사이드카 파일을 통해 가져옵니다. 다음을 참조하세요: 데이터 소스 사이드카 파일 형식, 제약 조건, 업데이트 전략은 다음을 참조하세요.

MCP 서버

AI 에이전트를 다음에 연결하면 MCP 서버 그리고 다음 도구를 사용해 이미지에 태그를 지정하고 메타데이터를 설정할 수 있습니다:

도구
설명

images_update_metadata

단일 이미지의 메타데이터와 태그를 업데이트합니다.

images_batch_update_metadata

여러 이미지의 메타데이터와 태그를 일괄 업데이트합니다.

images_search

태그, 클래스 또는 메타데이터로 업데이트할 이미지를 찾습니다.

메타데이터로 검색

메타데이터는 자산 라이브러리에서 인덱싱되고 검색할 수 있습니다. 검색창을 사용해 메타데이터 값으로 이미지를 필터링하세요:

메타데이터 필터를 다른 검색 필터와 함께 결합할 수 있습니다:

Asset Library는 작업공간에 존재하는 내용을 기반으로 메타데이터 키와 값에 대한 자동 완성도 제공합니다.

키 명명 규칙

메타데이터 키는 다음 규칙을 따라야 합니다:

규칙
세부 내용

허용되는 문자

문자(a-z, A-Z), 숫자(0-9), 밑줄(_), 점(.)

첫 글자

문자, 숫자 또는 밑줄이어야 합니다

금지된 문자

슬래시(/)는 허용되지 않습니다

유효한 키: camera_id, capture.temperature, _internal_ref, v2_score

유효하지 않은 키: camera/id (포함 /), .starts_with_dot (로 시작함 .), 공백이 있음 (공백 포함)

메타데이터와 태그

메타데이터와 태그 이미지를 정리하는 데 도움이 되지만, 용도는 다릅니다:

태그
메타데이터

구조

단순한 레이블

키-값 쌍

값

값이 없고 이름만 있음

문자열, 숫자, 또는 불리언

적합한 용도

분류, 워크플로 상태

구조화된 속성, 측정값

예시

검토됨, v2, 주석 필요

temperature: 72.5, camera_id: "cam001"

같은 이미지에 둘 다 사용할 수 있습니다. 예를 들어 이미지를 검토됨 로 태그하고 또한 reviewer: "alice" 및 confidence: 0.95 를 메타데이터로 저장하세요.

마지막 업데이트

도움이 되었나요?