aes1660: 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 25, since for wrong finger score never goes above 10, but sometimes for right finger score is below 40.
This commit is contained in:
parent
bd0d4258e4
commit
985e8c4577
3 changed files with 4 additions and 1 deletions
|
@ -56,6 +56,7 @@ static int dev_init(struct fp_img_dev *dev, unsigned long driver_data)
|
||||||
aesdev->start_imaging_cmd = (unsigned char *)aes1660_start_imaging_cmd;
|
aesdev->start_imaging_cmd = (unsigned char *)aes1660_start_imaging_cmd;
|
||||||
aesdev->start_imaging_cmd_len = sizeof(aes1660_start_imaging_cmd);
|
aesdev->start_imaging_cmd_len = sizeof(aes1660_start_imaging_cmd);
|
||||||
aesdev->frame_width = FRAME_WIDTH;
|
aesdev->frame_width = FRAME_WIDTH;
|
||||||
|
aesdev->extra_img_flags = FP_IMG_PARTIAL;
|
||||||
|
|
||||||
fpi_imgdev_open_complete(dev, 0);
|
fpi_imgdev_open_complete(dev, 0);
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -102,7 +103,7 @@ struct fp_img_driver aes1660_driver = {
|
||||||
.flags = 0,
|
.flags = 0,
|
||||||
.img_height = -1,
|
.img_height = -1,
|
||||||
.img_width = FRAME_WIDTH + FRAME_WIDTH / 2,
|
.img_width = FRAME_WIDTH + FRAME_WIDTH / 2,
|
||||||
.bz3_threshold = 70,
|
.bz3_threshold = 20,
|
||||||
|
|
||||||
.open = dev_init,
|
.open = dev_init,
|
||||||
.close = dev_deinit,
|
.close = dev_deinit,
|
||||||
|
|
|
@ -313,6 +313,7 @@ static void capture_set_idle_cmd_cb(struct libusb_transfer *transfer)
|
||||||
aesdev->strips = g_slist_reverse(aesdev->strips);
|
aesdev->strips = g_slist_reverse(aesdev->strips);
|
||||||
img = aes_assemble(aesdev->strips, aesdev->strips_len,
|
img = aes_assemble(aesdev->strips, aesdev->strips_len,
|
||||||
aesdev->frame_width, FRAME_HEIGHT, aesdev->frame_width + aesdev->frame_width / 2);
|
aesdev->frame_width, FRAME_HEIGHT, aesdev->frame_width + aesdev->frame_width / 2);
|
||||||
|
img->flags |= aesdev->extra_img_flags;
|
||||||
g_slist_foreach(aesdev->strips, (GFunc) g_free, NULL);
|
g_slist_foreach(aesdev->strips, (GFunc) g_free, NULL);
|
||||||
g_slist_free(aesdev->strips);
|
g_slist_free(aesdev->strips);
|
||||||
aesdev->strips = NULL;
|
aesdev->strips = NULL;
|
||||||
|
|
|
@ -61,6 +61,7 @@ struct aesX660_dev {
|
||||||
unsigned char *start_imaging_cmd;
|
unsigned char *start_imaging_cmd;
|
||||||
size_t start_imaging_cmd_len;
|
size_t start_imaging_cmd_len;
|
||||||
unsigned int frame_width;
|
unsigned int frame_width;
|
||||||
|
uint16_t extra_img_flags;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct aesX660_cmd {
|
struct aesX660_cmd {
|
||||||
|
|
Loading…
Add table
Reference in a new issue