This file contains hidden or 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
| <?php | |
| session_start(); | |
| ////////////////////////////// | |
| // EDIT THESE TWO VARIABLES // | |
| ////////////////////////////// | |
| $MySQLUsername = "USERNAME HERE"; | |
| $MySQLPassword = "PASSWORD HERE"; | |
| ///////////////////////////////// | |
| // DO NOT EDIT BELOW THIS LINE // |
This file contains hidden or 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
| #!/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 |
This file contains hidden or 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
| #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> |
This file contains hidden or 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
| # | |
| # 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 |
This file contains hidden or 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
| #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> |
This file contains hidden or 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 pygame | |
| from pygame.locals import * | |
| import cv2 | |
| import numpy as np | |
| import time | |
| import picamera | |
| import picamera.array | |
| screen_width = 640 |
Video: https://youtu.be/BaLv0wty9Ng?t=347
Dead link: http://filmsbykris.com/wordpress/?p=689
This file contains hidden or 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
| 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. |
OlderNewer
