相关疑难解决方法(0)

iPhone 4相机规格 - 视野/垂直 - 水平角度

有人知道新iPhone4相机的视野值吗?我正在做一些AR应用程序,我想知道后置摄像头的水平和垂直角度.

谢谢!

iphone camera augmented-reality iphone-4

28
推荐指数
2
解决办法
4万
查看次数

修改后的EXIF数据无法正常保存

经过无数次的尝试和筛选每个SO答案+谷歌搜索结果后,让我感到困惑的是,在iOS上使用EXIF是如此令人沮丧.

下面是工作代码及其结果.

[[self stillImageOutput] captureStillImageAsynchronouslyFromConnection:videoConnection
    completionHandler:^(CMSampleBufferRef imageSampleBuffer, NSError *error)
    {
        NSData *imageNSData = [AVCaptureStillImageOutput jpegStillImageNSDataRepresentation:imageSampleBuffer];

        CGImageSourceRef imgSource = CGImageSourceCreateWithData((__bridge_retained CFDataRef)imageNSData, NULL);

        //get all the metadata in the image
        NSDictionary *metadata = (__bridge NSDictionary *)CGImageSourceCopyPropertiesAtIndex(imgSource, 0, NULL);

        NSLog(@"original metadata Info: %@",metadata);

        //make the metadata dictionary mutable so we can add properties to it
        NSMutableDictionary *metadataAsMutable = [metadata mutableCopy];

        NSMutableDictionary *EXIFDictionary = [[metadataAsMutable objectForKey:(NSString *)kCGImagePropertyExifDictionary]mutableCopy];
        NSMutableDictionary *GPSDictionary = [[metadataAsMutable objectForKey:(NSString *)kCGImagePropertyGPSDictionary]mutableCopy];
        NSMutableDictionary *RAWDictionary = [[metadataAsMutable objectForKey:(NSString *)kCGImagePropertyRawDictionary]mutableCopy];

        if(!EXIFDictionary)
            EXIFDictionary = [[NSMutableDictionary dictionary] …
Run Code Online (Sandbox Code Playgroud)

camera exif photo ios

6
推荐指数
1
解决办法
5293
查看次数

标签 统计

camera ×2

augmented-reality ×1

exif ×1

ios ×1

iphone ×1

iphone-4 ×1

photo ×1