Configurações de Credenciais de Biometria
Captura Remota de Digital

Captura Remota de Biometria digital

Por meio da função abaixo o dispositivo entra em modo de captura de biometria digital, sendo exibida a tela padrão de captura via interface do dispositivo. A hash do resultado da captura será retornado nos eventos (EventManager).

Exemplo: http://192.168.1.201/cgi-bin/eventManager.cgi?action=attach&codes=[All]&heartbeat=5 (opens in a new tab)

ℹ️

Obs: Função disponivel apenas ao dispositivo SS 3430 MF BIO e SS 3430 BIO.

⚠️

A chamada eventManager deve ser executada para obter a hash da biometria capturada.

Requisição - GET

http://192.168.1.201/cgi-bin/accessControl.cgi?action=captureFingerprint&info.ReaderID=1&info.FingerPrintName=Johnatan&info.UserID=1&heartbeat=5&timeout=10

paramtypedescription
captureFingerprint *StringComando para Captura da Biometria
ReaderID *StringID do Leitor, exemplo: 1
FingerPrintName *StringNome do Usuário para Identificação
timeout *StringID do Usuário (Será retornado na chamada)

Exemplo de Retorno - text/plain

Code=_FingerPrintCollect_;action=Start;index=0;data={
   "Type" : "Remote",
   "info" : {
      "FingerPrintName" : "Johnatan",
      "ReaderID" : "1",
      "UserID" : "1"
   }
}
 
 
Code=FingerprintState;action=Pulse;index=0;data={
   "CaptureTimes" : 1,
   "CollectResult" : false
}
 
 
Code=FingerprintState;action=Pulse;index=0;data={
   "CaptureTimes" : 2,
   "CollectResult" : false
}
 
 
Code=FingerprintState;action=Pulse;index=0;data={
   "CollectResult" : false,
   "ErrorCode" : 3
}
 
Code=Fingerprint;action=Pulse;index=0;data={
   "CollectResult" : false,
   "FingerprintData" : "",
   "FingerprintPacket" : {
      "Count" : 1,
      "Length" : 0
   }
}
 
Code=Fingerprint;action=Pulse;index=0;data={
   "CollectResult" : true,
   "FingerprintData" : "xRhqAG2HMzoYS8pF44Z7ZQB2OELnhmPJ73Q6hY2J7EoAAbnC34U8be94KUIFh3x+7zI4h2SFlKEHR9gChIi0oggHqQVqhu1xSA+4yd6GLa7pdmpDAocNpeAuWgsTh4X17+YsTJCIpgr4P5tCF4muBQf7+4HphxJ56Dg6Q3mIsqkXycwDiYnbXehDvUXVhEOJ6HorAtqDLF3\/f9oCFYqUyQhB+YGOi2TaD\/4KAZCK3db4fgpB4YWaev\/4DMTag4LK\/34OwgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPNFkxmDUvNGVlM\/VaJEo0sWeqNaiWjzeE8REqKogSWWExRTU3S1H2H68gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAATao8kU0V0gRIWQwHYoY4GMzU3kYgkUKaogI8WETXmgAIZBBaykO9IQTUkoc9sUSKmgngTJYPdkI83FVEwog9UMTbAoJkptVWe0TYeVsTJsFFZEimtw3FtYRJQkM40RFNEoFAOchIHsP02Y1ZDwRpPamLioAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUCBwYBBAAIAwoJEBELEw4MFhUAAAAAAAAAAAAAAByf",
   "FingerprintPacket" : {
      "Count" : 1,
      "Length" : 810
   }
}
⚠️

Importante: Para o cadastro correto do template recebido em FingerPrintData, deverá ser realizado o tratamento dos dados para que possuam 1080 caracteres. Desta forma deve ser removido o contra barra " \ " dos dados retornados.

Após o valor de FingerPrintData deverá possuir 1080 caracteres, permitindo assim o cadastro da digital utilizando a função Cadastro de Biometria Digital.

Exemplos

import requests
 
device_ip = '10.1.35.144'
username = 'admin'
password = 'acesso1234'
 
url = "http://{}/cgi-bin/accessControl.cgi?action=captureFingerprint&info.ReaderID=1&info.FingerPrintName=Johnatan&info.UserID=1&heartbeat=5&timeout=10".format(
                        str(device_ip),
                    )
 
digest_auth = requests.auth.HTTPDigestAuth(username, password)
rval = requests.get(url, auth=digest_auth, stream=True, timeout=20, verify=False)
 
print(rval.text)