Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Best reasonable machine vision camera?

While I have not used any of those vendor-provided LV SDKs recently, I'd warn you that they tend to take a way a lot of the integration versus using the NI drivers like IMAQdx. As I described before, you'll lose the ability to use it with any other NI SW pieces besides the programatic access via LV. Additionally, third-party SDKs tend to not have the same first-class integration support and you'll likely find things "quirky". For a super-cost-optimized setup where you're willing to put up with these types of issues, maybe it is not a big deal.

 

Auto focus is likely going to be a tricky thing to find still. These historically were not generally used for industrial applications and so there isn't a lot on the market. Most of the newer ones you are seeing in the low-end are not using sensors aimed at the industrial market but rather ones coming more from the consumer space.

Message 11 of 25
(3,310 Views)

Got it- thanks!

 

Assuming you'd agree that if my parts vary in depth greatly (+/-10mm at best), I'd need auto focus?

 

What do you think my options are for implementing an auto focus lens on, say, a USBVision Basler ace? 

 

Any idea if this VI is applicable? http://www.ni.com/example/28506/en/ I don't see any actual control of a lens, and the very idea of having to implement my own auto-focus worries me.

 

My question with webcams was, if the Imaging Source camera is treated like a Webcam in MAX, can it not then use all of the IMAQ functions?

0 Kudos
Message 12 of 25
(3,306 Views)

Getting somewhere.. I think-- Imaging Source came back with the attached camera when I asked for AF and LabView straight to IMAQ.  It's GigE Vision and looks pretty perfect to me.. thoughts?

 

Thanks for all your help, BlueCheese!

0 Kudos
Message 13 of 25
(3,300 Views)

@visionmotion wrote:

 

Any idea if this VI is applicable? http://www.ni.com/example/28506/en/ I don't see any actual control of a lens, and the very idea of having to implement my own auto-focus worries me.

 


It seems like this VI just lets you figure out how focused the lens is, and presumably you'd put it in a loop with some sort of vendor-specific lens control feature.

 


My question with webcams was, if the Imaging Source camera is treated like a Webcam in MAX, can it not then use all of the IMAQ functions?


If it is able to be used as a DirectShow webcamera, then you can still use the IMAQdx driver with it in any NI application. However, DirectShow doesn't expose many camera features (like triggering, for example) and so you can't access any of those machine-vision-specific features via IMAQdx.

 


Imaging Source came back with the attached camera when I asked for AF and LabView straight to IMAQ.  It's GigE Vision and looks pretty perfect to me.. thoughts?

That camera looks to be "GigE" not "GigE Vision". GigE is just a generic name for using a gigabit ethernet interface, while "GigE Vision" is the licensed specification and protocol that IMAQdx natively knows how to talk to. If the camera is GigE Vision, IMAQdx can download the camera's Genicam XML file and expose all the camera unique features natively in its own API. If the camera is using a proprietary vendor protocol then you either have to use their API and LV SDK functions or deal with the limited features available via a DirectShow interface (if available).

0 Kudos
Message 14 of 25
(3,296 Views)

This is a snippet from the email Imaging Source sent over with the camera recommendation in refrence to how to best integrate it with LabView:

 

"As for software, that is correct. There are actually two ways to interface with LabVIEW. The first
is as you've mentioned (our driver- DirectShow) and the second is the GigEVision (which is
preferred)."

 

Crossing my fingers that this means it is a GigEVision unit?

0 Kudos
Message 15 of 25
(3,291 Views)

Response from Imaging Source:

"

Yes, I can confirm that is correct.

 

>Can you confirm this is GigE Vision (ideal for labview) not just GigE?

"

 

Though you are correct, the Vision logo never shows up on their site, it sounds like this is indeed a GigEVision unit?

 

0 Kudos
Message 16 of 25
(3,284 Views)

@visionmotion wrote:

Response from Imaging Source:

"

Yes, I can confirm that is correct.

 

>Can you confirm this is GigE Vision (ideal for labview) not just GigE?

"

 

Though you are correct, the Vision logo never shows up on their site, it sounds like this is indeed a GigEVision unit?

 


Sounds good then. odd that they don't advertise it as such. The next question I'd have for them is confirming that all their features (or at least the ones you care about) are exposed when using the GigE Vision interface or if there are any that are only supported when using their driver.

Message 17 of 25
(3,272 Views)

Odd they don't is right, but he seemed confident:p

 

Good point on the features (motorized zoom, AF)-- how would these look if properly supported? Would there be additional lines on a IMAQ block allowing for adjustment of these variables?

0 Kudos
Message 18 of 25
(3,266 Views)

@visionmotion wrote:

Odd they don't is right, but he seemed confident:p

 

Good point on the features (motorized zoom, AF)-- how would these look if properly supported? Would there be additional lines on a IMAQ block allowing for adjustment of these variables?


The model for modern camera standards (like GigE Vision and USB3 Vision) is that they are based on GenICam. The cameras store an XML file that lists all their features, descriptions, and behaviorial aspects of those features (min, max, how they interact with other features, etc). This file is downloaded and used by the host driver/application (in this case IMAQdx) to build up a feature tree of both internal and camera-specific attributes that can be controlled. Most software exposes these features in a tree control UI, but they can also be controlled programatically in LabVIEW or C. The main key is that the camera dynamically defines all these features--they are not known up front by our driver.

 

The main item to question is whether their XML file contains all the features of the camera (that you care about). There is also a quality-of-implementation aspect as well, since it is easy to make things very buggy and hard to use in the XML file if the designer doesn't take care. I have never used one of The Imaging Source's cameras in GigE Vision mode, so I cannot comment how good the experience might be.

 

If you haven't ever used IMAQdx before, you may want to see if you can get a loaner from a sales person of a more popular GigE Vision/USB3 Vision camera with a known-well-working standard implementation to play around with so you can compare; if for nothing else to get a good understanding of how the cameras work in IMAQdx and LabVIEW.

0 Kudos
Message 19 of 25
(3,262 Views)

Hi BlueCheese,

 

The camera just came in today and was beyond my expectations, quality wise.  It's a 12x electrically actuated optical zoom, 5MP (1/2.5"), auto-focus/auto-iris (The Imaging Source).

 

I haven't dug too deep yet other than it appears to show up properly in MAX and images are aquired well in Vision Assistant.  

 

I wanted to confirm the GigEVision to the best of our ability.  The attributes tab in MAX/Vision Assistant allows me to control zoom and focus, etc.  Assuming this means the XML table is present and not too funky?

 

Let me know if there are any tests you can think of to run on the unit.

 

Thanks again for all the help and for leading me to what looks like a promising choice (at $700).

0 Kudos
Message 20 of 25
(3,167 Views)