fananimi / pyzk

Unofficial library of zkteco fingerprint attendance machine
GNU General Public License v2.0
489 stars 319 forks source link

Remote face registration as like finger print #203

Closed ayazmhmd closed 7 months ago

ayazmhmd commented 7 months ago

Is there any feature available for remote face registration? It would be really good if you could add the remote face registration function as i tried multiple time but did not get any fruitful results. When using 'live_capture', I've encountered an issue where the camera does not activate automatically, and the function consistently returns 'None'.

kurenai-ryu commented 7 months ago

sorry, no Face identification support

ayazmhmd commented 7 months ago

Thank you for the reply. We can't do remote face registration like enrolling using a finger?

On Fri, Jan 19, 2024 at 4:09 PM kurenai-ryu @.***> wrote:

sorry, no Face identification support

— Reply to this email directly, view it on GitHub https://github.com/fananimi/pyzk/issues/203#issuecomment-1900208595, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASN5DRRJKCKQEKOSRXMKVQ3YPJH6XAVCNFSM6AAAAABCBQVIEWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBQGIYDQNJZGU . You are receiving this because you authored the thread.Message ID: @.***>

kurenai-ryu commented 7 months ago

no face support. you are free to implement it, but I don't know how to do it, nor have the tools to research. just to note that live-capture calls a function with certain flags. maybe you can mess with the value but it'll be only for identification... not registration

ayazmhmd commented 7 months ago

live_capture module is not working it stuck and remain there till timeout. I tried that for identification but it is not working

On Fri, Jan 19, 2024 at 4:19 PM kurenai-ryu @.***> wrote:

no face support. you are free to implement it, but I don't know how to do it, nor have the tools to research. just to note that live-capture calls a function with certain flags. maybe you can mess with the value but it'll be only for identification... not registration

— Reply to this email directly, view it on GitHub https://github.com/fananimi/pyzk/issues/203#issuecomment-1900222288, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASN5DRU3UZG7ADMCUJ3DDO3YPJJELAVCNFSM6AAAAABCBQVIEWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBQGIZDEMRYHA . You are receiving this because you authored the thread.Message ID: @.***>

amsys commented 7 months ago

Face enrolment can be triggered by providing template no. 111

https://stackoverflow.com/questions/60897748/enroll-face-using-zkteco

Tested and works, but it looks like there is no feedback from the device on fail / success.

@kurenai-ryu

Additionally, the command no. to read face data is apparently No. 150 and SDK calls ZEMBPRO_READDATA1 to read this, but I haven't figured that one out, will update later.

Applying 150 to existing RWB code triggers response: 4989 Failed to allocate memory to a session

Response Codes explained here: https://usermanual.wiki/Document/ManualSDKVersaoZkTeco.61245417.pdf

amsys commented 7 months ago

Also if the face is already stored on the device, the device asks if to overwrite existing data for the user.