gpt4 book ai didi

ios - 图像元数据中的 GPS 值不正确

转载 作者:行者123 更新时间:2023-11-30 12:11:36 25 4
gpt4 key购买 nike

使用 UIImagePickerController 使用设备相机拍照(不是从照片库中选取),然后我尝试检索 GPS 数据。看起来数据正在被写入(尽管网上其他答案说苹果应该将其删除?),但经度从未设置。我尝试了多次,经度总是为 0。

请参阅下面的输出:

"{TIFF}" = {
DateTime = "2017:08:31 18:17:05";
Make = Apple;
Model = "iPhone SE";
Orientation = 6;
ResolutionUnit = 2;
Software = "10.3.3";
XResolution = 72;
YResolution = 72;
};
"PixelWidth" = 4032;
"{Exif}" = {
ApertureValue = "2.275007124536905";
BrightnessValue = "-1.720482836665409";
ColorSpace = 1;
DateTimeDigitized = "2017:08:31 18:17:05";
DateTimeOriginal = "2017:08:31 18:17:05";
ExposureBiasValue = 0;
ExposureMode = 0;
ExposureProgram = 2;
ExposureTime = "0.06666666666666667";
FNumber = "2.2";
Flash = 24;
FocalLenIn35mmFilm = 29;
FocalLength = "4.15";
ISOSpeedRatings = (
500
);
LensMake = Apple;
LensModel = "iPhone SE back camera 4.15mm f/2.2";
LensSpecification = (
"4.15",
"4.15",
"2.2",
"2.2"
);
MeteringMode = 5;
PixelXDimension = 4032;
PixelYDimension = 3024;
SceneType = 1;
SensingMethod = 2;
ShutterSpeedValue = "3.906969875959835";
SubjectArea = (
2015,
1511,
2217,
1330
);
SubsecTimeDigitized = 980;
SubsecTimeOriginal = 980;
WhiteBalance = 0;
};
"PixelHeight" = 3024;
"{GPS}" = {
Altitude = 111;
AltitudeRef = 0;
DateStamp = "2017:08:31";
ImgDirection = 0;
ImgDirectionRef = T;
Latitude = "40.33291333333333";
LatitudeRef = N;
Longitude = 0;
LongitudeRef = W;
Speed = 0;
SpeedRef = K;
TimeStamp = "10:17:03";
};
"{JFIF}" = {
DensityUnit = 0;
JFIFVersion = (
1,
0,
1
);
XDensity = 72;
YDensity = 72;
};
"ProfileName" = "sRGB IEC61966-2.1";
"DPIWidth" = 72;
"DPIHeight" = 72;
"ColorModel" = "RGB";
"Orientation" = 6;
"Depth" = 8;

最佳答案

根据其他answers您必须自己检索位置数据,首先从 CLLocation 检索它。如果您需要将其包含在图像的 EXIF 数据中,则可以 add it你自己。

关于ios - 图像元数据中的 GPS 值不正确,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45990993/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com