1
jjplay Jun 24, 2013
我用ACDsee 打开一些本事是横着人像的图片 也会自动旋转,很智能 难道是通过openCV人脸识别 然后旋转? 不解,求答案
|
4
timonwong Jun 24, 2013 查看一下EXIF信息,看看有没有 Orientation
|
5
ayang23 OP @timonwong 果然这里有情况 Mac的预览程序详情显示 方向 6(逆时针旋转90℃);ImageMagick identify 结果:exif:Orientation: 6 。看来得改缩略图算法,搜了一下,参考:
http://stackoverflow.com/questions/1606587/how-to-use-pil-to-resize-and-apply-rotation-exif-information-to-the-file?rq=1 http://stackoverflow.com/questions/4029353/how-can-i-restore-exif-data-after-resizing-an-image-with-pil?rq=1 |