webcam

Capturing multiple webcams (uvcvideo) with OpenCV on Linux

允我心安 提交于 2019-11-27 13:19:00
I am trying to simultaneously stream the images from 3 Logitech Webcam Pro 900 devices using OpenCV 2.1 on Ubuntu 11.10. The uvcvideo driver gets loaded for these. Capturing two devices works fine, however with three I run into the out of space error for the third: libv4l2: error turning on stream: No space left on device I seem to be running into this issue: http://renoirsrants.blogspot.com.au/2011/07/multiple-webcams-on-zoneminder.html and I have attempted to do the quirks=128 (or pretty much any other power-of-two value) trick but to no avail. I also tried on another machine with two USB 2

Access webcam without Flash

好久不见. 提交于 2019-11-27 13:16:37
I want to create a video chat application using HTML 5 elements and JavaScript, and I don't want to use Flash to access the user's webcams. How can I accomplish this using only HTML and JavaScript? At the moment of writing this the best solution is WebRTC. It is supported in Chrome, Mozilla and Opera , but still unavaialble in Internet Explorer and Safari. Minimalistic demo. Index.html <!DOCTYPE html> <head> </head> <body> <video></video> <script src="webcam.js"></script> </body> webcam.js (function () { navigator.getMedia = (navigator.getUserMedia || navigator.webkitGetUserMedia || navigator

C# + DirectShow.NET = Simple WebCam access?

不想你离开。 提交于 2019-11-27 12:57:22
I have found an example for accessing a webcam in C#. The example uses the DirectShow.NET library. I have tried to understand the code, but so far the only thing I could figure out is that somehow the usercontrol calls directshow to draw directly to the surface of the user control. I want to access each frame and put it into a Bitmap object. How can I tell when a new frame arrived? How can I capture this new frame into a Bitmap Object? This might be simple to answer if you know your way around DirectShow.NET. Shay Erlichmen You will need to use the ISampleGrabber interface there are many c++

Save video captured from webcam using Flash

非 Y 不嫁゛ 提交于 2019-11-27 12:11:26
I'd like to use Flash to capure video from the user's webcam and then save it on the same server that hosts the Flash file. The web server will be running ASP.Net technology. Seems easy, right? Lot of searches yielded the same lines of code to start a webcam capture using Flash. I can't find anything that sends that captured video back to a server. I can find lots of blog and forum posts that imply 3rd party software or Flash Communication Server is required to collect it on the server, but I don't understand why. It seems like Flash ought to be able to capture some video and send it as an

Capturing a single image from my webcam in Java or Python

自闭症网瘾萝莉.ら 提交于 2019-11-27 09:59:31
问题 I want to capture a single image from my webcam and save it to disk. I want to do this in Java or Python (preferably Java). I want something that will work on both 64-bit Win7 and 32-bit Linux. EDIT: I use Python 3.x, not 2.x Because everywhere else I see this question asked people manage to get confused, I'm going to state a few things explicitly: I do not want to use Processing I do not want to use any language other than those stated above I do want to display this image on my screen in

OpenCV on Mac is not opening USB web camera

余生颓废 提交于 2019-11-27 09:21:22
I have been unsuccessful using OpenCV 's VideoCapture.open(int) to get video capture from a USB web cam in my MacBook Pro running Mac OS X v10.7 (Lion). Using open(0) successfully gets capture from the iSight camera. But I didn't have any luck trying to find the WebCam. The WebCam is installed and works well with Skype , and the macam driver application. Here is a portion of the code that I'm using: VideoCapture cap; for (int i = 1; i < 1500; i++) { if (cap.open(i)) { cout << "Found camera %d\n" << i; break; } } if(!cap.isOpened()) { // Check if we succeeded return -1; } If I initialize i with

How to get a list video capture devices NAMES (web cameras) on linux ( ubuntu )? (C/C++)

拥有回忆 提交于 2019-11-27 08:21:11
问题 So all I need is simple - a list of currently avaliable video capture devices (web cameras). I need it in simple C or C++ console app. By list I mean something like such console output: 1) Asus Web Camera 2) Sony Web Camera So I know how to get cam props such as W, H etc using code like: #include <stdio.h> #include <unistd.h> #include <fcntl.h> #include <sys/ioctl.h> #include <linux/videodev.h> int main(){ int fd; struct video_capability video_cap; struct video_window video_win; struct video

How to get a snapshot from a webcam with Delphi7 using VFrames(TVideoImage)

↘锁芯ラ 提交于 2019-11-27 07:25:13
问题 I'm using Delphi7 and VFrames (TVideoImage) with this Procedure uses VFrames; .... procedure TForm1.snapshot; var cam:TVideoImage; strlst:TStringList; BMP:TBitmap; begin strlst := TStringList.Create ; cam :=TVideoImage.Create; cam.GetListOfDevices(strlst); cam.VideoStart(strlst.Strings[0]); //specify a cam by number //get snapshot BMP := TBitmap.Create; cam.GetBitmap(BMP); BMP.SaveToFile('test.bmp'); cam.VideoStop; BMP.Free; end; Result blank Bitmap file. 回答1: I made a small wrapper class for

Webcam usage in C#

心不动则不痛 提交于 2019-11-27 06:49:56
I am making a program in C# to connect to a webcam and do some image manipulation with it. I have a working application that uses win32 api (avicap32.dll) to connect to the webcam and send messages to it that sends it to the clipboard. The problem is that, while accesible from paint, reading it from the program results in null pointers. This is the code I use to connect the webcam: mCapHwnd = capCreateCaptureWindowA("WebCap", 0, 0, 0, 320, 240, 1024, 0); SendMessage(mCapHwnd, WM_CAP_CONNECT, 0, 0); SendMessage(mCapHwnd, WM_CAP_SET_PREVIEW, 0, 0); And this is what I use to copy the image to the

getUserMedia() not supported in chrome

萝らか妹 提交于 2019-11-27 06:43:13
问题 I am trying to access my webcam using the getUserMedia() using my own website that run using my own ip address. it was working fine until i tried my website again. i had tried the other demo site and the error given was getUserMedia is not supported. Chrome version v47.0.2526.80m 32bits I am able to access the webcam if i enter localhost instead of my ipadress. it also work in firefox. 回答1: Chrome is requiring secure origins (HTTPS) for getUserMedia. Starting with Chrome 47, getUserMedia()