Skip to main content

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)

Uploaded Source

Built Distribution

lambda_pyutils-0.2.1-py3-none-any.whl (208.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page