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 / C++ / MFC
  4. Accessing the date from webcamera with pure C++. Is it possible?

Accessing the date from webcamera with pure C++. Is it possible?

Scheduled Pinned Locked Moved C / C++ / MFC
c++helpquestion
7 Posts 3 Posters 1 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.
  • M Offline
    M Offline
    mk_4
    wrote on last edited by
    #1

    Hi, I was wondering, if it's possible to gain access to date from webcamera, connected to my PC through the USB, by using pure C++ (I mean without using WINAPI and stuff like this). I want to write an application that retrives data of images from webcamera and then works on it. If it were possible, I would be greateful if you could give me some links to sites or titles of books which broach that issue. Thank you in advance.

    G 1 Reply Last reply
    0
    • M mk_4

      Hi, I was wondering, if it's possible to gain access to date from webcamera, connected to my PC through the USB, by using pure C++ (I mean without using WINAPI and stuff like this). I want to write an application that retrives data of images from webcamera and then works on it. If it were possible, I would be greateful if you could give me some links to sites or titles of books which broach that issue. Thank you in advance.

      G Offline
      G Offline
      Garth J Lancaster
      wrote on last edited by
      #2

      mk_4 wrote:

      by using pure C++ (I mean without using WINAPI and stuff like this

      The Webcamera 'might' offer some API for directly controlling/accessing it - thats the c++ approach you might mean - in any case, why dont you have a look on the manufacturer's website or driverguide or such to find a driver for it .. you dont actually say what webcamera you have (which may make a difference in that someone here might have one) , are we supposed to guess ? 'g'

      M 1 Reply Last reply
      0
      • G Garth J Lancaster

        mk_4 wrote:

        by using pure C++ (I mean without using WINAPI and stuff like this

        The Webcamera 'might' offer some API for directly controlling/accessing it - thats the c++ approach you might mean - in any case, why dont you have a look on the manufacturer's website or driverguide or such to find a driver for it .. you dont actually say what webcamera you have (which may make a difference in that someone here might have one) , are we supposed to guess ? 'g'

        M Offline
        M Offline
        mk_4
        wrote on last edited by
        #3

        hmm... I don't have any webcamera yet 'cause I didn't need it so far. I've just been curious about this issue. I know, there are several ways to retrive data from webcamera by using some already existing libraries and APIs. So it doesn't metter what the type of camera it is. I'am new to c++ and just want to know if it's possible to access the driver or USB port which operates on that camera and retrive data from it but without using any api's and external libraries. I don't know if my idea is worth of effort, that's why ask about it. Maybe my previous question wasn't too strict, so sorry for that.

        K 1 Reply Last reply
        0
        • M mk_4

          hmm... I don't have any webcamera yet 'cause I didn't need it so far. I've just been curious about this issue. I know, there are several ways to retrive data from webcamera by using some already existing libraries and APIs. So it doesn't metter what the type of camera it is. I'am new to c++ and just want to know if it's possible to access the driver or USB port which operates on that camera and retrive data from it but without using any api's and external libraries. I don't know if my idea is worth of effort, that's why ask about it. Maybe my previous question wasn't too strict, so sorry for that.

          K Offline
          K Offline
          ky_rerun
          wrote on last edited by
          #4

          Yes you can use the WIA for many web cams other have there own API.


          a programmer traped in a thugs body

          M 1 Reply Last reply
          0
          • K ky_rerun

            Yes you can use the WIA for many web cams other have there own API.


            a programmer traped in a thugs body

            M Offline
            M Offline
            mk_4
            wrote on last edited by
            #5

            It's not exactly what I meant but anyway thanks.

            K 1 Reply Last reply
            0
            • M mk_4

              It's not exactly what I meant but anyway thanks.

              K Offline
              K Offline
              ky_rerun
              wrote on last edited by
              #6

              I reread you question and yes It would be possible but you would have to write a driver and have some knowledge of how the webcam worked at a low level. I don't think in any of the modern OS you can have direct IO access. So if thats way you want to go I would download the driver development kit.


              a programmer traped in a thugs body

              M 1 Reply Last reply
              0
              • K ky_rerun

                I reread you question and yes It would be possible but you would have to write a driver and have some knowledge of how the webcam worked at a low level. I don't think in any of the modern OS you can have direct IO access. So if thats way you want to go I would download the driver development kit.


                a programmer traped in a thugs body

                M Offline
                M Offline
                mk_4
                wrote on last edited by
                #7

                If it's the only way to do this, then I will rather look for some webcamera with it's own API. Anyway thank you for help.

                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