Home >Backend Development >Python Tutorial >python通过exifread模块获得图片exif信息的方法

python通过exifread模块获得图片exif信息的方法

WBOY
WBOYOriginal
2016-06-10 15:17:123097browse

本文实例讲述了python通过exifread模块获得图片exif信息的方法。分享给大家供大家参考。具体分析如下:

python可通过exifread模块获得图片exif信息
exifread模块的下载地址:https://pypi.python.org/pypi/ExifRead
也可以通过pip进行安装:pip install exifread

import exifread
# Open image file for reading (binary mode)
f = open(path_name, 'rb')
# Return Exif tags
tags = exifread.process_file(f)

希望本文所述对大家的Python程序设计有所帮助。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn