Real time attendance1/20/2023 ![]() Inside the interpreter (the “>” will appear), import the OpenCV library: import cv2 ![]() Now, enter in your Python interpreter: pythonĪnd confirm that you are running the 3.5 (or above) version. Similarly, any Python packages installed in site-packages of cv will not be available to the global install of Python. So, any Python packages in the global site-packages directory will not be available to the cv virtual environment. If you see the text (cv) preceding your prompt, then you are in the cv virtualenvironment: (cv) calls the attention that the cv Python virtual environment is entirely independent and sequestered from the default Python version included in the download of Raspbian Stretch. Next, let’s enter on our virtual environment: workon cv Let’s go to our virtual environment and confirm that OpenCV 3 is correctly installed.Īdrian recommends run the command “source” each time you open up a new terminal to ensure your system variables have been set up correctly. Once you finished Adrian’s tutorial, you should have an OpenCV virtual environment ready to run our experiments on your Pi. ![]() I advise you to do the same, following his guideline step-by-step. I tried several different guides to install OpenCV on my Pi. I am using a Raspberry Pi V3 updated to the last version of Raspbian (Stretch), so the best way to have OpenCV installed, is to follow the excellent tutorial developed by Adrian Rosebrock: Raspbian Stretch: Install OpenCV 3 + Python on your Raspberry Pi.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |