File size: 240 Bytes
7b615ae |
1 2 3 4 5 6 7 8 |
import numpy as np
from PIL import Image
path = '/home/pi/Deposito/Projetos/Meus/CertificacaoHuggingFace/fontes/'
path = path + 'DataSet/masks/0cdf5b5d0ce1_01_mask.png'
mask = Image.open(path).convert("L")
print(np.unique(np.array(mask))) |