Comments (6)
Change your opencv path in the .build file
from mediapipe.
What specific paths should be used?
Current WORKSPACE
new_local_repository(
name = "macos_opencv",
build_file = "@//third_party:opencv_macos.BUILD",
# For local MacOS builds, the path should point to an opencv@3 installation.
# If you edit the path here, you will also need to update the corresponding
# prefix in "opencv_macos.BUILD".
# path = "/usr/local", # e.g. /usr/local/Cellar for HomeBrew
path = "/opt/homebrew",
)
new_local_repository(
name = "macos_ffmpeg",
build_file = "@//third_party:ffmpeg_macos.BUILD",
#path = "/usr/local/opt/ffmpeg",
path = "/opt/homebrew/opt/ffmpeg",
)
from mediapipe.
No idea about MACOS OpenCV Path, but according to you err msg, the opencv header file is not found.
from mediapipe.
Is there a command-like way to find the OpenCV path?
OpenCV was included with Homebrew.
from mediapipe.
$ brew --prefix opencv
/opt/homebrew/opt/opencv
from mediapipe.
Hi @Nibosi0501,
To resolve the issue, please ensure that the path to OpenCV is added correctly in the Workspace. You need to do changes here:
https://github.com/google/mediapipe/blob/master/WORKSPACE#L382
and https://github.com/google/mediapipe/blob/master/WORKSPACE#L391.
If this still an issue, you can modify the path in the macos_opencv repository. Change the path to point to your Homebrew directory, specifically if it contains opencv@3 within the homebrew/opt directory. Avoid adding /opt/opencv@3 and also adjust the ffmpeg path to point to /opt/homebrew/opt/ffmpeg, as shown in the attached screenshot below.
Thank you!!
from mediapipe.
Related Issues (20)
- When I use RGB data, errors always occur. Can I use RGB formatted images for inference in Java? HOT 3
- Build fails for Coral - Docker gcc too old for XNNPACK? HOT 6
- MediaPipe FaceDetector Module POC Error - Error: StartGraph failed: $Service "kGpuService", required by node HOT 5
- How to turn off the automatic pop-up gesture in gesture recognition HOT 2
- Missing API declaration Warning from Apple App Store Connect HOT 2
- couldn't use kaggle GPU HOT 3
- Mediapipe lagging with Tkinter HOT 4
- No attribute 'GenerateCpuTfLite' HOT 5
- 0.10.12 not released on Pypi HOT 2
- Support for Converting Other LLMs like GPT-2 & QWEN in MediaPipe HOT 3
- Codepen pose landmark demo multi-pose issue HOT 3
- RuntimeError: ValidatedGraphConfig Initialization failed. HOT 1
- draw_landmarks fails when using HandLandmarker HOT 15
- Mobile app crashes in AndroidStudio with java.lang.UnsatisfiedLinkError: dlopen failed: library "libmediapipe_tasks_text_jni.so" not found HOT 3
- LLM inference task questions (GPU implementation, KV cache) HOT 4
- No logs after switching to GUI (wxWidgets) Windows-only HOT 2
- ValueError: Task runner is currently not running. HOT 2
- Use of preprocessor directives in function-like macros is undefined HOT 4
- Disable/customise augmentation for the object_detector task HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mediapipe.