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)
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)
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.2.tar.gz
(3.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pycamera-0.3.2.tar.gz.
File metadata
- Download URL: pycamera-0.3.2.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 |
0deef2e353ec1a01020fbc96bac8199945dadac1583648b98605f23660a27e84
|
|
| MD5 |
6ad710f37782576179d22b95ff166388
|
|
| BLAKE2b-256 |
16baed0e8f4d6cff7a385b139b33d9db57e56f9566ca99951d8057ce5f8e8888
|
File details
Details for the file pycamera-0.3.2-py3-none-any.whl.
File metadata
- Download URL: pycamera-0.3.2-py3-none-any.whl
- Upload date:
- Size: 3.8 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 |
87a2c5f5b44927198c858b0adfbf3deee51e18243d3ab2bff1e26cab678e87de
|
|
| MD5 |
7e7a18cde2c6a47522ae737dac424cee
|
|
| BLAKE2b-256 |
1e89a44df9cd60e250e2dde0dcdc5c62af7075fade003417ca11c9b97fd510d9
|