Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

usb webcam for vision in c#?

For my engeneer project i need to create an application in wich it is possible to detect defined objects in certain regions

What i have to operate:

Visual Studio 2008(c#)
Vision 8.5
USB Camera


Now i want to connect everything together. But i have some problems. There are no runnable examples for c# (i found some but they didnt work and the developer also didnt know why)

Now my question: Does anybody know a camera wich can be included in VS 2008 so i can operate with the pictures taken from the USB Camera with my Vision Objects
price about ~ 60$

And also would be nice if somebody had some examples for c# with vision

thanks so far

greets kumi


0 Kudos
Message 1 of 8
(7,524 Views)
Dear kumi,

any USB camera with a DirectShow filter can be used with the NI-IMAQ for USB Cameras driver (cp. http://digital.ni.com/public.nsf/allkb/89E33B77CFE244E986256F8E004E0F13).

Best regards

Philipp R.
0 Kudos
Message 2 of 8
(7,504 Views)
and how can this be used in visiual studio?
0 Kudos
Message 3 of 8
(7,495 Views)
Hi kumi,

we don't have examples on programming with Vision in C#, so you need to start from the examples in C:\Programme\National Instruments\Vision\Examples\MSVC\ and C:\Programme\National Instruments\Vision\Examples\MSVB.NET\ and translate them to C#.

Best regards

Philipp R.
0 Kudos
Message 4 of 8
(7,484 Views)

Dear kumi,

        Unfortunately NI USB driver is only supported in IMAQ Vision Assistant and LABVIEW. You won't be able to use it in VS.NET. You may resort to third party component that could capture the image, save it to the disk using timer and then read it in CWIMAQViewer

Waleed El-Badry MSc.,MCPD, ISTQB Certified Tester
Assistant Lecturer
Mechatronics Department
Faculty of Engineering
Misr University for Science & Technology



View Waleed El-Badry's profile on LinkedIn

0 Kudos
Message 5 of 8
(7,247 Views)
You may use this royalty free components:
 
 
you can use it to capture your image and save it to disk.
Waleed El-Badry MSc.,MCPD, ISTQB Certified Tester
Assistant Lecturer
Mechatronics Department
Faculty of Engineering
Misr University for Science & Technology



View Waleed El-Badry's profile on LinkedIn

0 Kudos
Message 6 of 8
(7,239 Views)

hi

 

thanks for the answers but the problem is this costs a lot of performance by saving and then reloading, i need the pattern mach and the snapshop made in less than 500ms

 

any ideas?

0 Kudos
Message 7 of 8
(6,732 Views)
with the mentioned component you can achieve that in less than 500ms. So just start using it and acquaint me with the results.
Waleed El-Badry MSc.,MCPD, ISTQB Certified Tester
Assistant Lecturer
Mechatronics Department
Faculty of Engineering
Misr University for Science & Technology



View Waleed El-Badry's profile on LinkedIn

0 Kudos
Message 8 of 8
(6,711 Views)