This project is read-only.

Probleme with touchless lib, no refresh of image

Apr 17, 2014 at 11:56 PM
Dear all,

I 'm a recent user of touchless lib, and i easily copy the same code on youtube sample, i manage to add libs, i see webcam name but when i click on button, i don't have image which appear in picture box, please help :), i have too another problem the property captureheight and width only in read only, then whatever, i put it in comments
thx

here my code :

Public Class Form1
Public touchless As New TouchlessLib.TouchlessMgr
Public camera1 As TouchlessLib.Camera = touchless.Cameras.ElementAt(0)



Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    touchless.CurrentCamera = camera1
    MsgBox(camera1.ToString)
    'touchless.CurrentCamera.CaptureHeight = 480
    'touchless.CurrentCamera.CaptureHeight = 640
End Sub

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

    ' touchless.CurrentCamera = camera1
    PictureBox1.Image = touchless.CurrentCamera.GetCurrentImage
    MsgBox(camera1.CaptureHeight)
End Sub

Private Sub PictureBox1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox1.Click

End Sub
End Class