commit 7fad3b03f9bdcc6485baefde642e66aa6e1053e2 Author: The_miro Date: Thu Mar 26 19:15:28 2026 +0100 created repo diff --git a/ascii-img.txt b/ascii-img.txt new file mode 100644 index 0000000..1f983af --- /dev/null +++ b/ascii-img.txt @@ -0,0 +1,60 @@ +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%%%%%%%%%% +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%%#########*###%%@@@@@@@@@@@@##%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%##########################*****#**# +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%#****+********++**###%@@@@@@@@@@@@%#############################************************************************ +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%#**+++**###*******+++#%%%@@@@@@@@@@%*###########################************************************************* +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%###*+++**##*******++++*###%%@@@@@@@@%#############################************************************************ +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#***++++*******+++++++++**##%@@@@@@@@%*###########################************************************************* +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%%@@@%%%#*+++++++**#********+++++++*#%@@@@@@@@@############################************************************************* +%%%%%%%%%%%%%%%%%%%@@@@@@@@@@@@@@%%%@@@@@%#***+++++++++++++++++++++++++*##%@@@@%%@@*##########################************************************************## +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%*++++++++++====++++===+++++++*##@@@@%%@@*##########################***********************************************##* +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#+++++++++++==++++*+===++++==+##%@@@%%@@*#########################************************************************### +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%#*++*******+++**##*++***++++*#@@@@%%@@*#########################**********************************************##### +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%#**+*****+++++**###*++*#%*+**#@@@@@%%@@*#########################*********************************************###### +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%#*##*#**++==++*###***#*#%#**#@@@@@@%%@@*##########################*****************************************######### +@@@@@@@@@@@@@@@@@@@@@@%%%@@@@@@@@@@@@@@@@@@@@%**##*++++=+%#+=====#*+*%#*%@@@@@@%%@@*###########################***************************************########## +@@@@@@@@@@@@@@@@@@@@%+-=*#%@%%@%@@@@@@@@@@@@@@@@@#*+++++#*+=++==++#**@@%@@@@@@@%%@@*###########################*********************************************#### +@@@@@@@@@@@@@%%%#*++==++*#%*+*%%@@@@@@@@@@@@@@@@@%*++++++===+*+=+==+#@@@@@@@@@@%%@@###########################***************************+**++++++++++****++++++ +@@@@@@@@%%%##***++=--=+=**++++=%@@@@@@@@@@@@@@@@@@##*+++#*+=---*==-=#%@%@@@@@@@%%@@*#####%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#+++++++++++++++++++++++++++++ +@%@@@%%%#+***+====---==+**+=:--#@@@@@@@@@@@@@@@@*+++++*%#*+====*++++*+*###%%%@@%@@@####%@@%%%%%%%%%%%%%%%%%%%%%%###############***++++++++++++++++++++++++++++++ +%%@@%##*+**+=---------===+-:::-#@@@@@@@@@@@%*##*===+##%%*+=====+*#++++#%###****##%%%%%%%*+**++++++++++++++++++++++++*****+++=====-=+++++++++++++++++++++++++++++ +%%%#**+=**+=----::------==-::--#@@@@@@@%%@%+======+**#@#*+====++##+%@%%#****##%%@@@@@%%%*#%%%#####%%%%%%%%%%%%%%%%%%#**+++=======-=++++++++++++++++++++++++++++= +%#**+==++==-:::::--:------=-::+@@@@@@%###***++==-==-=%%*+=======#**@%#**###%%%%@@@@@@@@@*%@@@%%%%%%%%%%%%@@@@%@%*%@@%%*++==========+++++++++++++++++++++++++++++ +##*=--++==-::::::-::::------+*#%@@@%##@@@%%####*++=-##*+===-===+#*+#*#%%@@@@%%%%%%%@@@@@*#@@@%%%%%%%%%%%%%%%%%%*%@@@@@%***+==+==+====+++++++++++++++++++++++++++ +*+-:-=*=---::::::-:::::-::-+*#%@@%*#@@@%%%%%##***++#%#*+++=+++=+#*+*%@@@@@@@@@@@@@@@@@@@*#@@%%%%%@@@@@@@@@@@@@#%@%%#**++++++++=========++++++++++=======++++++++ +=::-=*=---::::::--::::::-=+***#%*+#@@@@@%%%##***##%@%#*++=++***#%*+@@%%%%%%%%@@@@@@%%%@%*#@@@@@@@@@@@@@@@@@%#****++==================-===++===================== +:::-+=------::::--:::::-==++*##*#%@@@@@%%###%%%%%%@%#***++=*+***#%*###**++++**#%%%@@@@@%+#@@%%%%%%%%%%%%%%%#******++++++++++++++++=========++=================== +::-==----------::::::::--=**###%@%%%%%%%%%%%%%%%%@@###****+#*%#####+=*##%%##****%@@@@@@###*++++++++++++++++====+++========-----------------==+================== +:-===---::=%@@@@%#*+++==+*#**%%%%%%@@%%%%%%%%@@%%#%#*+++==+++**#***#++++#@@@%@%%%%@@@@@##*--------------=======++===========================+===============++** +--==--::=#@@@@@@@@%@@@@@@@%@@@@%%%@@##%%%@@@%@%##**++==+=+++****+--#****+*####%%%%%%@@@#*++++++++++++++=++++++++==================++++++++***++=========++*#@@@@ +--=--:-*%%%%%%%%%++****#########+*##+*##**#######***++++++++****+=+**++++********###%@%#+===========================================++++++++++*+++=====+*@@@@@@% +-=--:=##+=+*****=-==-==++++**+*+=**#+=+++++++=============+++****#*#*+*****#########%%#*+=======================================++++++++++****+++========++++=== +=--::*+---======-------===+*==*==+****+====++====---------=+===+==+=+******#########%#**+-==================================++++++++++**+++++===---------------- +=-:.:=::....:::::---:------==+*===+*+*#**++++=---:::::----++@=-==-===********####**#****=-=================================+++++++++++============----==-=------ +-:...-::.....::::.:::-::---=-+=---+*==+*#+=+=-=--:::::-----**---=--=-+***********+#*=+++=--========================================++=--===-----------------=--= +:... .:.....:::.....---=====:-::--+=---=++++=*#------===---=:------==+*******++++*@*=*##************************++++++++++++++****#+------------------=--==----- +...........:........--===--:::------::-=++==-**---==----:---:::----===+*++++++***%@*=*######################***************#####%#*-------=-----------==-------- +....................:--::-:-------::::-*#+------::::::::::--:::-:----=+====++***%@@*=*############################*********#####*=-=------------------===------- +....................--:::::--------::-+**-----:::::::::::::::::------==-==++****#@@*-+#############%%%%%%%%%%%%%%%###**********+--=--=============-----=====---- +......... ........:=--::-----------:=*+------:::::::::::::::::---=-:==+++**####*@@#=+#*############################**********++++++++++==============---=++==-- +........ .:::-:...--::---==---------=+--:::::::::::::::::::::::----:=+++**###%#*@@#++*=++++++++++++++++++++++++++++++++++++==+++=============-----=====--=+===- +..........-=-----.:-:-------=======--==--:::-:::::::::::::::::::-:--:=+++**##%%#*@@#=+=----------------------------------------------------------------==------- +.......-::--------::------===++====--=-::::-::..::::::::--:::::--::::=++*++*#%%#+@@#-=-----------------=================--=--------------------------:::----::-- +......--:::--------:---===++++++++==-=:::--=-----------::::::----:---+*****+*%%#+@@#-=---------------------------------------------------:--:-------:::--::--:-- +......::--------------==+++++++++==-===++++========+++++=--:::--::::=*****##**%#+@@#-=----------------------------------------------------------::--:---::::-::- +.... ..::---------==++++++++==+#*=**+==----:--------===+++==------+*****##%#%#+@@#-=-:::::::::::::::::---::----------------------:-::---::::::::::::::::----== +.... ...:::----===++=======#@%**+=------:-::-----------=+*+=-::-*******##%%#+@@#-=-----------------------------------------------------------------------=== +... ......:----==========+*#+=*==------::::::--:---------=+*=::#@@@%%%####%*=@@#-=======================================---=======================--======-- +.. ......:----===========+=-:=+==----:::::::::--:-:-:------=*-+##%%@@@@@@%%#*@@%=--=====================================---=======================--======-- +....... .. .:---=========--==-:-+==---:::::::::::----:-:--:::--++*%%%%%@@@@@@@@@@@@%%*+=-============================================================--======-- +. .::::.... .:---=======-----=======--:::::::::::::::::--::::---=+*%@@@@@@@@@@%%%%%@@@@@%*=-==========================================================------=--- +. .-:::::::.::--=====------+##*+=*###-::::::::::==:==:=-:--:----=**##%@@@@@%%%#****#%%@@@@%*++=========================================================--------- +. :-::::::::----==-------*%%*--*#+++:=--=::::::--:=-:+--+----=*#%%%%%%#%%%##***++**#%%%%%%%%##**+=====================================================--------- +...::-:::::.:------------++++=:=#-::::+==+::::--:::::::::-:::=#%%%##%%##******+++++***#######+*#%%##+==================================================--------- + .::::::::.:-----------====--:*==+=:=++*+::+***=-+***-:+**--**#@@@%*****++++====++++++****++==****#%#=-=================================================------- + .::::::::::------------===-:=+=##+-#+=**-=#*=-:+#*=-:*#=+===++*####==+++=======++++++++++==--+*++++*+----============+===============================--------- +..:::::::...:-======-----=----+=-*#-**:=*+:-**+::-**+:=#*==-:====++**============++++========--=**++++-:-----=---==---==++====---======--=---------------------- +..::::::...:=+++++==+=====+*#+*=-#+-#+:**=::+**---+**-+*=-:.-=-=======-----=================----+=++++-::--------==------=++++======================------------ +:::::::...-========-:::-+#*+==#=+#--****=-****+-****+:=*=--:=:.------::::-------============----====+*=:::::--------------=========================------------: +::::::::.::-::::::+=-:-++=-::-*+++-:---:::---::----::::---::-:::::::::::::------------===--------------::::::::::::-----::---------------------------------:---: +::::::::::-==----:-==---::::::-==-::::::::::::::::::::::..::..::::::::::::::::---------------::--::--:::::::::::::::::::::::::::--=---==-===--=--==----:---=---: +:::::::::------::.:===----::--:-=-::::::::::::::::::::::::.::::::::::::::::-----------------:::-:::-:::::::::::::::::::::::::---:-=---------------=----:-------: diff --git a/exec-cycle.sh b/exec-cycle.sh new file mode 100755 index 0000000..a71fccd --- /dev/null +++ b/exec-cycle.sh @@ -0,0 +1,14 @@ +#/bin/bash + +while true; do + clear + echo "Press any key to capture image" + guvcview &> /dev/null & + read -n 1 + killall guvcview + + ./webcam2ascii.sh + read -n 1 +done + + diff --git a/nohup.out b/nohup.out new file mode 100644 index 0000000..eef3ee0 --- /dev/null +++ b/nohup.out @@ -0,0 +1,53 @@ +V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory +V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory +V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory +V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory +V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory +V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory +V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory +V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory +V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory +ALSA lib pcm.c:2722:(snd_pcm_open_noupdate) [error.pcm] Unknown PCM cards.pcm.rear +ALSA lib pcm.c:2722:(snd_pcm_open_noupdate) [error.pcm] Unknown PCM cards.pcm.center_lfe +ALSA lib pcm.c:2722:(snd_pcm_open_noupdate) [error.pcm] Unknown PCM cards.pcm.side +ALSA lib pcm_route.c:886:(find_matching_chmap) [error.pcm] Found no matching channel map +ALSA lib pcm_route.c:886:(find_matching_chmap) [error.pcm] Found no matching channel map +ALSA lib pcm_route.c:886:(find_matching_chmap) [error.pcm] Found no matching channel map +ALSA lib pcm_route.c:886:(find_matching_chmap) [error.pcm] Found no matching channel map +ALSA lib pcm_oss.c:404:(_snd_pcm_oss_open) [error.] Cannot open device /dev/dsp +ALSA lib pcm_oss.c:404:(_snd_pcm_oss_open) [error.] Cannot open device /dev/dsp +ALSA lib pcm_a52.c:1036:(_snd_pcm_a52_open) [error.] a52 is only for playback +ALSA lib confmisc.c:160:(snd_config_get_card) [error.core] Invalid field card +ALSA lib pcm_usb_stream.c:481:(_snd_pcm_usb_stream_open) [error.] Invalid card 'card' +ALSA lib confmisc.c:160:(snd_config_get_card) [error.core] Invalid field card +ALSA lib pcm_usb_stream.c:481:(_snd_pcm_usb_stream_open) [error.] Invalid card 'card' +GUVCVIEW: version 2.2.1 +control[0]:(unknown - 0x6) 0x980001 'User Controls' +control[12]:(unknown - 0x6) 0x9a0001 'Camera Controls' +GUVCVIEW Caught signal 2 +V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory +V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory +V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory +V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory +V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory +V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory +V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory +V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory +V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory +ALSA lib pcm.c:2722:(snd_pcm_open_noupdate) [error.pcm] Unknown PCM cards.pcm.rear +ALSA lib pcm.c:2722:(snd_pcm_open_noupdate) [error.pcm] Unknown PCM cards.pcm.center_lfe +ALSA lib pcm.c:2722:(snd_pcm_open_noupdate) [error.pcm] Unknown PCM cards.pcm.side +ALSA lib pcm_route.c:886:(find_matching_chmap) [error.pcm] Found no matching channel map +ALSA lib pcm_route.c:886:(find_matching_chmap) [error.pcm] Found no matching channel map +ALSA lib pcm_route.c:886:(find_matching_chmap) [error.pcm] Found no matching channel map +ALSA lib pcm_route.c:886:(find_matching_chmap) [error.pcm] Found no matching channel map +ALSA lib pcm_oss.c:404:(_snd_pcm_oss_open) [error.] Cannot open device /dev/dsp +ALSA lib pcm_oss.c:404:(_snd_pcm_oss_open) [error.] Cannot open device /dev/dsp +ALSA lib pcm_a52.c:1036:(_snd_pcm_a52_open) [error.] a52 is only for playback +ALSA lib confmisc.c:160:(snd_config_get_card) [error.core] Invalid field card +ALSA lib pcm_usb_stream.c:481:(_snd_pcm_usb_stream_open) [error.] Invalid card 'card' +ALSA lib confmisc.c:160:(snd_config_get_card) [error.core] Invalid field card +ALSA lib pcm_usb_stream.c:481:(_snd_pcm_usb_stream_open) [error.] Invalid card 'card' +GUVCVIEW: version 2.2.1 +control[0]:(unknown - 0x6) 0x980001 'User Controls' +control[12]:(unknown - 0x6) 0x9a0001 'Camera Controls' diff --git a/web-cam-shot.jpg b/web-cam-shot.jpg new file mode 100644 index 0000000..2ed5938 Binary files /dev/null and b/web-cam-shot.jpg differ diff --git a/webcam2ascii.sh b/webcam2ascii.sh new file mode 100755 index 0000000..f8e6581 --- /dev/null +++ b/webcam2ascii.sh @@ -0,0 +1,5 @@ +#/bin/bash + +fswebcam -r 640x480 --jpeg 85 -D 1 web-cam-shot.jpg &> /dev/null +ascii-image-converter web-cam-shot.jpg | tee ascii-img.txt +