Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -101,7 +101,7 @@ def orientacion(patron,w):
|
|
101 |
return mOrientaciones
|
102 |
|
103 |
def representativo(archivo):
|
104 |
-
im = Image.open(archivo)
|
105 |
m,n = im.size
|
106 |
imarray = np.array(im,np.float32)
|
107 |
patron = imarray[1:m-1,1:n-1]# de 256x256 a 254x254
|
|
|
101 |
return mOrientaciones
|
102 |
|
103 |
def representativo(archivo):
|
104 |
+
im = Image.open(archivo).convert('L')
|
105 |
m,n = im.size
|
106 |
imarray = np.array(im,np.float32)
|
107 |
patron = imarray[1:m-1,1:n-1]# de 256x256 a 254x254
|