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:

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

So, i get a trained model form the model zoo

I implement it and!!!!

Input Image

Deeplab v3 inference Mask

Nice! but i find the borders too big for me, so i apply an erode filter

Deeplab v3 inference Mask + erode

Better. Next step is mix the input and the mask

Input + Mask

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:

I implement the ASCII Art transformation function in my code and this is the result:

Result Image

Pretty cool.

So, next step is make this a make this behave like a Webcam, for that, we use pyfakewebcam and v4l2loopback (like in post) and we get this:

Result in movement

You can get the source code and install instructions in:

Thank you for reading.

submitted by /u/dhvazquez
[link] [comments]
from Linux, GNU/Linux, free software…

How io_uring and eBPF Will Revolutionize Programming in Linux

How io_uring and eBPF Will Revolutionize Programming in Linux
(read in full at The New Stack)

Covers how io_uring and eBPF work, and how they will impact async application development, using impact on the NoSQL database Scylla as an example.

submitted by /u/PeterCorless
[link] [comments]
from Linux, GNU/Linux, free software…

Germany, France and UK urge transparency from China over coronavirus outbreak

German Chancellor Angela Merkel on Monday urged China to be as transparent as possible about the coronavirus outbreak, as Beijing faces mounting pressure over its management of the crisis.   

Critics have accused China of downplaying the scale and scope of the outbreak when it first emerged late last year, while conspiracy theories have swirled in the US the virus could have been leaked from a lab. 

Angela Merkel
Angela Merkel. Photo: European People’s Party.

Merkel urged for more information about the early days of the outbreak, which originated in the central Chinese city of Wuhan. 

“I believe the more transparent China is about the origin story of the virus, the better it is for everyone in the world in order to learn from it,” Merkel told reporters in Berlin Monday.

Chinese scientists say the virus was likely first transmitted to humans at a wet market where wild animals were sold. 

Unproven theories that the virus came from a maximum-security virology lab in Wuhan have been raised by US officials, including Secretary of State Mike Pompeo who has said an investigation was under way into how the virus “got out into the world”.

The Wuhan Institute of Virology has strongly rejected claims it could be the source of the outbreak, calling it “impossible”.

Chinese authorities have been accused of initially downplaying the outbreak and last week authorities in Wuhan admitted mistakes in counting their death toll and revised the figure up by 50 percent.

Emmanuel Macron
Emmanuel Macron. Photo: LeWebb, via Flickr.

French President Emmanuel Macron last week told the Financial Times it would be “naive” to think China had handled the pandemic well, adding: “There are clearly things that have happened that we don’t know about.”

In Britain, Foreign Secretary Dominic Raab said China will face “hard questions” about the coronavirus outbreak, namely “how it came about and how it couldn’t have been stopped earlier”. 

Australia meanwhile has called for an independent investigation into the global response to the pandemic, including the World Health Organization’s handling of the crisis.

Its foreign minister has said the country would “insist” on a review that would probe, in part, China’s response to the outbreak.

from Hong Kong Free Press HKFP

Affordable sub-6 GHz 5G phones to hit market in 2H20

China-based handset makers have been keen on developing 5G phones supporting sub-6GHz technology, with prospects to see some brands roll out 5G models priced below CNY3,000 (US$424) in the second half of 2020, according to industry observers.

from DIGITIMES: IT news from Asia