webcam

Displaying a webcam feed using OpenCV and Python

泪湿孤枕 提交于 2019-11-26 19:35:49
I have been trying to create a simple program with Python which uses OpenCV to get a video feed from my webcam and display it on the screen. I know I am partly there because the window is created and the light on my webcam flicks on, but it just doesn't seem to show anything in the window. Hopefully someone can explain what I'm doing wrong. import cv cv.NamedWindow("w1", cv.CV_WINDOW_AUTOSIZE) capture = cv.CaptureFromCAM(0) def repeat(): frame = cv.QueryFrame(capture) cv.ShowImage("w1", frame) while True: repeat() On an unrelated note, I have noticed that my webcam sometimes changes its index

Virtual Webcam Driver

不羁岁月 提交于 2019-11-26 19:25:15
问题 I want to develop a virtual webcam driver which from User mode I'll pass image to it and it will display as webcam output. I don't want to use DirectX filter and CSourceStream etc. Because they don't work on some programs which doesn't use DirectX for capturing webcam image. I have to write a kernel mode device driver so. Any ideas? I tried testcap from DDK samples, but it doesn't process image from user mode and doesn't get any input, just it displays 7 colors in webcam... Any help would be

Best way to access web camera in Java

梦想的初衷 提交于 2019-11-26 18:56:26
问题 I need to access web camera using Java. This is what I want to do Access web cam Now the user can see web cam working because his face is visible on screen (have heard some libs are there which doesn't show the video output of webcam) when user click save button, take a snapshot and save it I have tried number of ways to do this, from a long time. JMF - Now it is dead FMJ - Now it is dead too VLCJ - too much because I am not creating a music/video player and it expect VLC to be installed

How do I access my webcam in Python?

て烟熏妆下的殇ゞ 提交于 2019-11-26 18:52:28
问题 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? 回答1: 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

How to get a list of video capture devices (web cameras) on linux ( ubuntu )? (C/C++)

点点圈 提交于 2019-11-26 18:49:41
So all I need is simple - a list of currently avaliable video capture devices (web cameras). I need it in simple C 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!) How to do such thing? also from this series: How to get a list of video capture devices on linux? and special details on getting cameras NAMES with correct, tested answers How to get a

Increasing camera capture resolution in OpenCV

試著忘記壹切 提交于 2019-11-26 18:28:49
In my C/C++ program, I'm using OpenCV to capture images from my webcam. The camera ( Logitech QuickCam IM ) can capture at resolutions 320x240 , 640x480 and 1280x960 . But, for some strange reason, OpenCV gives me images of resolution 320x240 only. Calls to change the resolution using cvSetCaptureProperty() with other resolution values just don't work. How do I capture images with the other resolutions possible with my webcam? Grifo I'm using openCV 1.1pre1 under Windows (videoinput library is used by default by this version of openCv under windows). With these instructions I can set camera

Access webcam without Flash

时光怂恿深爱的人放手 提交于 2019-11-26 16:16:30
问题 I want to create a video chat application using HTML 5 elements and JavaScript, and I don't want to use Flash to access the user's webcams. How can I accomplish this using only HTML and JavaScript? 回答1: At the moment of writing this the best solution is WebRTC. It is supported in Chrome, Mozilla and Opera, but still unavaialble in Internet Explorer and Safari. Minimalistic demo. Index.html <!DOCTYPE html> <head> </head> <body> <video></video> <script src="webcam.js"></script> </body> webcam

OpenCV on Mac is not opening USB web camera

南楼画角 提交于 2019-11-26 14:39:05
问题 I have been unsuccessful using OpenCV's VideoCapture.open(int) to get video capture from a USB web cam in my MacBook Pro running Mac OS X v10.7 (Lion). Using open(0) successfully gets capture from the iSight camera. But I didn't have any luck trying to find the WebCam. The WebCam is installed and works well with Skype, and the macam driver application. Here is a portion of the code that I'm using: VideoCapture cap; for (int i = 1; i < 1500; i++) { if (cap.open(i)) { cout << "Found camera %d\n

Webcam usage in C#

﹥>﹥吖頭↗ 提交于 2019-11-26 12:12:31
问题 I am making a program in C# to connect to a webcam and do some image manipulation with it. I have a working application that uses win32 api (avicap32.dll) to connect to the webcam and send messages to it that sends it to the clipboard. The problem is that, while accesible from paint, reading it from the program results in null pointers. This is the code I use to connect the webcam: mCapHwnd = capCreateCaptureWindowA(\"WebCap\", 0, 0, 0, 320, 240, 1024, 0); SendMessage(mCapHwnd, WM_CAP_CONNECT

How can I make Chrome allow access to a webcam over http (not https)?

泪湿孤枕 提交于 2019-11-26 11:13:17
问题 I am building a kiosk application using webrtc video. It is only served on the internal network and I would like to be able to always allow the webcam for my site over http. Using ssl isn\'t that important and is just an extra expense for a cert. Is there any way to do this or am I stuck? 回答1: Yes, an admin can override the prompts with a policy. VideoCaptureAllowedUrls Patterns in this list will be matched against the security origin of the requesting URL. If a match is found, access to