Skip to content

Instantly share code, notes, and snippets.

View AlexanderVott's full-sized avatar

Alexander Kiselev AlexanderVott

View GitHub Profile
@AlexanderVott
AlexanderVott / ir_visor
Last active May 18, 2020 06:24
Скрипт для трансляции видео-потока с IK-камеры на экран для очков VR
from picamera import mmalobj as mo, mmal
from signal import pause
from time import sleep
camera = mo.MMALCamera()
splitter = mo.MMALSplitter()
render_l = mo.MMALRenderer()
render_r = mo.MMALRenderer()
encoder = mo.MMALVideoEncoder()
target = mo.MMALPythonTarget('low.h264')
@AlexanderVott
AlexanderVott / raspberry_fast_capture.py
Created March 28, 2019 18:49 — forked from CarlosGS/raspberry_fast_capture.py
Fast reading from the raspberry camera with Python, Numpy, and OpenCV. See the comments for more details.
# Fast reading from the raspberry camera with Python, Numpy, and OpenCV
# Allows to process grayscale video up to 124 FPS (tested in Raspberry Zero Wifi with V2.1 camera)
#
# Made by @CarlosGS in May 2017
# Club de Robotica - Universidad Autonoma de Madrid
# http://crm.ii.uam.es/
# License: Public Domain, attribution appreciated
import cv2
import numpy as np