diff --git a/src/bob/bio/vein/extractor/RepeatedLineTracking.py b/src/bob/bio/vein/extractor/RepeatedLineTracking.py index dd62de036d065132124b73a6bcf57bace8a0a8e3..6d42ec37a332da5c170a3db7287e42c0c72b8700 100644 --- a/src/bob/bio/vein/extractor/RepeatedLineTracking.py +++ b/src/bob/bio/vein/extractor/RepeatedLineTracking.py @@ -61,18 +61,14 @@ class RepeatedLineTracking(Extractor): # finger_image = bob.ip.base.scale(finger_image, scaling_factor) # finger_mask = bob.ip.base.scale(finger_mask, scaling_factor) new_size = tuple( - (numpy.array(finger_image.shape) * scaling_factor).astype( - numpy.int - ) + (numpy.array(finger_image.shape) * scaling_factor).astype(int) ) finger_image = numpy.array( Image.fromarray(finger_image).resize(size=new_size) ).T new_size = tuple( - (numpy.array(finger_mask.shape) * scaling_factor).astype( - numpy.int - ) + (numpy.array(finger_mask.shape) * scaling_factor).astype(int) ) finger_mask = numpy.array( Image.fromarray(finger_mask).resize(size=new_size) diff --git a/src/bob/bio/vein/extractor/WideLineDetector.py b/src/bob/bio/vein/extractor/WideLineDetector.py index 8eace9a6ae0f28e72da5534c5fe6be054ec05beb..651e55f4f4a5027da9477ff5db41bc0ab1ce12cd 100644 --- a/src/bob/bio/vein/extractor/WideLineDetector.py +++ b/src/bob/bio/vein/extractor/WideLineDetector.py @@ -51,18 +51,14 @@ class WideLineDetector(Extractor): scaling_factor = 0.24 new_size = tuple( - (numpy.array(finger_image.shape) * scaling_factor).astype( - numpy.int - ) + (numpy.array(finger_image.shape) * scaling_factor).astype(int) ) finger_image = numpy.array( Image.fromarray(finger_image).resize(size=new_size) ).T new_size = tuple( - (numpy.array(finger_mask.shape) * scaling_factor).astype( - numpy.int - ) + (numpy.array(finger_mask.shape) * scaling_factor).astype(int) ) finger_mask = numpy.array( Image.fromarray(finger_mask).resize(size=new_size)