Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pycamera

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pycamera

An easier solution to computer vision.

  • 0.3.2
  • PyPI
  • Socket score

Maintainers
1

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)

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc