Skip to content

SanidhyaDighiya/Asciify-Video_Gen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Asciify-Video_Gen

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.

How to run it

  1. Fork the repository and then clone it.
  2. Install dependencies:
    pip install os
    pip install opencv-python
    pip install numpy
    pip install pillow
  1. Keep the video in the data folder that is to be asciified.
  2. Open the terminal and move to the directory where the asciiProject.py file is stored and run 'python asciiProject.py'.
  3. The terminal will display name of each frame which is processing at that time.
  4. After some time your video file will be generated and you can see it in the same directory where our main file is present.

Internal Working

  • 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.

Learnings from this project

  • 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.

Additional task

The additional task was to convert video to frames and after asciifying again merging those frames to generate a video using opencv.

Demo

ascii_final.mp4

References

    https://stackoverflow.com/
    https://forum.opencv.org/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages