how to add depth to a 2d image using multiple images in python

  opencv, python, python-imaging-library

I have 64 frames of multiple 2d images, with sequential labels, and I want to convert all of them into a single image.
I want to use my data for training a 3dcnn, so these images should convert to a single image consecutively.

how should I write the code and which library should I use?

Source: Python Questions