fix color line detect demo

This commit is contained in:
jario-jin 2023-08-08 19:51:28 +08:00
parent a5f5afca32
commit 2be07be295
1 changed files with 3 additions and 1 deletions

View File

@ -47,7 +47,9 @@ int main(int argc, char *argv[])
// 打印每个 color_line 的中心位置cxcy的值域为[0, 1]以及cxcy的像素值
printf(" Color Line detect Center (cx, cy) = (%.3f, %.3f), in Pixels = ((%d, %d))\n",
tgts.targets[i].cx, tgts.targets[i].cy);
tgts.targets[i].cx, tgts.targets[i].cy,
int(tgts.targets[i].cx * tgts.width),
int(tgts.targets[i].cy * tgts.height));
// 打印每个color_line的x_方向反正切值跟相机视场相关
printf(" Color Line detect Line-of-sight (ax, ay) = (%.3f, %.3f)\n", tgts.targets[i].los_ax, tgts.targets[i].los_ay);