![]() #Python opencv mac how toIn this post, you learned how to install and uninstall OpenCV into your virtualenv. (ipy-jupyter-venv3) Liping:~$ pip3 uninstall opencv-contrib-python (ipy-jupyter-venv3) Liping:~$ pip3 uninstall opencv-python Step 4 (optional): To uninstall opencv inside virtualenv, following the command below according to how you installed it. OpenCV in C++ To use OpenCV in C++, we can simply use CMakeLists.txt and specify the OpenCVDIR variable. workon OpenCV-3.4.4-p圓 Next, let’s import the module and verify the OpenCV Version installed. Type “help”, “copyright”, “credits” or “license” for more information. OpenCV in Python To use cv2 module in Python, we will first activate the Python environment. To test whether OpenCV installed correctly into your virtualenv, in your terminal type in those command below in bold. Step 3: Test whether openCV is installed correctly I f you need both main and contrib modules (check extra modules listing from OpenCV documentation), in your activated virtualenv in your terminal, run the following (ipy-jupyter-venv3)$ pip3 install opencv-contrib-python (ipy-jupyter-venv3)$ pip3 install opencv-pythonĢ. ![]() If you need only main modules, in your activated virtualenv in your terminal, run the following.Step 2: Install OpenCV (modules) according to your needs ![]() (ipy-jupyter-venv3)$ # Your prompt should change Step 1: Activate your virtualenv in your terminalįor example: $ source ~/ipy-jupyter-venv3/bin/activate If you have not setup virtualenv on your mac, check my post here to do that before you proceed the tutorial in this post. This post introduces how to install OpenCV3 into a virtualenv on Mac. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |