webcam

taking webcam photos in python 3 and windows

僤鯓⒐⒋嵵緔 提交于 2019-12-07 08:15:07
问题 I want to be able to take a photo from a webcam in python 3 and Windows. Are there any modules that support it? I have tried pygame, but it is only linux and python 2, and VideoCapture is only python 2. 回答1: 07/08/14 Pygame 3.4 Ver. is released http://www.youtube.com/watch?v=SqmSpJfN7OE http://www.lfd.uci.edu/~gohlke/pythonlibs/ You can download "pygame‑1.9.2a0.win32‑py3.4.exe" take a photo from a webcam in python 3.4 (testing on window 7) code [1] import pygame import pygame.camera pygame

Capture video using webcam and save as avi using c# [duplicate]

假装没事ソ 提交于 2019-12-07 07:02:27
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: Webcam capture and convert to avi Is there any way of capturing video from webcam, encode and save the video as an avi file (as a movie) using c#? 回答1: Use AForge . Well tested, well documented, well maintained. AForge.NET Framework is a C# framework designed for developers and researchers in the fields of Computer Vision and Artificial Intelligence - image processing, neural networks, genetic algorithms,

Unable to take photo from webcam using HTML5 and getUserMedia() in Google Chrome on first page load

前提是你 提交于 2019-12-07 05:28:06
问题 Taking reference from this article on HTML5Rocks I am trying to build a utility to take photo from webcam. Below is my HTML code snippet: <button type="button" name="btnCapture" id="btnCapture">Start my camera</button><br /> <video autoplay="true" id="video" style="height:240px;width:320px"></video><canvas id="canvas" style="display: none; height:240px;width:320px"></canvas><br /> <img id="capturedImage" src="/blank.gif" style="height:240px;width:320px"><input type="hidden" id="hdnImageBase64

Generating events for gesture-controlled websites

安稳与你 提交于 2019-12-07 04:49:40
问题 I am very happy that I got the opportunity to work on a website that is gesture-based. I have a few inspiration for this: link I visited lot of websites and googled it, Wikipedia and gitHub also didn't help much. There is not much information provided as these technologies are in nascent stages. I think I will have to use some js for this project gesture.js (our custom javascript code) reveal.js (Frame work for slideshow) My questions are how come gestures generate events, how does my

Two webcams on one usb 2.0 hub - works in windows but not linux

牧云@^-^@ 提交于 2019-12-06 15:27:31
The openCV code below grabs simultaneous images from two cameras. It works fine in windows, with the cameras both attached to one usb 2.0 hub. When I try the same code in linux, it only has enough bandwidth for one camera at a time. I've also tried viewing the two streams at once with guvcview, same issue. What I need is some way to force the webcams to work together, possibly by setting the amount of bandwidth the driver requests. capture = cv.CaptureFromCAM(0) capture2 = cv.CaptureFromCAM(1) while True: frame = cv.QueryFrame(capture) frame2 = cv.QueryFrame(capture2) cv.ShowImage("w1", frame)

Webcam DirectShow Properties Page in Python

末鹿安然 提交于 2019-12-06 13:30:20
I'm working on a windows Python 2.7 application that needs to communicate with many different USB webcams. I have been using OpenCV, but for some scientific webcams, the default frame rate, capture format, etc. aren't detected and I get only a blank image. An external program that can open DirectShow properties pages can fix this in my program, but I'd like to have this feature in my application. I have tried one available Python library to do this: VideoCapture (http://videocapture.sourceforge.net/). While this opens property pages, it doesn't allow changing any device settings ("Error

Processing / C920 logitech capture frame rate video discourse

依然范特西╮ 提交于 2019-12-06 13:00:47
问题 I'm developing on Processing 2.0b, and i just bought a C920 logitech webam for a good capture quality. Then I try to capture at 1920 x 1080 , the problem is that I'm under 15 fps per seconds.. When I list all the devices availsable to capture, the program write: Some size and fps ... -[61] "name=HD Pro Webcam C920,size=1024x576,fps=5" -[62] "name=HD Pro Webcam C920,size=1024x576,fps=30" -[63] "name=HD Pro Webcam C920,size=1280x720,fps=5" -[64] "name=HD Pro Webcam C920,size=1280x720,fps=30" -

Why OpenCV's `cvCreateCameraCapture` and `cvCreateFileCapture` do not work?

人盡茶涼 提交于 2019-12-06 12:27:20
问题 Have an AVI videofile, and a webcam. cvQueryFrame returns null in both cases. Code is applied(only for cam): #include "highgui.h" #include <iostream> using namespace std; int main( int argc, char** argv ) { cvNamedWindow( "KillCam", CV_WINDOW_AUTOSIZE ); cvWaitKey(0); CvCapture* capture = cvCreateCameraCapture(-1); assert(capture != NULL); IplImage* frame; while(1){ frame = cvQueryFrame( capture ); if( !frame ) break; cvShowImage( "KillCam", frame ); char c = cvWaitKey(33); if( c == 30 )

Problem in java programming on windows7 (working well in windows xp)

只愿长相守 提交于 2019-12-06 10:36:20
问题 I am capturing video from webcam connected to pc.I am using the following code to do so: import java.util.*; import javax.media.*; import javax.media.protocol.*; import javax.media.control.*; import javax.media.format.*; import java.awt.*; /** * This is the primary class to run. It gathers an image stream and drives the processing. * */ public class jmfcam05v { DataSource dataSource; PushBufferStream pbs; Vector camImgSize = new Vector(); Vector camCapDevice = new Vector(); Vector

DirectShowLib - Can't take more than one picture with webcam. Got “Insufficient system resources exist to complete the requested service” error

别等时光非礼了梦想. 提交于 2019-12-06 10:29:47
问题 I'm working on Visual Studio 2012 and using C#, I'm using the library DirectShowLib to take pictures from my webcam, but I can only take one picture, if I try to take another one I get an exception: DirectShowLib.DsError.ThrowExceptionForHR(Int32 hr) at SnapShot.Capture.SetupGraph(DsDevice dev, Int32 iWidth, Int32 iHeight, Int16 iBPP, Control hControl) in c:\Users\devel_000\Documents\Visual Studio 2012\Projects\ControlAcceso\ControlAcceso\Capture.cs:line 323 at SnapShot.Capture..ctor(Int32