Real time Barcode and QR Code scanner Edit
Project description
XCamera: Android-optimized camera widget
XCamera is a widget which extends the standard Kivy Camera widget with more functionality. In particular:
-
it displays a "shoot button", which the user can press to take pictures
-
on Android, it uses the native APIs to take high-quality pictures, including features such as auto-focus, high resolution, etc.
-
it includes a method to force landscape mode. On Android, it is often desirable to switch to landscape mode when taking pictures: you can easily do it by calling
camera.force_landscape()
, and latercamera.resource_orientation()
to restore the orientation to whatever it was before.
Screenshot:
Notes:
-
On Android, the
resolution
property of theXCamera
(and also of the plainCamera
) widget controls the preview size: in other words, it only affects the quality of the preview, not the size of the pictures taken. -
As it is now, the camera will shoot using the default setting for the picture size, which seems to be what the camera think it is "the best". In theory, we could add a method to retrieve the list of all possible picture sizes, and add a property to control it. It would also be nice to add a new button to allow the user to manually select the preferred size. Pull requests are welcome :)
Install
pip install xcamera
Demo
A full working demo is available in src/main.py. You can run it via:
make run
Contribute
To play with the project, install system dependencies and Python requirements using the Makefile.
make
Then verify everything is OK by running tests.
make test
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for kivy_garden.xcamera-2019.911.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48593a8de886d6d0aafc25f1a7dcbb6ab649a304848d545b24606355d2963f7f |
|
MD5 | ee04b65f027cdfd196a5be110c19ad2c |
|
BLAKE2b-256 | 96772e1fb8a115696221714389d9a1c5df59464bcac5f35debe10e8fa4d011fa |
Hashes for kivy_garden.xcamera-2019.911-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9da72536c75aadf26713f6f391b85bd3397b775d1f303bb6a4a40241ba71951 |
|
MD5 | df03e1ecfe4339019a6e019b42c74ceb |
|
BLAKE2b-256 | 46bae58d9e67608635c81956521109edefa434b678888b831688c44f2ab14672 |