Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想从形状为 (70000, 640, 480, 3) 的数组制作视频。第一个轴是我想在不使用循环附加每张照片的情况下将它们收集到视频中的照片数量。
您可以先创建一个 4 维空 numpy 数组,然后再设置值
import numpy as np videos = np.zeros(shape=(70000, 640, 480, 3)) videos[60000][300][200][1] = 300 # set values later when needed