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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file lambda-pyutils-0.2.1.tar.gz.

File metadata

  • Download URL: lambda-pyutils-0.2.1.tar.gz
  • Upload date:
  • Size: 208.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.2

File hashes

Hashes for lambda-pyutils-0.2.1.tar.gz
Algorithm Hash digest
SHA256 62fe7ea5f5cc052ace1885853bac9d8591c884dc49c6bf3e50ed16e9005ce802
MD5 fb85ce1bac4817a977bb7d48b9088da2
BLAKE2b-256 ce601841f21892aa2596fc6b65f739e317ea4e809e74cf5f5eba35f358bf9b82

See more details on using hashes here.

File details

Details for the file lambda_pyutils-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: lambda_pyutils-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 208.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.2

File hashes

Hashes for lambda_pyutils-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e26f3711e75db247bb9404b2e6c7727acbff2ead4d7cb47b295ba2158a724df8
MD5 dade2de4645a687d7f07702c5f5b0b2b
BLAKE2b-256 30dc4ddfe9f6997da7aed56bdb37097b2b1cca17d2b2e8d353a3a1a96d898f0b

See more details on using hashes here.

Supported by

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