Skip to main content

Webcams made easy

Project description

ecapture

Demo

First run the following command in a cmd window

pip install opencv-python

Then, run

pip install ecapture

Create a new python script

Open the script

Import the module

import ecapture as ec

Capture using webcam

(ec.capture(0,False,"img.jpg"))

The capture function takes three arguments: Camera index(first connected webcam will be of index 0. The next webcam will be of index 1)

Window name (It can be a variable or a string. If you don't wish to see the window, type False)

ec.capture(0,False,"img.jpg")

Save name (It can be a variable or a string. If you don't wish to save the image, type False)

ec.capture(0,"test",False)

The full code

import ecapture as ec

ec.capture(0,"test","img.jpg")

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

ecapture-0.0.6.tar.gz (1.9 kB view hashes)

Uploaded Source

Built Distribution

ecapture-0.0.6-py3-none-any.whl (3.4 kB view hashes)

Uploaded Python 3

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