Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ASUS VivoBook S13 S333JQ #8

Open
ramottamado opened this issue Sep 25, 2021 · 3 comments
Open

ASUS VivoBook S13 S333JQ #8

ramottamado opened this issue Sep 25, 2021 · 3 comments

Comments

@ramottamado
Copy link

Device: ASUS VivoBook S13 S333JQ
OS: Fedora 35
Kernel: 5.14.6-300.fc35.x86_64

Hi there, thanks for the hard work.

I've tested on my VIvoBook S13, img-capture, enroll works fine, but verify doesn't.
PID is 3128 so I added the following to the ID table:

{.udev_types = ELANSPI_UDEV_TYPES, .spi_acpi_id = "ELAN7001", .hid_id = {.vid = ELANSPI_TP_VID, .pid = 0x3128}, .driver_data = ELANSPI_NO_ROTATE},

I've tested with ELANSPI_180_ROTATE too, still cannot verify the enrolled fingerprint.

Oh by the way printdump.py can only work with 64x64 width and height. Does this mean the sensor is too small?

@mincrmatt12
Copy link
Owner

  • Are you swiping your finger across the sensor (which is necessary for this driver)?
  • Have you tried 90left/90right rotate options too?
  • Does the image coming out of img_capture look reasonable? (see the notes here)
  • Are you using the version of this driver currently in upstream libfprint? the latest version has moved there

If none of those things get it working, please try running the prototype in this repo and send the logs it outputs. As for printdump.py, it should work with arbitrary sizes? It should be called as printdump.py <file from the prototype> <path to output png before processing> <path to output png after basic image processing> <width> <height>, where the width and height should be logged by the prototype.

@ramottamado
Copy link
Author

ramottamado commented Sep 26, 2021

  1. Yes
  2. Okay so apparently the image is rotated 90 degrees so I tried using 90right
  3. Hmm apparently it's reasonable but not good enough
  4. Yes this was using the latest version

Still cannot verify the enrolled fingerprint. And apparently the fingerprint is 80x80.

Output of prototype:

