Commit df5b27e1 authored by Jennifer Lorena Ortega Aguilar's avatar Jennifer Lorena Ortega Aguilar
Browse files

avance

parent 9c22311e
%% 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.
This diff is collapsed.
Data/Mars.png

3.12 MB | W: | H:

Data_Mars/Mars7.png

3.15 MB | W: | H:

Data/Mars.png
Data_Mars/Mars7.png
Data/Mars.png
Data_Mars/Mars7.png
  • 2-up
  • Swipe
  • Onion skin
# Proyecto_Datos
This diff is collapsed.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment