使用元数据检测可能的照片/修改的图像。Python

2024-09-28 01:27:54 发布

您现在位置:Python中文网/ 问答频道 /正文

我目前正在浏览http://imageedited.com/网站,它完全符合我在免费版本中的要求。你知道吗

是否有人知道如何做到这一点,或是开源软件是可用的一半。你知道吗

判断一个图像是经过照片处理还是编辑的。有三类技术。元数据、元数据有效性和像素级别。我们的图像编辑工具只检查基本的元数据。你知道吗

import PIL.Image
import exifread

img = PIL.Image.open('hashed image/POST_F240445_23_21_R.jpg')
exif_data = img._getexif()
f = open('hashed image/POST_F240445_23_21_R.jpg', 'rb')
tags = exifread.process_file(f)

print exif_data, tags

Output: {274: 1} {'Image Orientation': (0x0112) Short=Horizontal (normal) @ 18}

我在提取信息,照片可能是从哪个设备拍的。你知道吗


Tags: 数据imageimportimgdatapilopenpost

热门问题