pyfingerprint icon indicating copy to clipboard operation
pyfingerprint copied to clipboard

Search by variable

Open derit opened this issue 4 years ago • 1 comments

in this case i need search by chr variable like this

but result is raise Exception('Communication error')

how solutions in this case?

 chr =[3, 1, 82, 24, 130, 0, 255, 254, 255, 254, 255, 254, 255, 254, 128, 2, 0, 2, 0,
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0,
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 92, 22, 227, 126, 24, 32, 31, 222, 118, 163, 38,
    182, 49, 39, 219, 30, 16, 45, 92, 190, 35, 174, 27, 222, 116, 55, 105, 222, 53,
    191, 149, 94, 83, 24, 33, 95, 13, 29, 31, 223, 90, 30, 164, 223, 102, 158, 229,
    95, 37, 160, 159, 255, 77, 47, 169, 63, 83, 183, 169, 191, 39, 56, 24, 159, 103,
    56, 211, 63, 76, 187, 211, 223, 50, 33, 159, 26, 63, 177, 19, 242, 59, 177, 234
    , 114, 71, 149, 141, 15, 68, 20, 78, 240, 68, 156, 164, 42, 0, 0, 0, 0, 0, 0, 0,
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
    , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
    , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
    , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
    , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
    , 0, 0, 0, 0, 0, 0]


  f.uploadCharacteristics(0x01, chr) 
    result = f.searchTemplate() 

    positionNumber = result[0]
    accuracyScore = result[1]

    if ( positionNumber >=0 ):
        print('success')
        exit(0)


derit avatar Mar 31 '20 23:03 derit