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)
white = (255, 255, 255)
draw.ellipse([(10, 10), (100, 100)], width=3, fill=white, outline=white) # Draw circle
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)
Metadata
Release files for pycamera 0.3.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pycamera-0.3.2.tar.gz | 3.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pycamera-0.3.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.0 kB
Release files / pycamera-0.3.2.tar.gz
| Download URL | pycamera-0.3.2.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0deef2e353ec1a01020fbc96bac8199945dadac1583648b98605f23660a27e84
|
|
BLAKE2b-256 checksum How to use checksums |
16baed0e8f4d6cff7a385b139b33d9db57e56f9566ca99951d8057ce5f8e8888
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / pycamera-0.3.2-py3-none-any.whl
| Download URL | pycamera-0.3.2-py3-none-any.whl |
|---|---|
| Size | 3.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
87a2c5f5b44927198c858b0adfbf3deee51e18243d3ab2bff1e26cab678e87de
|
|
BLAKE2b-256 checksum How to use checksums |
1e89a44df9cd60e250e2dde0dcdc5c62af7075fade003417ca11c9b97fd510d9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|