Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Static Background Replacement / Green Screen #168

Open
lmangani opened this issue May 21, 2020 · 5 comments
Open

Static Background Replacement / Green Screen #168

lmangani opened this issue May 21, 2020 · 5 comments
Labels
enhancement New feature or request FRONTEND UI Related Issue help wanted Extra attention is needed

Comments

@lmangani
Copy link
Collaborator

Idea for a potentially valid technique to replace a static background with a green-screen effect.

https://fabiofranchino.com/blog/implement-the-background-subtraction-with-canvas-and-js/

By setting all matching pixels from the static background to transparent (alpha 0) it should produce a cheap green-screen effect.

Perhaps something @benkenobi007 could be interested into? ;)

@lmangani lmangani added enhancement New feature or request help wanted Extra attention is needed FRONTEND UI Related Issue labels May 21, 2020
@Dletta
Copy link
Collaborator

Dletta commented May 21, 2020

This will work until lighting conditions from the original frame change too much, ;)

@lmangani
Copy link
Collaborator Author

@Dletta clearly its for INTENTIONAL green-scerening not on the move haha - for that you need a real green screen and it would work just as good - the loop actually blurs the $h!t out of the pixel groups to make a loose match possible - same technique used by zoom & co afaik ;)

@Dletta
Copy link
Collaborator

Dletta commented May 21, 2020

I sit by a window, I volunteer as tester, ;)

@holtwick
Copy link

holtwick commented Jun 8, 2020

I wrote a similar video conferencing tool https://brie.fi/ng

Maybe you'll find this Tensorflow based background blurring useful. It should be easy to adopt for replacing background also. https://github.com/holtwick/briefing/blob/master/app/src/logic/blur.js

@QVDev
Copy link
Collaborator

QVDev commented Jun 8, 2020

@holtwick Nice will have a look @lmangani have check there as well :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request FRONTEND UI Related Issue help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants