Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
from pathlib import Path | |
import numpy as np | |
import rasterio | |
import requests | |
from scipy.interpolate import RectBivariateSpline | |
from tqdm.auto import tqdm | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM conanio/gcc11-ubuntu16.04:latest | |
USER root | |
RUN pip install -U conan | |
COPY <<EOF /root/.conan2/profiles/default | |
[settings] | |
arch=x86_64 | |
build_type=Release |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -eu -o pipefail | |
name=$1 | |
version=$2 | |
template=${3:-"cmake_package"} | |
echo Copying sources... | |
root=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) | |
pkg_dir=$root/recipes/$name |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Defines the following helper functions: | |
# - print_target_properties() | |
# - print_vars() | |
# - get_all_targets() | |
# Adapted from https://stackoverflow.com/a/68881024/2997179 | |
# Print all properties of CMake target. | |
function(print_target_properties target) | |
if(NOT TARGET ${target}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% Matlab sample code to read calibration data from sensor output. | |
fileFilter = '*.pcap'; | |
[File_name, Directory] = uigetfile(fileFilter, 'Open a .pcap file'); | |
Filename = [Directory File_name]; | |
fid = fopen(Filename); | |
ttc = fread(fid, 40); | |
ttc = fread(fid, 42); | |
ttc = fread(fid, inf, '1206*uint8=>uint8', 58); | |
fclose(fid); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import av | |
# packets = [H.264 packets as byte arrays] | |
codec = av.CodecContext.create('h264', 'r') | |
for packet in packets: | |
for avpacket in codec.parse(packet): | |
frames = codec.decode(avpacket) | |
print(frames) | |
# Or, can also simply do |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.