There is NO such thing as a “Megapixel” machine vision camera lens!.. Say what??

Lenses

Megapixel Machine vision lensesThere has been a lot written about the ratings of machine vision lenses1stVision had created white papers that describe this in detail. However, the lens industry continues to use the marketing term, Megapixel Machine Vision Camera Lenses.

Let’s get this out of the way right now. 

There is NO such thing as a Megapixel Machine vision Camera Lens.

But since it is me against the world, let me explain why sometimes a 12 MP lens is really the same resolution as a 5 MP quality lens.

The first thing to understand is that lenses are evaluated on their resolving power, which is a spatial resolution.  For lens used in the industrial imaging marketplace, this is normally given in terms as “Line Pairs per mm” (LP/mm).  The reason it is expressed this way is because to resolve a pixel of “X” um, you need to use the formula, 1 / 2X where “X” is the pixel size and 2 is the Nyquist limit.  So to resolve a pixel of 5um we need a resolution of 1/ ( 5um*2)  per line pair.  In LP/mm, this becomes 100 LP/mm.

A graph showing a lenses performance is shown in a  plot below, plotting intensity vs. LP/mm.  This is called the Modulation Transfer Function (MTF). Note that as the LP/mm increases and the lens can’t resolve it as well, the intensity falls off.  This measurement is variable to F stop and angle of light, so real MTF charts will indicated these parameters. This is the only real way to empirically evaluate how a lens will perform.

You can visually compare lenses, but to truly compare Brand A vs. Brand B you would have to test them under identical situations.  You can’t compare Brand A’s MTF vs. Brand B’s if you don’t know what the parameters used to test them are (need the same camera, with the same lighting, with the same focus, with the same f stop, the same gain, etc. etc.).  Unfortunately its very hard to get that information from most lens manufacturers.

1, 3, 5, 9, 12 Megapixel lens?

Tamron 12MP MPY lenses
Compliments of Computar

What does this mean?  As an example, Sony has recently introduced a new line of image sensors which  have  5MP, 9MP and 12MP sensors.  Many clients have called and said,  “I want to use the 12MP sensor, so please spec a lens that can do 12MP.”  Unfortunately, this isn’t correct as each of these sensors uses a 3.45um pixel.  They ALL need the same quality lens!  Why?  Because it is the size of pixel, what you have to resolve, that dictates the quality of the lens!

In the above situation, the 5MP sensor needs a 2/3” format lens, the 9MP needs a 1” lens, and 12 MP needs a 1.1” format lens.  (Multiply the size of the pixel by the number of H and V pixels to get the sensor format  – more on format HERE ).  However, this sensor needs about 144 LP/mm of resolving power as its a 3.45um pixel size.  As much as I detest the nomenclature of “5MP lens” etc., I do appreciate what Fuji  does; as they will state, “…. This  series of high-resolution lenses deliver 3.45um pixel pitch (equivalent to 5MP) on a 2/3″ sensor”.   Now this make more sense!

In turn, if you see a lens stated as a “Megapixel Machine vision” lens, question this!  It really needs to be stated in terms of its capability to resolve the pixel size in LP/mm!

Contact us

1stVision has a staff of machine vision veterans who are happy to explain this in more detail and help you specify the best lens for your application!   Contact 1st Vision!

Additional References:
For a comprehensive understanding on “How to Choose a Lens”, download our whitepaper HERE.  

Blog post:  Demystifying Lens performance specifications

Blog post:  Learn about FUJI’s HF-XA-5M (5 Megapixel) lens series which resolves 3.45um pixel pitch sensors! Perfect for cameras with Sony Pregius image sensors.

Use the 1st Vision lens selector allowing you to filter by focal length, format and manufacturer to name a few

How much resolution do I lose using a color industrial camera in a mono mode? Is it really 4X?

color vs monochrome imagesMany clients call us about doing measurements on grey scale data, but want to use a color machine vision industrial camera because they want the operator or client to see a more ‘realistic’ picture.  For instance, if you are looking at PCBs, need to read characters with good precision, but also see the colors on a ribbon cable,  you are forced to use a color camera.

In these applications, you could take out a monochrome image from a color sensor for processing, and use the color for cataloging and visualization.   But the question is, how much data is lost by using a color camera in mono mode?

First, the user must understand how a color camera works, and how it gets its picture.  Non 3-CCD cameras use a Bayer filter, which is a matrix of red, green, and blue filters over each pixel.  For each group of 4 pixels, there are 2 greens, 1 red and 1 blue pixel. (The eye being most sensitive in Green, has more to simulate the response).

