- Notifications
You must be signed in to change notification settings - Fork0
Turning .jpeg , .png and .mp4, .gif files to ASCII art
License
NotificationsYou must be signed in to change notification settings
Mirtia/ASCII-Art
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
"YOUR_PATH_HERE/ascii-art.exe" --input=input/osaka.jpg --font=fonts/Consolas.ttf --output=output/osaka.jpg --background=#edcaeb --color=#db6bbc"YOUR_PATH_HERE/ascii-art.exe" --input=input/707.gif --font=fonts/Consolas.ttf --output=output/707.mp4 --color=#e63959"YOUR_PATH_HERE/ascii-art.exe" --input=input/smile-pepe.gif --font=fonts/Consolas.ttf --output=output/smile-pepe.mp4"YOUR_PATH_HERE/ascii-art.exe" --input=input/lain.png --font=fonts/Consolas.ttf --output=output/lain.png --background=#ede6d1 --color=#3d1d38
![]() | ![]() |
![]() | ![]() |
To use freetype you have to download the following libraries. I usedvcpkg for package management.
# VCPKG_DEFAULT_TRIPLETvckpg install harfbuzz vckpg install freetype
Then, when configuring the build files you have to enableWITH_FREETYPE
option. I also had to modify theCMakeLists.txt
in OpenCV contributions/modules/freetype/CMakeLists.txt
to make it work.
Moreover, there were a ton of missing .dll files such aslibopenh264 and there was noGIF file support from the standard OpenCV library. So, I just usedffmpeg as a command line tool to convert resulting.mp4 to.gif.