Metadata-Version: 2.2
Name: ear-calculator
Version: 0.1.1
Summary: A module to calculate Eye Aspect Ratio (EAR) from images
Author-email: Your Name <your.email@example.com>
Project-URL: Homepage, https://github.com/yourusername/ear-calculator
Project-URL: Bug Tracker, https://github.com/yourusername/ear-calculator/issues
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown
Requires-Dist: numpy
Requires-Dist: scipy
Requires-Dist: opencv-python
Requires-Dist: dlib

# ear-calculator

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

## Installation

```bash
pip install ear-calculator
```

## Usage

```python
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}")
```


