-
Notifications
You must be signed in to change notification settings - Fork 20
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
otaku42
wants to merge
20
commits into
tiagocoutinho:master
Choose a base branch
from
otaku42:improve_controls+config+snapshot
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Add example showing how to capture and store images #45
otaku42
wants to merge
20
commits into
tiagocoutinho:master
from
otaku42:improve_controls+config+snapshot
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…possible that the loaded configuration can be applied to the given devide.
That's it for now, and this also closes #10.
Improve controls
… it to a .jpg file
…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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.