From d0fd53e5781504a987e0103d2f86f3d17b9578ec Mon Sep 17 00:00:00 2001 From: theSoenke Date: Sat, 5 Oct 2019 11:37:37 +0200 Subject: [PATCH] Add usage example --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 23e86e4..b525b3c 100644 --- a/README.md +++ b/README.md @@ -5,4 +5,13 @@ Implementation of [Fine-Grained Head Pose Estimation Without Keypoints](https:// ./scripts/download_model.sh python3 head_pose.py --image face.png + +## Usage + +```python +head_pose = HeadPose("data/hopenet.pkl") +angles = head_pose.predict("face.png") +print(f"Pose: {angles}) +``` + Code based on [natanielruiz/deep-head-pose](https://github.com/natanielruiz/deep-head-pose)