Skip to main content

An easier solution to computer vision.

Project description

An easier solution to computer vision.

What is pycamera?

Pycamera is a wrapper around OpenCV for people who, don't know how to use OpenCV, don't want to use OpenCV for such a simple project, or want something easier!

Examples

Save Picture

from pycamera import camera

cam = camera.Camera(0) # Choosing a camera
snap = cam.snap() # Snapping a picture from that camera

snap.save("output.jpg") # Save picture to output.jpg

Editing with Pillow

from pycamera import camera
from PIL import Image, ImageDraw

cam = camera.Camera(0) # Choosing a camera
snap = cam.snap() # Snap photo
image = snap.to_pillow() # Convert pycamera image to Pillow image

draw = ImageDraw.Draw(image)
# Draw stuff here
image.show()

Live View

import pycamera
from pycamera import camera

cam = camera.Camera(0) # Choosing a camera

while True:
    snap = cam.read() # (reading is better for loops)
    snap.show()
    pycamera.waitForKey() # Wait until key is pressed (default key is Escape)

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

pycamera-0.3.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

pycamera-0.3-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file pycamera-0.3.tar.gz.

File metadata

  • Download URL: pycamera-0.3.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for pycamera-0.3.tar.gz
Algorithm Hash digest
SHA256 b0128cdaa3ed911864d19fef292f712c0fbf4b41dd0cf1bbb4ca3f154bd2728e
MD5 6f121803e98d097749946e9f4bacdef6
BLAKE2b-256 1fb9571e37ae5e6d4090dd268a599404ade13c1b711687a23d111361f7e9551b

See more details on using hashes here.

File details

Details for the file pycamera-0.3-py3-none-any.whl.

File metadata

  • Download URL: pycamera-0.3-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for pycamera-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a6cb5f83208f728dcc853cd5366faa98570c499c91187237de1a1a6ef778fa23
MD5 25ed70d1b2a283a38de62ef69ff28334
BLAKE2b-256 016c642ab07795f1280b7f5993f948889fa91a453c63f1f22f5941d5f60ef275

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