Computer Vision Setup Procedure (MAC OS) - Carleton-SRCL/SPOT GitHub Wiki

Mac Users

Must have OS version up to at least 10.15.7, otherwise cannot work on Mac.

  1. Install Python 3.8.10

  2. Install pip

    • Open terminal and run the following:
    python3 -m pip install PACKAGE
    
  3. Install Xcode

    • For old OS users, sign up as a developer in Apple and download the proper version/ sign up here: https://developer.apple.com/download/all/?q=xcode
      • For 10.15.7 this is 12.4, otherwise, google your current OS and find the compatible version of Xcode.
    • Activate its licence by opening terminal from your mac applications and run the line:
    sudo xcodebuild -license
    
  4. Install VSCode

    • A comprehensive guide to downloading/installing VSCode can be found at: https://code.visualstudio.com/docs/languages/python
    • Set up your working folder in VSCode to store your files and such.
    • To check which version of Python you are using, type the following within the terminal:
    python3 -v
    
    • Press Command+Shift+P, select "Python:select Interpreter", and select "Python Version 3.8".
    • Running the previous command in the terminal now should show python 3.8.10.
  5. Ensure wheels are up to date

    • Within the terminal of VScode, run:
    python3 -m pip install --upgrade pip setuptools wheel
    
  6. Download Numpy

    • Within the terminal of VScode, run:
    python3 -m pip install numpy
    
  7. Download openCV

    • Within the terminal of VScode, run:
    python3 -m pip install opencv-contrib-python
    
    • This could take about 30 min to an hour.
  8. Check proper installation

    • To ensure the package has installed correctly in a new python file within VScode, type:
    import cv2
    cv2.aruco. 
    
    • While typing the second line and leaving the last period open, a large list of functions within the ArUco package should appear for use. Otherwise, try one of the Cvis files to see if it recognizes the functions.

Click here to go BACK