/cv-lab5

Primary LanguagePython

Lab5-3D-from-stereo

Python code and lab sheet for lab class 5 on stereo. Details on how to run the code are below and the lab tasks can be found in the lab sheet IPCV-3DLab1-22-23.pdf.

If you are on a Linux system like Ubuntu:

  1. Down load a copy of LabI-v1.py or LabI-v2.py. Both have the same functionality but may be OS dependent. Try v1 first and then v2. v2 recommended for MacOS. If neither work, contact a TA.
  2. Install a virtual environment using conda: conda create -n ipcv python=3.8
  3. Activate the virtual environment: conda activate ipcv
  4. Install opencv: pip install opencv-python or conda install -c menpo opencv
  5. Install open3d: pip install open3d or conda install -c open3d-admin open3d
  6. Run the simulator: python LabI-v1.py (if error, then try python LabI-v2.py)

You may want to use the following recommended versions for certain packages if you are not using a Linux system:

  • For Mac user, we recommend Python is 3.8 or 3.9, numpy 1.21.5 and Open3D 0.16.0

  • For Windows user, we recommend Python 3.8, numpy 1.23.3 and Open3D 0.11.2

Troubleshooting

On Mac, you might need to install LLVM's OpenMP runtime library brew install libomp