Metadata-Version: 2.1
Name: ecapture
Version: 0.0.7
Summary: Webcams made easy
Home-page: https://github.com/YFOMNN/ecapture
Author: Mohammmed Yaseen
Author-email: hmyaseen05@gmail.com
License: MIT
Platform: UNKNOWN
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Description-Content-Type: text/markdown

# 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
~~~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")
~~~


