이미지 메타데이터
이미지에 사용자 지정 키-값 메타데이터를 첨부해 데이터셋을 검색, 필터링, 정리할 수 있습니다.
메타데이터를 사용하면 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 버킷 미러.
웹 애플리케이션
값은 유형에 따라 자동으로 구문 분석됩니다:
front
"front" (문자열)
95
95 (숫자)
3.14
3.14 (숫자)
true / false
true / false (불리언)

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 객체 문자열이 들어 있는 필드를, 또는 쿼리 매개변수로 전송하세요.
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.
Roboflow API key or OAuth access token.
Project URL slug.
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.
https://i.imgur.com/PEEvqPN.pngFile name of the image. Roboflow infers it when you leave it out.
dock-cam-001.jpgSplit the image goes to.
trainPossible values: Name of the batch to add the image to. Without it, the image goes to the "Uploaded via API" batch.
Warehouse camsNote for the batch. The batch keeps the first note it gets. Annotation jobs made from the batch use it as their default instructions.
Label every forklift, even when it is partly hidden.Tag to add to the image. Repeat it to add more tags.
nightCustom 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.
{"camera_id":"cam001"}Position of the image in a sequence. Use it to keep images in order.
Total number of images in the sequence.
100000Inference ID from a Roboflow prediction. It links the image to that prediction in Model Monitoring.
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.
Successful response.
True when Roboflow added a new image.
True when the project already has this exact image. No new image is added, and id is the existing image.
Image ID. Use it to upload an annotation for the image.
No image was sent, the image is too large or not readable, metadata or notes is invalid, or Roboflow could not fetch the image URL (bad URL, private address, or a 4xx answer from the host). A failed fetch has a message that starts with "Could not fetch image URL".
Authentication is missing or invalid.
The credential does not have access to this resource.
The resource does not exist or is not accessible.
The request rate is too high.
The host of the image URL answered with a 5xx status or the connection failed. The response sets retryable to true, so send the same request again later.
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"
}이미 이미 작업공간에 있는 이미지의 메타데이터와 태그를 변경하려면, 단일 이미지를 바로 업데이트하세요:
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.
Roboflow API key or OAuth access token.
Workspace URL slug.
Image ID.
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.
Metadata keys to delete.
Tags to add.
Tags to remove.
Successful response.
The body is empty, a field has the wrong type, a key or tag is invalid, or the same key or tag is both set and removed.
Authentication is missing or invalid.
The credential does not have access to this resource.
The image does not exist or belongs to another workspace.
The request rate is too high.
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:
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.
Roboflow API key or OAuth access token.
Workspace URL slug.
Accepted for asynchronous processing.
Asynchronous task ID.
URL to poll for the task status. The finished task's result lists totalProcessed, succeeded, failed, and failedItems.
updates is empty or has more than 1,000 entries, an image ID is listed twice, or an entry is invalid.
Authentication is missing or invalid.
The credential does not have access to this resource.
The resource does not exist or is not accessible.
The request rate is too high.
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 를 메타데이터로 저장하세요.
마지막 업데이트
도움이 되었나요?