Skip to main content

ear-calculator

A Python module to compute Eye Aspect Ratio (EAR) from images.

Installation

pip install ear-calculator

Usage

from ear_calculator import EARCalculator

model_path = "shape_predictor_68_face_landmarks.dat"
ear_calculator = EARCalculator(model_path)

with open("face_image.jpg", "rb") as img_file:
    image_data = base64.b64encode(img_file.read()).decode('utf-8')

ear = ear_calculator.get_ear_from_image(image_data)
print(f"Eye Aspect Ratio (EAR): {ear}")

Metadata

Release files for ear-calculator 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ear-calculator 0.1.1
File Size Uploaded Provenance
ear_calculator-0.1.1.tar.gz 2.2 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for ear-calculator 0.1.1
File Interpreter ABI Platform
ear_calculator-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 4.7 kB

Release files / ear_calculator-0.1.1.tar.gz

Download URL ear_calculator-0.1.1.tar.gz
Size 2.2 kB
Tags Source
SHA-256 checksum
How to use checksums
00ee4f4d7992c8204ed08036082c325537b3beae6d0295d8d27b224e512f06e5
BLAKE2b-256 checksum
How to use checksums
d2a6c5f9da15d9b160c6fc4ee0b1a785408628872a893e8acda7fe4a815dcf43
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.2

Release files / ear_calculator-0.1.1-py3-none-any.whl

Download URL ear_calculator-0.1.1-py3-none-any.whl
Size 2.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
93df41e6954d4f3c9166eaa159ab2318668802800a783550efda8aa37422b3af
BLAKE2b-256 checksum
How to use checksums
88b139388087345f9c76deb4e3757e65934b26e9cd149bf62d2ced5d799d29d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.2

Security for ear-calculator 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page