Prototype starting...
Compiled with HKEY values : TP_VID 4f3; TP_PID 3128; ACPI_ID ELAN7001
Got SPI entry /sys/devices/pci0000:00/0000:00:1e.2/pxa2xx-spi.3/spi_master/spi0/spi-ELAN7001:00/spidev/spidev0.0
Found ACPI id!
Got HID entry /sys/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0/0003:046D:C52F.0001/hidraw/hidraw0
Got HID entry /sys/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.1/0003:046D:C52F.0002/0003:046D:4080.0004/hidraw/hidraw3
Got HID entry /sys/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.1/0003:046D:C52F.0002/hidraw/hidraw1
Got HID entry /sys/devices/pci0000:00/0000:00:15.1/i2c_designware.1/i2c-1/i2c-ASUE1301:00/0018:04F3:3128.0003/hidraw/hidraw2
Found TP ID!
Got SPI = /dev/spidev0.0 and HID = /dev/hidraw2, opening.
Beginning initialization
SPIStatus = 0x81
Result of ioctl for reset 5
SPIStatus after reset = 0x01
- Register 00 = 00
- Register 01 = 00
- Register 02 = 4f
- Register 03 = 00
- Register 04 = 4f
- Register 05 = a0
- Register 06 = 00
- Register 07 = 00
- Register 08 = 00
- Register 09 = 04
- Register 0a = 73
- Register 0b = 01
- Register 0c = 08
- Register 0d = 00
- Register 0e = 00
- Register 0f = 13
- Register 10 = 38
- Register 11 = 01
- Register 12 = 00
- Register 13 = 00
- Register 14 = 00
- Register 15 = 04
- Register 16 = 00
- Register 17 = 64
- Register 18 = 01
- Register 19 = f4
- Register 1a = 00
- Register 1b = 00
- Register 1c = 00
- Register 1d = 00
- Register 1e = 00
- Register 1f = 00
- Register 20 = 00
- Register 21 = 00
- Register 22 = 04
- Register 23 = 00
- Register 24 = 00
- Register 25 = 00
- Register 26 = 00
- Register 27 = 00
- Register 28 = 00
- Register 29 = 02
- Register 2a = 07
- Register 2b = e0
- Register 2c = 00
- Register 2d = 00
- Register 2e = d0
- Register 2f = 40
- Register 30 = 01
- Register 31 = 38
- Register 32 = 00
- Register 33 = 00
- Register 34 = 00
- Register 35 = 1f
- Register 36 = ff
- Register 37 = 00
- Register 38 = 00
- Register 39 = 00
- Register 3a = 00
- Register 3b = 24
- Register 3c = ff
- Register 3d = ff
- Register 3e = ff
- Register 3f = f8
Reading raw dimensions
Got 80x80 sensor
After hardcoded lookup: (80 x 80) Version = 2
Found sensor ID 14 => [eFSA80SC] (80 X 80) Version = 2; OTP = 0
====
you have a 80SC, if you haven't setup spidev with a large enough bufsiz _this will not work properly_
===
SoftwareReset...
SPIStatus after reset = 0x01
- Register 00 = 00
- Register 01 = 00
- Register 02 = 4f
- Register 03 = 00
- Register 04 = 4f
- Register 05 = a0
- Register 06 = 00
- Register 07 = 00
- Register 08 = 00
- Register 09 = 04
- Register 0a = 73
- Register 0b = 01
- Register 0c = 08
- Register 0d = 00
- Register 0e = 00
- Register 0f = 13
- Register 10 = 38
- Register 11 = 01
- Register 12 = 00
- Register 13 = 00
- Register 14 = 00
- Register 15 = 04
- Register 16 = 00
- Register 17 = 64
- Register 18 = 01
- Register 19 = f4
- Register 1a = 00
- Register 1b = 00
- Register 1c = 00
- Register 1d = 00
- Register 1e = 00
- Register 1f = 00
- Register 20 = 00
- Register 21 = 00
- Register 22 = 04
- Register 23 = 00
- Register 24 = 00
- Register 25 = 00
- Register 26 = 00
- Register 27 = 00
- Register 28 = 00
- Register 29 = 02
- Register 2a = 07
- Register 2b = e0
- Register 2c = 00
- Register 2d = 00
- Register 2e = d0
- Register 2f = 40
- Register 30 = 01
- Register 31 = 38
- Register 32 = 00
- Register 33 = 00
- Register 34 = 00
- Register 35 = 1f
- Register 36 = ff
- Register 37 = 00
- Register 38 = 00
- Register 39 = 00
- Register 3a = 00
- Register 3b = 24
- Register 3c = ff
- Register 3d = ff
- Register 3e = ff
- Register 3f = f8
set device register page to 0
Sending table 0
Regtable[0] sets 00 --> 5a
Regtable[1] sets 01 --> 00
Regtable[2] sets 02 --> 4f
Regtable[3] sets 03 --> 00
Regtable[4] sets 04 --> 4f
Regtable[5] sets 05 --> a0
Regtable[6] sets 06 --> 00
Regtable[7] sets 07 --> 00
Regtable[8] sets 08 --> 00
Regtable[9] sets 09 --> 04
Regtable[10] sets 0a --> 74
Regtable[11] sets 0b --> 05
Regtable[12] sets 0c --> 08
Regtable[13] sets 0d --> 00
Regtable[14] sets 0e --> 00
Regtable[15] sets 0f --> 14
Regtable[16] sets 10 --> 3c
Regtable[17] sets 11 --> 41
Regtable[18] sets 12 --> 0c
Regtable[19] sets 13 --> 00
Regtable[20] sets 14 --> 00
Regtable[21] sets 15 --> 04
Regtable[22] sets 16 --> 02
Regtable[23] sets 17 --> 00
Regtable[24] sets 18 --> 01
Regtable[25] sets 19 --> f4
Regtable[26] sets 1a --> 00
Regtable[27] sets 1b --> 00
Regtable[28] sets 1c --> 00
Regtable[29] sets 1d --> 00
Regtable[30] sets 1e --> 00
Regtable[31] sets 1f --> 00
Regtable[32] sets 20 --> 00
Regtable[33] sets 21 --> 80
Regtable[34] sets 22 --> 06
Regtable[35] sets 23 --> 00
Regtable[36] sets 24 --> 00
Regtable[37] sets 25 --> 00
Regtable[38] sets 26 --> 00
Regtable[39] sets 27 --> 00
Regtable[40] sets 28 --> 00
Regtable[41] sets 29 --> 04
Regtable[42] sets 2a --> 5f
Regtable[43] sets 2b --> e2
Regtable[44] sets 2c --> a0
Regtable[45] sets 2d --> 00
Regtable[46] sets 2e --> ff
Regtable[47] sets 2f --> 40
Regtable[48] sets 30 --> 01
Regtable[49] sets 31 --> 38
Regtable[50] sets 32 --> 00
Regtable[51] sets 33 --> 00
Regtable[52] sets 34 --> 00
Regtable[53] sets 35 --> 1f
Regtable[54] sets 36 --> ff
Regtable[55] sets 37 --> 00
Regtable[56] sets 38 --> 00
Regtable[57] sets 39 --> 00
Regtable[58] sets 3a --> 00
set device register page to 1
Sending table 1
Regtable[0] sets 00 --> 7b
Regtable[1] sets 01 --> 7f
Regtable[2] sets 02 --> 77
Regtable[3] sets 03 --> d4
Regtable[4] sets 04 --> 7d
Regtable[5] sets 05 --> 19
Regtable[6] sets 06 --> 80
Regtable[7] sets 07 --> 40
Regtable[8] sets 08 --> 11
Regtable[9] sets 09 --> 00
Regtable[10] sets 0a --> 00
Regtable[11] sets 0b --> 14
Regtable[12] sets 0c --> 00
Regtable[13] sets 0d --> 00
Regtable[14] sets 0e --> 32
Regtable[15] sets 0f --> 02
Regtable[16] sets 10 --> 08
Regtable[17] sets 11 --> 6c
Regtable[18] sets 12 --> 00
Regtable[19] sets 13 --> 00
Regtable[20] sets 14 --> 32
Regtable[21] sets 15 --> 01
Regtable[22] sets 16 --> 16
Regtable[23] sets 17 --> 01
Regtable[24] sets 18 --> 14
Regtable[25] sets 19 --> 01
Regtable[26] sets 1a --> 16
Regtable[27] sets 1b --> 01
Regtable[28] sets 1c --> 17
Regtable[29] sets 1d --> 01
Regtable[30] sets 1e --> 0a
Regtable[31] sets 1f --> 01
Regtable[32] sets 20 --> 0a
Regtable[33] sets 21 --> 02
Regtable[34] sets 22 --> 08
Regtable[35] sets 23 --> 29
Regtable[36] sets 24 --> 00
Regtable[37] sets 25 --> 0c
Regtable[38] sets 26 --> 1a
Regtable[39] sets 27 --> 30
Regtable[40] sets 28 --> 1a
Regtable[41] sets 29 --> 30
Regtable[42] sets 2a --> 00
Regtable[43] sets 2b --> 00
Regtable[44] sets 2c --> 01
Regtable[45] sets 2d --> 16
Regtable[46] sets 2e --> 01
Regtable[47] sets 2f --> 17
Regtable[48] sets 30 --> 03
Regtable[49] sets 31 --> 2d
Regtable[50] sets 32 --> 03
Regtable[51] sets 33 --> 2d
Regtable[52] sets 34 --> 14
Regtable[53] sets 35 --> 00
Regtable[54] sets 36 --> 00
Regtable[55] sets 37 --> 00
Regtable[56] sets 38 --> 00
Regtable[57] sets 39 --> 03
Regtable[58] sets 3a --> fe
Regtable[59] sets 3b --> 00
Regtable[60] sets 3c --> 00
Regtable[61] sets 3d --> 02
Regtable[62] sets 3e --> 00
Regtable[63] sets 3f --> 00
set device register page to 0
Calibration loop 0; with DAC = 256.
BestDAC = 0, BestMeanDiff = 65535
waiting for image...
waiting for image...
Image mean = 1033
New best
Calibration loop 1; with DAC = 128.
BestDAC = 256, BestMeanDiff = 1967
waiting for image...
waiting for image...
Image mean = 4588
New best
Calibration loop 2; with DAC = 192.
BestDAC = 128, BestMeanDiff = 1588
waiting for image...
Image mean = 2786
New best
Calibration loop 3; with DAC = 160.
BestDAC = 192, BestMeanDiff = 214
waiting for image...
Image mean = 3680
Calibration loop 4; with DAC = 176.
BestDAC = 192, BestMeanDiff = 214
waiting for image...
Image mean = 3234
Calibration loop 5; with DAC = 184.
BestDAC = 192, BestMeanDiff = 214
waiting for image...
Image mean = 3014
Mean diff < 100; exiting early.
RegisterGuard clearing 0 to 0- Register 00 = 00
- Register 01 = 00
- Register 02 = 4f
- Register 03 = 00
- Register 04 = 4f
- Register 05 = a0
- Register 06 = 2e
- Register 07 = 00
- Register 08 = 00
- Register 09 = 04
- Register 0a = 74
- Register 0b = 05
- Register 0c = 08
- Register 0d = 00
- Register 0e = 00
- Register 0f = 14
- Register 10 = 3c
- Register 11 = 41
- Register 12 = 0c
- Register 13 = 00
- Register 14 = 00
- Register 15 = 04
- Register 16 = 02
- Register 17 = 00
- Register 18 = 01
- Register 19 = f4
- Register 1a = 00
- Register 1b = 00
- Register 1c = 00
- Register 1d = 00
- Register 1e = 00
- Register 1f = 00
- Register 20 = 00
- Register 21 = 80
- Register 22 = 06
- Register 23 = 00
- Register 24 = 00
- Register 25 = 00
- Register 26 = 00
- Register 27 = 00
- Register 28 = 00
- Register 29 = 04
- Register 2a = 5f
- Register 2b = e2
- Register 2c = a0
- Register 2d = 00
- Register 2e = ff
- Register 2f = 40
- Register 30 = 01
- Register 31 = 38
- Register 32 = 00
- Register 33 = 00
- Register 34 = 00
- Register 35 = 1f
- Register 36 = ff
- Register 37 = 00
- Register 38 = 00
- Register 39 = 00
- Register 3a = 00
- Register 3b = e0
- Register 3c = 6d
- Register 3d = fc
- Register 3e = ed
- Register 3f = 97
Taking background image
waiting for image...
waiting for image...
I will wait for a finger to exist for a few frames before saving it. Where should i save it? (enter path without extension)
Where to save dump (enter)
waiting for image...
CorrectWithBg
ImgCorrection BG reported 3098 low pixels from 6400 total (48 percent)
GuessFingerprint mean=1461 stddev=1493
GuessFingerprint distavg=62
GuessFingerprint real=1 empty=0
FP exist
downcount 1
waiting for image...
CorrectWithBg
ImgCorrection BG reported 3217 low pixels from 6400 total (50 percent)
GuessFingerprint mean=1516 stddev=1497
GuessFingerprint distavg=1418
GuessFingerprint real=0 empty=1
EMPTY
waiting for image...
CorrectWithBg
ImgCorrection BG reported 3145 low pixels from 6400 total (49 percent)
GuessFingerprint mean=1484 stddev=1498
GuessFingerprint distavg=1404
GuessFingerprint real=0 empty=1
EMPTY
waiting for image...
CorrectWithBg
ImgCorrection BG reported 2996 low pixels from 6400 total (46 percent)
GuessFingerprint mean=1415 stddev=1496
GuessFingerprint distavg=1413
GuessFingerprint real=0 empty=1
EMPTY
waiting for image...
CorrectWithBg
ImgCorrection BG reported 2964 low pixels from 6400 total (46 percent)
GuessFingerprint mean=1400 stddev=1495
GuessFingerprint distavg=1418
GuessFingerprint real=0 empty=1
EMPTY
waiting for image...
CorrectWithBg
ImgCorrection BG reported 3003 low pixels from 6400 total (46 percent)
GuessFingerprint mean=1418 stddev=1496
GuessFingerprint distavg=1418
GuessFingerprint real=0 empty=1
EMPTY
waiting for image...
CorrectWithBg
ImgCorrection BG reported 3148 low pixels from 6400 total (49 percent)
GuessFingerprint mean=1485 stddev=1498
GuessFingerprint distavg=1416
GuessFingerprint real=0 empty=1
EMPTY
waiting for image...
CorrectWithBg
ImgCorrection BG reported 3152 low pixels from 6400 total (49 percent)
GuessFingerprint mean=1487 stddev=1499
GuessFingerprint distavg=1413
GuessFingerprint real=0 empty=1
EMPTY
waiting for image...
CorrectWithBg
ImgCorrection BG reported 3097 low pixels from 6400 total (48 percent)
GuessFingerprint mean=1462 stddev=1499
GuessFingerprint distavg=1418
GuessFingerprint real=0 empty=1
EMPTY
waiting for image...
CorrectWithBg
ImgCorrection BG reported 3088 low pixels from 6400 total (48 percent)
GuessFingerprint mean=1458 stddev=1498
GuessFingerprint distavg=1416
GuessFingerprint real=0 empty=1
EMPTY
waiting for image...
CorrectWithBg
ImgCorrection BG reported 3017 low pixels from 6400 total (47 percent)
GuessFingerprint mean=1423 stddev=1494
GuessFingerprint distavg=1412
GuessFingerprint real=0 empty=1
EMPTY
waiting for image...
CorrectWithBg
ImgCorrection BG reported 3145 low pixels from 6400 total (49 percent)
GuessFingerprint mean=1482 stddev=1497
GuessFingerprint distavg=1411
GuessFingerprint real=0 empty=1
EMPTY
waiting for image...
CorrectWithBg
ImgCorrection BG reported 3164 low pixels from 6400 total (49 percent)
GuessFingerprint mean=1493 stddev=1498
GuessFingerprint distavg=1419
GuessFingerprint real=0 empty=1
EMPTY
waiting for image...
CorrectWithBg
ImgCorrection BG reported 3188 low pixels from 6400 total (49 percent)
GuessFingerprint mean=1505 stddev=1500
GuessFingerprint distavg=1415
GuessFingerprint real=0 empty=1
EMPTY
waiting for image...
CorrectWithBg
ImgCorrection BG reported 3005 low pixels from 6400 total (46 percent)
GuessFingerprint mean=1418 stddev=1496
GuessFingerprint distavg=1411
GuessFingerprint real=0 empty=1
EMPTY
waiting for image...
CorrectWithBg
ImgCorrection BG reported 3219 low pixels from 6400 total (50 percent)
GuessFingerprint mean=1519 stddev=1499
GuessFingerprint distavg=1416
GuessFingerprint real=0 empty=1
EMPTY
waiting for image...
CorrectWithBg
ImgCorrection BG reported 3217 low pixels from 6400 total (50 percent)
GuessFingerprint mean=1517 stddev=1498
GuessFingerprint distavg=1412
GuessFingerprint real=0 empty=1
EMPTY
waiting for image...
CorrectWithBg
ImgCorrection BG reported 3115 low pixels from 6400 total (48 percent)
GuessFingerprint mean=1470 stddev=1498
GuessFingerprint distavg=1417
GuessFingerprint real=0 empty=1
EMPTY
waiting for image...
CorrectWithBg
ImgCorrection BG reported 3043 low pixels from 6400 total (47 percent)
GuessFingerprint mean=1438 stddev=1498
GuessFingerprint distavg=1407
GuessFingerprint real=0 empty=1
EMPTY
waiting for image...
CorrectWithBg
ImgCorrection BG reported 3022 low pixels from 6400 total (47 percent)
GuessFingerprint mean=1426 stddev=1496
GuessFingerprint distavg=1415
GuessFingerprint real=0 empty=1
EMPTY
waiting for image...
CorrectWithBg
ImgCorrection BG reported 3092 low pixels from 6400 total (48 percent)
GuessFingerprint mean=1458 stddev=1497
GuessFingerprint distavg=1404
GuessFingerprint real=0 empty=1
EMPTY
waiting for image...
CorrectWithBg
ImgCorrection BG reported 3239 low pixels from 6400 total (50 percent)
GuessFingerprint mean=1528 stddev=1499
GuessFingerprint distavg=1416
GuessFingerprint real=0 empty=1
EMPTY
waiting for image...
CorrectWithBg
ImgCorrection BG reported 3073 low pixels from 6400 total (48 percent)
GuessFingerprint mean=1450 stddev=1497
GuessFingerprint distavg=1417
GuessFingerprint real=0 empty=1
EMPTY
waiting for image...
CorrectWithBg
ImgCorrection BG reported 3285 low pixels from 6400 total (51 percent)
GuessFingerprint mean=1549 stddev=1498
GuessFingerprint distavg=1420
GuessFingerprint real=0 empty=1
EMPTY
waiting for image...
CorrectWithBg
ImgCorrection BG reported 3202 low pixels from 6400 total (50 percent)
GuessFingerprint mean=1511 stddev=1499
GuessFingerprint distavg=1406
GuessFingerprint real=0 empty=1
EMPTY
waiting for image...
CorrectWithBg
ImgCorrection BG reported 3086 low pixels from 6400 total (48 percent)
GuessFingerprint mean=1457 stddev=1498
GuessFingerprint distavg=1421
GuessFingerprint real=0 empty=1
EMPTY
waiting for image...
CorrectWithBg
ImgCorrection BG reported 3059 low pixels from 6400 total (47 percent)
GuessFingerprint mean=1445 stddev=1498
GuessFingerprint distavg=1423
GuessFingerprint real=0 empty=1
EMPTY
waiting for image...
CorrectWithBg
ImgCorrection BG reported 2995 low pixels from 6400 total (46 percent)
GuessFingerprint mean=1415 stddev=1496
GuessFingerprint distavg=1410
GuessFingerprint real=0 empty=1
EMPTY
waiting for image...
CorrectWithBg
ImgCorrection BG reported 2982 low pixels from 6400 total (46 percent)
GuessFingerprint mean=1408 stddev=1495
GuessFingerprint distavg=1417
GuessFingerprint real=0 empty=1
EMPTY
waiting for image...
CorrectWithBg
ImgCorrection BG reported 3146 low pixels from 6400 total (49 percent)
GuessFingerprint mean=1484 stddev=1498
GuessFingerprint distavg=1423
GuessFingerprint real=0 empty=1
EMPTY
waiting for image...
CorrectWithBg
ImgCorrection BG reported 3139 low pixels from 6400 total (49 percent)
GuessFingerprint mean=1481 stddev=1498
GuessFingerprint distavg=1411
GuessFingerprint real=0 empty=1
EMPTY
CorrectWithBg
ImgCorrection BG reported 2999 low pixels from 6400 total (46 percent)
GuessFingerprint mean=1416 stddev=1496
GuessFingerprint distavg=1414
GuessFingerprint real=0 empty=1
EMPTY
waiting for image...
CorrectWithBg
ImgCorrection BG reported 2989 low pixels from 6400 total (46 percent)
GuessFingerprint mean=1412 stddev=1496
GuessFingerprint distavg=1426
GuessFingerprint real=0 empty=1
EMPTY
CorrectWithBg
ImgCorrection BG reported 3008 low pixels from 6400 total (47 percent)
GuessFingerprint mean=1420 stddev=1496
GuessFingerprint distavg=1423
GuessFingerprint real=0 empty=1
EMPTY
waiting for image...
CorrectWithBg
ImgCorrection BG reported 2984 low pixels from 6400 total (46 percent)
GuessFingerprint mean=1409 stddev=1495
GuessFingerprint distavg=1419
GuessFingerprint real=0 empty=1
EMPTY
waiting for image...
CorrectWithBg
ImgCorrection BG reported 3078 low pixels from 6400 total (48 percent)
GuessFingerprint mean=1453 stddev=1498
GuessFingerprint distavg=1409
GuessFingerprint real=0 empty=1
EMPTY
waiting for image...
CorrectWithBg
ImgCorrection BG reported 3110 low pixels from 6400 total (48 percent)
GuessFingerprint mean=1468 stddev=1498
GuessFingerprint distavg=1417
GuessFingerprint real=0 empty=1
EMPTY
waiting for image...
CorrectWithBg
ImgCorrection BG reported 3111 low pixels from 6400 total (48 percent)
GuessFingerprint mean=1468 stddev=1498
GuessFingerprint distavg=1413
GuessFingerprint real=0 empty=1
EMPTY
waiting for image...
CorrectWithBg
ImgCorrection BG reported 3067 low pixels from 6400 total (47 percent)
GuessFingerprint mean=1449 stddev=1498
GuessFingerprint distavg=1412
GuessFingerprint real=0 empty=1
EMPTY
waiting for image...
CorrectWithBg
ImgCorrection BG reported 2905 low pixels from 6400 total (45 percent)
GuessFingerprint mean=1373 stddev=1493
GuessFingerprint distavg=1413
GuessFingerprint real=0 empty=1
EMPTY
waiting for image...
CorrectWithBg
ImgCorrection BG reported 3117 low pixels from 6400 total (48 percent)
GuessFingerprint mean=1470 stddev=1498
GuessFingerprint distavg=1421
GuessFingerprint real=0 empty=1
EMPTY
waiting for image...
CorrectWithBg
ImgCorrection BG reported 3065 low pixels from 6400 total (47 percent)
GuessFingerprint mean=1446 stddev=1497
GuessFingerprint distavg=1419
GuessFingerprint real=0 empty=1
EMPTY
waiting for image...
CorrectWithBg
ImgCorrection BG reported 2900 low pixels from 6400 total (45 percent)
GuessFingerprint mean=1369 stddev=1492
GuessFingerprint distavg=1419
GuessFingerprint real=0 empty=1
EMPTY
waiting for image...
CorrectWithBg
ImgCorrection BG reported 2960 low pixels from 6400 total (46 percent)
GuessFingerprint mean=1397 stddev=1493
GuessFingerprint distavg=1410
GuessFingerprint real=0 empty=1
EMPTY
waiting for image...
CorrectWithBg
ImgCorrection BG reported 3106 low pixels from 6400 total (48 percent)
GuessFingerprint mean=1465 stddev=1497
GuessFingerprint distavg=1419
GuessFingerprint real=0 empty=1
EMPTY
waiting for image...
CorrectWithBg
ImgCorrection BG reported 3019 low pixels from 6400 total (47 percent)
GuessFingerprint mean=1426 stddev=1496
GuessFingerprint distavg=1422
GuessFingerprint real=0 empty=1
EMPTY
waiting for image...
CorrectWithBg
ImgCorrection BG reported 2989 low pixels from 6400 total (46 percent)
GuessFingerprint mean=1410 stddev=1494
GuessFingerprint distavg=1419
GuessFingerprint real=0 empty=1
EMPTY
waiting for image...
CorrectWithBg
ImgCorrection BG reported 2850 low pixels from 6400 total (44 percent)
GuessFingerprint mean=1347 stddev=1490
GuessFingerprint distavg=1417
GuessFingerprint real=0 empty=1
EMPTY
waiting for image...
CorrectWithBg
ImgCorrection BG reported 2908 low pixels from 6400 total (45 percent)
GuessFingerprint mean=1373 stddev=1490
GuessFingerprint distavg=1412
GuessFingerprint real=0 empty=1
EMPTY
waiting for image...
CorrectWithBg
ImgCorrection BG reported 2971 low pixels from 6400 total (46 percent)
GuessFingerprint mean=1404 stddev=1495
GuessFingerprint distavg=1409
GuessFingerprint real=0 empty=1
EMPTY
waiting for image...
CorrectWithBg
ImgCorrection BG reported 3158 low pixels from 6400 total (49 percent)
GuessFingerprint mean=1490 stddev=1498
GuessFingerprint distavg=1417
GuessFingerprint real=0 empty=1
EMPTY
waiting for image...
CorrectWithBg
ImgCorrection BG reported 2762 low pixels from 6400 total (43 percent)
GuessFingerprint mean=1305 stddev=1483
GuessFingerprint distavg=1407
GuessFingerprint real=0 empty=1
EMPTY
waiting for image...
CorrectWithBg
ImgCorrection BG reported 1930 low pixels from 6400 total (30 percent)
GuessFingerprint mean=917 stddev=1368
GuessFingerprint distavg=1413
GuessFingerprint real=0 empty=1
EMPTY
waiting for image...
CorrectWithBg
ImgCorrection BG reported 315 low pixels from 6400 total (4 percent)
GuessFingerprint mean=262 stddev=637
GuessFingerprint distavg=0
GuessFingerprint real=2 empty=0
FP exist
downcount 1
waiting for image...
CorrectWithBg
ImgCorrection BG reported 9 low pixels from 6400 total (0 percent)
GuessFingerprint mean=1959 stddev=2178
GuessFingerprint distavg=1
GuessFingerprint real=1 empty=0
FP exist
downcount 2
waiting for image...
CorrectWithBg
ImgCorrection BG reported 0 low pixels from 6400 total (0 percent)
GuessFingerprint mean=3435 stddev=2171
GuessFingerprint distavg=0
GuessFingerprint real=1 empty=0
FP exist
downcount 3
waiting for image...
CorrectWithBg
ImgCorrection BG reported 0 low pixels from 6400 total (0 percent)
GuessFingerprint mean=4439 stddev=1604
GuessFingerprint distavg=1
GuessFingerprint real=1 empty=0
FP exist
downcount 4
CorrectWithBg
ImgCorrection BG reported 0 low pixels from 6400 total (0 percent)
GuessFingerprint mean=5018 stddev=1007
GuessFingerprint distavg=0
GuessFingerprint real=1 empty=0
FP exist
downcount 5
waiting for image...
CorrectWithBg
ImgCorrection BG reported 0 low pixels from 6400 total (0 percent)
GuessFingerprint mean=5099 stddev=902
GuessFingerprint distavg=0
GuessFingerprint real=1 empty=0
FP exist
downcount 6
waiting for image...
CorrectWithBg
ImgCorrection BG reported 0 low pixels from 6400 total (0 percent)
GuessFingerprint mean=5190 stddev=890
GuessFingerprint distavg=0
GuessFingerprint real=1 empty=0
FP exist
downcount 7
waiting for image...
CorrectWithBg
ImgCorrection BG reported 0 low pixels from 6400 total (0 percent)
GuessFingerprint mean=5258 stddev=836
GuessFingerprint distavg=0
GuessFingerprint real=2 empty=0
FP exist
downcount 8
waiting for image...
CorrectWithBg
ImgCorrection BG reported 0 low pixels from 6400 total (0 percent)
GuessFingerprint mean=5251 stddev=818
GuessFingerprint distavg=0
GuessFingerprint real=2 empty=0
FP exist
downcount 9
waiting for image...
CorrectWithBg
ImgCorrection BG reported 0 low pixels from 6400 total (0 percent)
GuessFingerprint mean=5268 stddev=773
GuessFingerprint distavg=1
GuessFingerprint real=2 empty=0
FP exist
downcount 10
waiting for image...
CorrectWithBg
ImgCorrection BG reported 0 low pixels from 6400 total (0 percent)
GuessFingerprint mean=5247 stddev=729
GuessFingerprint distavg=0
GuessFingerprint real=2 empty=0
FP exist
downcount 11
waiting for image...
CorrectWithBg
ImgCorrection BG reported 0 low pixels from 6400 total (0 percent)
GuessFingerprint mean=5236 stddev=707
GuessFingerprint distavg=0
GuessFingerprint real=2 empty=0
FP exist
downcount 12
waiting for image...
CorrectWithBg
ImgCorrection BG reported 0 low pixels from 6400 total (0 percent)
GuessFingerprint mean=5329 stddev=708
GuessFingerprint distavg=1
GuessFingerprint real=2 empty=0
FP exist
downcount 13
CorrectWithBg
ImgCorrection BG reported 0 low pixels from 6400 total (0 percent)
GuessFingerprint mean=5510 stddev=693
GuessFingerprint distavg=0
GuessFingerprint real=2 empty=0
FP exist
downcount 14
waiting for image...
CorrectWithBg
ImgCorrection BG reported 0 low pixels from 6400 total (0 percent)
GuessFingerprint mean=5679 stddev=659
GuessFingerprint distavg=0
GuessFingerprint real=2 empty=0
FP exist
downcount 15
waiting for image...
CorrectWithBg
ImgCorrection BG reported 0 low pixels from 6400 total (0 percent)
GuessFingerprint mean=5781 stddev=627
GuessFingerprint distavg=0
GuessFingerprint real=2 empty=0
FP exist
downcount 16
waiting for image...
CorrectWithBg
ImgCorrection BG reported 0 low pixels from 6400 total (0 percent)
GuessFingerprint mean=5849 stddev=595
GuessFingerprint distavg=0
GuessFingerprint real=2 empty=0
FP exist
downcount 17
waiting for image...
CorrectWithBg
ImgCorrection BG reported 0 low pixels from 6400 total (0 percent)
GuessFingerprint mean=5913 stddev=585
GuessFingerprint distavg=0
GuessFingerprint real=2 empty=0
FP exist
downcount 18
CorrectWithBg
ImgCorrection BG reported 0 low pixels from 6400 total (0 percent)
GuessFingerprint mean=5918 stddev=579
GuessFingerprint distavg=0
GuessFingerprint real=2 empty=0
FP exist
downcount 19
waiting for image...
CorrectWithBg
ImgCorrection BG reported 0 low pixels from 6400 total (0 percent)
GuessFingerprint mean=5802 stddev=641
GuessFingerprint distavg=0
GuessFingerprint real=2 empty=0
FP exist
downcount 20
waiting for image...
CorrectWithBg
ImgCorrection BG reported 0 low pixels from 6400 total (0 percent)
GuessFingerprint mean=4162 stddev=2212
GuessFingerprint distavg=1
GuessFingerprint real=1 empty=1
UNKNOWN
waiting for image...
CorrectWithBg
ImgCorrection BG reported 15 low pixels from 6400 total (0 percent)
GuessFingerprint mean=321 stddev=484
GuessFingerprint distavg=0
GuessFingerprint real=2 empty=0
FP exist
downcount 21
waiting for image...
CorrectWithBg
ImgCorrection BG reported 604 low pixels from 6400 total (9 percent)
GuessFingerprint mean=317 stddev=885
GuessFingerprint distavg=1410
GuessFingerprint real=0 empty=1
EMPTY
Wrote out!
Done..

@mincrmatt12
Copy link
Owner

Alright well it looks like you're capturing images fine, but libfprint doesn't like them being so small. Sometimes it discards stuff close to the edge of the frame, so maybe try increasing the image_width in this file, something like:

--- a/libfprint/drivers/elanspi.c
+++ b/libfprint/drivers/elanspi.c
@@ -1325,7 +1325,7 @@ elanspi_fp_frame_stitch_and_submit (FpiDeviceElanSpi *self)
   g_autoptr(FpImage) img = NULL;
   g_autoptr(FpImage) scaled = NULL;
   struct fpi_frame_asmbl_ctx assembling_ctx = {
-    .image_width = (self->frame_width * 3) / 2,
+    .image_width = (self->frame_width * 3),
 
     .frame_width = self->frame_width,
     .frame_height = self->frame_height,

and see if that helps it any.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants