Detect Virtual/Fake webcam

Hello,
We are developing a WPF C# application which requires a webcam screen shot capture. For this we need to detect fake webcams and remove them from the list of camera devices. Any idea on how to distinguish real webcams from fake ones?
Thanks,
Nabil D.

Hello,
I want To show you how access To the camera with AForge libraries, download and extract libraries from 
http://www.aforgenet.com/framework/downloads.html
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using AForge.Video;
using AForge.Video.DirectShow;
namespace cam_aforge1
public partial class Form1 : Form
private bool DeviceExist = false;
private FilterInfoCollection videoDevices;
private VideoCaptureDevice videoSource = null;
public Form1()
InitializeComponent();
// get the devices name
private void getCamList()
try
videoDevices = new FilterInfoCollection(FilterCategory.VideoInputDevice);
comboBox1.Items.Clear();
if (videoDevices.Count == 0)
throw new ApplicationException();
DeviceExist = true;
foreach (FilterInfo device in videoDevices)
comboBox1.Items.Add(device.Name);
comboBox1.SelectedIndex = 0; //make dafault to first cam
catch (ApplicationException)
DeviceExist = false;
comboBox1.Items.Add("No capture device on your system");
//refresh button
private void rfsh_Click(object sender, EventArgs e)
getCamList();
//toggle start and stop button
private void start_Click(object sender, EventArgs e)
if (start.Text == "&Start")
if (DeviceExist)
videoSource = new VideoCaptureDevice(videoDevices[comboBox1.SelectedIndex].MonikerString);
videoSource.NewFrame += new NewFrameEventHandler(video_NewFrame);
CloseVideoSource();
videoSource.DesiredFrameSize = new Size(160, 120);
//videoSource.DesiredFrameRate = 10;
videoSource.Start();
label2.Text = "Device running...";
start.Text = "&Stop";
timer1.Enabled = true;
else
label2.Text = "Error: No Device selected.";
else
if (videoSource.IsRunning)
timer1.Enabled = false;
CloseVideoSource();
label2.Text = "Device stopped.";
start.Text = "&Start";
//eventhandler if new frame is ready
private void video_NewFrame(object sender, NewFrameEventArgs eventArgs)
Bitmap img = (Bitmap)eventArgs.Frame.Clone();
//do processing here
pictureBox1.Image = img;
//close the device safely
private void CloseVideoSource()
if (!(videoSource == null))
if (videoSource.IsRunning)
videoSource.SignalToStop();
videoSource = null;
//get total received frame at 1 second tick
private void timer1_Tick(object sender, EventArgs e)
label2.Text = "Device running... " + videoSource.FramesReceived.ToString() + " FPS";
//prevent sudden close while device is running
private void Form1_FormClosed(object sender, FormClosedEventArgs e)
CloseVideoSource();

