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

Give the background blur option more realistic bokeh #81

Open
Gamesnic opened this issue Mar 19, 2023 · 6 comments
Open

Give the background blur option more realistic bokeh #81

Gamesnic opened this issue Mar 19, 2023 · 6 comments
Labels
enhancement New feature or request

Comments

@Gamesnic
Copy link

Basically, if you've already seen it - a camera has a transition between the unfocused and focused stages. while the focus point is the most sharp, the sharpness falls off into the back and front. In your awesome implementation there's a single "zone" which is sharp, it'd be epic if you could change that.
Also, what about an option to set the focus point onto the face?

image

@SirLynix
Copy link
Owner

This seems like a great idea, however what you're talking about is the focus point of the Kinect, I'm not sure I can parameter it on any version. See here for Azure Kinect: https://stackoverflow.com/questions/58304865/how-to-change-focus-of-azure-kinect-azure-kinect-sensor-sdk

This is a physical setting of the Kinect

@Gamesnic
Copy link
Author

Oh no no, not the physical focus point, I mean the virtual one. Basically so that the filter keeps the depth layer of the face sharp and blurs everything in the front and back.
As if it was autofocus, but in software. We're simulating this bokeh afterall.

@SirLynix
Copy link
Owner

Oh I see. That should be quite close to setting the filter type to "body" instead of "depth"? Except you'd like to blur everything except what's near the mean depth of the user face?

@Gamesnic
Copy link
Author

Yeah, basically. Maybe you could make it detect exclusively the head?
A real camera with smart AF normally uses the head as basepoint, that's why I was asking.
That together with realistic blur falling off behind and front would make it look quite like a professional DSLR.

@SirLynix
Copy link
Owner

This seems like an interesting idea, I'm thinking about adding a "face" filter type which would allow for this kind of effect.

@SirLynix SirLynix added the enhancement New feature or request label Mar 20, 2023
@Gamesnic
Copy link
Author

For sure, that sounds good. If you need help with how depth of field works, just ask.

@Gamesnic Gamesnic changed the title Give the background blur option Give the background blur option more realistic bokeh Mar 20, 2023
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