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

lmk smooth 问题? #13

Open
Dian-Yi opened this issue Sep 28, 2020 · 1 comment
Open

lmk smooth 问题? #13

Dian-Yi opened this issue Sep 28, 2020 · 1 comment

Comments

@Dian-Yi
Copy link

Dian-Yi commented Sep 28, 2020

使用光流追踪时,人脸速度移动过快,关键的位置会偏移预处的正确位置很多?

@Dian-Yi
Copy link
Author

Dian-Yi commented Sep 29, 2020

我简单研究了下track.py里面的one euro filter算法:

def __call__(self, x, x_prev):
       if x_prev is None:
            return x
        t_e = 1
        a_d = smoothing_factor(t_e, self.d_cutoff)
        dx = (x - x_prev) / t_e
        dx_hat = exponential_smoothing(a_d, dx, self.dx_prev)
        cutoff = self.min_cutoff + self.beta * abs(dx_hat)
        a = smoothing_factor(t_e, cutoff)
        x_hat = exponential_smoothing(a, x, x_prev)
        self.dx_prev = dx_hat
        return x_hat

其中 dx_hat = exponential_smoothing(a_d, dx, self.dx_prev) 中的参数:self.dx_prev每个lmk点都使用的是上一个点的求出来的x_prev?这样做是否正确?

@Dian-Yi Dian-Yi changed the title 光流追踪 是用来平滑lmks 么?好像没有追踪功能? lmk smooth 问题? Sep 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant