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

RetinaFace计算得到的矩形框位置错误 #2

Closed
BenjaminLiu1003 opened this issue Mar 14, 2020 · 1 comment
Closed

RetinaFace计算得到的矩形框位置错误 #2

BenjaminLiu1003 opened this issue Mar 14, 2020 · 1 comment

Comments

@BenjaminLiu1003
Copy link

nnie_face_api.c中的结算人脸矩形框位置错误,应该以15为间隔
`
for(int i = 0; i < results->len; i ++)
{
anchor_t res = (anchor_t )list_at(results, i)->val;
printf("result rect: %d, %f, %f, %f, %f\n", i ,res.finalbox.x1, res.finalbox.y1, res.finalbox.x2, res.finalbox.y2);
as32ResultDet[i
5 + 0] = res.finalbox.x1;
as32ResultDet[i
5 + 1] = res.finalbox.x1;
as32ResultDet[i5 + 2] = res.finalbox.y1;
as32ResultDet[i
5 + 3] = res.finalbox.x2;
as32ResultDet[i*5 + 4] = res.finalbox.y2;

    for (int j = 0; j < LANDMARKS; ++j) {
        as32ResultDet[i*5 + j * 2 + 5] = res.pts[j].x;
        as32ResultDet[i*5 + j * 2 + 6] = res.pts[j].y;
        printf("result lds: %d, %f, %f\n", j + 1 ,res.pts[j].x, res.pts[j].y);
    }
}

`

@hanson-young
Copy link
Owner

OK,这是个错误,在调试的时候主要关注了results里面的数据,没检查这个,感谢指正

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

2 participants