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

Uploaded Source

Built Distribution

ecapture-2.0.2-py3-none-any.whl (17.2 kB view details)

Uploaded Python 3

File details

Details for the file ecapture-2.0.2.tar.gz.

File metadata

  • Download URL: ecapture-2.0.2.tar.gz
  • Upload date:
  • Size: 15.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for ecapture-2.0.2.tar.gz
Algorithm Hash digest
SHA256 0c76cf0b543d0276c7230d647d90006b77041483de4c8e6c6d175a944bb81003
MD5 1cf195f30297c4b07f4d8fe65f1ab030
BLAKE2b-256 13128eaf0f5fcb0989a2908a88ae1be70225e25cf18a63a8d6d3196a3b38f4eb

See more details on using hashes here.

File details

Details for the file ecapture-2.0.2-py3-none-any.whl.

File metadata

  • Download URL: ecapture-2.0.2-py3-none-any.whl
  • Upload date:
  • Size: 17.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for ecapture-2.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3de1b2b719352f19e786a37a0af4f7fe64900101f06e8ce37888304b223bcf0e
MD5 49fafae7e2b9bfab9af007b575029332
BLAKE2b-256 e23273ed03d875e54d10cae12194cef902ea6a6d1869b00e820f16335fcab853

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page