webcam

Preview a camera in DirectShow and capture a still image - in VB.net

我是研究僧i 提交于 2019-11-29 23:24:20
问题 I am trying to write a program in Visual Studio 2008 that will access a webcam, show a preview on the screen and then save a still snapshot (.jpg) when the button is pushed. Later I am going to integrate it with a database, but I shouldn't have a problem with that part. After doing some research, it looks like DirectShow is the best bet, because WIA didn't work on the camera I had (and I'm not sure it will continue to work into the future). Preferably, I need my solution to work from Windows

Writing a virtual webcam?

半城伤御伤魂 提交于 2019-11-29 23:14:00
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 flow look like ? You need to write DirectShow filter which is a COM server that implements an IPin ,

Writing a virtual webcam?

筅森魡賤 提交于 2019-11-29 23:12:14
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 flow look like ? You need to write DirectShow filter which is a COM server that implements an IPin ,

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

≯℡__Kan透↙ 提交于 2019-11-29 22:39:51
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 on with Red5, but honestly I haven't done any flash or java development in over 6 years and this seems

Accessing Multiple camera javascript getusermedia

那年仲夏 提交于 2019-11-29 22:03:43
问题 guys i have two cameras that is -the web camera -the laptop camera i want to stream those camera in a website i already have some reference here is some code that is working on jsfiddle here <video id="video" width="640" height="480" autoplay></video> <button id="snap" class="sexyButton">Snap Photo</button> <canvas id="canvas" width="640" height="480"></canvas> <script> // Put event listeners into place window.addEventListener("DOMContentLoaded", function() { // Grab elements, create settings

Finding distance from camera to object of known size

你说的曾经没有我的故事 提交于 2019-11-29 20:30:49
I am trying to write a program using opencv to calculate the distance from a webcam to a one inch white sphere. I feel like this should be pretty easy, but for whatever reason I'm drawing a blank. Thanks for the help ahead of time. Adi Shavit You can use triangle similarity to calibrate the camera angle and find the distance. You know your ball's size: D units (e.g. cm). Place it at a known distance Z , say 1 meter = 100cm, in front of the camera and measure its apparent width in pixels. Call this width d . The focal length of the camera f (which is slightly different from camera to camera) is

Get webcam stream on Mac Os X in Java [closed]

删除回忆录丶 提交于 2019-11-29 19:55:07
问题 I would like to get the webcam stream of my Macbook (the integrated iSight webcam). I use Java, and I don't know anything about Objective-C so I'm looking for a "full-java" solution. I found some class example, but they were made in 2005 and they don't work on my system. 回答1: I come across the same thing myself now. I am using VLCJ for my project and it works perfect on Windows, Linux Mint, Linux Ubuntu and Mac OSX Lion. As you probably read, VLCJ is a java wrapper around libvlc which VLC

Implementing a WebCam on a WPF App using AForge.Net

人走茶凉 提交于 2019-11-29 18:34:55
问题 I'm writing an WPF application where I need to show a Webcam feed. I was able to do this easly with the AForge framework.But when I've changed from a computer to a another computer the same code doesn't work the same way. In the first one the webcam feed works perfectly, but in the other one this does't occur, the feed has a lot of delay, and the application doesn't work properly. Here is the code: private void video_NewFrame(object sender, NewFrameEventArgs eventArgs) { Bitmap img = (Bitmap

OpenCV (via python) on Linux: Set frame width/height?

一个人想着一个人 提交于 2019-11-29 17:40:57
问题 I'm using openCV via python on linux (ubuntu 12.04), and I have a logitech c920 from which I'd like to grab images. Cheese is able to grab frames up to really high resolutions, but whenever I try to use openCV, I only get 640x480 images. I have tried: import cv cam = cv.CaptureFromCAM(-1) cv.SetCaptureProperty(cam,cv.CV_CAP_PROP_FRAME_WIDTH,1920) cv.SetCaptureProperty(cam,cv.CV_CAP_PROP_FRAME_WIDTH,1080) but this yields output of "0" after each of the last two lines, and when I subsequently

Error while trying to save webcam picture with OpenCV

◇◆丶佛笑我妖孽 提交于 2019-11-29 16:44:05
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: NULL array pointer is passed Save yourself a trip to the emergency room and use SimpleCV . It's a