ecapture-2.0.2
توضیحات
Webcams made easy
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | ecapture-2.0.2 |
| نام | ecapture |
| نسخه کتابخانه | 2.0.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Mohammmed Yaseen |
| ایمیل نویسنده | hmyaseen05@gmail.com |
| آدرس صفحه اصلی | https://github.com/YFOMNN/ecapture |
| آدرس اینترنتی | https://pypi.org/project/ecapture/ |
| مجوز | GNU GPLv3 |
# Capture
Function: Capture photos
Number of Arguments: 3
~~~python
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
~~~python
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
~~~python
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.
نیازمندی
| مقدار | نام |
|---|---|
| - | opencv-python |
نحوه نصب
نصب پکیج whl ecapture-2.0.2:
pip install ecapture-2.0.2.whl
نصب پکیج tar.gz ecapture-2.0.2:
pip install ecapture-2.0.2.tar.gz