webcam

webcam, Video Source dialog comes up

随声附和 提交于 2019-12-11 06:58:39
问题 So have seen a ton of people with the same issue's but no answers. My SendMessage pop's up the "Video Source" dialog box on a windows 7 laptop with one camera. I have Cyber Link YouCam installed. If I uninstall Cyber Link YouCam the "Video Source" dialog goes away. It appears to be the OS is acting as though YouCam is a second driver for the same device. My question is how do I stop the dialog box for "Video Source" from appearing? Once I choose an option in the dialog I don't get the dialog

Webcam can not show picture with OpenCV in python 3.7

大憨熊 提交于 2019-12-11 06:47:36
问题 I use the following code copied from opencv website : import cv2 cap = cv2.VideoCapture(0) while(True): # Capture frame-by-frame ret, frame = cap.read() cv2.imshow('frame',frame) if cv2.waitKey(1) & 0xFF == ord('q'): break cap.release() cv2.destroyAllWindows() But the image is black with some white noise : I am pretty sure the problems is not come from my webcam device because I use "camera" APP in Windows 10, the picture can display well. The following is my python environment : Python : 3.7

Accessing a webcam from pyside / opencv

ⅰ亾dé卋堺 提交于 2019-12-11 05:52:37
问题 I have problems accessing a webcam in a pyside / opencv project. This is a stripped down example that produces the problem I face: from PySide import QtCore, QtGui import cv, cv2, time, ImageQt app = QtGui.QApplication([]) while True: camcapture = cv.CaptureFromCAM(0) cv.SetCaptureProperty(camcapture,cv.CV_CAP_PROP_FRAME_WIDTH, 1280) cv.SetCaptureProperty(camcapture,cv.CV_CAP_PROP_FRAME_HEIGHT, 720); frame = cv.QueryFrame(camcapture) image = QtGui.QImage(frame.tostring(), frame.width, frame

How to record audio stream using ffmpeg?

青春壹個敷衍的年華 提交于 2019-12-11 05:48:32
问题 I have a problem using ffmpeg: when i trying to record video+audio from my webcam in result i got only video stream, wthout audio at all. I have tried different codecs and nothing.. Maybe, someone can give me advice? ffmpeg -f dshow -i video="Logitech HD Webcam C270" -r 25 -s 800x600 -acodec libmp3lame -vcodec mpeg4 -b 3000k -f avi D:\1.avi Btw: virtualdub grabs both well. Thanks. 回答1: Assuming that you have installed the driver and codecs, use something like: ffmpeg -f dshow -i video=

webcamcapture + photoupload (like Facebook) for PHP

白昼怎懂夜的黑 提交于 2019-12-11 04:23:54
问题 On my PHP-based (Joomla!) site users should be able to provide a photo of themselfes and provide some comments to it (e.g. Name). This file along with the comment should then be stored on the server. The user should simply be able to do this either by uploading a file or by taking a picture with their webcam directly on my site. I like the way Facebook has solved the user interface for that. Is there a free (or cheap) component (I suppose it needs to be done with flash?) that I can intergrate

Uploading a picture taken from a webcam

天大地大妈咪最大 提交于 2019-12-11 04:19:19
问题 How do i upload a picture that i took from a webcam, i've found a code that worked (only on Chrome) i've used the code, and when clic on Take picture, i got the picture but i dont see it on the source? <video autoplay id="vid" style="display:none;"></video> <canvas id="canvas" width="640" height="480" style="border:1px solid #d3d3d3;"></canvas><br> <button onclick="snapshot()">Take Picture</button> <script type="text/javascript"> var video = document.querySelector("#vid"); var canvas =

Prevent OutOfMemoryException With AForge and Graphics.FromImage.DrawImage

不打扰是莪最后的温柔 提交于 2019-12-11 03:43:16
问题 I have written a code to allow the user to start and stop a feed from their webcam. I have used AForge.NET's NewFrameEventArgs to update a PictureBox with the new frame each time it changes. Everything works perfectly however whenever I start the feed, the RAM usage on my computer slowly goes up until an OutOfMemoryException occurs. Please could you help me find out how to clear or flush this somehow. When I get the exception, it occurs at the bottom of the code in ScaleImage: System.Drawing

C# web cam WM_CAP_CONNECT: Want to force a capture source when multiple capture sources present

放肆的年华 提交于 2019-12-11 03:33:48
问题 I am using WebCam_Capture code I found online to access through C# a web cam. On a computer with one video source it works like a charm! (Program starts up at start up, finds the webcam and it works). Though on a computer with many video sources (Say a web cam and then manycam running on top of that), the program starts and queries the user which source to use. I would love my program to start up autonomously at the restart of a machine so this waiting for user input throws a wrench in that,

How Do I get list of audio/video and capture devices in C#?

拜拜、爱过 提交于 2019-12-11 03:29:42
问题 I've spent the last two weeks searching everywhere trying to get even so much as a hint on how to do this. This is my first time asking, and trust me when I say that I do not like to ask for help. But I am at the end of my rope, all I can find is how to list available audio and video devices using someone else's Framework in C#. All I want to do is list the available audio and video devices connected to ones computer from within C# without any additional 3rd party Frameworks. If any of you

DirectShow - Capture Webcam While Viewing It?

空扰寡人 提交于 2019-12-11 03:27:57
问题 I am trying to make a webcam application in c# that allows users to record video. I have been using DirectShow.Net to preview the webcam and to take snapshots. But need to be able to capture video and audio while previewing the webcam at the same time. One thing I tried was using capturing multiple snapshots and converting them to a video using ffmpeg, however this obviously does not capture audio. Any ideas on how I could accomplish this? 回答1: Things you should be aware of: Capture device is