Update installation step in README.md

This commit is contained in:
Xavier Valls 2022-01-06 11:42:21 +01:00 committed by GitHub
parent 71998bc650
commit 38f4da8a11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,14 +9,17 @@ Currently, the following features are supported:
## Prerequisites
Follow the guidelines on the official Mediapipe website: https://google.github.io/mediapipe/getting_started/install.html#installing-on-windows
IMPORTANT: The tutorial does not specify which version of Bazel to install. Install Bazel version 3.7.2
IMPORTANT: The tutorial does not specify which version of Bazel to install. Install Bazel version 3.7.2. The OpenCV version used by default in mediapipe is 3.4.10.
If you are using a different OpenCV version, adapt the `OPENCV_VERSION` variable in the file `mediapipe/external/opencv_<platform>.BUILD` to the one installed in the system (https://github.com/google/mediapipe/issues/1926#issuecomment-825874197).
## How to build
Assuming you're in the root of the repository:
```
cd mediapipe
bazel build -c opt --define MEDIAPIPE_DISABLE_GPU=1 pose_tracking_dll:pose_tracking_cpu
bazel build -c opt --define MEDIAPIPE_DISABLE_GPU=1 --action_env PYTHON_BIN_PATH=<path to the python executable described using forward slashes ("/")> pose_tracking_dll:pose_tracking_cpu
```
Alternatively `dbg` can be used in place of `opt` to build the library with debug symbols in Visual Studio pdb format.