principle
-
Export each picture of the video -
ASCII conversion for each frame -
Compose the converted ASCII image into video
Library to be installed for Python
pip3 install opencv-python
pip3 install pillow
if __name__ == '__main__': video_path = 'video/heiren.mp4' save_pic_path = 'cache_pic' save_charpic_path = 'cache_char'
video_writter= VideoWriter('video/new_char_video.mp4' ,
source code