Skip to content

Instantly share code, notes, and snippets.

View ryanleland's full-sized avatar
🧙

Ryan ryanleland

🧙
View GitHub Profile
@ryanleland
ryanleland / test_camera.py
Created December 1, 2020 22:22
Test webcam with python (requires opencv)
#!/usr/bin/python3
import cv2
import time
camera = cv2.VideoCapture(0)
for i in range(10):
return_value, image = camera.read()

Keybase proof

I hereby claim:

  • I am ryanleland on github.
  • I am ryan_irl (https://keybase.io/ryan_irl) on keybase.
  • I have a public key ASA-gqAzgsBKwWjhhBuGs7Wa3xl362eXHvz2NphlV94G1Ao

To claim this, I am signing this object:

@ryanleland
ryanleland / install_talib
Created December 24, 2014 16:52
Install script for ta-lib.
#!/bin/sh
# Download
cd /tmp
wget http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-src.tar.gz
tar -xzf ta-lib-0.4.0-src.tar.gz
# Build
cd ta-lib
./configure