webcam

Display pic in web page captured from webcam

大城市里の小女人 提交于 2019-12-11 18:29:01
问题 I'm using jquery-webcam-plugin (not familiar with jQuery). I want to take picture in webcam and want to display that picture in the same web page instantly, possibly replacing some default image by image captured from webcam, without any server communication, is that possible? if possible please suggest. If the image captured from webcam is saved locally, can I use that image path? I'm using the following code(along with the related API/plugin): <html> <script src="jquery.min.js" type="text

VB.Net Directshow Webcam Snapshot

帅比萌擦擦* 提交于 2019-12-11 18:13:11
问题 I am new to stackoverflow but I registered because I think here is the right place to get professional help for programming :) My goal is to create a webcam snapshot tool which directly saves the snapshot to a file. I don't need any preview in a picturebox or something like that. I am thinking about a application like this: A simple Interface with a Combobox for the connected webcam devices and one button which will take a snapshot and saves it to a file. I like to use DirectShow for this

.net 3.5 windows form application, using webcam

≡放荡痞女 提交于 2019-12-11 18:09:08
问题 Having searched high and low for native c# hook to webcam, I found 5 basic ways to interact with the camera. Video for Windows (VFW) DirectX avicap32.dll WIA 3rd party tools My requirement is to take a photo. The application will be used on some legacy windows XP and Vista machines, but going forward Windows 7 and greater will be required. So what might the best approach be with the broad install base? Just reading WIA looked like the way to go but looks like some changes were made so it

How to know a video source (webcam) is available or not without creating capture window?

試著忘記壹切 提交于 2019-12-11 17:35:48
问题 It is quite tricky because I wanna to take the result as a sign for later process. If a window flashes, it would be weird to user. 回答1: (This is not an answer , just refreshing the question and adding some details:) Suppose you need to open a video capture driver (webcam) with code like this (delphi, but easy understandable): result:= SendMessage(hCapWnd, WM_CAP_DRIVER_CONNECT, FDriverNo, 0); It works fine, except when camera/webcam is busy (opened by another application, for example

Different approaches on getting captured video frames in DirectShow

好久不见. 提交于 2019-12-11 16:46:54
问题 I was using a callback mechanism to grab the webcam frames in my media application. It worked, but was slow due to certain additional buffer functions that were performed within the callback itself. Now I am trying the other way to get frames. That is, call a method and grab the frame (instead of callback). I used a sample in CodeProject which makes use of IVMRWindowlessControl9::GetCurrentImage. I encountered the following issues. In a Microsoft webcam, the Preview didn't render (only black

Flash webcam access request prompt unresponsive

为君一笑 提交于 2019-12-11 12:47:52
问题 I have a parent swf called Main.swf that loads a child Registration.swf via a regular loader class then adds it to the stage. This child has a webcam function that captures an image but before that happens it prompts the user for permission to allow the webcam to be turned on. The problem I'm having is that in my IDE the prompt works like a charm and continues through to capturing image data. When I plop the files on a live server it fails. A friend recommended that it's most likely an issue

Streaming from webcam: is it normal that the frame does not have refcount?

99封情书 提交于 2019-12-11 12:07:37
问题 I have the following code: #include<opencv2/core/core.hpp> #include<opencv2/highgui/highgui.hpp> int main() { cv::VideoCapture capture(0); cv::Mat frame; capture>>frame; cv::Mat img = frame.clone(); cv::Mat img2 = frame; // here still the refcount stays null in xcode. return 0; } then frame.refcount ==NULL; // could be wrong img->refcount == 1; // good img2.refcount ==NULL; // certainly wrong, should be pointing to 2, at the same address as frame.refcount. Everything seems to be working fine,

OpenCV 'cvQueryFrame' non-blocking on OS X?

强颜欢笑 提交于 2019-12-11 10:02:15
问题 when I perform a cvQueryFrame on Windows, the API blocks until an image is delivered. On Mac OS X, I am at 100% CPU utilization, while only querying for an image and displaying it in a window. I am at the latest SVN version. Can anyone confirm my experience? Am I doing something wrong? Is there a work-around? My loop code looks like this: while(key != 'q') { if (frame) cvShowImage("Live Cam", frame); frame = NULL; frame = cvQueryFrame(capture); key = cvWaitKey(10); } 回答1: I just executed a

set webcam properties (e.g. gain, brightness, exposure)

故事扮演 提交于 2019-12-11 09:49:44
问题 I'm writing a small application on C# (Winforms) where I am accessing a Webcam to capture some images. Does anyone know if it's possible to access and set the webcam's properties like gain, brightness and exposure using c#? (Don't pop-up Webcam's own Properties window) I've tried using the DirectShow library and it only allows me to set the exposure but no the gain nor brightness. Cheers in advance 回答1: You can set them using IAMVideoProcAmp::Set method, the settable properties include:

OutOfMemoryError

北城余情 提交于 2019-12-11 09:12:49
问题 I have one main class that contains 5 buttons each link to a program/package. Each package runs a jmf program that capture images from a webcam and it also loads about 15 images from file. The 1st program to load(regardless of which button i press) always runs correctly. But When i run a program after the 1st program ends, java.lang.OutOfMemoryError: java heap space occurs. Im not sure if java can't handle all of our images or if it has something to do with jmf image capture. 回答1: Maybe you