Instructions WIP
Tested on Ubuntu 18.04.
Follow instructions from here.
Instructions WIP
Tested on Ubuntu 18.04.
Follow instructions from here.
| #! /usr/bin/env python | |
| class Pipeline(object): | |
| def __init__(self): | |
| self.source = None | |
| def __iter__(self): | |
| return self.generator() | |
| def generator(self): |
| wget --no-check-certificate --content-disposition https://github.com/joyent/node/tarball/v0.7.1 | |
| # --no-check-cerftificate was necessary for me to have wget not puke about https | |
| curl -LJO https://github.com/joyent/node/tarball/v0.7.1 |
| #!/usr/bin/env python | |
| from pygame import camera | |
| import pygame | |
| import time | |
| import cv | |
| import os | |
| # Recognition |
| import pygame | |
| import pygame.camera | |
| from pygame.locals import * | |
| DEVICE = '/dev/video0' | |
| SIZE = (640, 480) | |
| FILENAME = 'capture.png' | |
| def camstream(): | |
| pygame.init() |
| ''' | |
| QT4 Webcam demo in python | |
| Copyright (c) 2013, Tim Sheerman-Chase | |
| All rights reserved. | |
| Redistribution and use in source and binary forms, with or without | |
| modification, are permitted provided that the following conditions are met: | |
| 1. Redistributions of source code must retain the above copyright notice, this | |
| list of conditions and the following disclaimer. |