公告:所有在
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 is a resource that represents information about a video thumbnail, allowing rendering of animations from image collections.\u003c/p\u003e\n"],["\u003cp\u003eIt includes fields like \u003ccode\u003ename\u003c/code\u003e, \u003ccode\u003eexpression\u003c/code\u003e for the ImageCollection, \u003ccode\u003evideoOptions\u003c/code\u003e for animation, \u003ccode\u003efileFormat\u003c/code\u003e currently supporting GIF, and an optional \u003ccode\u003egrid\u003c/code\u003e for reprojection and clipping.\u003c/p\u003e\n"],["\u003cp\u003eUsers can utilize methods like \u003ccode\u003ecreate\u003c/code\u003e to generate an ID for rendering animation and \u003ccode\u003egetPixels\u003c/code\u003e to compute and display the resulting image.\u003c/p\u003e\n"]]],["This describes the structure and actions related to video thumbnails. Key information includes the `name` (resource identifier), `expression` (computation to generate an ImageCollection), `videoOptions` (animation settings), `fileFormat` (output encoding, currently GIF), and `grid` (reprojection/clipping). Two primary actions are `create` to generate an ID for rendering an animated image collection, and `getPixels` to compute and display the result of a specific calculation.\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/v1/Expression) }, \"videoOptions\": { object (/earth-engine/reference/rest/v1/projects.locations.videoThumbnails#VideoThumbnail.VideoOptions) }, \"fileFormat\": enum (/earth-engine/reference/rest/v1/projects.locations.videoThumbnails#VideoThumbnail.VideoFileFormat), \"grid\": { object (/earth-engine/reference/rest/v1/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/v1/Expression)`)` The expression to compute. Must evaluate to an ImageCollection. |\n| `videoOptions` | `object (`[VideoOptions](/earth-engine/reference/rest/v1/projects.locations.videoThumbnails#VideoThumbnail.VideoOptions)`)` Options for the animation. |\n| `fileFormat` | `enum (`[VideoFileFormat](/earth-engine/reference/rest/v1/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/v1/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/v1/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/v1/projects.videoThumbnails/getPixels) | Computes an image showing the result of a computation. |"]]