Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ Here forward projection refers to how 3D points, from the real world, are projec

## Examples

Before executing the examples, create and activate a Conda virtual environment defined in `./conda_environments/3d-computer-vision.yml`. After cloning the repo, the test data used in the examples needs to be pulled
using `git pull` or `git lfs pull`.
Before executing the examples, create and activate a Conda virtual environment defined in `./conda_environments/3d-computer-vision.yml`. **After cloning the repo, the test data used in the examples needs to be pulled using `git pull` or `git lfs pull`.** Take a look [here](https://docs.github.com/en/repositories/working-with-files/managing-large-files/installing-git-large-file-storage) regarding how to install Git LFS.

### KITTI Example

Expand Down Expand Up @@ -69,7 +68,7 @@ python ./homography_example.py
The directory `./test_data` contains test 3D point clouds and images. The KITTI data is from the [KITTI Vision Benchmark](http://www.cvlibs.net/datasets/kitti/) [raw dataset](http://www.cvlibs.net/datasets/kitti/raw_data.php). The fish-eye camera data is from the [OCamCalib Toolbox](https://sites.google.com/site/scarabotix/ocamcalib-toolbox/ocamcalib-toolbox-download-page) (University of Zurich).

For convenience, I have provided some data from one of the raw KITTI datasets, and a test image from the OCamCalib Toolbox. The stereo camera data contains a pair of rectified stereo camera images, along with the rectified camera parameters,
and a depth map. Actual test data need to be pulled using `git pull` or `git lfs pull`.
and a depth map. **The test data needs to be pulled using `git pull` or `git lfs pull`**.

KITTI lidar | Stereo camera 3D-reconstruction
:--------------------------------:|:-------------------------:
Expand Down
2 changes: 2 additions & 0 deletions stereo_camera_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ def read_camera_configuration(file_name: str):

# Read the depth map (i.e. Z-axis) from an OpenEXR file
Z = cv2.imread('./test_data/stereo_camera/depthMap.exr', cv2.IMREAD_ANYCOLOR | cv2.IMREAD_ANYDEPTH)
if Z is None:
print("Did not load the file './test_data/stereo_camera/depthMap.exr' properly, did you do: git lfs pull?")

# Read the primary camera image (rectified)
left_rectified = cv2.imread('./test_data/stereo_camera/primary_image_rectified.png')
Expand Down