Canada
Asked — Edited

Has Anyone Connected To Camera Using Visual Basic?

I was wondering if anyone has connected to the video camera using ez_B.dll from visual basic? I'd like to see a tutorial using the same method as was used in the tutorial for connecting to the servo via ez_B and Visual Basic.

Also, was wondering if anyone has tried to build a .BAS (visual basic module) for the ez_B functions so that the functions can be called from old versions of basic such as VB6?


ARC Pro

Upgrade to ARC Pro

Stay at the forefront of robot programming innovation with ARC Pro, ensuring your robot is always equipped with the latest advancements.

PRO
Synthiam
#17  

BoBot, sounds like you need to verify that your camera works in another software package first. What camera are you using? If it's the EZ-Robot Camera, then follow the camera tutorial on how to turn it on: https://synthiam.com/Tutorials/Camera%20Diagnostics.aspx

What camera are you selecting in the drop down?

Canada
#18  

There isn't any camera showing up in the drop down. I have the ez robot bluetooth and a usb wired logitech connected... Before running the tutorial I checked and they both worked from ARC.. I ran the totorial and nothing shows up in the dropdown. I ran ez robot again and both are there and connect.

Canada
#19  

I tried the release,,,exe...it works...sees both cameras.

Canada
#20  

The following is part of my code that uses avicap32.dll

'The ListVideoSources() subroutine calls the capGetDriverDescriptionA() function and lists all the video sources in the ListBox control. Up to 10 video sources are supported:

    '---list all the various video sources---
    '  Private Sub ListVideoSources()
    '  Dim DriverName As String = Space(80)
    'Dim DriverVersion As String = Space(80)
    ' For i As Integer = 0 To 9
    ' If capGetDriverDescriptionA(i, DriverName, 80, _
    ' DriverVersion, 80) Then
    'lstVideoSources.Items.Add(DriverName.Trim)
    ' End If
    '  Next
    ' End Sub

It first gets the drivernames using the dll

Then it adds them to the listbox...

I don't find the code in tutorial3 that gets the driver names....

#21  

Can you really send me the source code of the camera application you did cos it works very well..................i would love to learn this and apply it through during praticals...............thanks :)