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
from ecapture 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
from ecapture import ecapture as ec
ec.capture(0,"test","img.jpg")
Project details
Release history Release notifications | RSS feed
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.7.tar.gz
(1.9 kB
view hashes)