ASCII Art Webcam Effect for Linux
Hi everybody, english is not my first language and i'm still learning, sorry for grammar and spelling mistakes.
Like everybody else in this COVID 19 time, in my work we are practicing social distancing, so, all meetings are online. One coworker was using a background filter in Teams and i want to do the same, unfortunately, filters are not available for linux at this moment, so, i implement my own filter (for fun).
While researching how to implement filters, i found this excellent post:
[https://elder.dev/posts/open-source-virtual-background/](https://elder.dev/posts/open-source-virtual-background/)
In this post they use docker whit a model called BodyPix for generating a mask of the background, i did not like this. I remember a model called Deeplab, this model implement semantic image segmentation
[https://github.com/tensorflow/models/tree/master/research/deeplab](https://github.com/tensorflow/models/tree/master/research/deeplab)
So, i get a trained model form the model zoo
[https://github.com/tensorflow/models/blob/master/research/deeplab/g3doc/model\_zoo.md](https://github.com/tensorflow/models/blob/master/research/deeplab/g3doc/model_zoo.md)
I implement it and!!!!
[Input Image](https://preview.redd.it/o84z4fl168u41.png?width=320&format=png&auto=webp&s=8f479a8610aba5cd4ab52591307a057098cb7f59)
​
[Deeplab v3 inference Mask](https://preview.redd.it/lxprjze368u41.png?width=320&format=png&auto=webp&s=f9cfe804ad652072d26babb80ae0558c9424b607)
Nice! but i find the borders too big for me, so i apply an erode filter
​
[Deeplab v3 inference Mask + erode](https://preview.redd.it/4ilj0xyr68u41.png?width=320&format=png&auto=webp&s=fc6d1b2217e1b2294987e50851c8ccebe78b58d6)
Better. Next step is mix the input and the mask
​
[Input + Mask](https://preview.redd.it/h3a0hff678u41.png?width=320&format=png&auto=webp&s=25be4946ab83c20210e96c8eb79d658eb1a51c62)
The result was not perfect (good for the work), the latency was ok whit my nvidia video card.
OK Background removal finished.... What i do now ? well... I love ASCII Art! y and found this cool post:
[https://wshanshan.github.io/python/asciiart/](https://wshanshan.github.io/python/asciiart/)
I implement the ASCII Art transformation function in my code and this is the result:
​
[Result Image](https://preview.redd.it/g0exwg8c88u41.png?width=320&format=png&auto=webp&s=fb7a3b169a004cfeb24909446fc33106c6a4290d)
Pretty cool.
So, next step is make this a make this behave like a Webcam, for that, we use pyfakewebcam and v4l2loopback (like in [elder.dev](https://elder.dev) post) and we get this:
[Result in movement](https://reddit.com/link/g5mnfx/video/4ffqnqwg88u41/player)
You can get the source code and install instructions in:
[https://github.com/diegovazquez/ASCIILinuxVirtualWebCam](https://github.com/diegovazquez/ASCIILinuxVirtualWebCam)
Thank you for reading.
https://redd.it/g5mnfx
@r_linux
Hi everybody, english is not my first language and i'm still learning, sorry for grammar and spelling mistakes.
Like everybody else in this COVID 19 time, in my work we are practicing social distancing, so, all meetings are online. One coworker was using a background filter in Teams and i want to do the same, unfortunately, filters are not available for linux at this moment, so, i implement my own filter (for fun).
While researching how to implement filters, i found this excellent post:
[https://elder.dev/posts/open-source-virtual-background/](https://elder.dev/posts/open-source-virtual-background/)
In this post they use docker whit a model called BodyPix for generating a mask of the background, i did not like this. I remember a model called Deeplab, this model implement semantic image segmentation
[https://github.com/tensorflow/models/tree/master/research/deeplab](https://github.com/tensorflow/models/tree/master/research/deeplab)
So, i get a trained model form the model zoo
[https://github.com/tensorflow/models/blob/master/research/deeplab/g3doc/model\_zoo.md](https://github.com/tensorflow/models/blob/master/research/deeplab/g3doc/model_zoo.md)
I implement it and!!!!
[Input Image](https://preview.redd.it/o84z4fl168u41.png?width=320&format=png&auto=webp&s=8f479a8610aba5cd4ab52591307a057098cb7f59)
​
[Deeplab v3 inference Mask](https://preview.redd.it/lxprjze368u41.png?width=320&format=png&auto=webp&s=f9cfe804ad652072d26babb80ae0558c9424b607)
Nice! but i find the borders too big for me, so i apply an erode filter
​
[Deeplab v3 inference Mask + erode](https://preview.redd.it/4ilj0xyr68u41.png?width=320&format=png&auto=webp&s=fc6d1b2217e1b2294987e50851c8ccebe78b58d6)
Better. Next step is mix the input and the mask
​
[Input + Mask](https://preview.redd.it/h3a0hff678u41.png?width=320&format=png&auto=webp&s=25be4946ab83c20210e96c8eb79d658eb1a51c62)
The result was not perfect (good for the work), the latency was ok whit my nvidia video card.
OK Background removal finished.... What i do now ? well... I love ASCII Art! y and found this cool post:
[https://wshanshan.github.io/python/asciiart/](https://wshanshan.github.io/python/asciiart/)
I implement the ASCII Art transformation function in my code and this is the result:
​
[Result Image](https://preview.redd.it/g0exwg8c88u41.png?width=320&format=png&auto=webp&s=fb7a3b169a004cfeb24909446fc33106c6a4290d)
Pretty cool.
So, next step is make this a make this behave like a Webcam, for that, we use pyfakewebcam and v4l2loopback (like in [elder.dev](https://elder.dev) post) and we get this:
[Result in movement](https://reddit.com/link/g5mnfx/video/4ffqnqwg88u41/player)
You can get the source code and install instructions in:
[https://github.com/diegovazquez/ASCIILinuxVirtualWebCam](https://github.com/diegovazquez/ASCIILinuxVirtualWebCam)
Thank you for reading.
https://redd.it/g5mnfx
@r_linux
GitHub
models/research/deeplab at master · tensorflow/models
Models and examples built with TensorFlow. Contribute to tensorflow/models development by creating an account on GitHub.
With Proton and Steam Play, many Windows games now work on Linux!
https://www.protondb.com/
https://redd.it/g5g7i4
@r_linux
https://www.protondb.com/
https://redd.it/g5g7i4
@r_linux
Linux Mint Video Editing Software Powerful as Adobe Premier Pro and After Effects
I really doubt but is there any good video editing software for free to use in Linux specially in Linux Mint? How powerful are those? Are those compatible to Adobe Premier Pro or After Effects? Please recommend me some..
Thanks a lot for helping me.
https://redd.it/g5rs7j
@r_linux
I really doubt but is there any good video editing software for free to use in Linux specially in Linux Mint? How powerful are those? Are those compatible to Adobe Premier Pro or After Effects? Please recommend me some..
Thanks a lot for helping me.
https://redd.it/g5rs7j
@r_linux
reddit
Linux Mint Video Editing Software Powerful as Adobe Premier Pro...
I really doubt but is there any good video editing software for free to use in Linux specially in Linux Mint? How powerful are those? Are those...
What differentiates distros?
I am a seasoned Windows user foraying into the wonderful world of Linux to kill time during this coronavirus lockdown. As a way of getting started , I was surveying thru the various distros available out there. Honestly, the number of options available to choose from makes me go dizzy..
I have been trying to understand exactly differentiates one distro from another. When I see videos introducing distros on youtube, I often find the main focus to be on the look n feel, which I find a little funny to be honest...I am sure theres more to it
The following is what I have gathered so far, but havent been able to find a good way to validate, hence this question to you guys:
Linux models OS like a puzzle set - each module is like a replaceable component. there are several variants for each component. Each distro is a unique combination of these modules.
Is this understanding correct?
https://redd.it/g5stzq
@r_linux
I am a seasoned Windows user foraying into the wonderful world of Linux to kill time during this coronavirus lockdown. As a way of getting started , I was surveying thru the various distros available out there. Honestly, the number of options available to choose from makes me go dizzy..
I have been trying to understand exactly differentiates one distro from another. When I see videos introducing distros on youtube, I often find the main focus to be on the look n feel, which I find a little funny to be honest...I am sure theres more to it
The following is what I have gathered so far, but havent been able to find a good way to validate, hence this question to you guys:
Linux models OS like a puzzle set - each module is like a replaceable component. there are several variants for each component. Each distro is a unique combination of these modules.
Is this understanding correct?
https://redd.it/g5stzq
@r_linux
reddit
What differentiates distros?
I am a seasoned Windows user foraying into the wonderful world of Linux to kill time during this coronavirus lockdown. As a way of getting started...
Time namespaces are in Kernel 5.6 now, here’s the patch
https://lore.kernel.org/linux-api/20191112012724.250792-1-dima@arista.com/
https://redd.it/g5sc1q
@r_linux
https://lore.kernel.org/linux-api/20191112012724.250792-1-dima@arista.com/
https://redd.it/g5sc1q
@r_linux
reddit
Time namespaces are in Kernel 5.6 now, here’s the patch
Posted in r/linux by u/fntlnz • 4 points and 0 comments
Weekly Questions and Hardware Thread - April 22, 2020
Welcome to r/linux! If you're new to Linux or trying to get started this thread is for you. Get help here or as always, check out r/linuxquestions or r/linux4noobs
This megathread is for all your question needs. As we don't allow questions on r/linux outside of this megathread, please consider using r/linuxquestions or r/linux4noobs for the best solution to your problem.
Ask your hardware requests here too or try r/linuxhardware!
https://redd.it/g5udob
@r_linux
Welcome to r/linux! If you're new to Linux or trying to get started this thread is for you. Get help here or as always, check out r/linuxquestions or r/linux4noobs
This megathread is for all your question needs. As we don't allow questions on r/linux outside of this megathread, please consider using r/linuxquestions or r/linux4noobs for the best solution to your problem.
Ask your hardware requests here too or try r/linuxhardware!
https://redd.it/g5udob
@r_linux
reddit
Weekly Questions and Hardware Thread - April 22, 2020
Welcome to r/linux! If you're new to Linux or trying to get started this thread is for you. Get help here or as always, check out r/linuxquestions...
Found: [dvorka/hstr - bash and zsh shell history suggest box - easily view, navigate, search and manage your command history] - I find it very useful
https://github.com/dvorka/hstr
https://redd.it/g5v29k
@r_linux
https://github.com/dvorka/hstr
https://redd.it/g5v29k
@r_linux
GitHub
GitHub - dvorka/hstr: bash and zsh shell history suggest box - easily view, navigate, search and manage your command history.
bash and zsh shell history suggest box - easily view, navigate, search and manage your command history. - dvorka/hstr
NFS export troubles
After doing some reorganisation of disks and replacements of data I had quite some trouble with NFS
Since my desktop is very much intertwined with my servers, it would no longer start.
I've been searching and checking all kind of things for at least an hour when it suddenly became clear I forgot to adjust the /etc/exports file on one of the servers that still had a no longer existing mountpoint in it.
Removed it, did an "exportfs -a" and saw the light again.
I had no idea NFS could crash on this.
https://redd.it/g5x9e1
@r_linux
After doing some reorganisation of disks and replacements of data I had quite some trouble with NFS
Since my desktop is very much intertwined with my servers, it would no longer start.
I've been searching and checking all kind of things for at least an hour when it suddenly became clear I forgot to adjust the /etc/exports file on one of the servers that still had a no longer existing mountpoint in it.
Removed it, did an "exportfs -a" and saw the light again.
I had no idea NFS could crash on this.
https://redd.it/g5x9e1
@r_linux
reddit
NFS export troubles
After doing some reorganisation of disks and replacements of data I had quite some trouble with NFS Since my desktop is very much intertwined...
Linux kernel lockdown, integrity, and confidentiality | mjg59
https://mjg59.dreamwidth.org/55105.html
https://redd.it/g5y3vw
@r_linux
https://mjg59.dreamwidth.org/55105.html
https://redd.it/g5y3vw
@r_linux
reddit
Linux kernel lockdown, integrity, and confidentiality | mjg59
Posted in r/linux by u/nixcraft • 11 points and 0 comments
This stress relief game was a funny way to safely destroy my Windows desktop a decade ago. It works well with Steam Proton, but I was wondering is there is a natve Linux alternative
https://archive.org/details/The_Stress_Game_201711
https://redd.it/g604w6
@r_linux
https://archive.org/details/The_Stress_Game_201711
https://redd.it/g604w6
@r_linux
Internet Archive
Desktop Games (also known as Stress Reducer, Stress Relief, The Stress Game, Desktop Destroyer, Desktop Killer, เกมทำลายหน้าจอ…
zip password = stress(Added password of this zip file, because, without zip and password, archive.org delete this file automatically.)Desktop Games (also known...
Guitar — Git GUI Client [x-post from r/opensource]
https://www.reddit.com/r/opensource/comments/g5y0zu/guitar_git_gui_client/
https://redd.it/g5y29t
@r_linux
https://www.reddit.com/r/opensource/comments/g5y0zu/guitar_git_gui_client/
https://redd.it/g5y29t
@r_linux
reddit
Guitar – Git GUI Client
Posted in r/opensource by u/app4soft • 18 points and 9 comments
Share wifi like in Windows - Linux Wifi Hotspot
In Linux, One problem I faced is sharing wifi (Create hotspot) while connected to a wifi network (with same interface) . In windows, we can share the internet from wifi network that we have connected. But in most Linux desktop environments, we cannot share internet like that even though we can create a hotspot. I meant by simple GUI, not with command line utiles. However, I found a great open source command line until called **create\_ap.** I made a GUI program using Gtk based on that project with some improvements. You can build the software yourself and install it. Here is the [project](https://github.com/lakinduakash/linux-wifi-hotspot). If you found a bug or need improvements add an issue on GitHub. And if you find it interesting don't forget to **star** it.
[https://github.com/lakinduakash/linux-wifi-hotspot](https://github.com/lakinduakash/linux-wifi-hotspot)
​
[Screenshot 1](https://preview.redd.it/c2j6h776xdu41.png?width=810&format=png&auto=webp&s=8e3672ff47977553d89296f035d1f1655b62f763)
https://redd.it/g62sgm
@r_linux
In Linux, One problem I faced is sharing wifi (Create hotspot) while connected to a wifi network (with same interface) . In windows, we can share the internet from wifi network that we have connected. But in most Linux desktop environments, we cannot share internet like that even though we can create a hotspot. I meant by simple GUI, not with command line utiles. However, I found a great open source command line until called **create\_ap.** I made a GUI program using Gtk based on that project with some improvements. You can build the software yourself and install it. Here is the [project](https://github.com/lakinduakash/linux-wifi-hotspot). If you found a bug or need improvements add an issue on GitHub. And if you find it interesting don't forget to **star** it.
[https://github.com/lakinduakash/linux-wifi-hotspot](https://github.com/lakinduakash/linux-wifi-hotspot)
​
[Screenshot 1](https://preview.redd.it/c2j6h776xdu41.png?width=810&format=png&auto=webp&s=8e3672ff47977553d89296f035d1f1655b62f763)
https://redd.it/g62sgm
@r_linux
GitHub
GitHub - lakinduakash/linux-wifi-hotspot: Feature-rich wifi hotspot creator for Linux which provides both GUI and command-line…
Feature-rich wifi hotspot creator for Linux which provides both GUI and command-line interface. It is also able to create a hotspot using the same wifi card which is connected to an AP already ( Si...
What's the status of LXDE and LXQT?
All right, for some background information, there's a bit of confusion around the Lubuntu circles as well as the LXQT scene in general, as the websites for LXQT and LXDE both have been down a week now. Lubuntu is about to release its first LTS version featuring the LXQT environment in place of LXDE, and at the same time there's been a quiet atmosphere because LXQT has slowed down its development. I want the DE to succeed but it looks like something is going on in the background.
https://redd.it/g637dg
@r_linux
All right, for some background information, there's a bit of confusion around the Lubuntu circles as well as the LXQT scene in general, as the websites for LXQT and LXDE both have been down a week now. Lubuntu is about to release its first LTS version featuring the LXQT environment in place of LXDE, and at the same time there's been a quiet atmosphere because LXQT has slowed down its development. I want the DE to succeed but it looks like something is going on in the background.
https://redd.it/g637dg
@r_linux
reddit
What's the status of LXDE and LXQT?
All right, for some background information, there's a bit of confusion around the Lubuntu circles as well as the LXQT scene in general, as the...
Linux 5.6 changelog (a few weeks after the release unfortunately): Wireguard, USB 4, time namespaces, asynchronous Btrfs trimming, Multipath TCP, VirtualBox guest shared folders, boot-time tracing, DMA-BUF heaps
https://kernelnewbies.org/Linux_5.6
https://redd.it/g64fz0
@r_linux
https://kernelnewbies.org/Linux_5.6
https://redd.it/g64fz0
@r_linux
kernelnewbies.org
Linux_5.6 - Linux Kernel Newbies
List of changes and new features merged in the Linux kernel during the 5.6 development cycle
Keyboard backlight service
I've created a simple application which turns off the backlight of the keyboard when it is not in use. I'ts designed for thinkpads but probably will work with other devices too.
[https://github.com/alexmohr/keyboard-backlight](https://github.com/alexmohr/keyboard-backlight)
(If this isn't the correct subreddit for things like that please comment the right one <3 )
https://redd.it/g62kzz
@r_linux
I've created a simple application which turns off the backlight of the keyboard when it is not in use. I'ts designed for thinkpads but probably will work with other devices too.
[https://github.com/alexmohr/keyboard-backlight](https://github.com/alexmohr/keyboard-backlight)
(If this isn't the correct subreddit for things like that please comment the right one <3 )
https://redd.it/g62kzz
@r_linux
GitHub
alexmohr/keyboard-backlight
Controls the keyboard backlight of thinkpads to conserve power by turning keyboard backlight off when not in use - alexmohr/keyboard-backlight
Just got a punch in the stomach from this interviewer
Sorry guys, maybe this is not the right place but I'd to share this particular moment of my day and seek advise.
I had this interview with this company that provides consultancy in Agile, DevOps, CI/CD, Cloud Adoption, Modern Application Development, Application Modernization, Next Generation IT Operations and Site Reliability Engineering and much more.
He asked me what I know and I am currently doing: I have a Service Desk job and really want to move forward, follow my passion and come back to UNIX world. I just started this Linux and Git Specialization course via Cousera and will try RHCSA afterwards (I already have a Redhat background). He answered this type of job is obsolete. Linux System Administrator tends to disappear.
I mean, I took a look at his CV and wow he probably knows what he is talking about. Anyway, I just wanted to share my frustration.
Have a great day everyone and keep safe.
https://redd.it/g659ie
@r_linux
Sorry guys, maybe this is not the right place but I'd to share this particular moment of my day and seek advise.
I had this interview with this company that provides consultancy in Agile, DevOps, CI/CD, Cloud Adoption, Modern Application Development, Application Modernization, Next Generation IT Operations and Site Reliability Engineering and much more.
He asked me what I know and I am currently doing: I have a Service Desk job and really want to move forward, follow my passion and come back to UNIX world. I just started this Linux and Git Specialization course via Cousera and will try RHCSA afterwards (I already have a Redhat background). He answered this type of job is obsolete. Linux System Administrator tends to disappear.
I mean, I took a look at his CV and wow he probably knows what he is talking about. Anyway, I just wanted to share my frustration.
Have a great day everyone and keep safe.
https://redd.it/g659ie
@r_linux
reddit
Just got a punch in the stomach from this interviewer
Sorry guys, maybe this is not the right place but I'd to share this particular moment of my day and seek advise. I had this interview with this...