webcam

C++ OpenCV 2.4.11: List all cameras

北慕城南 提交于 2019-12-01 17:04:09
问题 I want to list all connected webcams (USB-webcams and internal webcams), using C++, OpenCV 2.4.11, Windows 8.1 and Qt Creator 3.4.2. For me it is enough to get the number of accessible webcams in the following way: VideoCapture videoCapture(0); // Will access my internal laptop webcam. VideoCapture videoCapture(1); // Will access the first connected usb webcam. Here is my code: // Following procedure detects, how many webcams are accessible from 0 on upwards. numberOfDevices = 0; bool noError

Capturing frames from webcam using DirectShow.NET

别等时光非礼了梦想. 提交于 2019-12-01 17:03:09
I am new at DirectShow, so some parts of this library i don't understand well. I already see the example DxSnap, but i need to capture frames without previewing it , for futher processing. How can i do it? you could build one yourself. If you look into the windows sdk 7.0~ folders you can go to samples > multimedia > directshow > and there should be a filters folder that shows you how to make generic filters and do w/e you want If your main concern is "access webcam" and not "access webcam with DirectShow", then I would have a look at the AForge.NET-Framework . I tried it with DirectShow once

Capturing frames from webcam using DirectShow.NET

末鹿安然 提交于 2019-12-01 16:42:29
问题 I am new at DirectShow, so some parts of this library i don't understand well. I already see the example DxSnap, but i need to capture frames without previewing it , for futher processing. How can i do it? 回答1: you could build one yourself. If you look into the windows sdk 7.0~ folders you can go to samples > multimedia > directshow > and there should be a filters folder that shows you how to make generic filters and do w/e you want 回答2: If your main concern is "access webcam" and not "access

OpenCV capture from USB not iSight (OSX)

懵懂的女人 提交于 2019-12-01 14:52:16
I am having trouble accessing the external USB camera instead of the built-in iSight when using OpenCV with a MacBook Pro under Mac OSX. When passing an argument to the cvCaptureFromCAM(index) function other than 0 or -1 I will always get a Warning: Max Camera Num is 0; Using camera 0 The camera is a Sony PS3 EYE working perfectly with the macam driver and quicktime component. Yet I am unable to access it using OpenCV which will always default to the built-in iSight (even when trying to "occupy" the iSight with a different program). Any ideas? Thank you very much in advance, your help is very

Regarding the scope of Sample Grabber in DirectShow

笑着哭i 提交于 2019-12-01 14:40:45
I have 2 related questions for my web cam live capture application. The webcams capture data in varying formats such as YUY2, RGB24, I420, MJPG etc. I need to convert the captured data to I420 irrespective of the input format. Hence I need to know the current scope/capability of the Direct Show inbuilt Transform filter such as Sample Grabber. Will the Sample Grabber support at least these many transformations? Or will I have to write my own custom filters? Many of the webcams seem to have multiple format output. When I connect Sample Grabber whose media type is Set to I420, will the Sample

How do I encode video in Adobe Air/Flash?

别说谁变了你拦得住时间么 提交于 2019-12-01 12:11:56
I have an Adobe Air Flash, Action script 3.0 application. I need to save the webcam (or rather a series of bitmap as frames) to a video file. The video file needs to be compressed and needs to save as the frames go. AIR/Flash don't give you access to any local video encoders, so compressing the video is the hard part of this problem. For the rest, grab video frames using the BitmapData.draw() function. You can then draw the text into the same bitmapdata. For uncompressed video, you can do something like this: http://www.joristimmerman.be/wordpress/2008/12/18/flvrecorder-record-to-flv-using-air

webcam does not work in pip version of opencv-python and opencv-contrib-python

…衆ロ難τιáo~ 提交于 2019-12-01 11:51:25
I've been facing a problem with the webcam in opencv in python using anaconda. The problem is the following: I cannot open the webcam if opencv is installed via any of the two: pip install opencv-python (available 3.1,3.2,3.3), or pip install opencv-contrib-python (available 3.2,3.3) However it will work if and only if I install it from conda install opencv (available opencv 3.1) However, some functionality of opencv is only given in newer versions or in the contrib version currently not available via conda. Does anyone have an idea why the pip versions won't work? Update => The Pip Packgage

How do I encode video in Adobe Air/Flash?

爷,独闯天下 提交于 2019-12-01 11:46:41
问题 I have an Adobe Air Flash, Action script 3.0 application. I need to save the webcam (or rather a series of bitmap as frames) to a video file. The video file needs to be compressed and needs to save as the frames go. 回答1: AIR/Flash don't give you access to any local video encoders, so compressing the video is the hard part of this problem. For the rest, grab video frames using the BitmapData.draw() function. You can then draw the text into the same bitmapdata. For uncompressed video, you can

I want to capture a video using jQuery webcam plugin

安稳与你 提交于 2019-12-01 11:37:10
I want to capture live webcam in the form of video, i am not getin the proper example in the official page documentation of the webcam plugin.How to do so??? Plugin which allows jQuery to read data from a user's webcam or other video capture device http://plugins.jquery.com/project/webcam I got the perfect plugin i wanted Opentok api 来源: https://stackoverflow.com/questions/8208632/i-want-to-capture-a-video-using-jquery-webcam-plugin

Configuring camera properties in new OCV 2.4.3

£可爱£侵袭症+ 提交于 2019-12-01 11:12:15
问题 I may just be googling wrong, but I cannot find out a way (read function) to change properties of camera in the new Open CV. I need to disable auto exposure and auto gain of the camera. Is that even possible? 回答1: This is an old question but I want to add a solution to this. opencv calls underlying v4l methods to query frames, set/get camera properties etc. And the problem is, the calls are not complete. Also for some reason, the library calls v4l methods instead of v4l2 ones. Similar issue