Bayer image sensor

To get a color image out, each pixel out is a computation of a weighted sum of its nearest neighbor pixels which is known as Bayer interpolation.  The accuracy of the color on these cameras is a result of what the original image was, and how the camera algorithms interpolated the set of red, green and blue values for each pixel.

To get monochrome out, one technique is to have the image broken down into Hue, Saturation, and Intensity, with the intensity taken as the grey scale value.  Again, this is mathematical computation. The quality of the output is dependent upon the original image and the algorithms used to compute the output.

Mono image sensor

An image such as the above will give an algorithm a hard time as you are flipping between grey scale values of 0 and 255 for each pixel (assuming the check board lines up with each pixel).  Since the output of each pixel is based on it’s nearest neighbors, you could be replacing a black pixel with 4 white ones!

Grey scale image

On the other hand, if we had an image with a ramp of pixel values, in other words, each pixel was say 1 value less than the one next to it, the average of the the nearest neighbors would very close to the pixel it was replacing.

What does all this mean in real world applications?  Let’s take a look at a 2 images, both from the same brand of camera where one is the using the 5MP Sony Pregius IMX250 monochrome sensor, the other is using the same sensor, but the color version.  The images were taken with the same exposure and identical setup.  So how do they compare when we blow them up to the pixel level after we take the monochrome output from the color camera and compare it to the monochrome camera?

Grey Scale Analysis
(Left) – Color Image ——————————- (Right) – Monochrome Image

In comparing the color image (Left), if you expand the picture, you can see that the middle of the E is wider. The transition is not as close to a step function as you would want it to be. The vertical cross section is about 11 pixels with more black than white. Comparing the monochrome image (Right), the vertical cross section is closer to about 8 pixels.

Conclusion:

If you need pixel level measurement, and there is no need for a color image, USE A MONOCHROME MACHINE VISION CAMERA.

If you need to do OCR (as in this example) the above images using color or monochrome would work just fine.  This is given you have enough pixels to start and your spatial resolution is adequate.

CLICK HERE FOR A COMPLETE LIST OF MACHINE VISION CAMERAS

Do you lose 4x in resolution as some people claim?  Not with the image I have used above.  Maybe with the checkerboard pattern, but if you can have multiple pixels across your image to measure, you might be ok in with using a color camera and is really application dependent!  This post is to make you aware of the resolution loss specifically and 1st Vision can help in making decisions by contacting us for a discussion. 

Contact us

1stVision is the leading provider of machine vision components and has a staff of experienced sales engineers to help discuss your application.  Please do not hesitate to contact us to help you in calculating the resolution you need to calculating focal lengths for your application. 

Related links and blog posts

How does 3CCD cameras improve color accuracy and spatial resolution over Bayer cameras

Calculating resolution for machine vision

Use the 1st Vision camera filters to help ID the desired camera

What Is Offered in an Industrial PC Machine Vision Computer?

Neousys embedded computer

Neousys Industrial computerMachine Vision applications required some essentials components and functions.   These components will always have a machine vision camera, and typically need lighting with some  input and output (I/O) functions to synchronize events in addition to lenses and other accessories.

Industrial PC machine vision computers are also needed to  run PC based machine vision software and provide communications between the camera and software.  These computers need to be suited for various environments which may be dusty, as in a casting foundry, to full clean rooms in electronics manufacturing. Ideally the computers should help in the overall integration of machine vision applications.

“Machine Vision Computers” are designed specifically for these applications and provide a robust solution!  

Introducing Neousys  who is a leader in machine vision computing, designed their computer from the ground up for machine vision.   This blog post addresses the specific features that are offered and what problems it solves.

What’s really offered in a “Machine Vision” computer?    Key features are outlined as follows

Fan-less computer designs:  In cases where dust is prevalent, normal computers have fans which brings in dust, clogging fans and creating the system to heat up. Neousys has a fan-less design with efficient heat dissipation allowing for high temperatures from -25 to 70 Deg. C.

Neousys heat efficient design
Efficient Heat dissipation design, providing a higher temperature range than the competition.

Unlike other industrial computer suppliers, Neousys platforms begin with a single board computer laying out all heat generating components evenly, optimizing the thermal design.  In turn, at 100% CPU loading, AND at the ends of the specified temperature ranges, there is no performance degradation.

Neousys hot components
Designed for thermal management, all of the hot components are interfaced directly with the heat sink with carefully selected thermal interface material.

