WIA (Windows Image Acquisition) WebCam Sample Project-VBForums
Results 1 to 31 of 31

Thread: WIA (Windows Image Acquisition) WebCam Sample Project

  1. #1

    Thread Starter
    "The" RedHeadedLefty
    Join Date
    Aug 2005
    Location
    College Station, TX Preferred Nickname: Gig Current Mood: Just Peachy Turnons: String Manipulation
    Posts
    4,495

    WIA (Windows Image Acquisition) WebCam Sample Project

    Here's a sample VB.NET 2003 project I made that shows how to capture snapshots from a webcam using WIA (Windows Image Acquisition). It detects the available device (tested with a Logitec Webcam), and allows you to grab an image. Being that it is a WIA Sample project, you have to use a WIA enabled device (usually if the device shows up in "Scanners & Cameras" in control panel, it should be WIA enabled).

    The ability to use WIA, you first need to have the WIA Automation Layer, provided in "wiaaut.dll", registered. If you need this, you can download it from Microsoft here: http://www.microsoft.com/downloads/d...DisplayLang=en
    You then need to add a reference to the dll if you wish to use it in a project of yours. It should already be done so in the sample project download at the end.

    ***Note - WIA 2.0 is only supported in Windows XP SP1 or later.

    Sample project code for the procedure to get the available devices (see full code in zip file):
    VB Code:
    1. Private Sub GetDevice()
    2.         Dim MyDevice As WIA.Device
    3.         Dim MyDialog As New WIA.CommonDialogClass
    4.         Try
    5.             'shows selectdevice dialog, if only one device, It automatically selects the device
    6.             '(not tested with two or more devices)
    7.             '**Note - Device Type checks for VideoDeviceType, for webcams, in this sample
    8.             MyDevice = MyDialog.ShowSelectDevice(WIA.WiaDeviceType.VideoDeviceType, False, True)
    9.             If Not MyDevice Is Nothing Then
    10.                 'loops through device properties, only gets the ones we want to display
    11.                 For Each prop As WIA.Property In MyDevice.Properties
    12.                     Select Case prop.Name
    13.                         Case "Manufacturer"
    14.                             lblMfg.Text = prop.Value.ToString
    15.                         Case "Description"
    16.                             lblDesc.Text = prop.Value.ToString
    17.                         Case "Name"
    18.                             lblName.Text = prop.Value.ToString
    19.                         Case "WIA Version"
    20.                             lblWIA.Text = prop.Value.ToString
    21.                         Case "Driver Version"
    22.                             lblDriver.Text = prop.Value.ToString
    23.                     End Select
    24.                 Next
    25.                 'sets MyDevice form level selected device
    26.                 SelectedDevice = MyDevice
    27.             Else
    28.                 lblName.Text = "No WIA Devices Found!"
    29.             End If
    30.         Catch ex As System.Exception
    31.             MessageBox.Show("Problem! " & ex.Message, _
    32.                   "Problem Loading Device", MessageBoxButtons.OK, MessageBoxIcon.Warning, _
    33.                   MessageBoxDefaultButton.Button1, MessageBoxOptions.DefaultDesktopOnly)
    34.             lblName.Text = "No WIA Devices Found!"
    35.         End Try
    36.     End Sub
    Sample project code to grab the picture from the device (see full code in zip file):
    VB Code:
    1. Private Sub btnGrab_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnGrab.Click
    2.         Dim item As WIA.Item
    3.         Try
    4.             'executes the device's TakePicture command
    5.             item = SelectedDevice.ExecuteCommand(WIA.CommandID.wiaCommandTakePicture)
    6.         Catch ex As System.Exception
    7.             MessageBox.Show("Problem Taking Picture. Please make sure that the camera" & _
    8.                           "is plugged in and is not in use by another application. " & vbCrLf & _
    9.                           "Extra Info:" & ex.Message, "Problem Grabbing Picture", _
    10.                           MessageBoxButtons.OK, MessageBoxIcon.Warning, MessageBoxDefaultButton.Button1, _
    11.                           MessageBoxOptions.DefaultDesktopOnly)
    12.             Exit Sub
    13.         End Try
    14.         Dim jpegGuid As String
    15.         'retrieves jpegKey from registry, used in getting JPEG format of pic, can be hard coded
    16.         Dim jpegKey As Microsoft.Win32.RegistryKey = _
    17.                  Microsoft.Win32.Registry.ClassesRoot.OpenSubKey("" & _
    18.                  "CLSID\{D2923B86-15F1-46FF-A19A-DE825F919576}\SupportedExtension\.jpg")
    19.         jpegGuid = CType(jpegKey.GetValue("FormatGUID"), String)
    20.         'loops through available formats for the captured item, looking for the JPG format
    21.         For Each format As String In item.Formats
    22.             If (format = jpegGuid) Then
    23.                 'transfers image to an imagefile object
    24.                 Dim imagefile As WIA.ImageFile = CType(item.Transfer(format), WIA.ImageFile)
    25.                 Dim Counter As Integer 'counter in loop appended to filename
    26.                 Dim LoopAgain As Boolean = True
    27.                 'searches directory, gets next available picture name
    28.                 Do Until LoopAgain = False
    29.                     Dim Filename As String = SavePath & "\" & txtPrefix.Text & Counter.ToString & ".jpg"
    30.                     'if file doesnt exist, save the file
    31.                     If Not System.IO.File.Exists(Filename) Then
    32.                         SavedFilePath = Filename
    33.                         imagefile.SaveFile(Filename) 'saves file to disk
    34.                         lblCapName.Text = FormatPath(Filename)
    35.                         lblImageName.Text = txtPrefix.Text & Counter.ToString & ".jpg"
    36.                         picCap.Image = Image.FromFile(Filename) 'loads captured file to picturebox
    37.                         LoopAgain = False
    38.                     End If
    39.                     Counter = Counter + 1
    40.                 Loop
    41.             End If
    42.         Next
    43.         If grpSaved.Enabled = False Then
    44.             grpSaved.Enabled = True
    45.         End If
    46. End Sub
    The code automatically saves the picture to a new filename, so you can grab multiple captures one after another.

    The project so far is only for webcams, but can be extended to do similar things with digital cameras, camcorders, basically any supported WIA device.
    Attached Images Attached Images  
    Attached Files Attached Files
    Last edited by Hack; Jan 13th, 2006 at 08:56 AM.

  2. #2

    Thread Starter
    "The" RedHeadedLefty
    Join Date
    Aug 2005
    Location
    College Station, TX Preferred Nickname: Gig Current Mood: Just Peachy Turnons: String Manipulation
    Posts
    4,495

    Re: WIA (Windows Image Acquisition) WebCam Sample Project

    I was trying to modify this project to add a video preview option so you can see the image before capturing, but there seems to be a problem with passing the window handle needed when using the WIAVideo 1.0 Type Library.. its all explained in this post:

    http://www.vbforums.com/showthread.php?t=379485

    If anyone cares to take a stab at it, feel free to respond there...
    Last edited by gigemboy; Jan 6th, 2006 at 03:29 AM.

  3. #3
    Fanatic Member Mr.No's Avatar
    Join Date
    Sep 2002
    Location
    Mauritius
    Posts
    651

    Re: WIA (Windows Image Acquisition) WebCam Sample Project

    By the way WIA works on Windows 2000 also.
    Using VB.NET 2003/.NET 1.1/C# 2.0
    http://del.icio.us/rajoo
    Blow your mind, smoke gunpowder
    Ashes to ashes, dust to dust
    If God won't have you, the devil will. - Author unknown
    Don't follow me, I'm lost too ...

  4. #4

    Thread Starter
    "The" RedHeadedLefty
    Join Date
    Aug 2005
    Location
    College Station, TX Preferred Nickname: Gig Current Mood: Just Peachy Turnons: String Manipulation
    Posts
    4,495

    Re: WIA (Windows Image Acquisition) WebCam Sample Project

    Quote Originally Posted by Mr.No
    By the way WIA works on Windows 2000 also.
    Correct, but the 2.0 Library referenced in the project is only supported on Windows XP (at least in their documentation). Haven't tested it on other O/S'es

    "Windows Image Acquisition Automation Library v2.0 is only supported on Windows XP with Service Pack 1 installed."
    http://www.microsoft.com/downloads/d...DisplayLang=en
    Last edited by gigemboy; Feb 1st, 2006 at 07:50 PM.

  5. #5
    PowerPoster VBDT's Avatar
    Join Date
    Sep 2005
    Location
    CA - USA
    Posts
    2,920

    Re: WIA (Windows Image Acquisition) WebCam Sample Project

    Hi gigemboy and thanks for this great code. I just want to say that there is an another way to get the image without saving it in to a file and then loading it into “picCap” control. I think this might be a little faster than saving and loading from the file.
    VB Code:
    1. Dim f As MemoryStream
    2. f = New MemoryStream(CType(myImageFile.FileData.BinaryData, Byte()))
    3. picCap.Image = Image.FromStream(f)
    Just a little addition.

  6. #6

    Thread Starter
    "The" RedHeadedLefty
    Join Date
    Aug 2005
    Location
    College Station, TX Preferred Nickname: Gig Current Mood: Just Peachy Turnons: String Manipulation
    Posts
    4,495

    Re: WIA (Windows Image Acquisition) WebCam Sample Project

    Well thx for posting that. Its been a while since I had messed with the code and I forgot I was even doing that. If I would have remembered I would have been ashamed hehe Learned a lot since then...

  7. #7
    New Member
    Join Date
    Oct 2006
    Posts
    1

    Re: WIA (Windows Image Acquisition) WebCam Sample Project

    Your code works perfectly. Thank you very much.

    I do have one question. My webcam takes about 3-4 to self adjust the brightness before the picture is good. Right now the pictures are coming out very dark when I snap the pics using the code. Is there anyway in the code to activate the cam, wait a couple of seconds, and then snap the pic?

  8. #8
    Banned
    Join Date
    Oct 2006
    Posts
    3

    Re: WIA (Windows Image Acquisition) WebCam Sample Project

    Gig, this is a great submission and a killer example. Keep up the good work!

  9. #9
    New Member
    Join Date
    Dec 2006
    Posts
    4

    Question Re: WIA (Windows Image Acquisition) WebCam Sample Project

    Thanks gigemboy, that code is EXACTLY what I needed. I have just a high level understanding of VB (I'm a C++ nerd) and I'm using it because the WIA automation layer targets it. Here's my challenge: I want to use the webcam preview and take picture features in our C++ product. We have a common DLL interface and with CE I write a C++ DLL for each camera we support. Now I can create a VB6 form or ActiveX control for WIA webcams, but I'd want to wrap it with C++ so it can drop seamlessly into our product. Anyone know if it's possible or just a pipe dream? And if it's possible how I'd go about it? I've tried the ActiveX route, and although I can drop the control on a VB6 form, I get errors when I try to use it with a C++ dialog ("not implemented" - E_NOTIMPL). Thanks in advance for any help! (Oops! I noticed this is a .NET forum - I'll post the same question in another, more appropriate place too...)
    Last edited by deadbeatclub; Dec 27th, 2006 at 07:09 PM.

  10. #10
    New Member
    Join Date
    Jan 2007
    Posts
    2

    Re: WIA (Windows Image Acquisition) WebCam Sample Project

    I did'nt work with me. I also need to know how do I know if the selected device is being used by another application. I dont want to see the select device window that appear if another application is using the webcam. What can I do for this window not to appear (sorry, my english is not perfect). Hope someone can help me!!!

  11. #11
    New Member
    Join Date
    Jan 2007
    Posts
    1

    Re: WIA (Windows Image Acquisition) WebCam Sample Project

    hi i have a problem i have a program that take that picture but when this found the webcam is busy they program show me a control window for looking for a new webcam i like to know how i can to know if the webcam is in use the program do nothing
    thankyou so much

  12. #12
    New Member
    Join Date
    Apr 2008
    Posts
    1

    Re: WIA (Windows Image Acquisition) WebCam Sample Project

    how to change the webcam capture resolutions in video preview mode ?
    i'm using logitech webcam, that only can capture 320 x 240 of resolutions

    how to change the video preview to 640 x 480 in visual basic?

    with logitech software that came with the webcam, the video preview can be 1024 x 768.

    thanks

  13. #13
    New Member
    Join Date
    May 2008
    Posts
    1

    Re: WIA (Windows Image Acquisition) WebCam Sample Project

    Hi, i also have the same problem.
    Can someone hel please ???

  14. #14
    New Member
    Join Date
    Jun 2008
    Posts
    2

    Re: WIA (Windows Image Acquisition) WebCam Sample Project

    This is excellent stuff. I am interested in using the MemoryStream functionality but I am missing something. How is MyImageFile set? How do you reference a fram in the video stream.

    Much appreciated.

  15. #15
    Lively Member
    Join Date
    Aug 2008
    Location
    North Carolina
    Posts
    114

    Re: WIA (Windows Image Acquisition) WebCam Sample Project

    Kudos to you gigemboy. i tried the code as is and it worked right of the box. I made a couple of mods for VB.NET 2008 project and have the solution I needed. Thanks again.

    Camera class for all to enjoy.
    vb Code:
    1. Imports System
    2. Imports System.IO
    3.  
    4. Public Class clsCamera
    5.     Private _SelectedDevice As WIA.Device
    6.     Private _SavePath As String
    7.     Private _DeviceName As String
    8.     Private _DeviceDesc As String
    9.     Private _DeviceMfg As String
    10.     Private _DeviceWIAVersion As String
    11.     Private _DeviceDriver As String
    12.     Private _CameraMemoryStream As MemoryStream
    13.  
    14.     Public Property SelectedDevice() As WIA.Device
    15.         Get
    16.             Return _SelectedDevice
    17.  
    18.         End Get
    19.         Set(ByVal value As WIA.Device)
    20.             _SelectedDevice = value
    21.  
    22.         End Set
    23.     End Property
    24.  
    25.     Public Property SavePath() As String
    26.         Get
    27.             Return _SavePath
    28.  
    29.         End Get
    30.         Set(ByVal value As String)
    31.             _SavePath = value
    32.  
    33.         End Set
    34.     End Property
    35.  
    36.     Public Property DeviceName() As String
    37.         Get
    38.             Return _DeviceName
    39.  
    40.         End Get
    41.         Set(ByVal value As String)
    42.             _DeviceName = value
    43.  
    44.         End Set
    45.     End Property
    46.  
    47.     Public Property DeviceMfg() As String
    48.         Get
    49.             Return _DeviceMfg
    50.  
    51.         End Get
    52.         Set(ByVal value As String)
    53.             _DeviceMfg = value
    54.  
    55.         End Set
    56.     End Property
    57.  
    58.     Public Property DeviceDesc() As String
    59.         Get
    60.             Return _DeviceDesc
    61.  
    62.         End Get
    63.         Set(ByVal value As String)
    64.             _DeviceDesc = value
    65.  
    66.         End Set
    67.     End Property
    68.  
    69.     Public Property DeviceWIAVersion() As String
    70.         Get
    71.             Return _DeviceWIAVersion
    72.  
    73.         End Get
    74.         Set(ByVal value As String)
    75.             _DeviceWIAVersion = value
    76.  
    77.         End Set
    78.     End Property
    79.  
    80.     Public Property DeviceDriver() As String
    81.         Get
    82.             Return _DeviceDriver
    83.  
    84.         End Get
    85.         Set(ByVal value As String)
    86.             _DeviceDriver = value
    87.  
    88.         End Set
    89.     End Property
    90.  
    91.     Public Property CameraMemoryStream() As MemoryStream
    92.         Get
    93.             Return _CameraMemoryStream
    94.  
    95.         End Get
    96.         Set(ByVal value As MemoryStream)
    97.             _CameraMemoryStream = value
    98.  
    99.         End Set
    100.     End Property
    101.     Public Function GetDevice() As Boolean
    102.         Dim MyDevice As WIA.Device
    103.         Dim MyDialog As New WIA.CommonDialogClass
    104.         Try
    105.             'shows selectdevice dialog, if only one device, It automatically selects the device
    106.             '(not tested with two or more devices)
    107.             '**Note - Device Type checks for VideoDeviceType, for webcams, in this sample
    108.             MyDevice = MyDialog.ShowSelectDevice(WIA.WiaDeviceType.VideoDeviceType, False, True)
    109.             If Not MyDevice Is Nothing Then
    110.                 'loops through device properties, only gets the ones we want to display
    111.                 For Each prop As WIA.Property In MyDevice.Properties
    112.                     Select Case prop.Name
    113.                         Case "Manufacturer"
    114.                             DeviceMfg = prop.Value.ToString
    115.                         Case "Description"
    116.                             DeviceDesc = prop.Value.ToString
    117.                         Case "Name"
    118.                             DeviceName = prop.Value.ToString
    119.                         Case "WIA Version"
    120.                             DeviceWIAVersion = prop.Value.ToString
    121.                         Case "Driver Version"
    122.                             DeviceDriver = prop.Value.ToString
    123.                     End Select
    124.                 Next
    125.                 'sets MyDevice public selected device
    126.                 SelectedDevice = MyDevice
    127.             Else
    128.                 DeviceName = "No WIA Devices Found!"
    129.             End If
    130.             GetDevice = True
    131.         Catch ex As System.Exception
    132.             If ex.Message <> "Exception from HRESULT: 0x80210015" Then
    133.  
    134.                 MessageBox.Show("Problem! " & ex.Message, "Problem Loading Device", MessageBoxButtons.OK, MessageBoxIcon.Warning, MessageBoxDefaultButton.Button1, MessageBoxOptions.DefaultDesktopOnly)
    135.             End If
    136.             DeviceName = "No WIA Devices Found!"
    137.         End Try
    138.     End Function
    139.  
    140.     Public Function GrabPic() As Boolean
    141.         Dim item As WIA.Item
    142.         Try
    143.             'executes the device's TakePicture command
    144.             item = SelectedDevice.ExecuteCommand(WIA.CommandID.wiaCommandTakePicture)
    145.         Catch ex As System.Exception
    146.             MessageBox.Show("Problem Taking Picture. Please make sure that the camera is plugged in and is not in use by another application. " & vbCrLf & "Extra Info:" & ex.Message, "Problem Grabbing Picture", MessageBoxButtons.OK, MessageBoxIcon.Warning, MessageBoxDefaultButton.Button1, MessageBoxOptions.DefaultDesktopOnly)
    147.             Exit Function
    148.         End Try
    149.         Dim jpegGuid As String
    150.         'retrieves jpegKey from registry, used in saving JPEG
    151.         Dim jpegKey As Microsoft.Win32.RegistryKey = Microsoft.Win32.Registry.ClassesRoot.OpenSubKey("CLSID\{D2923B86-15F1-46FF-A19A-DE825F919576}\SupportedExtension\.jpg")
    152.         jpegGuid = CType(jpegKey.GetValue("FormatGUID"), String)
    153.         'loops through available formats for the captured item, looking for the JPG format
    154.         For Each format As String In item.Formats
    155.             If (format = jpegGuid) Then
    156.                 'transfers image to an imagefile object
    157.                 Dim imagefile As WIA.ImageFile = CType(item.Transfer(format), WIA.ImageFile)
    158.                 Dim Counter As Integer = 1 'counter in loop appended to filename
    159.                 Dim LoopAgain As Boolean = True
    160.                 'searches directory, gets next available picture name
    161.                 Do Until LoopAgain = False
    162.                     Dim Filename As String = SavePath & Counter.ToString & ".jpg"
    163.                     'if file doesnt exist, save the file
    164.                     If Not System.IO.File.Exists(Filename) Then
    165.                         imagefile.SaveFile(Filename) 'saves file to disk
    166.                         LoopAgain = False
    167.                     End If
    168.                     CameraMemoryStream = New MemoryStream(CType(imagefile.FileData.BinaryData, Byte()))
    169.                     Counter = Counter + 1
    170.                     GrabPic = True
    171.                 Loop
    172.             End If
    173.         Next
    174.        
    175.     End Function
    176.  
    177.     Public Sub New()
    178.         SavePath = Application.LocalUserAppDataPath & "\Card Picture Files\"
    179.     End Sub
    180. End Class

  16. #16
    New Member
    Join Date
    Jun 2008
    Posts
    2

    Re: WIA (Windows Image Acquisition) WebCam Sample Project

    Thanks from me also. I got the code to work as well. I have one question however. It takes about 5 seconds for the "takePicture" function to execute. How do I get the time down below 1 second? Is it the camera, the WIA object, ???? What do I need to improve the time?!!


    thanks in advance.

  17. #17
    Addicted Member
    Join Date
    Dec 2001
    Posts
    134

    Re: WIA (Windows Image Acquisition) WebCam Sample Project

    Same problem takes 5 sec in the "take picture"... How to get it below 1sec?
    Last edited by mnavas; Oct 10th, 2008 at 02:53 PM.

  18. #18
    Addicted Member
    Join Date
    Dec 2008
    Posts
    141

    Re: WIA (Windows Image Acquisition) WebCam Sample Project

    This is good stuff. However, I've been tring for a whole day to make this work.

    No matter what I try it simply will not recognize that there are cameras atached to the PC. The Control Panel dialog shows the cameras. The device manager shows the cameras.

    I am running XPPro-SP1. Any suggestions.

  19. #19
    Member
    Join Date
    Jun 2009
    Posts
    43

    Re: WIA (Windows Image Acquisition) WebCam Sample Project

    i'm agree with my top..

    START DESPERATELY

  20. #20
    New Member
    Join Date
    Apr 2010
    Posts
    1

    Re: WIA (Windows Image Acquisition) WebCam Sample Project

    Has anyone determined if you can use "Windows® Image Acquisition Automation Library v2.0 Tool: Image acquisition and manipulation component for VB and scripting" in a VB6 app and have it run on Vista or Windows 7? I've created an app that is wholly dependent on WIA and I've had to put a restriction on the install that the computer must be running Windows XP SP1 or later (but not Vista or 7). I really want to remove that restriction, but I don't have access to a machine with either of those OSs.

  21. #21
    New Member
    Join Date
    May 2010
    Posts
    2

    Unhappy WIA and multithreading

    Hi gigemboy and congratulations! Very remarkable post!
    You helped me starting with WIA automation SDK.
    I'm using vb.NET 2010 and trying to do this:
    I have got 5 Nikon cameras, USB attached to my pc. I want them to grab a picture simultaneously. I don't want to do it in a 'serial way', waiting for the previous to finish executeCommand().
    So, my first approach was that:

    Code:
    Private Class PhotoTaker
            Public fotocamera As WIA.Device
            Public Sub grabPicture()
                fotocamera.ExecuteCommand(WIA.CommandID.wiaCommandTakePicture)
            End Sub
    End Class
    
        Private Sub ProvaThreadToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ProvaThreadToolStripMenuItem.Click
            For Each device As WIA.DeviceInfo In deviceManager.DeviceInfos
                Dim nuovaFoto As New PhotoTaker()
                nuovaFoto.fotocamera = device.Connect
                Dim thread As New Thread(AddressOf nuovaFoto.grabPicture)
                thread.IsBackground = True
                thread.Start()
            Next
        End Sub
    Very simple isn't it? But.... that doesn't work!! They still shoot one after the other!
    The funny part of the story is that:
    if I call an external exe, who only grab the picture from the camera with executeCommand() ..... it works! They shoot at the same time!
    What's wrong in my threads??

    Thanks a lot!

  22. #22
    New Member
    Join Date
    May 2010
    Posts
    1

    Re: WIA (Windows Image Acquisition) WebCam Sample Project

    HELLO GIGEMBOY

    I would like to thank you for this code it's very useful form, But I have question HOW CAN I MODIFY THIS CODE TO WORK WITH SCANNER? I'm still new in WIA application.

    Thank you

  23. #23
    New Member
    Join Date
    Jan 2006
    Posts
    2

    Re: WIA (Windows Image Acquisition) WebCam Sample Project

    First off, thanks so much for the codes and sample project. It's really appreciated!

    I've downloaded the example and ran it from my XP machine connected to a LogiTech Orbit WebCam. It worked 100%.

    However, when I ran the sample in my Windows 7 (64-bit) machine (exact same camera). The codes failed and could not find the device. I would really appreciate if you can show me the light as to what I need to change in order for this to work with Windows 7 (64-bit). Is there a new version of WIA that is needed (I didn't find any mention of that in msdn)? Are there other libraries I need to reference?

    Thanks so much for you help!

    Justin

  24. #24
    New Member
    Join Date
    Jul 2010
    Posts
    1

    Re: WIA (Windows Image Acquisition) WebCam Sample Project

    How to Use WIA on Windows 7, because it's not RUn,,,???

  25. #25
    Addicted Member
    Join Date
    Aug 2009
    Posts
    135

    Re: WIA (Windows Image Acquisition) WebCam Sample Project

    Hello gigemboy,

    how to modify this code to start 2 camera and capture image from both camera in one button..

    thank you.

  26. #26
    Fanatic Member
    Join Date
    Mar 2009
    Posts
    760

    Re: WIA (Windows Image Acquisition) WebCam Sample Project

    how many image captures per minute with the WIA ?
    time to amp up the beef

  27. #27
    New Member
    Join Date
    Dec 2011
    Posts
    1

    Re: WIA (Windows Image Acquisition) WebCam Sample Project

    Good Day... God Bless!!!

    Hello Gigemboy,

    Can you help me provide source code for MS Access for the Webcam Capture.
    Im Ms Access user...

    Thank you.

  28. #28
    New Member
    Join Date
    Dec 2011
    Posts
    1

    Re: WIA (Windows Image Acquisition) WebCam Sample Project

    Hi Richter,

    I've got image capture working in MS Access with a USB connected WIA capable camera. PM me and I will send the code (would post here but it's off topic). What it does NOT do is provide image preview, hence me lurking here.

    Tux

  29. #29
    Hyperactive Member
    Join Date
    Oct 2008
    Posts
    494

    Re: WIA (Windows Image Acquisition) WebCam Sample Project

    I have a general WIA quesion. When I use Photoshop or other software with a WIA interface for cameras I find that the preview images that are saved when you press the "capture" button stay there between uses, even between closing and reopening Photoshop, even between different programs! Where does Windows store these preview images? I can't find any documentation for this little "feature" at all! What if I want to clear the WIA preview image cache (or whatever they call it)? How do I do that?

  30. #30
    Junior Member
    Join Date
    Apr 2012
    Posts
    16

    Re: WIA (Windows Image Acquisition) WebCam Sample Project

    I'm trying in vs2010, but I get exeption HRESULT: 0x80210015 on starting and each time I try to select a device a trust WB 3500T on win7 32bit
    Last edited by johnvpr; Apr 11th, 2012 at 06:43 AM.

  31. #31
    New Member
    Join Date
    Jun 2012
    Posts
    1

    Re: WIA (Windows Image Acquisition) WebCam Sample Project

    Quote Originally Posted by johnvpr View Post
    I'm trying in vs2010, but I get exeption HRESULT: 0x80210015 on starting and each time I try to select a device a trust WB 3500T on win7 32bit
    Hi, i also have the same problem.
    Can someone help please ???

    my system : win XP SP3 32bit :vs2010 Ultimate
    naw not scnner Device Connect
    Attached Images Attached Images  

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.