Photo Sphere XMP
下表列出了 Photo Sphere XMP 的所有 必填字段。如需详细了解 Photo Sphere XMP,请选择以下链接。如果您想添加自定义字段(例如 GPano:PosePitchDegrees
),请将其缩写为 PosePitchDegrees
(无需添加前缀下划线“_”)。
名称 |
类型 |
说明 |
ProjectionType |
自由选择文本 |
图片文件投影类型。Google 产品目前支持 equirectangular。 |
UsePanoramaViewer |
布尔值 |
在全景图查看器 (True ) 中显示图片,或以平面图片 (False ) 的形式显示图片。默认为 True 。 |
PoseHeadingDegrees |
真实 |
以度为单位,用于图像中心的罗盘航向。值范围为大于等于 0 且小于 360。 |
CroppedAreaImageWidthPixels |
整数 |
未经编辑的图片的原始宽度(以像素为单位,等于未经编辑的图片的实际图片宽度)。 |
CroppedAreaImageHeightPixels |
整数 |
图片的原始高度(以像素为单位,等于未编辑图片的实际图片高度)。 |
FullPanoWidthPixels |
整数 |
图片剪裁前的原始完整全景宽度。或者,如果仅捕获了全景照片的一部分,则此参数指定的是完整全景照片应具有的宽度。 |
FullPanoHeightPixels |
整数 |
图片剪裁前的原始完整全景图片高度。或者,如果仅捕获了全景照片的一部分,则此参数指定的是完整全景照片应具有的高度。 |
CroppedAreaLeftPixels |
整数 |
列,其中图片的左边缘是从完整尺寸的全景图中剪裁下来的。 |
CroppedAreaTopPixels |
整数 |
行,其中图片的上边缘是从完整尺寸的全景图中剪裁下来的。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-11-30。
[null,null,["最后更新时间 (UTC):2024-11-30。"],[[["This page lists all the required fields for Photo Sphere XMP metadata, which is used by Google products to display spherical images correctly."],["Photo Sphere XMP metadata includes information about the image's projection type, orientation, and dimensions, as well as how it should be displayed."],["If adding custom fields to the XMP metadata, omit the \"GPano:\" prefix (e.g., use \"PosePitchDegrees\" instead of \"GPano:PosePitchDegrees\")."],["For detailed information about Photo Sphere XMP and its usage, refer to the provided link."]]],["Photo Sphere XMP requires specific fields for proper image handling. These include `ProjectionType` (typically equirectangular), `UsePanoramaViewer` (defaults to `True`), and `PoseHeadingDegrees` (compass heading). Dimensions are specified using `CroppedAreaImageWidthPixels`, `CroppedAreaImageHeightPixels`, `FullPanoWidthPixels`, and `FullPanoHeightPixels`. `CroppedAreaLeftPixels` and `CroppedAreaTopPixels` indicate the cropped image's position within the full panorama. Custom fields can be added without prefixing underscores.\n"]]