-
Notifications
You must be signed in to change notification settings - Fork 0
/
ExamplePhotos.py
52 lines (29 loc) · 1.1 KB
/
ExamplePhotos.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# -*- coding: utf-8 -*-
"""
Created on Wed May 3 11:53:00 2023
@author: joao_
"""
import matplotlib.pyplot as plt
import matplotlib.image as mpimg
#%%
# This code serves simply to vizualize some of the images (examples)
imgVizualize2 = mpimg.imread('faces/an2i/an2i_left_angry_open_2.pgm')
plt.imshow(imgVizualize2, cmap='gray')
plt.axis('off') # Turn off the axis labels
plt.show()
imgVizualize = mpimg.imread('faces/an2i/at33_left_neutral_sunglasses_2.pgm')
plt.imshow(imgVizualize, cmap='gray')
plt.axis('off') # Turn off the axis labels
plt.show()
imgVizualize4 = mpimg.imread('faces/an2i/an2i_left_angry_open_4.pgm')
plt.imshow(imgVizualize4, cmap='gray')
plt.axis('off') # Turn off the axis labels
plt.show()
imgVizualize5 = mpimg.imread('faces/an2i/an2i_up_angry_open_4.pgm')
plt.imshow(imgVizualize5, cmap='gray')
plt.axis('off') # Turn off the axis labels
plt.show()
imgVizualize6 = mpimg.imread('faces/an2i/an2i_straight_sad_open_4.pgm')
plt.imshow(imgVizualize6, cmap='gray')
plt.axis('off') # Turn off the axis labels
plt.show()