upektc_img: set partial flag on an image
Sensor width seems to be only 128 pixels and that's not enough for scanning whole finger surface. Lower bz3_threshold to 20, since for wrong fingerprint score never goes above 10, but sometimes for right finger score is below 40.
This commit is contained in:
parent
9bbd9b208a
commit
bd0d4258e4
1 changed files with 2 additions and 1 deletions
|
@ -302,6 +302,7 @@ static void capture_read_data_cb(struct libusb_transfer *transfer)
|
|||
BUG_ON(upekdev->image_size != IMAGE_SIZE);
|
||||
fp_dbg("Image size is %d\n", upekdev->image_size);
|
||||
img = fpi_img_new(IMAGE_SIZE);
|
||||
img->flags = FP_IMG_PARTIAL;
|
||||
memcpy(img->data, upekdev->image_bits, IMAGE_SIZE);
|
||||
fpi_imgdev_image_captured(dev, img);
|
||||
fpi_imgdev_report_finger_status(dev, FALSE);
|
||||
|
@ -665,7 +666,7 @@ struct fp_img_driver upektc_img_driver = {
|
|||
.flags = 0,
|
||||
.img_height = IMAGE_HEIGHT,
|
||||
.img_width = IMAGE_WIDTH,
|
||||
.bz3_threshold = 70,
|
||||
.bz3_threshold = 20,
|
||||
|
||||
.open = dev_init,
|
||||
.close = dev_deinit,
|
||||
|
|
Loading…
Reference in a new issue