Linux - Reddit – Telegram
Linux - Reddit
733 subscribers
4.14K photos
207 videos
39.6K links
Stay up-to-date with everything Linux!
Content directly fetched from the subreddit just for you.

Powered by : @r_channels
Download Telegram
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
With Proton and Steam Play, many Windows games now work on 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
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
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
Timeshift not enough disk space How can i fixed it please.
https://redd.it/g5wodx
@r_linux
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
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
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
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
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