This script generates a video with a wave effect applied to an input image. The wave effect simulates a rippling motion that intensifies towards the bottom of the image.
The program uses OpenCV to read an input image and creates a video by applying a sinusoidal wave pattern to the image. As the video progresses, the phase of the wave changes, creating a rippling effect.
- Python 3.x
- OpenCV (
pip install opencv-python
)
-
Clone the repository:
git clone https://github.com/ajaimaxwel-pmd/python_wave_generator
-
Navigate to the directory:
cd python_wave_generator
-
Run the program:
python3 main.py
- Input Image:
lake.jpg
(Replace with your preferred image) - Output Video:
output_video.mp4
(The generated video with the wave effect applied)
Special thanks to the photographer, Quang Nguyen Vinh, for the beautiful image that was used in this project.