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

Add example showing how to capture and store images #45

Open
wants to merge 20 commits into
base: master
Choose a base branch
from

Conversation

otaku42
Copy link
Contributor

@otaku42 otaku42 commented May 25, 2023

This PR adds a new example, v4l2py-snapshot.py. It's implemented as a command line tool, allowing to take a snapshot from a V4L2 device and save it to disc as .jpeg. In case Pillow is available, some additional postprocessing features become available, such as rotating or flipping the image before it is saved to disc.

improve_controls+config+snapshot has been branched off of improve_controls+config, which contains the code referenced in PR #43 that is now also contained here. This PR will shrink to the difference between improve_controls+config and improve_controls+config+snapshot once PR #43 is merged. The code for this example starts with 546c98.

Please let me know if you have any questions, suggestions or would like to see any changes to the code to have it merged.

otaku42 added 20 commits May 7, 2023 15:26
…possible

that the loaded configuration can be applied to the given devide.
That's it for now, and this also closes #10.
…ality.

Pillow-support is optional, though - the example works without it, in which
case some Pillow-based parameters are not made available.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant