You can find a code sample for image capturing with Touchless SDK in this CodeProject article:
Versatile WebCam C# library[
^].
It doesn't see that you are doing proper operations. First of all, you unconditionally reference the object
Touchless.Cameras.Item(0)
. Why do you think there are any elements in this collection at the moment of call? This code will throw and exception; and you don't care about this basic thing. You need to discover available cameras using
CameraService.AvailableCameras
. Now, than name
Form2_Load
suggests that this is a handler of the
Form.Load
event. If so, look what you are doing, apparently only once during the form lifetime. You take current image. What image, if you did not start capturing? And so on…
—SA