Python utilities for machine learning
Project description
Python utility library for machine learning
Opencv
Dnn based face detector:
Example usage:
from pyutils.cvfacedetector.facedetector import FaceDetector
faceDetector = FaceDetector(confidence=0.5) # pass optional confidence
results = faceDetector.detectFaces(img) # returns list of (face, box) for each detected face
for face, box, confidence in results:
print('face', face.shape)
print('box', box)
print('confidence', confidence)
> face (235, 235, 3)
> box [73, 105, 235, 235]
> confidence 0.9877282
Building and publishing the build
# create virtual environment
python -m virtualenv venv
./venv/scripts/activate.ps1 (or source in linux)
pip install -r requirements.txt
python -m build
# upload to test.pypi.org
python -m twine upload --repository testpypi dist/*
# upload to pypi.org
python -m twine upload dist/*
Installing the package
From test.pypi.org:
pip install -i https://test.pypi.org/simple/ lambda-pyutils
From pypi.org:
pip install lambda-pyutils
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
lambda-pyutils-0.2.1.tar.gz
(208.2 kB
view hashes)
Built Distribution
lambda_pyutils-0.2.1-py3-none-any.whl
(208.4 kB
view hashes)
Close
Hashes for lambda_pyutils-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e26f3711e75db247bb9404b2e6c7727acbff2ead4d7cb47b295ba2158a724df8 |
|
MD5 | dade2de4645a687d7f07702c5f5b0b2b |
|
BLAKE2b-256 | 30dc4ddfe9f6997da7aed56bdb37097b2b1cca17d2b2e8d353a3a1a96d898f0b |