webcam

Sending camera video from browser to server

﹥>﹥吖頭↗ 提交于 2019-11-28 21:41:46
问题 Im trying out the new and exciting features of chrome canary 19. I can basically grab the video from the web-cam and set it to a source element for a video tag. <!DOCTYPE html> <html> <head> <title>Camera capture</title> <script> var localStream; var localStreamObjUrl; window.onload = function() { navigator.webkitGetUserMedia("audio, video", gotStream); } function gotStream(stream) { localStream = stream; localStreamObjUrl = webkitURL.createObjectURL(localStream); var video = document

always accept webRTC webcam request

旧城冷巷雨未停 提交于 2019-11-28 21:14:56
I'm building a web application that uses the computer's webcam via webRTC. The site is only running on one specific machine which will shut down and reboot once a day. My problem is: how do I get the machine to automatically confirm the webcam dialogue once the site has loaded? The system is OSX Leopard with the latest Chrome. Thanks already, I'm open for anything. nha There is a Chrome option for that: (This works in both http and https ) --use-fake-ui-for-media-stream - Windows : start chrome --use-fake-ui-for-media-stream - GNU/Linux : google-chrome --use-fake-ui-for-media-stream Maybe this

Writing a virtual webcam?

佐手、 提交于 2019-11-28 20:30:56
问题 I need to create a virtual webcam that poses as a webcam, but takes as input a set of images that it plays. I have seen solutions like ManyCam, and Fake Webcam, but they all seem to one limitation or the other (resolution, max file size, fps etc.) I am working on Windows XP SP3. I understand that I have to write a WIA interface for this task, but being a Python programmer, I have never written drivers or interfaces to devices. What are the main tasks in writing this interface ? What would the

webcam access in c++

时间秒杀一切 提交于 2019-11-28 20:26:25
I want to access the webcam so I can do some precessing on the images, like tracking a light, but I can't find a way to access the webcam. I googled it but I got confused. Can you point me to a library that can do that (windows)? and maybe also provide an example? I would need to periodically get a pixel map of the image, about 20 time per second or so if it would be possible. Checkout OpenCV . It is a cross-platform computer vision SDK and has modules to capture images from the webcam. Maybe too feature rich for you, but it's worth a look. You need DirectShow . This is a Windows framework for

Simple alternatives to Red5 recorder and server for webcam video capture?

别说谁变了你拦得住时间么 提交于 2019-11-28 19:20:25
问题 I'm looking for a flash script/library to capture video and audio from a webcam and then somehow get a saved flv to my encoding server. I'm not looking for something that will host the videos for me. I just need something simple to capture and then upload. I really want this to be open source and free. I've done a fair amount of searching and it seems that most of what i can find is either a full blown service with hosting, or the red 5 suite. I've been trying for a day to get something going

How to programmatically disable the auto-focus of a webcam?

我怕爱的太早我们不能终老 提交于 2019-11-28 18:55:27
I am trying to do computer vision using a webcam (the model is Hercules Dualpix). I know it is not the ideal camera to use, but I have no choice here. The problem is the auto-focus makes it hard/impossible to calibrate the camera. Anyone knows a way to disable the auto-focus feature. Or, if someone has an idea to deal with it and calibrate the camera with the auto-focus. The Hercules cameras are UVC compliant, so they should work with the DirectShow Interface IAMCameraControl . You can set the focus to a specific value, and use the flags to set that you do not want it to be automatic. You can

How to access the webcam by javascript [closed]

拟墨画扇 提交于 2019-11-28 17:19:00
I need to open the webcam via JavaScript I know it is possible to access the html5 by <video> but need access webcam with pure JavaScript Can someone help me or give me some ideas? I need only access the webcam with JavaScript and sorry for my English, I'm using Google translator. I can't use tag '< video >' jAndy As I stated as comment, I'm confused about your wording. You said, you know that "HTML5" can access the webcam, but you need it by pure Javascript. Well, in case you don't know, HTML5 introduced the such called WebRTC which is short for Real-Time Communications . Part of that, a new

Capturing a single image from my webcam in Java or Python

匆匆过客 提交于 2019-11-28 16:51:05
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 any way, shape or form I do not want to display a live video feed from my webcam on my screen, or save

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

心不动则不痛 提交于 2019-11-28 13:03:22
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. I made a small wrapper class for VFrames / VSample : unit u_class_webcam; interface uses Jpeg, Forms, VSample, VFrames, Classes, Graphics,

Error while trying to save webcam picture with OpenCV

我只是一个虾纸丫 提交于 2019-11-28 11:17:22
问题 import cv capture = cv.CaptureFromCAM(0) img = cv.QueryFrame(capture) cv.SaveImage("test.JPG", img) Hi, I just want to save a picture from my webcam with OpenCv and Python on my Ubuntu 10. OpenCv can connect with the webcam. But I get this error: OpenCV Error: Null pointer (NULL array pointer is passed) in cvGetMat, file /build/buildd/opencv-2.1.0/src/cxcore/cxarray.cpp, line 2376 Traceback (most recent call last): File "video.py", line 5, in <module> cv.SaveImage("test.JPG", img) cv.error: