-
Notifications
You must be signed in to change notification settings - Fork 109
Building Scanner from Source
To use Scanner, you either need to build it yourself or use one of our Docker images. See the Docker section for using Docker. Otherwise, follow the steps below to build from the project source.
Scanner requires the following packages:
Scanner optionally requires:
- CUDA >= 8.0
Scanner Python requires:
- numpy
- scipy
- protobuf
- toml
- enum34
- grpcio
The Scanner stdlib optionally requires:
Installing these packages varies vastly based on your OS, and often requires installing many other dependencies. We document this process for a small number of platforms in our scanner-docker repository. Look at <your-os>/Dockerfile
for what commands to run. Currently, we support:
- Ubuntu 16.04
First, clone the repo:
git clone https://github.com/scanner-research/scanner && cd scanner
export SCANNER_DIR=`pwd`
Then to build the in-tree dependencies:
cd ${SCANNER_DIR}/thirdparty && mkdir build && cd build
cmake .. && make -j`nproc`
Lastly, we need to build the project proper.
cd ${SCANNER_DIR} && mkdir build && cd build
cmake -D BUILD_IMGPROC_OPS=ON ..
make -j`nproc`
Once the project is built, head over to Running Scanner to start processing some videos.