Android ExifInterface水平翻转未定义

时间:2017-05-24 19:33:29

标签: android android-camera exif

使用Google Vision Library(CameraSource)拍照后,我使用

从Exif数据中获取方向
int orientationValue = exifInterface.getAttributeInt(ExifInterface.TAG_ORIENTATION, ExifInterface.ORIENTATION_NORMAL);

这是在拍摄图像时让我旋转相机然而我无法获得有关使用哪个相机(正面或背面)的信息。 ExifInterface的日志中有一条警告,说明如下:

W/ExifInterface: Skip the tag entry since tag number is not defined: 2

然而,ExifInterface将2定义为public static final int ORIENTATION_FLIP_HORIZONTAL = 2;

为什么没有解析这些信息?我需要使用不同的标签来获取此信息吗?在图库中查看时,图像也不会水平翻转。

0 个答案:

没有答案