fingerprint.py
def up_comp_many(self, eigenval):
        """
        Module get fingerprint eigenvalue and compare finger exist
        :param eigenval: binary
        :return: Response val User
        """
        byte_len = len(eigenval).to_bytes(2, 'big')
        header = [Command.HEAD, Command.DOWN_COMP_MANY, byte_len[0], byte_len[1],
                      0, 0, Command.CHK, Command.TAIL]
        packet = [Command.HEAD, 0, 0, 0]
        packet += eigenval
        packet += [Command.CHK, Command.TAIL]
        packet[-2] = get_chksum(packet[1:-2])

        res = self.send_cmd_packet(header, packet, 8)

        if res.ack == Ack.NO_USER:
            pass
        else:
            res.val = User(res.val[2], res.val[3], res.val[4])
        return res

        Module get fingerprint eigenvalue and compare finger exist
        :param eigenval: binary
        :return: Response val User
        
Module get fingerprint eigenvalue and compare finger exist
Module get fingerprint eigenvalue and compare finger exist
def up_comp_many(self, eigenval):
        byte_len = len(eigenval).to_bytes(2, 'big')
        header = [Command.HEAD, Command.DOWN_COMP_MANY, byte_len[0], byte_len[1],
                      0, 0, Command.CHK, Command.TAIL]
        packet = [Command.HEAD, 0, 0, 0]
        packet += eigenval
        packet += [Command.CHK, Command.TAIL]
        packet[-2] = get_chksum(packet[1:-2])
        res = self.send_cmd_packet(header, packet, 8)
        if res.ack == Ack.NO_USER:
            pass
        else:
            res.val = User(res.val[2], res.val[3], res.val[4])
        return res
def up_comp_many ( self , eigenval ) : byte_len = len ( eigenval ) . to_bytes ( 2 , 'big' ) header = [ Command . HEAD , Command . DOWN_COMP_MANY , byte_len [ 0 ] , byte_len [ 1 ] , 0 , 0 , Command . CHK , Command . TAIL ] packet = [ Command . HEAD , 0 , 0 , 0 ] packet += eigenval packet += [ Command . CHK , Command . TAIL ] packet [ - 2 ] = get_chksum ( packet [ 1 : - 2 ] ) res = self . send_cmd_packet ( header , packet , 8 ) if res . ack == Ack . NO_USER : pass else : res . val = User ( res . val [ 2 ] , res . val [ 3 ] , res . val [ 4 ] ) return res
Module get fingerprint eigenvalue and compare finger exist
Module get fingerprint eigenvalue and compare finger exist
"""
        Module get fingerprint eigenvalue and compare finger exist
        :param eigenval: binary
        :return: Response val User
        """
Response val User
Response val User
self
eigenval
None