Video: https://youtu.be/BaLv0wty9Ng?t=347
Dead link: http://filmsbykris.com/wordpress/?p=689
| Video: pygame camera with png overlay | |
| https://www.youtube.com/watch?v=OITenUQi0hI | |
| Video: Python pygame camera demo on Raspberry Pi zero with USB webcam | |
| https://www.youtube.com/watch?v=gncRJMv8pjY | |
| I am running demo code from: | |
| https://gist.github.com/pdp7/1a695f7ed51e47548832c789809b326f | |
| It is running on raspberry Pi Zero with the Raspbian Jessie image from November 2015. I am using the PlayStation Eye USB camera. |
Video: https://youtu.be/BaLv0wty9Ng?t=347
Dead link: http://filmsbykris.com/wordpress/?p=689
| import pygame | |
| from pygame.locals import * | |
| import cv2 | |
| import numpy as np | |
| import time | |
| import picamera | |
| import picamera.array | |
| screen_width = 640 |
| #include <iostream> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <linux/ioctl.h> | |
| #include <linux/types.h> | |
| #include <linux/v4l2-common.h> | |
| #include <linux/v4l2-controls.h> | |
| #include <linux/videodev2.h> | |
| #include <fcntl.h> | |
| #include <unistd.h> |
| # | |
| # How to get rid of the locale warning on raspberry pi | |
| # | |
| sudo sed -i "s/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/g" -i /etc/locale.gen | |
| sudo locale-gen en_US.UTF-8 | |
| sudo update-locale en_US.UTF-8 | |
| export LANGUAGE=en_US.UTF-8 | |
| export LANG=en_US.UTF-8 | |
| export LC_ALL=en_US.UTF-8 |
| #include <errno.h> | |
| #include <fcntl.h> | |
| #include <linux/videodev2.h> | |
| #include <stdint.h> | |
| #include <stdio.h> | |
| #include <string.h> | |
| #include <sys/ioctl.h> | |
| #include <sys/mman.h> | |
| #include <unistd.h> | |
| #include <opencv2/core/core.hpp> |
| #!/bin/sh | |
| # /etc/init.d/mjpg_streamer.sh | |
| # v0.2 phillips321.co.uk | |
| ### BEGIN INIT INFO | |
| # Provides: mjpg_streamer.sh | |
| # Required-Start: $network | |
| # Required-Stop: $network | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Short-Description: mjpg_streamer for webcam |
| <?php | |
| session_start(); | |
| ////////////////////////////// | |
| // EDIT THESE TWO VARIABLES // | |
| ////////////////////////////// | |
| $MySQLUsername = "USERNAME HERE"; | |
| $MySQLPassword = "PASSWORD HERE"; | |
| ///////////////////////////////// | |
| // DO NOT EDIT BELOW THIS LINE // |