Skip to content

ajaimaxwel-pmd/python_wave_generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation


Script to create wave effect from an image

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.

How it Works

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.

Getting Started

Prerequisites

  • Python 3.x
  • OpenCV (pip install opencv-python)

How to Run

  1. Clone the repository:

    git clone https://github.com/ajaimaxwel-pmd/python_wave_generator
  2. Navigate to the directory:

    cd python_wave_generator
  3. Run the program:

    python3 main.py

Input and Output

  • Input Image: lake.jpg (Replace with your preferred image) lake.jpg
  • Output Video: output_video.mp4 (The generated video with the wave effect applied) output_video_to-gif.gif

Acknowledgment

Special thanks to the photographer, Quang Nguyen Vinh, for the beautiful image that was used in this project.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages