mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2025-11-15 07:38:12 +00:00
lib: re-add partial image flag
And activate perimeter points removal if this flag is set This flag should be set for aes1610, aesx660, aes2501, aes2550 and upektc_img since these sensors may produce incomplete image. Fixes: #142
This commit is contained in:
@@ -310,6 +310,7 @@ capture_read_data_cb (FpiUsbTransfer *transfer, FpDevice *device,
|
||||
fp_dbg ("Image size is %lu\n",
|
||||
self->image_size);
|
||||
img = fp_image_new (IMAGE_WIDTH, IMAGE_HEIGHT);
|
||||
img->flags |= FPI_IMAGE_PARTIAL;
|
||||
memcpy (img->data, self->image_bits,
|
||||
IMAGE_SIZE);
|
||||
fpi_image_device_image_captured (dev, img);
|
||||
|
||||
Reference in New Issue
Block a user