Giter Club home page Giter Club logo

Comments (4)

habjoel avatar habjoel commented on July 4, 2024

@mdegans The script worked flawlessly for OpenCV 4.5.0. :) The only thing I am confused about is that there is no /usr/include/opencv4 or /usr/lib/python3.6/dist-packages/cv2 directory, which exist for the native OpenCV installation. Why is that and should I be worried about it?

Furthermore, I am planning to use OpenCV together with ROS Melodic and I am hoping that ROS will use my newly installed OpenCV with CUDA... do you have any experience with that?

from nano_build_opencv.

mdegans avatar mdegans commented on July 4, 2024

Hi @mdegans

I would like to use your script to build OpenCV with CUDA support on the Jetson AGX Xavier. There is already a OpenCV installed on the device through Jetpack (but without cuda). Do I need uninstall it before running the script (sudo apt-get purge -y 'opencv') or does it work without that?

Furthermore, is there any reason why this script should not work for OpenCV version > 4.4.0?

It's not mandatory to remove a preexisting version of OpenCV so long as you know your build system and/or python paths. Some Nvidia software requires 4.1.1 anyway, I think, and as such apt might remove more than you'd expect (because it would break that software anyway).

from nano_build_opencv.

mdegans avatar mdegans commented on July 4, 2024

@mdegans The script worked flawlessly for OpenCV 4.5.0. :) The only thing I am confused about is that there is no /usr/include/opencv4 or /usr/lib/python3.6/dist-packages/cv2 directory, which exist for the native OpenCV installation. Why is that and should I be worried about it?

Furthermore, I am planning to use OpenCV together with ROS Melodic and I am hoping that ROS will use my newly installed OpenCV with CUDA... do you have any experience with that?

You'll have to look into OpenCV's cmake to see how it figures out the python path (and the way that worked it changed recently). If you run the script from within a venv, it'll probably pick the venv's location to install the python module. In any case you should be able to copy and paste the cv2 directory wherever you want it without breaking anything.

from nano_build_opencv.

HXB-1997 avatar HXB-1997 commented on July 4, 2024

what's your jetpack version? @habjoel my jetpack is 5.1.2,and I specified OpenCV version 4.5.0. when I run the bash, terminal says multipul dependency unmet,and the dependency is not to be installed

from nano_build_opencv.

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.