webcam

How to take single snapshots from a webcam?

笑着哭i 提交于 2019-11-28 10:03:16
问题 I want to take a snapshot with my webcam using java and save it to a jpg file. What are the steps needed to do so? A tutorial would be greatly appreciated. Greetings, Burkhard 回答1: the JMF (Java Media Framework) is a good starting point. However, I did not succeed with it. I finally found the solution here. The important part being: Buffer buf = frameGrabber.grabFrame(); // Convert frame to an buffered image so it can be processed and saved Image img = (new BufferToImage((VideoFormat) buf

HTML 5 streaming webcam video?

你说的曾经没有我的故事 提交于 2019-11-28 09:17:12
Is it currently possible to create a flash free live webcam chat with HTML5? If so, how can I go about doing this? samccone no It is in the html5 draft http://www.whatwg.org/specs/web-apps/current-work/complete/video-conferencing-and-peer-to-peer-communication.html#obtaining-local-multimedia-content here is a much deeper conversion about this issue What's the status of the HTML 5 <video> tag and webcam integration? and here is a solution that works using flash http://code.google.com/p/jpegcam/ This is now possible in Chrome and Opera: filtering a webcam using getUserMedia and HTML5 canvas and

Select Timeout error in Ubuntu - Opencv

五迷三道 提交于 2019-11-28 07:49:33
I am trying to set OpenCv up for my final year project and have run into a couple of problems. I successfully got it set up in Ubuntu following this tutorial. The problem I am having now is keeping this sample program running. The program is face detection using a webcam. It runs fine for 3 or 4 seconds and then the capture gets stuck with a single frame in the window. The console displays the following output. tom@ubuntu:~/College/opencv/faceDetect_sample$ make ./faceDetect --cascade="haarcascade_frontalface_alt.xml" --nested-cascade="haarcascade_eye_tree_eyeglasses.xml" VIDIOC_QUERYMENU:

Using PHP to Access a User's Webcam

一笑奈何 提交于 2019-11-28 06:39:13
I'd like to allow users to record videos directly from their webcam. I haven't done much work with PHP but am stuck with it for this project. We currently have a system in place for video uploading and encoding, but nothing to actually access a user's webcam. How would you recommend I proceed? Webcams aren't available to HTML or JavaScript/DOM in any browsers that I know of, so you're going to end up dependent on some sort of plugin. I'd recommend you start your search with Adobe Flash/Flex, though It's possible that Microsoft Silverlight is able to do the same thing. Flex is a bit more

Qt video frames from camera corrupted

a 夏天 提交于 2019-11-28 06:21:13
问题 EDIT: The first answer solved my problem. Apart from that I had to set the ASI_BANDWIDTH_OVERLOAD value to 0. I am programming a Linux application in C++/Qt 5.7 to track stars in my telescope. I use a camera (ZWO ASI 120MM with according SDK v0.3) and grab its frames in a while loop in a separate thread. These are then emitted to a QOpenGlWidget to be displayed. I have following problem: When the mouse is inside the QOpenGlWidget area, the displayed frames get corrupted. Especially when the

OpenCV 2.3 (C++,QtGui), Problem Initializing some specific USB Devices and Setups

流过昼夜 提交于 2019-11-28 05:32:58
问题 I'm playing around with OpenCV since a while and I found some strange behavior of some specific capturing devices (PS3 Eye, Logitech C940, iSight) even on different Platforms. Using OpenCV in Windows: All cams mentioned above work well. But when I want to use 2 cams and therefore create a second capture it will depend on the devices that I use in my Dual Cam Setup. PS3 Eye + C940: no problems 2x C940: no problems 2x PS3 Eye: No chance, only the specific device that was connected first will

How do I access my webcam in Python?

跟風遠走 提交于 2019-11-28 03:03:52
I would like to access my webcam from Python. I tried using the VideoCapture extension ( tutorial ), but that didn't work very well for me, I had to work around some problems such as it's a bit slow with resolutions >320x230, and sometimes it returns None for no apparent reason. Is there a better way to access my webcam from Python? John Montgomery OpenCV has support for getting data from a webcam, and it comes with Python wrappers by default, you also need to install numpy for the OpenCV Python extension (called cv2 ) to work. As of 2019, you can install both of these libraries with pip: pip

Accessing webcam in Xcode with OpenCV (C++)

你。 提交于 2019-11-28 01:17:49
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 window and display the video capture namedWindow("Video Capture", CV_WINDOW_AUTOSIZE); for (int i=0; i<100;

Draw on webcam using OpenCV

北城余情 提交于 2019-11-28 01:09:46
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(;;) { frame = cvQueryFrame(input); if(!image) { image = cvCreateImage( cvSize(frame->width, frame->height),

How to access webcam via Internet Explorer (11)? [closed]

我的未来我决定 提交于 2019-11-28 00:56:37
问题 Context: I'm building an offline website (html5, css, js) which i want to call over IE (11). For taking/saving a picture i need to access the webcam. Approach: I read that IE doesn't support the getUserMedia; and the only way is to use flash. Question: Is the only possibility to access the webcam over IE by using flash? If yes, please recommend an example. I'd appreciate your input. 回答1: Yes IE 11 and below currently doesn't support getUserMedia ,but there is a polyfill available on github,