กล้องรับข้อมูลเมตา
แสดงผลข้อมูลเมตาของไฟล์ตาม URI ส่วนหัวของรูปภาพ
จะแสดงช่อง Exif และ XMP เลิกใช้งานคำสั่งนี้ใน API ระดับ 2 แล้ว
พารามิเตอร์
- fileUri: URI ของไฟล์เป้าหมาย ผู้ผลิตเป็นผู้ตัดสินใจว่าจะ
เพื่อใช้ URI แบบสัมบูรณ์หรือสัมพัทธ์ ลูกค้าอาจถือว่าข้อมูลนี้เป็นตัวระบุแบบทึบ
ผลลัพธ์
- ข้อมูลเมตา: Exif (รวมถึงข้อมูล GPS), Photo 360 XMP ใน
JSON ไม่รวมรูปภาพหรือภาพขนาดย่อ
ข้อผิดพลาด
- missingParameters: ไม่ได้ระบุ
fileUri
- invalidParametersName: ระบบไม่รู้จักชื่อพารามิเตอร์อินพุต
- invalidParameterValue: ระบบรู้จักพารามิเตอร์อินพุต แต่
ค่าไม่ถูกต้อง ตัวอย่างเช่น
fileUri
ไม่มีอยู่ หรือข้อมูลภายใน
ประเภทไม่ถูกต้อง
Command 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." } } |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-08-21 UTC
[null,null,["อัปเดตล่าสุด 2024-08-21 UTC"],[[["Returns file metadata such as Exif and XMP data for a given file URI."],["This command is deprecated and was previously used in API level 2."],["Important parameters include the `fileUri`, which specifies the location of the target file."],["Potential errors encompass missing or invalid parameters, including an invalid or non-existent `fileUri`."],["The command output provides Exif and Photo Sphere XMP data in JSON format if successful."]]],["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"]]