Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -11,6 +11,19 @@ app = FastAPI()
|
|
11 |
with open("som.pkl", "rb") as tf:
|
12 |
som = pickle.load(tf)
|
13 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
# Funci贸n para realizar la predicci贸n de huellas dactilares
|
15 |
def predict_fingerprint(image):
|
16 |
try:
|
|
|
11 |
with open("som.pkl", "rb") as tf:
|
12 |
som = pickle.load(tf)
|
13 |
|
14 |
+
M = np.array([
|
15 |
+
[ 0., -1., -1., -1., -1., 2., -1., -1., -1., 3.],
|
16 |
+
[-1., -1., -1., -1., -1., -1., -1., -1., -1., -1.],
|
17 |
+
[-1., -1., -1., 1., -1., -1., -1., -1., -1., -1.],
|
18 |
+
[ 1., -1., -1., -1., -1., -1., -1., -1., -1., 0.],
|
19 |
+
[-1., -1., -1., -1., 1., -1., -1., -1., -1., -1.],
|
20 |
+
[-1., -1., -1., -1., -1., -1., -1., -1., -1., -1.],
|
21 |
+
[ 3., -1., -1., -1., -1., -1., -1., -1., -1., 3.],
|
22 |
+
[-1., -1., -1., 0., -1., -1., 3., -1., -1., -1.],
|
23 |
+
[-1., -1., -1., -1., -1., -1., -1., -1., -1., -1.],
|
24 |
+
[ 2., -1., -1., -1., 1., -1., -1., -1., -1., 2.]
|
25 |
+
])
|
26 |
+
|
27 |
# Funci贸n para realizar la predicci贸n de huellas dactilares
|
28 |
def predict_fingerprint(image):
|
29 |
try:
|