webcam

How to grab constant stream of bitmap images from webcam in c#

五迷三道 提交于 2019-12-05 16:06:59
We have a c# application that performs processing on video streams. This is a low-level application that receives each frame in Bitmap format, so basically we need 25 images each second. This application is already working for some of our media sources, but we now need to add a webcam as an input device. So we basically need to capture bitmap images from a webcam continuously so that we can pass all these frames as a "stream" to our application. What is the best and simplest way to access the webcam and read the actual frames directly from the webcam as individual images? I am still in the

How to simulate a webcam device [closed]

允我心安 提交于 2019-12-05 13:39:15
I am working on a project which I need to synthesize a video from existing frames and then format it exactly like a webcam device and make it available to external computers. In other words, this USB output should look exactly as if it was generated by a webcam. Can someone provide some hints about any existing library or any methodology to do this? The target system to create "webcam" output via USB is UBUNTU. Thanks Web cams are usually accessed through a library or the operating system rather than as low level USB devices. In python, one option to read webcam frame is https://github.com

Take a picture automatically using a webcam in C# using WIA

大城市里の小女人 提交于 2019-12-05 12:29:49
I'm using WIALib to access my webcam. The code I'm developing is pretty simple: when a button is pressed a webcam picture is taken, and then displayed in a picture box. I can already take pictures with my webcam, but it isn't yet fully automated. The only way I found to retrieve the pictures taken by the webcam, is using this: wiaPics = wiaRoot.GetItemsFromUI( WiaFlag.SingleImage, WiaIntent.ImageTypeColor ) as CollectionClass; But this asks the user to select the picture. And I always want the last picture taken. So I'm trying this way: string imageFileName = Path.GetTempFileName(); // create

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

主宰稳场 提交于 2019-12-05 10:35:32
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" name="hdnImageBase64"><br /> On click of button btnCapture I start my webcam and clicking it again It

Generating events for gesture-controlled websites

早过忘川 提交于 2019-12-05 09:22:53
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 JavaScript interact with my webcam? Do I have to use some API or algorithms? I am not asking for code. I am

No video file created by OpenCV 2.3.1 with Python on Raspberry Pi

若如初见. 提交于 2019-12-05 07:08:55
问题 I'm trying to capture video from a webcam(Logitech c210) and create a video file from it. This is on Raspbian Wheezy 2013-05-25. The light on the camera comes on for about 30 seconds but no file is created. I've had the webcam displaying in an OpenCV window. I'm wondering if this is a codec problem as the script works on windows with the -1 parameter? If so are there any recommended codecs for Raspberry Pi? If I buy the mpeg2 codec would that work? I've listed the codecs that I've tried

opencv/python: Draw image over a webcam stream [duplicate]

偶尔善良 提交于 2019-12-05 02:49:10
问题 This question already has answers here : overlay a smaller image on a larger image python OpenCv (6 answers) Closed 2 years ago . Hey everyone I'm trying to make a game using my webcam where I need some objects to fall down the screen while Im streaming video with my webcam (that stream being my background). The question is: how do I draw the image over this background? I know how to capture each frame and that I have to draw the image over the frames, but using what? For this I am using

Opencv cannot access my webcam

 ̄綄美尐妖づ 提交于 2019-12-05 02:14:43
问题 I have trouble with accessing webcam using opencv 2.4.3. My System: Hp Probook 4530s - HP Fixed HD Webcam Ubuntu 12.10 OpenCV 2.4.3 İf I want to capture my built-in camera i get ERROR: capture is NULL I'm using http://opencv.willowgarage.com/wiki/CameraCapture sample code. Sample code is: #include "cv.h" #include "highgui.h" #include <stdio.h> // A Simple Camera Capture Framework int main() { CvCapture* capture = cvCaptureFromCAM( CV_CAP_ANY ); if ( !capture ) { fprintf( stderr, "ERROR:

Publishing Flash video streaming

Deadly 提交于 2019-12-05 02:09:29
问题 What options do I have to publish Flash video from webcams other than Adobe's Flash Media Server and Red5? I would prefer a solution in .NET, Python or PHP but can't find anything. 回答1: Besides another commercial product, like Wowza Media Server, you could go with a CDN (Content Delivery Network), like Limelight Networks or Voxel.net. You might even be able to find a local hosting provider that would serve up live Flash video for you. (Live Flash video in a non-trivial thing to do, so the

python: tkinter to display video from webcam and do a QR scan

这一生的挚爱 提交于 2019-12-05 02:04:47
I have been trying to create a tkinter top level window that streams video form webcam and do a QR scan. I got this QR scan code from SO and another code that just updates images from webcam instead of streaming the video on a tkinter label. and i tried to combine these both so that a toplevel window with a label updating image from webcam and a close button to close the toplevel window. And while it streams the images, it can scan for QR code and if a scan is successful, the webcam and the toplevel window gets closed. here is what i tried. import cv2 import cv2.cv as cv import numpy import