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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. Web Cam Problem

Web Cam Problem

Scheduled Pinned Locked Moved C#
helpquestion
3 Posts 3 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.
  • S Offline
    S Offline
    S K Y
    wrote on last edited by
    #1

    Hi, i want to use web cam to capture pictures. to use webcam i have to user avicap32.dll. so how can i add this to reference. i tried by add reference, but couldn't any one please just tell me how can i use avicap32.dll .... thanks

    A S E L A

    D S 2 Replies Last reply
    0
    • S S K Y

      Hi, i want to use web cam to capture pictures. to use webcam i have to user avicap32.dll. so how can i add this to reference. i tried by add reference, but couldn't any one please just tell me how can i use avicap32.dll .... thanks

      A S E L A

      D Offline
      D Offline
      DaveyM69
      wrote on last edited by
      #2

      I believe you need to use pinvoke with that dll. This article[^] uses it, you may find it of use.

      Dave
      BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
      Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
      Why are you using VB6? Do you hate yourself? (Christian Graus)

      1 Reply Last reply
      0
      • S S K Y

        Hi, i want to use web cam to capture pictures. to use webcam i have to user avicap32.dll. so how can i add this to reference. i tried by add reference, but couldn't any one please just tell me how can i use avicap32.dll .... thanks

        A S E L A

        S Offline
        S Offline
        Simon P Stevens
        wrote on last edited by
        #3

        If the camera supports Windows Image Acquisition (WIA), it's easier to use that. (See here[^]) If it doesn't, then yes acicap32 is an option. (There's a sample here[^]) I believe it would also be possible to do it with direct show, but I think it's probably a bit harder. (see here[^]) Finally there are 3rd party libraries out there that can do things like this. One example is OpenCV[^], and the OpenCVDotNet[^] wrapper.

        Simon

        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