Is there any library that I can use to add biometric field into a django model field, so that when user plugged in biometric scanner into a computer, that django model field would allow me to scan user finger and store it into a database and even viewing it in a template.
I have try using this method:
I created a python file into my app and named it: biometric_field.py:
def init(self, *args, **kwargs):
kwargs[‘max_length’] = 1000
def db_type(self, connection):
And add it to the model like any other field:
From .biometric_field import BiometricField
first_name = models.CharField(max_length=20)
second_name = models.CharField(max_length=20)
class_of_student = models.CharField(max_length=20)
year_of_graduations = Foreignkey(PrimaryAlbum, on_delete=models.CASCADE )
finger_print_first = BiometricField()
But using that method was completely not scalable, because, there is no way to communicate with a hardware that would allow us to scan user finger, do you have any idea or method that we can use to make that happen in django or any python libraries that is good with django?
Django runs on the server, not in the browser on the client.
This is all completely outside the realm of Django. On the server side, it doesn’t matter whether you would be using Django, Php, Java, ASP, whatever - all this research depends strictly upon what’s happening in the user’s computer.
(Note - this likely means too that you might need to write different code for different biometric devices.)
Once you have it figured out on the client side, then you can determine what you might be able to do with it on the server. It’s all going to depend upon what information is provided to you. (Note: You might not be getting an “image” from the browser - it may just be some type of data structure.)
While this is very important thing to view the finger in the template, I think django can provide this field in the future. What if the fingerprint would be use in the
CounterIntelligence system, or for example: in the
schools to verify student
Thanks for help Mr:
Again, that work is all done in the browser.
Django can store data sent to it by the browser, but Django cannot grab data from the browser.
(The browser must push data to the server. The server cannot pull data from the browser.)
It doesn’t matter why you’re trying to do this. The fundamental design of the HTTP protocol does not provide any mechanism for the server to directly access the hardware sending requests to it. You would need to write a custom client for that to occur.