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

How can I change with custom image? #13

Closed
mozo78 opened this issue Oct 25, 2021 · 7 comments
Closed

How can I change with custom image? #13

mozo78 opened this issue Oct 25, 2021 · 7 comments
Labels
enhancement New feature or request

Comments

@mozo78
Copy link

mozo78 commented Oct 25, 2021

Hello,
I can't figure out how to change to a custom image. What will be the command and where I should put the image? Can you help me? Thank you :)

@hamidzr
Copy link
Owner

hamidzr commented Oct 27, 2021

Hi, are you talking about the virtual background? Currently there is no user facing flag to pick your own image since I mostly use the backgroud blur or the face tracking feature.
For a no-code solution to what you're asking I'd look in the config file here or just replace the image file in the data directory with whatever you want. Getting the image to resize properly depending on your image size, input and output frames might be tricky.
I'll add this as a feature request.

@hamidzr hamidzr added the enhancement New feature or request label Oct 27, 2021
@hamidzr
Copy link
Owner

hamidzr commented Oct 27, 2021

nvm there is an option that I put in a while back python entry.py bg-swap --help however I do get some frame sizing issues

update the issue I was seeing was due to a corrupted config file

@mozo78
Copy link
Author

mozo78 commented Oct 27, 2021

Hi, are you talking about the virtual background? Currently there is no user facing flag to pick your own image since I mostly use the backgroud blur or the face tracking feature. For a no-code solution to what you're asking I'd look in the config file here or just replace the image file in the data directory with whatever you want. Getting the image to resize properly depending on your image size, input and output frames might be tricky. I'll add this as a feature request.

Thank you. Replacing bg.jpg did the trick. I would love to use the blur option but it's very thin and the suroundings are very visible. Can you make it more opaque?

@hamidzr
Copy link
Owner

hamidzr commented Oct 27, 2021

update the issue I was seeing was due to a corrupted config file

I created an issue for this to track it.

Thank you. Replacing bg.jpg did the trick. I would love to use the blur option but it's very thin and the suroundings are very visible. Can you make it more opaque?

I can look into adding an option to make the bluriness configurable. maybe a --blur-level

@mozo78
Copy link
Author

mozo78 commented Oct 27, 2021

I can look into adding an option to make the bluriness configurable. maybe a --blur-level

This would be great! I'll wait eagerly :)

@hamidzr
Copy link
Owner

hamidzr commented Oct 28, 2021

looks like I already had written that feature as well. entry.py bg-blur --kernel-size 92 no changes needed. the default kernel size is 31 and you can make increase it to get a stronger blur. in general use --help with any of the commands to get more options. let me know if that solves it

@hamidzr hamidzr closed this as completed Oct 28, 2021
@mozo78
Copy link
Author

mozo78 commented Oct 28, 2021

Yes, it's working great! Thank you very much!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants