Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. how can i capture an image from webcam

how can i capture an image from webcam

Scheduled Pinned Locked Moved C#
questiontutorialcsharphelplearning
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    apoll
    wrote on last edited by
    #1

    Hi, I am a beginner in C# and I don't understand the answers in the internet for my question. I want to catch a picture from my WebCam (USB Port) and show it in a pictureBox for example. I have the Microsoft Visual C# express edition, that's it and I know how to put a jpg or bmp in the pictureBox but how can I get the Picture ? Is there anybody who can help me ?

    J T A 3 Replies Last reply
    0
    • A apoll

      Hi, I am a beginner in C# and I don't understand the answers in the internet for my question. I want to catch a picture from my WebCam (USB Port) and show it in a pictureBox for example. I have the Microsoft Visual C# express edition, that's it and I know how to put a jpg or bmp in the pictureBox but how can I get the Picture ? Is there anybody who can help me ?

      J Offline
      J Offline
      Judah Gabriel Himango
      wrote on last edited by
      #2

      Have you looked at this article[^]? It details how to use the Windows Image Acquisition service to acquire images from a web cam and use them in C#.

      Tech, life, family, faith: Give me a visit. I'm currently blogging about: God-as-Judge, God-as-Forgiver The apostle Paul, modernly speaking: Epistles of Paul Judah Himango

      A 1 Reply Last reply
      0
      • J Judah Gabriel Himango

        Have you looked at this article[^]? It details how to use the Windows Image Acquisition service to acquire images from a web cam and use them in C#.

        Tech, life, family, faith: Give me a visit. I'm currently blogging about: God-as-Judge, God-as-Forgiver The apostle Paul, modernly speaking: Epistles of Paul Judah Himango

        A Offline
        A Offline
        apoll
        wrote on last edited by
        #3

        Thank you, but when I start the WebCamServiceSample, it says: connection to the remote server is not possible. What does this mean ?

        1 Reply Last reply
        0
        • A apoll

          Hi, I am a beginner in C# and I don't understand the answers in the internet for my question. I want to catch a picture from my WebCam (USB Port) and show it in a pictureBox for example. I have the Microsoft Visual C# express edition, that's it and I know how to put a jpg or bmp in the pictureBox but how can I get the Picture ? Is there anybody who can help me ?

          T Offline
          T Offline
          tgrt
          wrote on last edited by
          #4

          Is it WIA? If so, a link from a few months ago on my blog might help you. It's directed at capturing images from a scanner. However, it uses the WIA SDK so if your webcam is WIA all you should need to do is change a few settings (e.g. the device type). Link: http://geekswithblogs.net/tonyt/archive/2006/07/29/86608.aspx[^]

          1 Reply Last reply
          0
          • A apoll

            Hi, I am a beginner in C# and I don't understand the answers in the internet for my question. I want to catch a picture from my WebCam (USB Port) and show it in a pictureBox for example. I have the Microsoft Visual C# express edition, that's it and I know how to put a jpg or bmp in the pictureBox but how can I get the Picture ? Is there anybody who can help me ?

            A Offline
            A Offline
            Ashish Derhgawen
            wrote on last edited by
            #5

            Hey apoll, Use Windows Image Acquisition (WIA). Its an API included in Windows which gets images from devices such as cameras and scanners. Check out this Coding4Fun article by Scott Hanselman: http://msdn.microsoft.com/coding4fun/hardware/video/article.aspx?articleid=912546[^] Also check out this CodeProject article: http://www.codeproject.com/useritems/WebCamService.asp[^] I hope that helps, Ashish :)

            Time flies like an arrow; Fruit flies like a banana. Ashish Derhgawen - http://ashishrd.blogspot.com[^]

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups