fingerprint.py
def up_comp_by_id(self, eigenval, user_id):
        """
        Module download fingerprint eigen value and compare by user id
        :param eigenval: binary data
        :param user_id: number of user identification
        :return: Response
        """
        byte_len = len(eigenval).to_bytes(2, 'big')
        head = [Command.HEAD, Command.DOWN_COMP_ONE, byte_len[0], byte_len[1],
                    0, 0, Command.CHK, Command.TAIL]
        byte_id = text_to_byte(user_id)
        packet = bytes([Command.HEAD, byte_id[0], byte_id[1], 0])
        packet += eigenval
        packet += bytes([Command.CHK, Command.TAIL])
        packet[-2] = get_chksum(packet[1:-2])
        res = self.send_cmd_packet(head, packet, 8)
        res.val = None
        return res

        Module download fingerprint eigen value and compare by user id
        :param eigenval: binary data
        :param user_id: number of user identification
        :return: Response
        
Module download fingerprint eigen value and compare by user id
Module download fingerprint eigen value and compare by user id
def up_comp_by_id(self, eigenval, user_id):
        byte_len = len(eigenval).to_bytes(2, 'big')
        head = [Command.HEAD, Command.DOWN_COMP_ONE, byte_len[0], byte_len[1],
                    0, 0, Command.CHK, Command.TAIL]
        byte_id = text_to_byte(user_id)
        packet = bytes([Command.HEAD, byte_id[0], byte_id[1], 0])
        packet += eigenval
        packet += bytes([Command.CHK, Command.TAIL])
        packet[-2] = get_chksum(packet[1:-2])
        res = self.send_cmd_packet(head, packet, 8)
        res.val = None
        return res
def up_comp_by_id ( self , eigenval , user_id ) : byte_len = len ( eigenval ) . to_bytes ( 2 , 'big' ) head = [ Command . HEAD , Command . DOWN_COMP_ONE , byte_len [ 0 ] , byte_len [ 1 ] , 0 , 0 , Command . CHK , Command . TAIL ] byte_id = text_to_byte ( user_id ) packet = bytes ( [ Command . HEAD , byte_id [ 0 ] , byte_id [ 1 ] , 0 ] ) packet += eigenval packet += bytes ( [ Command . CHK , Command . TAIL ] ) packet [ - 2 ] = get_chksum ( packet [ 1 : - 2 ] ) res = self . send_cmd_packet ( head , packet , 8 ) res . val = None return res
Module download fingerprint eigen value and compare by user id
Module download fingerprint eigen value and compare by user id
"""
        Module download fingerprint eigen value and compare by user id
        :param eigenval: binary data
        :param user_id: number of user identification
        :return: Response
        """
None
self
eigenval
None
user_id
number of user identification
number of user identification