Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在 tensorflow android 演示中使用前置摄像头进行人脸检测。我设法将相机切换到前面,但检测到的边界框绘制不正确。具体来说,我认为它们相对于屏幕是倒置的。有人可以让我知道在哪里更改相机的方向/更改其他配置以正确绘制检测吗?
谢谢!
我只是在猜测,但是您是否将方框图坐标从左到右翻转过来?前置摄像头将图像翻转为镜像。这可以防止人们因为习惯于照镜子而不是直视而感到困惑。要在某人的脸上显示边界框,绘图坐标也必须向后翻转。