This file contains 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 pyrealsense2 as rs | |
def main(): | |
pipeline = rs.pipeline() | |
pipeline.start() | |
profile = pipeline.get_active_profile() | |
streams = profile.get_streams() | |
for s in streams: | |
print(f'{s.__class__.__name__}: index:{s.stream_index()} @ {s.fps():>3d}fps type:{s.stream_type()} format:{s.format()}') |
This file contains 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 __future__ import print_function, unicode_literals | |
import binascii | |
import os | |
import sys | |
import time | |
import re | |
import cv2 | |
class capture: |
This file contains 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
#!/usr/bin/env bash | |
set -e # exit when any command fails | |
# configure apt for postgres-9.3 | |
codename=`lsb_release -cs` | |
aptlist="deb http://apt.postgresql.org/pub/repos/apt/ $codename-pgdg main" | |
echo $aptlist | sudo tee /etc/apt/sources.list.d/pgdg.list | |
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - |