camera.getMetadata
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
URI가 지정된 파일 메타데이터를 반환합니다. 이미지 헤더
Exif 및 XMP 필드가 나열됩니다. 이 명령어는 API 수준 2에서 지원 중단되었습니다.
매개변수
- fileUri: 타겟 파일의 URI입니다. 제조업체는
절대 또는 상대 URI를 사용할 수 있습니다. 클라이언트는 이를 불투명 식별자로 처리할 수 있습니다.
결과
- metadata: Exif (GPS 정보 포함), Photo Sphere XMP
JSON 형식입니다. 이미지나 썸네일은 포함되지 않습니다.
오류
- missingParameter:
fileUri
가 지정되지 않았습니다.
- invalidParameterName: 입력 매개변수 이름을 인식할 수 없습니다.
- invalidParameterValue: 입력 매개변수는 인식되지만
값이 잘못되었습니다. 예를 들어
fileUri
가 존재하지 않거나 데이터가 없습니다.
유형이 잘못되었습니다.
명령어 I/O |
명령어 입력 |
{
"parameters": {
"fileUri": "file URI"
}
} |
명령어 결과 |
{
"results": {
"exif": {
...
"ImageWidth": 2000,
"ImageLength": 1000,
...
},
"xmp": {
"ProjectionType": "equirectangular",
"UsePanoramaViewer": true,
...
}
}
} |
명령어 출력 (오류) |
{
"error": {
"code": "invalidParameterValue",
"message": "Parameter fileUri doesn't exist."
}
} |
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2024-08-21(UTC)
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2024-08-21(UTC)"],[],["This command retrieves a file's metadata using its URI. It's deprecated in API level 2. Input requires a `fileUri`. The output provides Exif data (including GPS) and Photo Sphere XMP in JSON format, excluding the image itself. Possible errors include a missing or invalid `fileUri`, or an unrecognized parameter name. Example input shows providing a file URI, with successful output including `exif` and `xmp` fields, and error output shown when a file URI does not exist.\n"]]