webcam

How can I correctly provide a mock webcam video to Chrome?

别说谁变了你拦得住时间么 提交于 2019-12-05 01:48:22
问题 I'm trying to run end-to-end testing in Chrome for a product that requires a webcam feed halfway through to operate. From what I understand this means providing a fake webcam video to Chrome using the --use-file-for-fake-video-capture="/path/to/video.y4m" command line argument. It will then use that as a webcam video. However, no matter what y4m file I provide, I get the following error from Chrome running under these conditions: DOMException: Could not start video source { code: 0, message:

Record video from webcam with jquery/flash directly in browser?

假如想象 提交于 2019-12-05 00:09:07
问题 I want to let users record video via webcam and then upload the recorded video to the site all through the browser. Here is an example that works exactly how I want my site to work except it does not seem to capture video, just images. http://www.xarg.org/project/jquery-webcam-plugin/ Please let me know if there is a way I can customize this or if there is something else out there that I can use. I want something standalone and don't want to rely on another service to accomplish this. Thanks!

allow deny remember flash security panel

旧时模样 提交于 2019-12-05 00:06:30
问题 Why is it that some flash sites have the option to 'allow' 'deny' and 'remember' under the privacy options for camera/mic and some flash sites have only 'allow' and 'deny' 回答1: It may be buggy :) but these are two separate dialog boxes. The first image is the "privacy" panel, it has the option to remember the setting. It is specifically invoked (as shown in the link in @lazfish's comment) by calling Security.showSettings(SecurityPanel.PRIVACY); . The second dialog is a default dialog shown by

C# control to display camera video with DirectShow.Net

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-04 19:55:06
I want to use DirectShow.Net to capture the stream from a webcam. What type of UI control can I use to display a the webcam video capture? I have seen an example that uses the whole window of a Form, but are there any other controls I can use: a Panel, PictureBox? yes. you can use pictureboxes or forms or panels. You need to call and use IVideoWindow. you can cast the directshow.net graph that is streaming/capturing to the IVideoWindow and then you can set it to being owned by whatever object you want to put your video stream into. just have to give it the objects handle and then set its

WebRTC: how to get the webcam data as a stream of data?

孤街醉人 提交于 2019-12-04 19:25:11
问题 I have a simple webpage where you can stream your webcam. I would like to take this stream and send it somewhere, but apparently I can't really access the stream itself. I have this code to run the stream: navigator.webkitGetUserMedia({video: true}, gotStream, noStream); And in gotStream, I tried many things to "redirect" this stream somewhere else, for example: function gotStream(stream) { stream_handler(stream) //other stuff to show webcam output on the webpage } or function gotStream

Processing / C920 logitech capture frame rate video discourse

时间秒杀一切 提交于 2019-12-04 19:05:27
I'm developing on Processing 2.0b, and i just bought a C920 logitech webam for a good capture quality. Then I try to capture at 1920 x 1080 , the problem is that I'm under 15 fps per seconds.. When I list all the devices availsable to capture, the program write: Some size and fps ... -[61] "name=HD Pro Webcam C920,size=1024x576,fps=5" -[62] "name=HD Pro Webcam C920,size=1024x576,fps=30" -[63] "name=HD Pro Webcam C920,size=1280x720,fps=5" -[64] "name=HD Pro Webcam C920,size=1280x720,fps=30" -[65] "name=HD Pro Webcam C920,size=1600x896,fps=5" -[66] "name=HD Pro Webcam C920,size=1600x896,fps=30"

Why OpenCV's `cvCreateCameraCapture` and `cvCreateFileCapture` do not work?

烈酒焚心 提交于 2019-12-04 18:34:07
Have an AVI videofile, and a webcam. cvQueryFrame returns null in both cases. Code is applied(only for cam): #include "highgui.h" #include <iostream> using namespace std; int main( int argc, char** argv ) { cvNamedWindow( "KillCam", CV_WINDOW_AUTOSIZE ); cvWaitKey(0); CvCapture* capture = cvCreateCameraCapture(-1); assert(capture != NULL); IplImage* frame; while(1){ frame = cvQueryFrame( capture ); if( !frame ) break; cvShowImage( "KillCam", frame ); char c = cvWaitKey(33); if( c == 30 ) break; } cvReleaseCapture( &capture ); cvDestroyWindow( "KillCam" ); } I found, by stepping into the openCV

opencv write webcam output to avi file

谁都会走 提交于 2019-12-04 17:53:39
问题 I am trying to create an avi video from my webcam output using opencv. No exceptions are thrown, however the avi file it creates is 414 bytes in size and does not grow. Also it will not play with any media player. I suspect there is something wrong with the writing to file part. Here is the code: CvCapture *capture = cvCaptureFromCAM( 0 ); int width = ( int )cvGetCaptureProperty( capture, CV_CAP_PROP_FRAME_WIDTH ); int height = ( int )cvGetCaptureProperty( capture, CV_CAP_PROP_FRAME_HEIGHT );

How to create virtual webcam in Windows 10?

北城以北 提交于 2019-12-04 17:48:19
问题 I would like to take video from a webcam, render some text on the frames and do some motion tracking and pass it on to a virtual webcam so it can be streamed easily. I found some answers on stackoverflow suggesting that I should use DirectShow. According to information in DirectShow documentation, the DirectShow SDK is part of Windows SDK. So I installed the latest Windows SDK but it seems that it doesn't include DirectShow because there are no DirectShow samples under C:\Program Files (x86)

Change resolution of Webcam video using Delphi program

冷暖自知 提交于 2019-12-04 16:28:20
How do I change the size of the webcam from (640x360) as default in VFrames into a (160x120) as the new default. I'm using this component found on this page . There is a predefined method in VFrames var cam:TVideoImage; camlist:TStringList; reslist:TStringList; vp:TVideoProperty; begin camlist := TStringList.Create ; reslist :=TStringList.Create; cam := TVideoImage.Create; cam.GetListOfDevices(camlist); cam.SetDisplayCanvas(PaintBox1.Canvas); cam.VideoStart(camlist.Strings[0]) ; // important cam.GetListOfSupportedVideoSizes(reslist); ListBox1.Items := reslist; cam.SetResolutionByIndex(0); /