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:
- 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.
- Install a virtual environment using conda: conda create -n ipcv python=3.8
- Activate the virtual environment: conda activate ipcv
- Install opencv: pip install opencv-python or conda install -c menpo opencv
- Install open3d: pip install open3d or conda install -c open3d-admin open3d
- 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
On Mac, you might need to install LLVM's OpenMP runtime library brew install libomp