Detectors World is a Python package created for building Computer Vision applications in easy and handy way.
Project description
Detectors World
Detectors World is a Python package created for building Computer Vision applications in easy and handy way.
Developed by @MeqdadDev
Available Computer Vision Detectors
The available detectors in Detectors World package are:
- Hand Detection
- Face Detection
- Pose Detection
- Face Mesh Detection
More detectors will be added in the next releases. Check out contribution guides below.
Documentation
A mini version for documentation is created, check it out from here.
The complete documentation will be added soon....
Dependencies
Detectors World dependencies are:
opencv-python
mediapipe
Detectors World works with Python >= 3.7
Installation
Install detectors world package with pip
pip install detectors_world
Run Detectors
Hand Detector
Hand detector examples with OpenCV:
Example 1:
from detectors_world import DetectorCreator
import cv2 as cv
cap = cv.VideoCapture(0)
creator = DetectorCreator()
hand = creator.getDetector("hand")
while True:
status, img = cap.read()
hand.detect(img, drawOnHand=True)
cv.imshow("Hand Detection", img)
cv.waitKey(1)
Example 2:
from detectors_world import DetectorCreator
import cv2 as cv
cap = cv.VideoCapture(0)
creator = DetectorCreator()
hand = creator.getDetector("hand")
while True:
status, img = cap.read()
hand.detect(img, drawOnHand=True)
landmarks = hand.locate(img, drawOnHand=True, handsNumber=1)
cv.imshow("Hand Detection", img)
cv.waitKey(1)
Pose Detector
Pose detector examples with OpenCV:
Example 1:
from detectors_world import DetectorCreator
import cv2 as cv
cap = cv.VideoCapture(0)
creator = DetectorCreator()
pose = creator.getDetector("pose")
while True:
status, img = cap.read()
pose.detect(img, drawOnPose=True)
cv.imshow("Pose Detection", img)
cv.waitKey(1)
Face Detector
Face detector examples with OpenCV:
Example 1:
from detectors_world import DetectorCreator
import cv2 as cv
cap = cv.VideoCapture(0)
creator = DetectorCreator()
face = creator.getDetector("face")
while True:
status, img = cap.read()
face.detect(img, drawOnFace=True)
cv.imshow("Face Detection", img)
cv.waitKey(1)
Example 2:
from detectors_world import DetectorCreator
import cv2 as cv
cap = cv.VideoCapture(0)
creator = DetectorCreator()
face = creator.getDetector("face")
while True:
status, img = cap.read()
face.detect(img, drawOnFace=False)
landmarks = face.locate(img, drawOnFace=True)
cv.imshow("Face Detection", img)
cv.waitKey(1)
Face Mesh Detector
Face mesh detector examples with OpenCV:
Example 1:
from detectors_world import DetectorCreator
import cv2 as cv
cap = cv.VideoCapture(0)
creator = DetectorCreator()
facemesh = creator.getDetector("face_mesh")
while True:
status, img = cap.read()
facemesh.detect(img, drawOnFace=True)
cv.imshow("Facemesh Detection", img)
cv.waitKey(1)
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
For new projects/examples, please make sure you've tested your code in real environment. And to avoid duplications, please take a sneak peek on the uploaded projects before making your PR.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file detectors_world-0.0.2.tar.gz
.
File metadata
- Download URL: detectors_world-0.0.2.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4530269cfd22211ef992b979c8c681f35ca473229db0ad73d273bcd159f1ac3b |
|
MD5 | 3420229fae5171585a0a3ecca8537657 |
|
BLAKE2b-256 | d7bce115c0c82bdaa840b53bd8c87651072944fd60f217ffe78c3012b9bdebe1 |
Provenance
File details
Details for the file detectors_world-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: detectors_world-0.0.2-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 31cbea3ba903bc9e0ae1e2986cd8ecfa902e29fc6f4a9e41de824d1210d99916 |
|
MD5 | 481bbe1f449d955562a284ba855b70be |
|
BLAKE2b-256 | f0f6e0fdf1c7bb1b435d639800fc3b8da491dc348d9c615f856abb2354be4640 |