A "Best of the Best Practices" (BOBP) guide to developing in Python.
- "Build tools for others that you want to be built for you." - Kenneth Reitz
- "Simplicity is alway better than functionality." - Pieter Hintjens
# -------------------------------------------------------- | |
# Camera Caffe sample code for Tegra X2/X1 | |
# | |
# This program captures and displays video from IP CAM, | |
# USB webcam, or the Tegra onboard camera, and do real-time | |
# image classification (inference) with Caffe. Refer to the | |
# following blog post for how to set up and run the code: | |
# | |
# https://jkjung-avt.github.io/camera-caffe-threaded/ | |
# |
#! /usr/bin/env python | |
# Import a mbox file to a Google Group using https://developers.google.com/admin-sdk/groups-migration/index | |
# You'll need to install https://developers.google.com/api-client-library/python/ | |
# and enable Groups Migration API, read prerequisits of the API SDK | |
from __future__ import print_function | |
import mailbox | |
import StringIO |
# Corsair headsets will stuck the apps on your linux system. This is due to wrong usb-mapping. | |
# thx to http://www.c0urier.net/2016/corsair-gaming-void-usb-rgb-linux-fun | |
# 1. open terminal | |
# 2. type this and search the line with your headset | |
lsusb | |
# Get the USB ID of the headset and add it to xorg.conf: |
#!/bin/sh | |
# Run two video webcam feeds in two different windows | |
# Script assumes that: | |
# Microsoft LifeCam Studio is video0 | |
# Logitech c920 is video1 | |
# Both cameras run max 1920x1080 MJPG, but two have both on a USB bus they can run @ 1280x720 max | |
# MS is made a little smaller | |
# text overlay and clockoverlay may be added to the pipeline, but render poorly | |
VELEM="v4l2src device=/dev/video0 do-timestamp=true" | |
VCAPS="image/jpeg, width=640, height=480, framerate=30/1" |
% -------------------------------------------------------------- | |
% This is all preamble stuff that you don't have to worry about. | |
% Head down to where it says "Start here" | |
% -------------------------------------------------------------- | |
\documentclass[12pt]{article} | |
\usepackage[margin=1in]{geometry} | |
\usepackage{amsmath,amsthm,amssymb} | |