From 8a5b30b99697b25773c5ac6fc32f963dabe2e573 Mon Sep 17 00:00:00 2001 From: Marco De Donno Date: Mon, 25 Jul 2016 23:47:36 +0200 Subject: [PATCH] Pass directly the table to the add_Type09() function (prevision to the M1 format) --- PiAnoS/NISTExtend.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/PiAnoS/NISTExtend.py b/PiAnoS/NISTExtend.py index 953164f..36264db 100644 --- a/PiAnoS/NISTExtend.py +++ b/PiAnoS/NISTExtend.py @@ -21,7 +21,6 @@ defDict = lambda: defaultdict( defDict ) try: from NIST.fingerprint import NISTf - from NIST.fingerprint.functions import lstTo012 except: raise Exception( "Can not import the NIST module. Check the installation." ) @@ -156,13 +155,12 @@ else: except KeyError: continue - n.add_Type09( lstTo012( ret ), idc ) - n.add_Type13( ( width, height ), res, idc ) n.set_latent( img, res, idc ) - n.set_field( "13.925", f[ 'username' ], idc ) + n.add_Type09( ret, idc ) + toReturn = True idc += 1 @@ -200,7 +198,7 @@ else: except KeyError: continue - n.add_Type09( lstTo012( ret ), 1 ) + n.add_Type09( ret, 1 ) return n -- GitLab