公告:所有在
2025 年 4 月 15 日之前注册使用 Earth Engine 的非商业项目都必须
验证是否符合非商业性质的资格条件,才能继续使用 Earth Engine。
REST Resource: projects.videoThumbnails
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
资源:VideoThumbnail
字段 |
name |
string
表示视频缩略图的资源名称,格式为“projects/*/videoThumbnails/**”(例如“projects/earthengine-legacy/videoThumbnails/)。
|
expression |
object (Expression )
要计算的表达式。必须求值为 ImageCollection。
|
videoOptions |
object (VideoOptions )
动画选项。
|
fileFormat |
enum (VideoFileFormat )
用于生成最终视频缩略图的输出编码。目前只支持 GIF。
|
grid |
object (PixelGrid )
一个可选的像素网格,用于描述 expression 计算的图片的重新投影和剪裁方式。
|
方法 |
|
创建一个 ID,用于渲染包含来自合集的多张图片的动画的图片。 |
|
计算显示计算结果的图片。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003eVideoThumbnail resource represents information about a video thumbnail, including its name, expression, video options, file format, and grid.\u003c/p\u003e\n"],["\u003cp\u003eIt uses an expression that must evaluate to an ImageCollection to compute the video thumbnail.\u003c/p\u003e\n"],["\u003cp\u003eCurrently, only GIF format is supported for generating the video thumbnail.\u003c/p\u003e\n"],["\u003cp\u003eYou can create an ID to render the video thumbnail animation using the \u003ccode\u003ecreate\u003c/code\u003e method and compute the resulting image using the \u003ccode\u003egetPixels\u003c/code\u003e method.\u003c/p\u003e\n"]]],[],null,["# REST Resource: projects.videoThumbnails\n\nResource: VideoThumbnail\n------------------------\n\nInformation about a video thumbnail.\n\n| JSON representation |\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"name\": string, \"expression\": { object (/earth-engine/reference/rest/v1alpha/Expression) }, \"videoOptions\": { object (/earth-engine/reference/rest/v1alpha/projects.locations.videoThumbnails#VideoThumbnail.VideoOptions) }, \"fileFormat\": enum (/earth-engine/reference/rest/v1alpha/projects.locations.videoThumbnails#VideoThumbnail.VideoFileFormat), \"grid\": { object (/earth-engine/reference/rest/v1alpha/PixelGrid) } } ``` |\n\n| Fields ||\n|----------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` The resource name representing the video thumbnail, of the form \"projects/\\*/videoThumbnails/\\*\\*\" (e.g. \"projects/earthengine-legacy/videoThumbnails/\"). |\n| `expression` | `object (`[Expression](/earth-engine/reference/rest/v1alpha/Expression)`)` The expression to compute. Must evaluate to an ImageCollection. |\n| `videoOptions` | `object (`[VideoOptions](/earth-engine/reference/rest/v1alpha/projects.locations.videoThumbnails#VideoThumbnail.VideoOptions)`)` Options for the animation. |\n| `fileFormat` | `enum (`[VideoFileFormat](/earth-engine/reference/rest/v1alpha/projects.locations.videoThumbnails#VideoThumbnail.VideoFileFormat)`)` The output encoding in which to generate the resulting video thumbnail. Currently only GIF is supported. |\n| `grid` | `object (`[PixelGrid](/earth-engine/reference/rest/v1alpha/PixelGrid)`)` An optional pixel grid describing how the images computed by `expression` are reprojected and clipped. |\n\n| Methods ------- ||\n|------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------|\n| ### [create](/earth-engine/reference/rest/v1alpha/projects.videoThumbnails/create) | Creates an ID that can be used to render an image containing an animation of multiple images from a collection. |\n| ### [getPixels](/earth-engine/reference/rest/v1alpha/projects.videoThumbnails/getPixels) | Computes an image showing the result of a computation. |"]]