Skip to content
Snippets Groups Projects
Commit 9c22311e authored by Jennifer Lorena Ortega Aguilar's avatar Jennifer Lorena Ortega Aguilar
Browse files

Inicio proyecto ciencia de datos

parent fe769acb
No related branches found
No related tags found
No related merge requests found
%% Cell type:markdown id: tags:
# Data Analysis with images from Mars
## Nombres: Gerardo Semprúm, Carla Gomez, Jennifer Ortega.
%% Cell type:code id: tags:
``` python
from PIL import Image
from PIL.ExifTags import TAGS
```
%% Cell type:code id: tags:
``` python
imagename = "Data/Mars.png"
# read the image data using PIL
image = Image.open(imagename)
```
%% Cell type:code id: tags:
``` python
exifdata = image.getexif()
```
%% Cell type:code id: tags:
``` python
for tag_id in exifdata:
tag = TAGS.get(tag_id, tag_id)
data = exifdata.get(tag_id)
# decode bytes
if isinstance(data, bytes):
data = data.decode()
print(f"{tag:25}: {data}")
print('Hola')
```
%% Cell type:code id: tags:
``` python
```
......
This diff is collapsed.
Data/Mars.png

3.12 MiB

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment