An easier solution to computer vision.
Project description
An easier solution to computer vision.
What is pycamera?
PyCamera is a computer vision library 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 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.1.tar.gz
(3.2 kB
view details)
Built Distribution
File details
Details for the file pycamera-0.3.1.tar.gz
.
File metadata
- Download URL: pycamera-0.3.1.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 22bd196d5a696e95b9afd7009412d557f3fc5c0d4e89fd1ee18222ddb6e17961 |
|
MD5 | 40232a80b7a97b35f7638e6a51a67435 |
|
BLAKE2b-256 | e1634edf337269dfc4fc55aea44c1484971deb9141c2c124840a5130b4dac0d0 |
File details
Details for the file pycamera-0.3.1-py3-none-any.whl
.
File metadata
- Download URL: pycamera-0.3.1-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2568e2d1c01d0ac62fef641c397dd43155d62448397b54f0b91af1997d650572 |
|
MD5 | e30c95f597d64107930a3e99605b0dbd |
|
BLAKE2b-256 | a57d9ba4b778905709e26224caffc4a4d4c2a50a66c2ecdb9a489b4b91cd0b2e |