将iPhone的ALAsset返回的图像与计算机上的真实图像进行匹配
我想存储一些有关 iOS 照片的数据,然后在该照片同步到计算机时引用该照片。
但是我不知道如何识别这是同一张照片。 ALAsset
似乎没有给我原始文件名,并且元数据没有提供任何 ID,例如相机的序列号。
有谁知道如何解决这个问题?我可以对照片进行指纹识别,但在 iOS 设备上需要进行大量计算!
到目前为止的想法:
- 以某种方式从 ALAasset 获取文件名
- 以某种方式使用 ALAasset URL,以便我可以在计算机上读取它
- 以某种方式保存与原始文件关联的数据以
- 某种方式保存数据,以便保存的版本包含原始文件名
- 使用时间戳加上一些其他数据(RAW 失败)
- 指纹第一个 Mb 左右
- 找到更好的元数据扫描仪
请注意,raw 更糟糕 - iOS根本没有真正从中提取任何元数据。
I want to store some data about an iOS photo and later on reference that photo when it gets synched to a computer.
However I can't work out how to identify it's the same photo. ALAsset
doesn't seem to give me the original filename, and the metadata doesn't provide any ID such as the sequence number from the camera.
Does anyone know how to get around this? I could fingerprint the photo, but it's a lot of computation to do on an iOS device!
ideas so far:
- somehow get the filename from
ALAasset
- somehow use the
ALAsset
URL in a way that I can read it on the computer - somehow save data associated with the original file that will make its way to the computer
- somehow save data so that the saved version incorporates the original filename
- use the timestamp plus some other data (fails for RAW)
- fingerprint the first Mb or so
- find a better metadata scanner
Note that raw is even worse - the iOS doesn't really extract any metadata from it at all.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你可以使用获取资产的字节。这将给出原始图像。你无法获取文件的名称。如果您找到了其他解决方案,请分享。
问候
安库尔
u can use get bytes of an assest. that will give the orginal image. you cant get the name of the file. if you have found some other solution do share that.
Regards
Ankur