-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPKG-INFO
198 lines (156 loc) · 6.63 KB
/
PKG-INFO
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
Metadata-Version: 2.1
Name: ecapture
Version: 0.1.8
Summary: Webcams made easy
Home-page: https://github.com/YFOMNN/ecapture
Author: Mohammmed Yaseen
Author-email: [email protected]
License: MIT
Description: # ecapture
[![Downloads](https://pepy.tech/badge/ecapture)](https://pepy.tech/project/ecapture) [![Downloads](https://pepy.tech/badge/ecapture/month)](https://pepy.tech/project/ecapture/month) [![Downloads](https://pepy.tech/badge/ecapture/week)](https://pepy.tech/project/ecapture/week)
## Image Capture Demo
First run the following command in a cmd window
~~~
pip install ecapture
~~~
Then, Create a new python script
Open the script
Import the module
~~~python
from ecapture import ecapture as ec
~~~
Capture using webcam
~~~python
(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)
~~~python
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)
~~~python
ec.capture(0,"test",False)
~~~
The full code
~~~python
from ecapture import ecapture as ec
ec.capture(0,"test","img.jpg")
~~~
## Delayed Image Capture Demo
Create a new python script
Open the script
Import the module
~~~python
from ecapture import ecapture as ec
~~~
Capture the image using webcam
~~~python
ec.delay_imcapture(0,"Image","Demo.jpg",2)
~~~
The delay_imcapture function takes four 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)
~~~python
ec.delay_imcapture(0,"Video","Demo.jpg",2)
~~~
Save name (It can be a variable or a string. If you don't wish to save the image, type False)
~~~python
ec.delay_imcapture(0,"Video",False,2)
~~~
The delay(The time till capturing the image)
~~~python
ec.delay_imcapture(0,"Video","Demo.jpg",2)
~~~
The full code
~~~python
from ecapture import ecapture as ec
ec.delay_imcapture(0,"Video","Demo.jpg",2)
~~~
## Video Capture Demo
Create a new python script
Open the script
Import the module
~~~python
from ecapture import ecapture as ec
~~~
Capture the video using webcam
~~~python
ec.vidcapture(0,"Video","Demo.avi","q")
~~~
The vidcapture function takes four 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)
~~~python
ec.vidcapture(0,"Video","Demo.avi","q")
~~~
Save name (It can be a variable or a string. If you don't wish to save the video, type False)
~~~python
ec.vidcapture(0,"Video",False,"q")
~~~
Exit key (The key you press to stop recording the video. It can be ("q", "x", "a" or any other letter))
~~~python
ec.vidcapture(0,"Video","Demo.avi","x")
~~~
The full code
~~~python
from ecapture import ecapture as ec
ec.vidcapture(0,"Video","Demo.avi","q")
~~~
## Auto Video Capture Demo
Create a new python script
Open the script
Import the module
~~~python
from ecapture import ecapture as ec
~~~
Capture the video using webcam
~~~python
ec.auto_vidcapture(0,"Video","Demo.avi",5)
~~~
The auto_vidcapture function takes four 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)
~~~python
ec.auto_vidcapture(0,"Vid","Demo.avi",5)
~~~
Save name (It can be a variable or a string. If you don't wish to save the video, type False)
~~~python
ec.auto_vidcapture(0,"Video",False,5)
~~~
Exit time (The time until stopping recording of the video. It can be (5, 10, 15, 20 or any number of seconds in between)
~~~python
ec.auto_vidcapture(0,"Video","Demo.avi",10)
~~~
The full code
~~~python
from ecapture import ecapture as ec
ec.auto_vidcapture(0,"Video","Demo.avi",5)
~~~
## Motion Detection
Create a new python script
Open the script
Import the module
~~~python
from ecapture import motion as md
~~~
Check for movement using webcam
~~~python
md.motion_detect(0,"x",0.85,"Detection")
~~~
The motion_detect function takes four arguments:
Camera index(first connected webcam will be of index 0. The next webcam will be of index 1)
Key to stop checking for motion. It can be ("q", "x", "a" or any other letter)
Window name (It can be a variable or a string. If you don't wish to see the window, type False)
Threshold(any value from 0-1)If threshold is set to high value(0.6-1), even the slightest movement will be detected.
And if threshold is set to a low value(0-0.59), only more rapid monement will be detected
The full code
~~~python
from ecapture import motion as md
md.motion_detect(0,"x",0.85,"Detection")
~~~
Platform: UNKNOWN
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Description-Content-Type: text/markdown