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

Implement capturing an image as PNG #1

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Vogtinator
Copy link

I've got this sensor in my HP envy x360 15 model from 2021 and decided to play around a bit.

I don't have a windows installation to get USB traces, so I had a look at the driver and found a way (three different ones, actually, this one is to grab an image immediately) to get a raw 14bit image from the sensor.

Taking it a step further, with a quick-n-dirty PyQt GUI it's visible that it can capture at about 6-7fps, which is fun.

0x40 is part of the command code, not all commands have it.
First query the sensor size using a new command, then capture an image,
and save it as 8bit greyscale PNG file.
@Vogtinator
Copy link
Author

FWICT, the protocol matches pretty much exactly what's documented in https://gitlab.freedesktop.org/libfprint/libfprint/-/blob/master/libfprint/drivers/elan.h. So with that driver it might "just work".

For elanmoc, which I guess is the preferred option, I can only spot small differences. Which problems did you run into when trying to enable support for 0c4c in there?

@depau
Copy link
Owner

depau commented Dec 27, 2021

Anyway, it's good that you figured out how to retrieve the PNG image since the Match-On-Chip functionality has the issues you can read about in the MR linked above.

I'll take a look when I can.

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

Successfully merging this pull request may close these issues.

2 participants