Skip to main content

Webcams made easy

Project description

Capture

Function: Capture photos Number of Arguments: 3

import ecapture as ec
ec.capture(0,"frame", "frame.png")

Arguments:

Camera Index

Input the index of the webcam that you choose to use. Index 0 will be first webcam, Index 1 will be the second webcam, and so on and so forth.

Window Name

Input False if a window with the captured image should not be displayed. A window name input as a string will show a window with the captured image

Save Name

Input False if the captured image should not be saved. A save name input as a string will save the captured image with the desired name.

Video Capture

Function: Record videos Number of Arguments: 4

import ecapture as ec
ec.vidCapture(0,"frame", "frame.avi", "x")

Arguments:

Camera Index

Input the index of the webcam that you choose to use. Index 0 will be first webcam, Index 1 will be the second webcam, and so on and so forth.

Window Name

Input False if a window with the captured image should not be displayed. A window name input as a string will show a window with the current frame.

Save Name

Input False if the captured image should not be saved. A save name input as a string will save the recorded video with the desired name.

Exit Key

The key that has to be pressed to end the recording.

Timed Video Capture

Function: Record videos for a specified duration Number of Arguments: 4

import ecapture as ec
ec.vidCapture(0,"frame", "frame.avi", 5)

Arguments:

Camera Index

Input the index of the webcam that you choose to use. Index 0 will be first webcam, Index 1 will be the second webcam, and so on and so forth.

Window Name

Input False if a window with the captured image should not be displayed. A window name input as a string will show a window with the current frame.

Save Name

Input False if the captured image should not be saved. A save name input as a string will save the recorded video with the desired name.

Timer

The time after which the video recording terminates.

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-2.0.1.tar.gz (15.6 kB view hashes)

Uploaded Source

Built Distribution

ecapture-2.0.1-py3-none-any.whl (17.2 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