advancedskrald/README.md
2019-04-17 18:20:37 +02:00

23 lines
774 B
Markdown

## Test Adapter:
```bash
base64 --wrap=0 < whole_boards/board_118_1554110522.620303_.png| python3 adapter.py
```
## Build OpenCV
```bash
mkdir opencv && curl -L https://github.com/opencv/opencv/archive/4.1.0.tar.gz | tar -xzv --directory=opencv_contrib --strip-components=1
mkdir opencv_contrib && curl -L https://github.com/opencv/opencv_contrib/archive/4.1.0.tar.gz | tar -xzv --directory=opencv_contrib --strip-components=1
mkdir -p opencv/build
cd opencv/build
cmake -D CMAKE_BUILD_TYPE=Release -D OPENCV_EXTRA_MODULES_PATH=../../opencv_contrib/modules/ -D CMAKE_INSTALL_PREFIX=/usr/local -D OPENCV_ENABLE_NONFREE=ON -D BUILD_PERF_TESTS=OFF -D BUILD_TESTS=OFF ..
make -j $(nproc)
sudo make install
sudo ldconfig
python3 -c "import cv2; print(cv2.__version__)"
```