This program creates morphing videos between images with synchronized audio. It uses advanced shape warping techniques with Delaunay triangulation to create smooth, natural transitions between images.
- Automatically detects and matches feature points between images
- Uses mesh-based warping (Delaunay triangulation) for natural morphing
- Supports multiple images in sequence
- Adds audio to the final video
- Automatic generation of output file in Downloads folder
- Python 3.6+
- Required packages:
- numpy
- PIL (Pillow)
- OpenCV (cv2)
- scipy
- moviepy
- pathlib
- wave
pip install numpy pillow opencv-python scipy moviepy
- Place your images (.jpg, .jpeg, .png, etc.) in your Downloads folder
- Place a WAV audio file in your Downloads folder
- Run the program(include path to program location on the computer):
python morph_video.py
- Follow the prompts to select images, audio file, and set FPS
- The program will automatically generate a morphed video with the selected audio
- The output video will be saved in your Downloads folder
The morphing process:
- Automatically detects feature points in each image
- Creates a triangular mesh using Delaunay triangulation
- Smoothly transforms triangles from one image to the next
- Combines the transformation with cross-dissolve for smoother transitions
- Creates a video with the specified frame rate
- Adds the selected audio track
VS Code users can use the included launch configurations to run and debug the program.