# AgeGenderDist

人脸尺寸测量库

## 安装

1. pip 安装

```shell
pip install git@git.wanmeizhensuo.com:ai/AgeGenderDist.git#egg=AgeGenderDist
```

## 使用方式

```python
from AgeGenderDist.face_model import FaceModel, FaceModelArgs
import cv2
args = FaceModelArgs()
model = FaceModel(args)

img = cv2.imread('./lihaonan.jpg')
age, gender, dist = model.get_age_gender_dist(img)
print(age)  # 年龄
print(gender)  # 性别 0: 女 1: 男
print(dist)  # 瞳距 单位 px
```
