Skip to main content

Real time Barcode and QR Code scanner Edit

Project description

XCamera: Android-optimized camera widget

Build Status PyPI version

XCamera is a widget which extends the standard Kivy Camera widget with more functionality. In particular:

  1. it displays a "shoot button", which the user can press to take pictures

  2. on Android, it uses the native APIs to take high-quality pictures, including features such as auto-focus, high resolution, etc.

  3. 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 later camera.resource_orientation() to restore the orientation to whatever it was before.

Screenshot:

screenshot

Notes:

  • On Android, the resolution property of the XCamera (and also of the plain Camera) 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

kivy_garden.xcamera-0.0.1.tar.gz (43.1 kB view details)

Uploaded Source

Built Distribution

kivy_garden.xcamera-0.0.1-py3-none-any.whl (43.7 kB view details)

Uploaded Python 3

File details

Details for the file kivy_garden.xcamera-0.0.1.tar.gz.

File metadata

  • Download URL: kivy_garden.xcamera-0.0.1.tar.gz
  • Upload date:
  • Size: 43.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8

File hashes

Hashes for kivy_garden.xcamera-0.0.1.tar.gz
Algorithm Hash digest
SHA256 83a0914ba3df2110fd205e0e8a4f749bcda846db81c605a4e553228d25eb65f6
MD5 37c2cb4408ae0f54025f7c4b6b5f4e4a
BLAKE2b-256 f907f51587a8648e735586e5e45ce65ad61cbae2980bc93b894c0fb628a9d20f

See more details on using hashes here.

File details

Details for the file kivy_garden.xcamera-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: kivy_garden.xcamera-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 43.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8

File hashes

Hashes for kivy_garden.xcamera-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cce3ef3c860e1fc40d03c981053948a23766038dd4de59ba3bb10f416c9c8fc5
MD5 af2eafe4a3d82803e88ae380c4e359ab
BLAKE2b-256 783103ce21512f45b3af47e7c3d9f5e8ca1245ef0e15102602dbf92021c8e034

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page