Open itsinsightful opened 4 years ago
@kjanko @ogabriel ..Please Help
Hi, i think this is due to a numpy documentation misleading. Numpy's round function doesn't cast to int.
Try replacing the previous line with this.
sze = np.round(3*np.max([sigmax,sigmay])).astype('int');
@loreloc Thanks for suggestion
Its Resolved .
Traceback (most recent call last):
File "C:/Users/adria/Desktop/python-fingerprint-recognition-master/python-fingerprint-recognition-master/app.py", line 9, in
@adrianodisam comment that line out
"C:\Users\akank\PycharmProjects\new file.venv\Scripts\python.exe" "C:\Users\akank\PycharmProjects\new file\app.py"
Traceback (most recent call last):
File "C:\Users\akank\PycharmProjects\new file\app.py", line 111, in
IndexError: list index out of range
Process finished with exit code 1
please help!!!!!!!!!!!!!!!!!!!!!!!!!!
File "app.py", line 45, in get_descriptors img = image_enhance.image_enhance(img) File "C:\Users\Pavilion\Downloads\python-fingerprint-recognition-master\python-fingerprint-recognition-master\enhance\image_enhance.py", line 35, in image_enhance newim = ridge_filter(normim, orientim, freq, kx, ky); # create gabor filter and do the actual filtering File "C:\Users\Pavilion\Downloads\python-fingerprint-recognition-master\python-fingerprint-recognition-master\enhance\ridge_filter.py", line 83, in ridge_filter x,y = np.meshgrid(np.linspace(-sze,sze,(2sze + 1)),np.linspace(-sze,sze,(2sze + 1))); File "<__array_function__ internals>", line 6, in linspace File "C:\Users\Pavilion\PycharmProjects\office\venv\lib\site-packages\numpy\core\function_base.py", line 121, in linspace .format(type(num))) TypeError: object of type <class 'numpy.float64'> cannot be safely interpreted as an integer.