Update install.md

"linux_ffmpeg" needs to be changed as well as "linux_opencv" for OpenCV 4
This commit is contained in:
razak-io 2020-01-21 13:54:17 -06:00 committed by GitHub
parent d144e564d8
commit b61f5aaf21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -70,8 +70,8 @@ To build and run iOS apps:
Note: You may need to modify [`WORKSPACE`] and [`opencv_linux.BUILD`] to
point MediaPipe to your own OpenCV libraries, e.g., if OpenCV 4 is installed
in "/usr/local/", you need to update the "linux_opencv" new_local_repository
rule in [`WORKSPACE`] and "opencv" cc_library rule in [`opencv_linux.BUILD`]
in "/usr/local/", you need to update the "linux_opencv" and "linux_ffmpeg" new_local_repository
rules in [`WORKSPACE`] and "opencv" cc_library rule in [`opencv_linux.BUILD`]
like the following:
```bash
@ -81,6 +81,12 @@ To build and run iOS apps:
path = "/usr/local",
)
new_local_repository(
name = "linux_ffmpeg",
build_file = "@//third_party:ffmpeg_linux.BUILD",
path = "/usr/local"
)
cc_library(
name = "opencv",
srcs = glob(