Click here to Skip to main content
15,867,704 members
Please Sign up or sign in to vote.
1.44/5 (2 votes)
See more:
hi guys can anybody knows what are the steps to install the touchless lib I mean which one I should compile and which touchless.dll and webcam.dll I should add to my project I don't find any guid any where? thanks and any help greatly appreciated.
Posted
Updated 7-Jan-15 23:15pm
v4
Comments
Richard MacCutchan 2-Jan-15 8:17am    
Please do not assume that people can guess what your code is doing. Edit your message and add some useful detail.

1 solution

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
 
Share this answer
 
v2
Comments
Member 11277237 3-Jan-15 12:26pm    
thanks for your reply, I know it will through exception and this is not important to me right now I just want to capture the image, as for capturing there is an image capture in onload and also on click event of the picturebox which invoke timer and capture event, my camera's light is on but the picture box is empty even when I click it. any suggestion this is just simple capture trial. the video that show this trial is https://www.youtube.com/watch?v=mp5nRrySWSg[^]
is there something I am missing?. thanks
Sergey Alexandrovich Kryukov 3-Jan-15 16:22pm    
I already suggested what to do. You can use the source code which come with the article.
—SA
Member 11277237 3-Jan-15 16:24pm    
but do you have a vb sample code I just want to understand it more. thanks
Sergey Alexandrovich Kryukov 3-Jan-15 16:34pm    
The article does have code. What's wrong with that?
—SA
Member 11277237 3-Jan-15 16:57pm    
thanks for your reply, the problem is this code is from 2007, and asking me to download direct show lib so I do not know how relevant this programs right now with my development environment and also I do not want to mess up things by going to different directions by the way have you seen the youtube clip I put the link there its just a couple of lines and that's it , also try to relax when you answer do not jump quickly to conclusion. thanks



This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900