4/30/2023 0 Comments Opencv for macWhen the process is finished 100%, the screenshot should be like this: Up to this step, if your CMake output is good to go you can kick off the compilation via: D CMAKE_MODULE_PATH="$QT5PATH"/lib/cmake \ The QT5PATH should be defined in the previous step (3.2. *If you need QT in your project, don’t forget to add the below command. Once CMake has finished, you will see the following information in the terminal: This is required for OpenCV 4 if you want access to patented algorithms for educational purposes. D PYTHON3_EXECUTABLE=$VIRTUAL_ENV/bin/python \ D PYTHON3_INCLUDE_DIR=`python -c 'import distutils.sysconfig as s print(s.get_python_inc())'` \ D PYTHON3_LIBRARY=`python -c 'import subprocess import sys s = subprocess.check_output("python-config -configdir", shell=True).decode("utf-8").strip() (M, m) = sys.version_info print(".dylib".format(s, M, m))'` \ D OPENCV_PYTHON3_INSTALL_PATH=~/.virtualenvs/p圓cv4/lib/python3.7/site-packages \ D OPENCV_EXTRA_MODULES_PATH=././opencv_contrib/modules \ (in my environment it took about 50 minutes ^^ ) If you are using other name for virtual environment, you should change the below code as your own environment. ![]() Notes: I am using p圓cv4 as virtual environment. Make sure to use the workon command before executing the cmake command as shown below. Navigate back to OpenCV repo and create
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |