Essentials of Mechatronics  ISBN: 0-471-72341-X- ©John Billingsley 2006 - published John Wiley & Sons, Inc

12/2/1.htm  An ActiveX OCX for VFW,
plus Mark Dunn's templates and Wizard

The code for creating the OCX is in this zip file.
Unpack it to a folder and in the File menu select "make veye.ocx".
This will construct the ActiveX control and register it on your machine.

You will see that it has been adapted from original code by E J Bantz that realized a Visual Basic version of AmCap.

The code for a simple demonstration is zipped here.  Unpack it to a folder.

When you have plugged in a working webcam, launch the demonstration by double clicking the .vbp file.  It shows that frames can be grabbed to the clipboard and pasted.  Also the SnapToArray function grabs a frame in a byte array that you designate, so that the image can be processed.

A more sophisticated demonstration shows traced edges of features in the camera view.  Of course you have to register the OCX first.

Mark Dunn prepared a tutorial for "Mechatronics and Machine Vision in Practice 2006".  You can download a CD image containing Mark Dunn's templates and 'Wizard' as a zip file here (5.5 megabytes).