Install OpenCV 4.1.2 on Raspbian Buster
$ chmod +x *.sh
$ ./download-opencv.sh
$ ./install-deps.sh
$ ./build-opencv.sh
$ cd ~/opencv/opencv-4.1.2/build
$ sudo make install
# Ruby is our language as asciidoctor is a ruby gem. | |
lang: ruby | |
before_install: | |
- sudo apt-get install pandoc | |
- gem install asciidoctor | |
script: | |
- make | |
after_success: | |
- .travis/push.sh | |
env: |
Install OpenCV 4.1.2 on Raspbian Buster
$ chmod +x *.sh
$ ./download-opencv.sh
$ ./install-deps.sh
$ ./build-opencv.sh
$ cd ~/opencv/opencv-4.1.2/build
$ sudo make install
volume
entry in refind's boot stanza to the label of
your boot device.from io import BytesIO | |
import av | |
import numpy as np | |
def video_array_to_mp4_blob(video: np.ndarray, fps: float = 24) -> bytes: | |
""" | |
Args: | |
video: Video array of shape :math:`(T, H, W, 3)` and range :math:`[0, 255]` with type ``np.uint8``. |
def relative_symlink(target: Union[Path, str], destination: Union[Path, str]): | |
"""Create a symlink pointing to ``target`` from ``location``. | |
Args: | |
target: The target of the symlink (the file/directory that is pointed to) | |
destination: The location of the symlink itself. | |
""" | |
target = Path(target) | |
destination = Path(destination) | |
target_dir = destination.parent |
# The following steps are based on
# https://docs.fast.ai/performance.html#installation
$ conda install -y -c conda-forge gxx_linux-64
$ conda uninstall -y --force jpeg libtiff
$ conda install -y -c conda-forge libjpeg-turbo --no-deps
$ pip uninstall -y pillow
$ export CXX=x86_64-conda-linux-gnu-g++
$ export CC=x86_64-conda-linux-gnu-gcc