如何在旋转图像上使用 openbr 执行人脸识别?

How can I perform face recognition with openbr on a rotated image?

使用openbr如

br -algorithm FaceRecognition -compare pictures.gal photo csv

只要照片中的人脸没有旋转,我就能得到一致的结果。我似乎无法让 openbr 识别旋转 90 度的脸。 openbr 是否有某种补偿旋转照片的方法?我考虑过自己用 imagemagick 旋转照片,但我认为不可能知道旋转的方向。

如果您的图像中仍然存在 EXIF 信息,您可以让 ImageMagick 自动垂直旋转图像,如下所示:

convert image.jpg -auto-orient result.jpg