CARS depends on OTB and VLFeat

  • Check OTB install:

    • OTB environment has to be setup:

      • OTB applications are working. Example: otbcli_ReadImageInfo -in some_image.tif

      • OTB_APPLICATION_PATH is set.

      • GDAL must work (gdal-config –version must be available)

  • Check Vlfeat install with following global environment variables:

    • VLFEAT_INCLUDE_DIR: should be set with the path of the vl folder of the VLFeat library.

    • VLFEAT_LIBRARY: should be set with the path of the file obtained after the VLFeat library compilation.

See CARS Dockerfile example for detailed steps.

Quick install

  • Clone CARS Source code (choose version)

$ git clone --depth 1 # For latest version
$ git clone --depth 1 --branch LAST_TAG # For last stable version
  • Install CARS

$ cd cars
$ make install  # Cars is installed in `venv` directory
  • Run CARS in virtualenv

$ source venv/bin/activate
$ source venv/bin/
$ cars -h

Advanced Install

The following steps are defined in Makefile install command.


First create a virtualenv and upgrade main pip packages.

$ virtualenv -p python venv/
$ source venv/bin/activate
$ python3 -m pip install --upgrade pip setuptools

Required python packages

CARS python package requires some python packages to be installed before:

  • numpy, cython: They have to be installed separately otherwise some dependencies won’t be correctly installed.

  • fiona, rasterio, pygdal: On some systems, they have to be installed from source to fit local GDAL version.

Here are the correspondent commands to install these prior dependencies:

$ virtualenv -p python venv/
$ source venv/bin/activate
$ python3 -m pip install --upgrade cython numpy
$ python3 -m pip install --no-binary fiona fiona
$ python3 -m pip install --no-binary rasterio rasterio
$ python3 -m pip install pygdal=="$(gdal-config --version).*"

To manually install CARS core dense matching correlator, see the Pandora documentation.

Environment variables

The script sets several environment variables impacting dask, ITK, OTB, numba and GDAL configurations.

For CARS internal OTB remote modules, the PATH, PYTHONPATH, LD_LIBRARY_PATH and OTB_APPLICATION_PATH environment variables have also to be set.

CARS manual install

Then, to install CARS:

$ cd project_root
$ pip install .

You can use [docs][dev] extra_require pip install targets for more dependencies.

Follow User guide to run and configure CARS.

CARS OTB Application Compilation

This compilation is automatically done through CARS pip install.

Nonetheless, CARS internal OTB remote modules can be built manually if needed:

$ mkdir -p project_root/build
$ cd project_root/build
$ make