Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
uunicorn
@uunicorn
gotta go
Hork
@aliyuchang33
cya
thank you for contributing to the project
Hork
@aliyuchang33
>>> enroll(sid_from_string('S-1-5-21-394619333-3876782012-1672975908-3333'), 0xf5)
Waiting for a finger...
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/hork/build/python-validity/proto97/sensor.py", line 155, in enroll
    err = capture(enroll_prg)
  File "/home/hork/build/python-validity/proto97/sensor.py", line 88, in capture
    x, y, w1, w2, error = unpack('<HHHHL', res)
struct.error: unpack requires a buffer of 12 bytes
hmm
Hork
@aliyuchang33
uunicorn
@uunicorn
Ah, yes, I noticed that in your logs as well. In contrast to 0097, scan response for 0090 actually contains the whole picture.
Hork
@aliyuchang33
oh
uunicorn
@uunicorn
I wonder if it will work if you simply change x, y, w1, w2, error = unpack('<HHHHL', res) to x, y, w1, w2, error = unpack('<HHHHL', res[:12]) in proto97/sensor.py
Hork
@aliyuchang33
ok, im trying
actually a little bit confusing about workflow.
first reset
then pair? then open?
uunicorn
@uunicorn
after you've paired, no need to reset
you only want to reset & pair if your device was previously paired with another computer and/or OS.
Hork
@aliyuchang33
>>> enroll(sid_from_string('S-1-5-21-394619333-3876782012-1672975908-3333'), 0xf5)
Waiting for a finger...
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/hork/build/python-validity/proto97/sensor.py", line 160, in enroll
    key, rsp, template = append_new_image(key, template)
  File "/home/hork/build/python-validity/proto97/sensor.py", line 94, in append_new_image
    assert_status(rsp)
  File "/home/hork/build/python-validity/proto97/util.py", line 9, in assert_status
    raise Exception('Failed: %04x' % s)
Exception: Failed: 0401
uunicorn
@uunicorn
Tracing may help, but it looks like I'll need to rebuild a.exe and see how enrolling is implemented in windows. Could be something completely different to 0097
Hork
@aliyuchang33
are you going to sleep or something? just go
uunicorn
@uunicorn
Nah, I was on my way home. At home now.
I've puhsed a new a.exe which will attempt to enroll a finger.
Hork
@aliyuchang33
k
so first two time of init and third time of enroll?
uunicorn
@uunicorn
probably even more. Just keep capturing output in new files. You can avoid reseting & pairing, if you hardcode machine GUID from wine registry in proto97/init_db.py
only one
delete in 2 mins
uunicorn
@uunicorn
Are you sure it has finished? It supposed to scan your finger a few times.
7 times
Hork
@aliyuchang33
i scanned few times and control + c,,
ok
do it again
uunicorn
@uunicorn
It should exit when done, no need to Ctrl+C
Hork
@aliyuchang33
yea, few times of red light blinking
is that fine?
uunicorn
@uunicorn
probably not. a.exe is not smart enough to retry if there was a capture error. Try again.
Hork
@aliyuchang33
still
it pause after 4 or 5 times of enrolling
for about 5 secs
finger on but no output progress
after that 5 secs, i can continue to do that
need log?
uunicorn
@uunicorn
I probably need to modify a.exe to detect when it's done. From your last log, it looks like enroll works completely differently to 0097
will do it tomorrow
does not look like there is an easy win
Hork
@aliyuchang33
yeah, last time i do this is a plain image, easier then this but still take few days
uunicorn
@uunicorn
Perhaps you can use this sensor as match-on-host. We know already how to get the bitmap.
Hork
@aliyuchang33
however, fprint small size fp matching algorithm sucks
uunicorn
@uunicorn
Pushed a version of a.exe which can detect capture errors and enrollment completion. Try to gather some logs, I'll take a look tomorrow.
Hork
@aliyuchang33
already captured, when u want, just @me
Hork
@aliyuchang33
to announce, pairing works now with @uunicorn 's python-validity 90 branch pair.py