webcam

Webcam picture straight to file attachment

被刻印的时光 ゝ 提交于 2019-11-30 13:25:57
问题 So I have a form, and in this form a user can upload a picture. As an alternative, I want them to be able to take a picture and upload that instead. Now I figure that when a user takes a picture with some sort of flash webcam interface, that picture needs to be stored in some sort of intermediary memory while the user completes his/her form. Is there a way around this? What's the best solution? I figure there are only really two options. Either (a) I hold the temporary photo and then accept

Implementing a WebCam on a WPF App using AForge.Net

荒凉一梦 提交于 2019-11-30 13:17:26
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)eventArgs.Frame.Clone(); this.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Render,

Delphi Webcam Simple Program

落花浮王杯 提交于 2019-11-30 10:26:34
Can anyone help me to create a simple viewing of cam using just a simple TVideo component in delphi having a vid size of 160x120 only as default (no resize). Just a simple one. Please. Badly needed for my new project. thanks. There are many ways to do it , I couldn't understand what do you mean by TVideo component but my solution can show image on a paintbox(any TCanvas) use http://www.delphibasics.info/home/delphibasicsprojects/directxdelphiwebcamcaptureexample/DirectXDelphiWebcamCapture.rar this is a directX conversion to pascal made by michael@grizzlymotion.com add VSample.pas and VFrames

TypeError: 'getUserMedia' called on an object that does not implement interface MediaDevices

牧云@^-^@ 提交于 2019-11-30 10:19:23
I'm trying to implement a webcam into a website using a video tag. It works in Chrome, but FireFox and IE return errors in the console. Anyone have any ideas why? Thank you! Code: navigator.getMedia = navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mediaDevices.getUserMedia || navigator.msGetUserMedia || OTPlugin.getUserMedia; Firefox error:TypeError: 'getUserMedia' called on an object that does not implement interface MediaDevices. IE error: Unable to get property 'getUserMedia' of undefined or null reference You forgot navigator.mozGetUserMedia for Firefox. IE doesn't

OpenCV webcam capture problem

帅比萌擦擦* 提交于 2019-11-30 07:09:23
I've installed OpenCV 2.2 and now I can't get webcam capture to work. It worked ok in 2.1. OpenCV detects a webcam, doesn't report any errors or warnings, but each frame is a gray image. I even tried a code sample from OpenCV wiki: VideoCapture cap(0); // open the default camera if(!cap.isOpened()) // check if we succeeded return -1; Mat edges; namedWindow("edges",1); for(;;) { Mat frame; cap >> frame; // get a new frame from camera cvtColor(frame, edges, CV_BGR2GRAY); //GaussianBlur(edges, edges, Size(7,7), 1.5, 1.5); //Canny(edges, edges, 0, 30, 3); imshow("edges", edges); if(waitKey(30) >=

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

时光总嘲笑我的痴心妄想 提交于 2019-11-30 06:28:32
问题 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. 回答1: The Hercules cameras are UVC compliant, so they should work with the DirectShow Interface IAMCameraControl. You can

How to take image snapshot with client side camera in my django web application

懵懂的女人 提交于 2019-11-30 05:28:45
I have a django web application in which i want give a option to capture the image in the registration form,"the registration can be done from any client system" when ever press the capture image button then client system camera should open and take the image should store in server side folder how can i do this. I am thinking that camera should open from html page and send the image to server, but I am not able open camera using html code. I hope some one might have done this if yes please give me sample code. You can use WebRTC for this; html5rocks.com has a nice tutorial , see especially the

QT GUI freezes when capturing video from webcam using OpenCV

萝らか妹 提交于 2019-11-30 04:55:04
问题 I am using Opencv for some real-time video processing. As a front-end I am using QT framework. On my GUI, I have an input image window (mapped to a Label) and an output image window (mapped to another Label) and 3 push buttons. One to Start input video capture, the second to process the video (code not written yet), and third to Exit. I am currently able to stream my video and display it on the Front-end. But this locks my GUI and am unable to Exit. I tried using QTimers (using suggestions

轻松使用OpenCV Python控制Webcam,读取Barcode

扶醉桌前 提交于 2019-11-30 03:01:02
虽然手机上Barcode应用已经非常流行,但是工作的时候还是用Webcam比较方便。比如需要检测Barcode,我只需要拿Webcam对着电脑屏幕或者纸张扫一下就可以了。今天分享下如何轻松使用OpenCV控制Webcam,以及如何获取一帧图像做Barcode检测。 参考原文: Reading Barcode with Webcam in OpenCV and Python 作者: Xiao Ling 翻译:yushulx 软件安装 Dynamsoft Barcode SDK: http://www.dynamsoft.com/Downloads/Dynamic-Barcode-Reader-Download.aspx Python: https://www.python.org/ftp/python/ NumPy: http://sourceforge.net/projects/numpy/files/NumPy/ SciPy: http://sourceforge.net/projects/scipy/files/scipy/ OpenCV: http://sourceforge.net/projects/opencvlibrary/files/opencv-win/ 控制Webcam,读取Barcode 基本步骤: 拷贝 <opencv_installation_dir>

Sending camera video from browser to server

a 夏天 提交于 2019-11-30 00:03:44
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.getElementById("selfView"); video.src = localStreamObjUrl; } </script> </head> <body> <video id="selfView"