Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to resolve this please help #21

Open
itsinsightful opened this issue May 19, 2020 · 6 comments
Open

Unable to resolve this please help #21

itsinsightful opened this issue May 19, 2020 · 6 comments

Comments

@itsinsightful
Copy link

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.

@itsinsightful
Copy link
Author

@kjanko @ogabriel ..Please Help

@loreloc
Copy link

loreloc commented May 24, 2020

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');

@Ehtasha
Copy link

Ehtasha commented Sep 2, 2020

@loreloc Thanks for suggestion

Its Resolved .

@adrianodisam
Copy link

Traceback (most recent call last):
File "C:/Users/adria/Desktop/python-fingerprint-recognition-master/python-fingerprint-recognition-master/app.py", line 9, in
os.chdir("/app.py")
FileNotFoundError: [WinError 2] O sistema não pode encontrar o arquivo especificado: '/app.py'

@mukheshpugal
Copy link

@adrianodisam comment that line out

@justShae
Copy link

"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
main()
File "C:\Users\akank\PycharmProjects\new file\app.py", line 74, in main
image_name = sys.argv[1]
~~~~~~~~^^^
IndexError: list index out of range

Process finished with exit code 1

please help!!!!!!!!!!!!!!!!!!!!!!!!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants