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

generating .npy files #12

Closed
TahirJanjua opened this issue Jan 8, 2019 · 2 comments
Closed

generating .npy files #12

TahirJanjua opened this issue Jan 8, 2019 · 2 comments

Comments

@TahirJanjua
Copy link

I have been working with this code repository very recently after going through the paper "Learning features for offline handwritten signature verification using deep convolutional neural networks by Luiz G. Hafemann, Robert Sabourin ,LuizS.Oliveira". The problem I am facing is that how can I generate .npy files placed in the data/ directory of this project, so that we might verify any other user defined signature image other than "some_signature.png". The aim behind asking is that a user defined image can be used for signature verification since the code "example.py" actually compared the .npy files at the time of testing.
My question might sound as I am new to this field.
Thanking you in anticipation.
Best Regards
Tahir

@luizgh
Copy link
Owner

luizgh commented Jan 8, 2019

Hello Tahir. In this repository we released the code / trained models for extracting features for signatures, and not the code for performing classification. In the example.py, the comparison to the .npy files is just to make sure that the results you obtain is the same as the results I obtained. It is not classifying the signature of the user.

For actual classification, the simplest approach is computing the distance (in feature space) between a query signature and a reference. This is easy to implement (see the jupyter notebook example), but not very powerful. Most commonly, people train "Writer-dependent classifiers" (one binary classifier for each user). You may find it useful to read more about this topic in these papers:

https://arxiv.org/abs/1507.07909
https://arxiv.org/abs/1705.05787

@luizgh luizgh closed this as completed Jan 8, 2019
@TahirJanjua
Copy link
Author

TahirJanjua commented Jan 9, 2019 via email

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

2 participants