中文释义:
这张图片是一张全景照片。请帮我把它转换成长宽比为 3:2 的视频,图像要充满整个视频(因此两侧要被截掉)。视频应位于图像中央。然后,平滑平移视频(不要突然跳动),如下所示: 开始: 中间 –> 右边 –> 中间 –> 左边 –> 中间: 结束 使用图像库来帮助你。将帧直接保存到视频文件中,而不是保存到列表中。使用 8 像素的帧步长。如有必要,裁剪图像的边缘,使图像的大小能被帧步长整除。
英文提示词:
This image is a panoramic shot. Help me turn it into a video with aspect ratio 3:2, with the image filling the entire video (so the sides are cut off). The video should be centered in the middle of the image. Then, pan the video smoothly (with no sudden jumps) as follows: Start: Center –> Right –> Center –> Left –> Center: End Use the imageio library to help you. Save the frames directly to a video file instead of into a list. Use a frame step of 8 pixels. If necessary, crop the edges of the image so that the size of the image is divisible by the frame step.