-
Notifications
You must be signed in to change notification settings - Fork 1
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
fpmatch.py works only with example templates but not with my template #9
Comments
Thanks, I'll be correcting that in a bit, must've missed it when I renamed stuff and didn't test again.
With a template size of 768 bytes, I would normally assume that the template contains 3 char-files of size 256 bytes. Therefore, you should not change However, I've taken a look at your template content e.g. Per my understanding, Therefore, I don't think you can use this library to match the templates generated by your sensor. You'll have to either:
|
I've pushed some corrections to the script and also attached the API manual which provides some info on both I'm unable to test the script currently since I'm not using a Windows machine -- if you manage to test it, please let me know if it still works alright. |
Thanks for the quick response. Sure, I will try and update the result in this same thread. Also as you suggested, I will try with other fingerprint sensor with template size of 512 byte. |
Hi, |
Hi, I managed to find 512 byte Template Finger print sensor. Sensor name - R305 Regards, |
Hi myself Abu
My
fingerprint sensor module
isR307S
Template size
is768 bytes
I fetched latest code and please find the
commits id
fpmatch commit is
888479fe33b616cb5bbfcd0ae3db04dc4298c18d
FPM commit is
9b4cb891cf3474415969976077204d534737426c
I am using fpmatch.py and there was an error in line
if score > FPM_MATCH_THRESHOLD:
score is not initialized with any value before reading, so changed it toavg_score
and I believe this is the expected one.Now coming to the point I will explain the problem.
Code is running smooth and with your sample 512 byte templates I got below happy path result
I replaced my templates of 768 byte and changed
FPM_CHAR_SIZE
macro value from 256->
384 and not updateFPM_TEMPLATE_SIZE
value from512
because I see it is not used anywhere in the code.in order to verify first whether my templates are matching I used
Finger_1_Template_0
in database and used the same instead of runtime user input and I was expecting100 %
match but the result says0%
Could you please support me in this case what I missed or what I need to do.
Please find my modified
python code
were I have movedmy templates
totemplate.py
andexample templates
totemplate_example.py
content of
template.py
content of
template_example.py
The text was updated successfully, but these errors were encountered: