如何根据 exif 数据对两部相同智能手机上的照片进行排序?

如何根据 exif 数据对两部相同智能手机上的照片进行排序?

问题描述:

我使用 Dropbox 将照片从我的智能手机同步到我的笔记本电脑。我过去曾使用过一个名为 jhead 的命令行实用程序,根据 JPEG exif 元数据自动对照片进行排序和重命名。

例如这个脚本:

#!/bin/bash
jhead -model GT-I9100 -n%Y/%m-%B/User1-%Y-%m-%d_%H:%M:%S *.jpg 2> /dev/null
jhead -model P999 -n%Y/%m-%B/User2-%Y-%m-%d_%H:%M:%S *.jpg 2> /dev/null

将根据 JPEG exif 数据重命名每张图片。所有与相机型号 GT-I9100 匹配的照片都将在标题中以“User1”命名,后跟照片拍摄的时间和日期。(即 ./2015/02-February/User1-2015-02-07_16:37:52.jpg),型号 P999 和 User2 也是如此。

不幸的是(或者幸运的是),User1 和 User2 都拥有相同的智能手机,所以我无法再根据相机型号进行排序,因为它们都是 SGH-I747M!

问题:

是否有其他方法可以使用 exif 元数据或其他方式来区分同一品牌和型号的智能手机?

我对以下 exif 标签很好奇。也许其中某处会有一个唯一标识符:

exif:MakerNote: 7, 0, 1, 0, 7, 0, 4, 0, 0, 0, 48, 49, 48, 48, 2, 0, 4, 0, 1, 0, 0, 0, 0, 32, 1, 0, 12, 0, 4, 0, 1, 0, 0, 0, 0, 0, 0, 0, 16, 0, 5, 0, 1, 0, 0, 0, 90, 0, 0, 0, 64, 0, 4, 0, 1, 0, 0, 0, 0, 0, 0, 0, 80, 0, 4, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 1, 3, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
exif:UserComment: 65, 83, 67, 73, 73, 0, 0, 0, 0, 0, 0, 0, 232, 3, 0, 0, 53, 0, 0, 0, 15, 0, 0, 0, 0, 0, 52, 18, 120, 86, 52, 18, 120, 86, 52, 18, 120, 86, 52, 18, 0, 0, 0, 0, 0, 0, 3, 0, 96, 0, 38, 59, 49, 0, 232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, 17, 2, 0, 64, 174, 1, 0, 193, 93, 255, 255, 255, 243, 255, 255, 145, 199, 255, 255, 22, 47, 1, 0, 89, 9, 0, 0, 145, 15, 0, 0, 32, 5, 255, 255, 79, 235, 1, 0, 74, 75, 74, 75, 129, 153, 9, 0, 129, 153, 9, 0, 129, 153, 9, 0, 129, 153, 9, 0, 129, 153, 9, 0, 129, 153, 9, 0, 129, 153, 9, 0, 129, 153, 9, 0, 129, 153, 9, 0, 129, 153, 9, 0, 129, 153, 9, 0, 129, 153, 9, 0, 129, 153, 9, 0, 129, 153, 9, 0, 129, 153, 9, 0, 129, 153, 9, 0, 129, 153, 9, 0, 129, 153, 9, 0, 129, 153, 9, 0, 129, 153, 9, 0, 129, 153, 9, 0, 129, 153, 9, 0, 129, 153, 9, 0, 129, 153, 9, 0, 129, 153, 9, 0, 129, 153, 9, 0
signature: f7359044760a12573c150b440ad2537ba848fb4ee795e51a36b1786d368421b9

相关内容