Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
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。
[[["易于理解","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"]],["最后更新时间 (UTC):2024-11-30。"],[],["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"]]