Modular Mezzio cassette design:  Application requirements differ from needing multiple communication ports to synchronization of events via inputs and outputs.  Neousys provides easy to configure, exchangeable modules to unlock the limits and provide feature expansion.  MezIO modules can be added for Power over Ethernet (up to 8+ ports ), USB ports, COM ports (RS232/422/485), Digital IO including encoder inputs or even customized features.   All this done with a focus on thermal management.Neousys Mezzanine design

Integrated Controls:  To ensure high quality images, a machine vision system requires accurate interaction between lighting, camera, actuator and sensor devices.   Neousys integrates LED lighting controller, camera trigger, encoder input, PWM output and digital I/O, to connect and control all the vision devices. All the vision-specific I/O are managed by Neousys’ patented MCU-based architecture and DTIO/NuMCU firmware to guarantee microsecond-scale real-time I/O control.Neousys embedded computer

Multiple processors architecture:  High performance is needed to ensure factory up-time.  Neousys provides multiple processors in one computer, such  as the CPU, MCU, and GPU (e.g. Nuvis-5306RT, Nuvo-5000E with GPU cassette).  Fully customization with specific processors, GPU’s, Memory,  Drives (SSD / HDD) are available.

Small form factors:  Space is always a constraint to keep products and factory footprints to a minimum.   Starting at 4″ x 6″ x 2″, Neousys has machine vision computer offerings to streamline any design.

Contact us to talk to an expert!

1stVision has industry experts on hand who can discuss your application in detail and help specify the best computer and machine vision components for your application.  We have a full portfolio of machine vision cameras, lenses, lighting and accessories.   Please contact us to help you!

Be sure to check out our latest post highlighting Mikrotron High Speed Machine Vision cameras

Challenges you will encounter with high speed machine vision applications and how to solve them!

Mikrotron high speed cameras

Mikrotron high speed vision solutions

High speed machine vision camera applications can solve many problems ranging from diagnosing high speed packaging production lines, sports analytics to droplet characterization in spraying applications to name a few.

These solutions require high frame rate cameras, but as in many machine vision applications, there are challenges that must be overcome to be successful.

4 challenges for high speed machine vision camera applications and solutions are presented below.

High Frame Rates are required to capture the event!
The key to high speed image capture is to stop motion by having enough image “frames” within short time periods to play them back slowly and analyze the event.  In order to capture these frames, first, you must have a fast image sensor, but then have the ability to offload the image data from the camera to the host computer.  Cameras using the CoaxPress (CXP) interface with appropriate sensors provide this solution.   Below is an example of achievable frame rates using a Mikrotron EOSens 3CXP camera.
mikrotron eosens 3cxp frame rates
Adequate light and a good image sensor is required! 
To achieve high frame rates, very short exposure times are required.  These short exposures do not allow much time for light to hit the image sensor.  In turn to overcome this, you need a strong light source and pixels that are very sensitive.  High speed Machine vision image sensors such as the Alexima AM41 and ON Semi LUPA3000 found in the Mikrotron EoSens 3CXP and EoSEns 4CXP cameras respectively solve this problem.

Image storage and an adequate computer is required for machine vision camera event capture.
The camera serves its function to capture frames, but typically with “event capture” applications, we need to save the data for playback at a slower frame rate.  In many cases, this requires adequate computer processing power, memory and solid state drives (SSD’s).  Depending on the application, computing systems with added features such as IO, encoder inputs, serial communication and Power over Ethernet (PoE) ports may be required.

High speed image recording software is needed.
Capturing the high speed video stream is not trivial, yet alone the playback.  Software packages such as Streampix by Norpix is a great solution for single up to multiple camera setups.
Contact 1stVision1stVision can customize a solution using off the shelf industrial components from Mikrotron (High speed cameras), Neousys (Industrial computers), Norpix (Software) and couple with the right lenses and accessories from frame grabbers to cables for your application.

Mikrotron has high speed machine vision camera solutions for many industries.  The following video’s demonstrate various solutions.

Automotive Industry – Metal Punch on Oil Filter

Pharmaceutical Industry – Automated filling of syringes

Packaging Industry  (Food and Beverage) – Trouble shooting packaging machinery

Packaging Industry (Blister Packs ) – Trouble shooting injection molding of blister packs

Contact us to talk to an expert!

1st Vision’s engineers have a combined experience of over 100 years of experience (yes, we are old, but can help you find the best solutions!).  We love talking about vision applications and can help provide a detailed solution.  Give us a call at 978-474-0044 or email us @ info@1stvision.com

Related Blog Posts & links

Video Tutorial – How to use industrial cameras for high speed imaging from machine vision to event capture