Skip to content

Commit

Permalink
Enable installation on Apple M1
Browse files Browse the repository at this point in the history
Add readme content to ensure c++ 11 compilation on mac
  • Loading branch information
Timozen committed Mar 6, 2023
1 parent b6432ba commit 368501a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,19 @@ The user can provide `face_data` which then projected onto the `face_img`.
We support automatic face detection with landmark extraction using `mediapipe`.
However, the user can also provide the landmarks manually if they are already known and fit the Canonical Face Model.

## Installation

### MacOS

To use meshpy a C++ compiler is required.
On MacOS you can use xcodebuild which is installed by default.
To enable it please run the following command and agree to the license agreement.
Then it should be able to compile the C++ code in your python environment.

```bash
sudo xcodebuild -license
```

## Usage

```python
Expand Down
3 changes: 2 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ install_requires =
numpy
meshpy
opencv-python-headless
mediapipe
mediapipe; platform_system != "Darwin" or platform.machine != "arm64"
mediapipe-silicon; platform_system == "Darwin" and platform.machine == "arm64"

[options.packages.find]
where = src
Expand Down

0 comments on commit 368501a

Please sign in to comment.