02-ago: [proyecto] vigilancia - alineacion facial ArcFace (landmarks YuNet) + consenso 3 frames en alerta + enroll sin rellenar nombres fantasma. Prueba 45s: INES reconocida 80% frames

This commit is contained in:
minguezsanzjuanjose
2026-08-02 13:44:30 +02:00
parent 12b794ecfb
commit 821a673fe7
3 changed files with 47 additions and 9 deletions

View File

@@ -131,7 +131,13 @@ def main():
texto = f"🚨 Presencia en {cam.nombre} - {ts}"
if ident is not None:
try:
resultados = ident.analizar_frame(frame)
resultados = []
for _ in range(3):
f2 = cam.leer_frame()
if f2 is None:
continue
resultados += ident.analizar_frame(f2)
time.sleep(0.1)
if resultados:
texto = componer_alerta(resultados, cam.nombre, ts)
except Exception as e: