webcam

Record video with HTML input type file capture camcorder from webcam

与世无争的帅哥 提交于 2020-01-15 01:50:27
问题 In my company, i had the task to build a website, where users can record a video, that will be send to the server, some stuff will be done and the user finally gets an email with a link to a microsite with that video embedded. After some research, i came to the conclusion, that it is impossible, at least at the moment, to capture a video with getUserMedia on iPad. So the solution is quite simple, i just use a input-element with accept="video/*;capture=camcorder". <input type="file" accept=

Record video with HTML input type file capture camcorder from webcam

与世无争的帅哥 提交于 2020-01-15 01:50:11
问题 In my company, i had the task to build a website, where users can record a video, that will be send to the server, some stuff will be done and the user finally gets an email with a link to a microsite with that video embedded. After some research, i came to the conclusion, that it is impossible, at least at the moment, to capture a video with getUserMedia on iPad. So the solution is quite simple, i just use a input-element with accept="video/*;capture=camcorder". <input type="file" accept=

OpenCV : how to get raw YUY2 image from webcam?

让人想犯罪 __ 提交于 2020-01-14 12:53:52
问题 Do you know how to get raw YUY2 image from webcam, using OpenCV-DirectShow (no VFW) ? http://opencv.willowgarage.com/wiki/CameraCapture : I succeed getting IPL image (Intel Processing Library image) using the example. Using the function cvShowImage() in the code, the image is nice on the screen. But I don't want to show image on the screen, nor IPL format, I just want YUYV raw data... The second part of the wiki page would be what I want, but deviceSetupWithSubtype() does not seem to exist

Getting webcam to work in OpenCV 2.3 with Cygwin

依然范特西╮ 提交于 2020-01-14 09:47:14
问题 I have a problem trying to get a webcam in OpenCV 2.3 to work with Cygwin. I have a Windows 7 64-bit system and I use Notepad++ and cygwin compilers to do my C++ programming. I have seen other posts with similar problems: Getting Webcam to work in OpenCV Can't access webcam with OpenCV I first tried installing OpenCV via the Cygwin Ports. This is rather easy to install, but alas I run into the webcam problem (always returns false when trying to find a device). I have also attempted to build

Query maximum webcam resolution in OpenCV

时光怂恿深爱的人放手 提交于 2020-01-13 17:08:08
问题 I'm dealing with several types of cameras and I need to know the maximum resolution each one is capable. Is there a way to query such property in OpenCV? If not, is there any other way? The application will work under Windows (by the moment) and all the project is being developed using C++. 回答1: A trick that's working for me: Just set to a very high resolution (above the capabilities of any usual capture device), then get the current resolution. You will see that the device will automatically

How to get video and audio streams from web cameras with Java?

久未见 提交于 2020-01-12 05:30:09
问题 How can I get video and audio streams from web cameras with Java (in a cross-platform way)? For example, we have a computer with 3-4 USB web cameras; we want to get their streams and make them visible in the user interface. How can we perform such a thing? I need code for a simple app which would find ALL cameras on the computer and let us select camera to wach. Can any one, please share such one? 回答1: With java media framework JMF or FMJ Here is an example with JVM 回答2: I see your comment

Opencv Error on Ubuntu Webcam (Logitech C270) Capture -> HIGHGUI ERROR: V4L/V4L2: VIDIOC_S_CROP

谁都会走 提交于 2020-01-12 04:58:05
问题 this erorr message appears on running simple camera capture on Ubuntu with logitech C270 (OpenCV 2.4.2/C++): HIGHGUI ERROR: V4L/V4L2: VIDIOC_S_CROP and further: Corrupt JPEG data: 2 extraneous bytes before marker 0xd1 Corrupt JPEG data: 1 extraneous bytes before marker 0xd6 Corrupt JPEG data: 1 extraneous bytes before marker 0xd0 Corrupt JPEG data: 1 extraneous bytes before marker 0xd0 I get frames but the values of frame width and height swapped when writing to a Mat object see below: Mat

OpenCV with 2 cameras VC++

南楼画角 提交于 2020-01-11 06:36:09
问题 I am importing a source code for stereo visions. The next code of the author works. It takes two cameras sources. I have two different cameras currently and i receive images. Both works. It crashes at capture2. interesting part is that if i change the orders of the webcams(Unplugging them and invert the orders) the first camera it will be the second one. We it doesn't work? I tested also with Windows XP sp3 and Windows 7 X64. The same problem. //---------Starting WebCam---------- capture1=

pyQT4 Web Browser Python grant permission (webcam)

杀马特。学长 韩版系。学妹 提交于 2020-01-07 03:15:16
问题 I need to make a very simple web browser wrapped in python. I am using pyQt4 for this. I can very easily create a little browser to load web pages and almost everything works fine. The issue I am having is that accessing the webcam does not work. Navigating to any url that attempts to access the webcam (through javascript getUserMedia() ) does nothing. Doesn't even prompt for the user to select a webcam device. Why is this? How do I grant permission to use the webcam with a simple pyQT4

VB.Net: Detect Webcam

删除回忆录丶 提交于 2020-01-05 06:31:15
问题 How can I programmatically detect whether a webcam device is plugged in to the PC or not, return 'True' or 'False. 回答1: Might be some better way of doing this but the only one I can think of would be to use GetRawInputDeviceList to enumerate all USB devices and then using GetRawInputDeviceInfo to get out more information about them. Webcams should show up as HID, but I don't know if there's any way to tell for sure if it's a webcam. See here for a C# sample (could probably use a C# to VB.Net