This project will convert your .mp4 video file to ascii videos that is each frame will be made of ascii characters. First of all it will scan the frames and convert them to ascii frames which are then merged to create final video.
- Fork the repository and then clone it.
- Install dependencies:
pip install os
pip install opencv-python
pip install numpy
pip install pillow
- Keep the video in the data folder that is to be asciified.
- Open the terminal and move to the directory where the asciiProject.py file is stored and run 'python asciiProject.py'.
- The terminal will display name of each frame which is processing at that time.
- After some time your video file will be generated and you can see it in the same directory where our main file is present.
- Create a temporary folder frame where all frames will be stored.
- Our project is first scanning all the images that are in the video and converting each of them to ascii images and storing them in the folder frame.
- Now it is resizing all the images stored in the frame folder to a particular size appending them to the list imt.
- Then using this list we write an empty variable which was initialised by cv2.VideoWriter() function.
- Understanding of how images and videos work.
- Learnt how to asciify images
- Had a basic understanding of python
- Learnt about how opencv reads images/videos and writes them.
The additional task was to convert video to frames and after asciifying again merging those frames to generate a video using opencv.
ascii_final.mp4
https://stackoverflow.com/
https://forum.opencv.org/