(image)
| 145 | return mP |
| 146 | |
| 147 | def transform_Image_to_tensor(image): |
| 148 | # 将图像转换为张量 |
| 149 | transform = transforms.ToTensor() |
| 150 | output_image = transform(image) |
| 151 | return output_image |
| 152 | |
| 153 | def generate_video(img_list, save_path): |
| 154 | # 定义编解码器并创建VideoWriter对象 |
nothing calls this directly
no outgoing calls
no test coverage detected