Code Monkey home page Code Monkey logo

Comments (6)

FunnyWii avatar FunnyWii commented on May 18, 2024

Change your opencv path in the .build file

from mediapipe.

Nibosi0501 avatar Nibosi0501 commented on May 18, 2024

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.

FunnyWii avatar FunnyWii commented on May 18, 2024

No idea about MACOS OpenCV Path, but according to you err msg, the opencv header file is not found.

from mediapipe.

Nibosi0501 avatar Nibosi0501 commented on May 18, 2024

Is there a command-like way to find the OpenCV path?
OpenCV was included with Homebrew.

from mediapipe.

Nibosi0501 avatar Nibosi0501 commented on May 18, 2024
$ brew --prefix opencv
/opt/homebrew/opt/opencv

from mediapipe.

kuaashish avatar kuaashish commented on May 18, 2024

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.

Screenshot 2024-04-30 at 12 51 27 PM

Thank you!!

from mediapipe.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.