Similar Messages

  • JMFRegistry: Detect virtual webcam instead actual webcam

    Hi all
    I have a issue of not detecting my webcam by JMF registry.
    Initially it was detected and worked fine. Recently I have installed virtual web camera.
    So when I tried to capture video by JMFStudio (JMFStudio->capture) it plays the video from virtual web cam software not from my real web cam.
    And under the JMF registry capture devices "vfw:Microsoft WDM Image Capture (Win32):0" was found.
    Seems Virtual web cam driver doesn't change this because before installing the virtual software it was the same.
    Virtual webcam software provides us an interface to change the video source and there it detects my web camera. So still I can use my web cam with JMF through this virtual web cam driver.
    "I can remember that I have changed the default video source by an windows interface where it was prompt by JMF it self, it was a very simple interface having a single drop down where it carries all the capturing drivers I have installed. But not I cannot find this interface"
    So can anyone please help me to get rid of this issue
    Thnak You

    Hi this is to answer my own question, I have found that JMF doesnot detect all the webcams(virtual or real) having same id "vfw:Microsoft WDM Image Capture (Win32):0.
    So what we have to do is disable the current selected camera and start rescan of the capturing devices. Then it prompts a window to select what we want.
    This is the link why we need such virtual webcam.
    These are many virtual web cams which are free and works with JMF.
    Edited by: deshan on Jun 8, 2009 7:02 PM

  • My Laptop donot detect built-in Webcam

    Hi I have HP Pavilion G6-1304TX notebook. I bought it a year ago but now my laptop donot detects by built-in webcam. I have cyberlink youcam installed but it also says that "windows cannot detect webcam". In the system information window, under the 'components' tab, inside problem devices, it shows Unknown Device USB\VID_0000&PID_0000\6&2B9940DA&0&5 43 Please reply
    Please click the "White Kudos" star to say thanks for helping.
    Please mark "Accept As Solution" if my help has solved your problem.

    Hi,
          Please try the steps listed in the below link:-
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c02452221&tmp_task=solveCategory&cc=us&dlc=en&lc...
    "I work for HP."
    Please click the "White Kudos" star to say thanks for helping.
    Please mark "Accept As Solution" if my help has solved your problem.

  • Help! Computer won't detect mic unless webcam is plugged in...

    Has this happened to anyone else? I have 2 different headsets and my computer won't detect the microphone on either on unless the webcam is plugged in. It doesn't seem to have any problem with the speakers, but I can't use the mic until I plug in the webcam. Please help! This is really annoying!!
    Oh, and I'm using Windows Vista, and the Live! Cam Notebook Pro (VF0400) with the headset that came with it and another headset (not a Creative headset).
    Message Edited by triciater on 11-28-2007 11:33 PM

    hm... yes! you have same problem as me. I can't change to another mic till webcam is plugged. And this is due to the fact that the webcam has a built-in microphone inside.Moreover in my case, it must be another problem too, because the other person with who I talk hear sometimes a strong noise. I need to change microphone in the Skype options (I go to the Microsoft Microphone, even if it can hear nothing) and I go back on the mic of the cam. The noise disappear for some moments... after again and I do the same.Could someone help us?For me it would be nice to deactivate the mic of the cam and use an headset that doesn't give this noise problem.

  • Fake webcam for macbook pro

    Im looking for an app or software which lets you stream fake videos through your webcam.. For example, i want to chat on omegle but i dont want to show my real face..Can somebody help me?? Instructions will be help also.

    wear a costume, such a sunglasses and a wig to conceal your true identity.

  • HELPPP !! URGENT Motion detect with a webcamera !!! PLSSSSS

    I tried but none of the exemples work . I need a simple vi that detects motion and a green light is on when that happens . The method is not important the easyer the bether (treshold is easy not STEI or segmentation). Thanks

    Hello,
    Are you able to acquire
    images in LabVIEW with your web camera? I'm assuming that this is s USB
    camera which means it will have to be DirectShow compliant to work.
    Additionally, you will need the IMAQ for USB driver which can be found
    here: http://zone.ni.com/devzone/cda/epd/p/id/5030 . Which examples have you tried? There looks to be a good one on the community here: http://decibel.ni.com/content/docs/DOC-4717 . You will have to fix the code in the example so that it uses the IMAQ for USB driver instead of IMAQ or IMAQdx.
    -Zach
    Certified LabVIEW Developer

  • Skype 7.0.60.100 can't detect my Logitech Webcam C...

    My webcam has worked fine for several months with Skype, and then two days ago, it stopped working (although the webcam works fine with other apps). Checked the Skype version -- 6.22.0.107 -- and it looked as if it had been updated about the same time as the problem happened. 
    Have just updated to 7.0.60.100 and the problem still exists.
    DXdiag output attached -- any suggestions how I can get this working again?
    Attachments:
    DxDiag.zip ‏13 KB
    DxDiag.zip ‏13 KB

    If that doesn't resolve it you can also try this:
    http://community.skype.com/t5/Windows-desktop-client/ASUS-USB2-0-Webcam-not-recognized-by-Skype-6-18...
    http://community.skype.com/t5/Windows-desktop-client/ASUS-USB2-0-Webcam-not-recognized-by-Skype-6-18...
    The key thing is to locate any/all USB root hubs that contain the logitech C525 or USB composite device representing the camera and uninstall them.  Upon a device manager refresh, everything will be reinstalled.  That type of flush can help resolve odd issue such as this.
    I currently own a C525 and it has worked fine in the latest versions, so something odd definitely occurred on your machine.

  • To Detect mic of webcam

    Hi,
    I am creating an application to broadcast a audio using FMS.
    If i am using an external mic then it's working perfectly. But, now i want to use the mic  attached with webcam.
    Is it possible to get voice from the mic attached with WebCam ?
    Thanks In Advance
    Bharat Patel

    Hope info from this article is helpful.
    http://support.apple.com/kb/HT2090
    Reset SMC.     http://support.apple.com/kb/HT3964
    Choose the appropriate method.
    If this does not help, contact Apple.
    Best.

  • Detect Virtual Device

    Message Edited by aaron84 on 06-04-2008 09:32 AM

    Hi Aaron,
    I'm assuming you solved the problem.  Let me know if this is not the case.
    Thanks!
    Chad Erickson
    Switch Product Support Engineer
    NI - USA

  • Mac OSX 10.5.7 Leopard can not detect webcam

    Hello Support,
    I am using Mac OSX 10.5.7 Leopard in Safari and FireFox however Flash Player v 9 and 10 does not detect my isight webcam (firewire). I can not even change my settings to choose a webcam because the image that I get when I go to the settings is just a screenshot but not interactive. I have attached the picture.
    Does Flash player work in Mac OSX 10.5.7 Leopard Safari and FireFox? I get as far as the allow or deny button, then I get a error message saying that my cam is not detected.
    Can you please advise.
    Thanks in advance

    Man... gmax3100 have a POOR opengl performance under Mac Osx Leopard in 2d. It is NOT my problem but it is a known problem. Try to run some benchmark with gma950 and gma x3100.
    Macbook c2d 2.2 opengl performance x3100: 23.28
    MacMini cd 1.6 opengl performance gma950: 184.76
    it is a know problem:
    http://lists.apple.com/archives/mac-opengl/2008/Jan/msg00025.html
    http://forums.macrumors.com/showthread.php?t=446938
    http://forums.macrumors.com/showthread.php?t=448571
    http://forums.macrumors.com/showthread.php?t=403685
    ecc.
    exposè make 40fps and it is NOT fluid like a nvidia or ati card. Exposè is a simple animation, under arch linux and geforce3 (2001) is more more fluid respect leopard... and respect to tiger.
    with this hack:
    sudo defaults write /Library/Preferences/com.apple.windowserver Compositor -dict deferredUpdates 0
    exposè is much MORE fluid so it is a driver problem (because with tiger there's no problem!!)
    I have NO problem with my macbook.

  • Detecting webcam

    Hi, I am having difficulties detecting my webcam. The thing is, I have 2 video capture devices, a capture card and a usb webcam. Using JMF studio, it cannot even detect my usb webcam, although if I open something like windows movie maker (in WinXP), it detects both devices fine. Since I am using jmf, my code similarly only detects the capture card and not the usb webcam. Any ideas, or previous posts, about this?
    Also, how can I choose which device I want to use for capturing, assuming there are multiple capture devices to choose from?
    Thanks

    Have you ran jmfinit a couple of times ?
    I had to try a few times before success, was getting out of environment space problems.
    Also, I had Java 1.4 installed, and jmfinit complained that the HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\CurrentVersion said 1.4, instead of the expected 1.2
    I just changed that setting in the registry to 1.2, ran jmfinit, then set it back to 1.4. That worked.
    Ps. I'm assuming your webcam works outside of JMF, and has a VFW or WDM driver.
    regards,
    Owen

  • Skype doesn't detect webcam on new windows 8 lapto...

    I have a new laptop pre-shipped with windows 8. I installed skype via the skype download page, and after the install I see that it does not detect my webcam.
    I go to Tools->Options and skype doesn't detect that any webcam exists on the system.
    I've changed the windows 8 webcam privacy settings to allow skype to use my webcam, though I'm not clear if this affects the normal old desktop skype or that new metro skype (I'm not even quite clear if those are two separate applications, that whole metro thing is still just weird and unuseable to me, not sure why I'd ever want skype to take over the whole desktop as it does if you go into it from the metro interface).
    There are tons of results for webcams not woring in skype, but after going through many of them they don't seem to cover this case of "skype just doesn't detect the webcam in windows 8".

    -Leon- wrote:
    the F1/2/3/4/5/6/7/8/9 dont work for me to turn on my webcam please help!
    Please,  run the DirectX diagnostics tool.
    Go to Windows Start  and in the Run box type dxdiag.exe and press the OK button. This will start the DirectX diagnostics program. Run this diagnostics and save the results to a file. Please, attach this file to your post.
    Be aware that you will have to zip this file before attaching it here.

  • HP G62 webCam not detected

    Hi every body,
    My HP G62 361 TX does not detect my HP WebCam,it was working good previously.., when I use skype or other programs it says "Cam is not detected", i didnt see any option in BIOS to enable camera,its not listing in Device manager also...
    Any help is very appreciated

    Click Start and type device in the search field and select Device Manager from the list.
    In Device Manager, click the plus sign ( + ) beside to expand the Imaging Devices option.
    Right-click on the webcam driver and select Update Driver Software.
    On the Update Driver Software window, select Browse my computer for driver software.
    NOTE: You must manually select the proper updated driver. Do not use the Search automatically for the updated driver software function.
    When prompted, select the Let me pick from a list of device drivers on my computer option.
    When prompted to select the device driver you want to install for this hardware, do all of the following and then click Next.
    Un-select the Show compatible hardware option.
    Select Microsoft under the Manufacturer list.
    Select the USB Video Device under the Model list.
    NOTE: If the USB Video Driver is not listed, there was a problem with the update of the Service Pack 1. Go to the Microsoft web site and search for support documents on SP1 update errors.
    When the message that Windows has successfully updated your driver software, click Close to close the window.
    ||-Although I am working on behalf of HP, I am speaking for myself and not for HP.-||
    //Click on Kudos if my reply was helpful and answered your question//
    ||-If my answer solved the problem please mark the topic as the accepted solution-||

  • Satellite L850 - HD Webcam is not working

    Hi, I've been trying to get my webcam to work, but it just doesn't seem to, I've had a look online but to no avail, so you guys are my last chance before I give up and buy an external one of send it back to you. I'll try to give you as much information as I can.
    I've had this laptop since the 21st of August, I bought it from PC World. It's a Satellite L850 with 64-bit Windows 7
    At first the webcam worked fine, everything was awesome and I thought it was great.
    Then suddenly a couple weeks ago, it just stopped. I got a little notification in the bottom left of my screen that said "USB Device Not Recognised", Uh oh. Whenever I try to use it my laptop says it doesn't have one. For a couple weeks, the camera would be ok, and then not ok, it would change. Sometimes I could use it, other times I couldn't.
    I had a look in Device Manager, and there was no mention of "Imaging Devices" as there was before. But there is an "Unknown Device" in the "Universal Serial Bus controllers" drop down, with a yellow sign above it.
    Here's what I've tried so far:
    Drivers - I followed advice from a forum and downloaded the latest apparent Webcam Driver for Windows 7 64-bit. Extracted it to my desktop, and ran the .exe. After pressing the start button, it loads up and asks me if I'm sure that I want the program to make changes to my computer. I press yes, but then nothing apparent happens. I was expecting a "Drivers Installed Correctly" or something, but nothing happened, and the problem didn't go away. I'm not sure if there was supposed to be anything, but eh. I downloaded a program called DevManView which allowed me to see all the devices that have ever been on the laptop. My "Toshiba Web Camera - HD" was among them, so I took a look at the properties. It said "Disabled: No, Connected: No. I've come to the conclusion that it is connected, but for some reason my laptop just can't work out what it is. Is there anything I can do?
    BIOS - In the BIOS, the webcam is enabled.
    System Restore - Went back to when the Webcam would have been working, but to no avail, no change.
    System changes/webcam changes that could have caused the problem:
    I used something called Fake Webcam, so I could replay videos over to my cousins through skype, I have since uninstalled all of it. I never used the webcam normally when I got fake webcam, but then when I tried it, it wouldn't work, then when I uninstalled Fake Webcam, it said that no camera was detected.
    I'm at my wits end, I really want this thing to work, any suggestions?

    Best thing for you would be to make ultimate check and install recovery image again and test functionality with factory settings. I know it is most radical method but after doing this you will see if the cam is recognized and listed properly or not.
    If the problem starts to be present again I think there can be some hardware problem.
    What do you think about all this?

  • Multiple USB webcams in Flash Player 10

    How to set up multiple USB webcams for flash player 10 on OSX Leopard? There is only one item appearing in the player's webcam list as "USB Video Class Video" although I have 3 cameras attached on my mac. (Macbook Pro 2,4 GHz Core 2 Duo)
    When I use VMWare with Window XP SP3, the system detects all my webcams and I see 3 webcams in the player's list but I only get one cam's signal as clicking on each list item.

    IS this what your trying to accomplish its done in flash but I am trying to figure out HOW
    I am really fustrated tyring to figure out how it done.
    I know it can be done I use to broadcast my cam on that website, but I want to make my own website and do it for myself. I know it flash cause when I load up the flash player on my desktop it says show.  settings have the allow and deny buttons, drop down menu you select which webcam you want for which webcam is installed I can have more screen shots of what they have created many someone know how it was done.

Maybe you are looking for

  • Help please with Page Numbers & Facing Pages in Book Layout

    I am having some dramas with my book project which is 168 pages including cover.  I have created 22 different documents for the chapters and other pages.  I had everything in a book and have been able to create a PDF, but then I needed to remove the

  • How can I restore my iphone?

    I need to recover all my old iPhone information.  I plugged in my iphone on my daughters account and I updated it but when I looked at my phone all my information was gone and all my daughters stuff was on there. How can I get my contacts and picture

  • How to change the direction of play on an ipod playlist/podcast

    I play a lot of Podcasts on my Classic Ipod 160, and something that's bothered me for ages. If I have a particular podcast with more that 1 episode on it to play, I will usually want to play them in order from oldest to newest. However, the ipod only

  • Can I get an online no in a country I don't live i...

    Hello My boyfriend lives in South Africa and I live in Denmark. Can I get a local number in S.A. even though I ldon't live there? That would make his calls to me MUCH CHEAPER for him. Or can I only get a local online number from the country that I li

  • Pagewise view of a table

    i want to view a table in pagewise break, so i set pause on but it never worked. after setting it on and select any table then sqlplus window is getting close..suggest me how