webcam

user capture div as image and save to computer

我是研究僧i 提交于 2019-11-27 06:09:56
问题 I have a Div on my site, I want to place a button/link (or other things of the sort) that when clicked will save the div and all its contents to the users computer, much like the printing code which is used to print divs. I'm a coding novice so all help will be apreciated. 回答1: There is a browser support limit doing this. HTML2Canvas can render your HTML content into a canvas element. Then you can use canvas.toDataURL("image/png"); (docs in MDN) method to export the canvas element to an jpeg

How to display webcam images captured with Emgu?

一曲冷凌霜 提交于 2019-11-27 05:58:44
问题 I'm currently working on a project that use Facial Recognition. I therefore need a way to display the webcam images to the user so he can adjust his face. I've been trying a lot of things to get images from the webcam using as less CPU as possible: VideoRendererElement WPFMediaKit DirectShow-Lib But none of them were fine... Either way too slow or too CPU resources consuming. Then I tried the Emgu library and I felt great about it. At first, I tried it in a Windows Form project and was

How to get web cam images in C#?

本秂侑毒 提交于 2019-11-27 04:28:53
问题 I'm working on online video conferencing project in C# and .Net4.0. I want a library or code which I can use for collecting web camera images per second in different form. I try this by using the AVICAP32, in which we send Messages for different purpose like copy or edit frames.but in this we have to pass a reference of picturebox while creating handler as given below: mCapHwnd = capCreateCaptureWindowA("0", 268435456 | 1073741824, 0, 0, 640, 480,picturebox1.Handle.ToInt32(), 0); Using these

Can't access webcam with OpenCV

南笙酒味 提交于 2019-11-27 01:56:22
I'm using OpenCV 2.2 with visual studio 2010 on a win 7 64 bit pc. I'm able to display pictures and play AVI files through OpenCV as given in the book "Learning OpenCV" but I'm not able to capture webcam images. Even the samples given along with the OpenCV files cant access the webcam. I get asked for " video source -> capture source" and there are two options: HP webcam Splitter and HP webcam. If I select HP webcam the window closes immediately without displaying any error. (i think any error message is too fast to be seen before it closes). If I select HP Webcam splitter then the new window,

VideoCapture.open(0) won't recognize pi cam

你离开我真会死。 提交于 2019-11-27 01:50:27
问题 I have been working with my Raspberry Pi 2B for a while now. Testing the Pi cam using raspistill works great but trying to use OpenCV functions such as VideoCapture.open(); won't work. trying the same command with a USB camera works just fine. I tried different indexes as inputs but nothing works for the pi cam. What am I missing here? 回答1: sudo modprobe bcm2835-v4l2 will "enable" the camera for opencv automatically. make sure you have the camera enabled from the raspberry config, either gui

How do I connect to a USB webcam in .NET? [closed]

邮差的信 提交于 2019-11-27 00:06:38
I want to connect to a USB Webcam in .NET, specifically using C#. Being new to .NET I don't know what kind of support there is in the standard libraries for doing so. I found one example on the web that copies bitmaps through the clipboard, but that seems very hacky (and probably slow). Is there a better way? Eric Schoonover You will need to use Windows Image Acquisition (WIA) to integrate a webcam with your application. There are plenty examples of this readily available. Here is a C# Webcam User Control with source. Here are some more articles and blog posts from people looking to solve the

Accessing webcam in Xcode with OpenCV (C++)

北战南征 提交于 2019-11-26 23:30:27
问题 I am trying to open the webcam and display a short capture with OpenCV. I am currently working on Xcode, with C++ language. The code is pretty simple: #include <iostream> #include <opencv2/opencv.hpp> using namespace std; using namespace cv; int main(int argc, const char * argv[]) { // variable initialization Mat frame; VideoCapture cap; // 0 is the webcam // try to open camera cap.open(0); if (!cap.isOpened()) return -1; // check if there is no video or no way to display it // create a

How to access the webcam by javascript [closed]

。_饼干妹妹 提交于 2019-11-26 22:39:20
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . 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 >' 回答1:

Draw on webcam using OpenCV

时光怂恿深爱的人放手 提交于 2019-11-26 21:50:09
问题 I want to draw/paint on a webcam screen using OpenCV. Since I'm reading from a cam, the frames are constantly changing, so I'm trying to figure out a way to keep or save the drawing on the current frame and use it for the next frame. The code below allows you to draw on the screen but when it gets the next frame, the drawing is gone and it starts over. Could someone please help me ... Thanks. CvCapture *input; input = cvCaptureFromCAM( 0 ); cvSetMouseCallback("Demo",&on_mouse, 0); for(;;) {

How to get a list of video capture devices (web cameras) on Mac OS? (C++)

寵の児 提交于 2019-11-26 21:29:28
问题 So all I need is simple - a list of currently avaliable video capture devices (web cameras). I need it in simple or C++ console app. By list I mean something like such console output: 1) Asus Web Camera 2) Sony Web Camera So It seems simple but I have one requirement - use of native OS apis as much as possible - no external libs - after all - all we want is to print out a a list - not to fly onto the moon!) (and no use of objective-C, please - pure C/C++) How to do such thing? also from this