Why shouldn’t I buy a $69 webcam for my machine vision application?

IDS uEeye camera

This is a question we get asked frequently: “Why should we pay $200 plus for your board level machine vision camera when we can just get a webcam for $69?”

A great question and maybe you can, but what ARE the differences?

Basically, there are just a few questions you need to answer to see if you should use a webcam for you machine vision application which are as follows:

  1. Do you need to program to integrate the video into an application with processing or control?
  2. Do you need consistent image quality?
  3. Are you doing computer vision (the computer is making decisions based on the images) or are you just viewing the images visually?
  4. Do you care if the camera specifications change over your product’s life cycle?
  5. Is the object under inspection moving?
  6. Do you need to control when you take the picture or interface to a trigger or strobe?
  7. Do you need to be able to choose what lens you will need?

If the answer to any of the above are YES, then a webcam will NOT work well or at all for your application. If the answers are NO, then by all means, you might be able to save money and just use a low-cost webcam. (You can stop reading here if you want, or continue for more details below).

Machine Vision Camera Software

Webcams do NOT come with a SDK as they are made to show video only. They normally provide a universal video driver, and also an application for viewing video.

Industrial machine cameras come with a SDK programmable in C/C++/C#/etc. It allows you to programmatically control the camera for both data acquisition and control of the camera’s parameters. (Example HERE to show extensive support of various operating systems and download)

Moving objects

Webcams have rolling shutter sensors which mean they cannot acquire images of moving objects without ‘smearing’ them. Industrial machine vision cameras use sensors with global shutters providing the ability to freeze the image to produce non smeared images of moving objects.

Example: Without adequate shutter speed with a global shutter, image will be blurry with motion

Trigger and Strobe Control

Webcams only have an interface to the USB data, whereas industrial machine vision cameras have hardware and software inputs and outputs. These allow for exact timing for a trigger to take a picture and a strobe to illuminate the object.

Example: External trigger control is tightly timed with IO including light flash. Courtesy of IDS Imaging

Camera Specs Changing over time

Webcams just need to show you video! In turn the manufacturers are not concerned if the sensors inside the camera change every six months. Whether the sensitivity changes by 10% makes no difference when you are just video conferencing with Grandma.

Industrial machine vision cameras are made with image sensors that don’t go obsolete every 6 months, but rather companies hope for 10 year life spans. It makes a huge difference if you are doing a computer vision algorithm that you have 5 man years of software development and the sensor’s sensitivity changes by even 1%.

Furthermore, the form factor of webcams change frequently as well. This doesn’t make a difference when it is just on your desk. It makes a huge difference when your camera and lens is fixtured in a machine that has 500 hours of CAD work to design, much less build. Moving the camera and lens 10cm might not be possible!

Do you need to choose your lens?

Webcams come with an integrated lens that is suitable for general viewing, and this lens is integrated with the camera and not changeable. Industrial machine vision cameras come with no lenses as not only do lenses come in a variety of focal lengths for different magnification, but also lenses coming in a variety of resolutions. Choosing a lens requires you to know the size of the sensor, your working distance, your field of view, and the pixel size. (See related educational blogs on lenses at end of this post)

What are your options for a low cost camera solution?

If you need industrial machine vision camera solutions with a solid SDK, long life cycles, at a low price, there several solutions to consider. Rolling shutter imagers are always lower price which are always a place to start along with USB2 interfaces. Read our previous blog HERE which outlines some specific models which are low cost. There is also a great new platform coming providing 5 Megapixel resolution with a rolling shutter imager, but with great performance for $280! Contact us for more details.

Click to contact
Give us some brief idea of your application and we will contact you to discuss camera options.

1st Vision’s sales engineers have over 100 years of combined experience to assist in your camera selection.  With a large portfolio of lenses, cables, NIC card and industrial computers, we can provide a full vision solution!

Ph:  978-474-0044  /  info@1stvision.com  / www.1stvision.com

Related Posts

Optotune liquid lenses – 5 case examples for machine vision

Optotune tunable lenses

Optotune & Gardasoft liquid lens controlsLiquid lens technology, with its ability to change focus within the order of milliseconds is opening up a host of new applications in both machine vision and the life sciences.  It is gaining growing interest from a wide cross section of applications and easily adapts to standard machine vision lenses.

Liquid lens technology alone provides nice solutions, but when combined with advanced controls, many more applications can be solved.

To learn the fundamentals of liquid lens technology and download a comprehensive white paper read our previous blog HERE. 

see spec's

In this blog, we will highlight several case application areas for liquid lens technology.

Case 1:  Applications requiring various focus points and extended depth of field:  This does cover many applications, such as logistics, packaging and code reading in packaging.  Optotune Liquid lenses provide the ability to have pre-set focus points, auto-focus or utilize distance sensors for feedback to the lens.  In the example below, 2 presets can be programmed and toggled to read 2D codes at various heights essentially extending the depth of field.

extended DOF

Case 2:  3D imagery of transparent materials / Hyperfocal (Extended DOF Images:  When image stackingusing an Optotune liquid lens in conjunction with a Gardasoft TR-CL180 controller, sequence of images can be taken with the focus point stepped between each image.  This technique is known as focus stacking.   This will build up a 3D image of transparent environments such as cell tissue or liquid for analysis.  This can also be used to find particles suspended in liquids.

image stacking for cells

A Z-stack of images can also be used to extract 3D data (depth of focus) and compute a hyper-focus or extended depth of field (EFOF) image.

The EDOF technique requires tacking a stack of individual well focused images which have preferably been synchronized with one flash per image.  An example is show below with the rendered hyper focus image shown at right.

Hyperfocus imageCase 3:  Lens inspection:  Liquid lenses can be used to inspect lenses, such as those in cell phones for dust and scratches looking through the lens stack.

Optotune liquid lens stack imageFor this application, a liquid lens is used in conjunction with a telescentric lens taking images through different heights of the lens stack.  

Case 4:  Bottle / Container inspection:  Optotune Liquid lenses can be used to facilitate image bottom’s of glass bottles or containers of various heights.

In this example, the camera is consistently at the neck of the bottle, but the bottom is at different heights.  optotune lens - bottle inspection

Case 5:  Large surface inspections with variation in height:  Items ranging from PCB’s to LCD’s are not flat, have various component heights and need to be inspected at high magnification (typically using lenses with minimal DOF).  Optotune Liquid lenses are a perfect solution using preset focus points.

pcb inspection

Machine Vision applications using Optotune Liquid lenses and controller are endless!

These applications are just the tip of the iceberg and many more exist, but this will give you a good idea of capabilities.   Gardasoft TR-CL controllers are fully GigE Vision compliant, so any compatible GigE Vision client image processing software such as Cognex VisionPro, Teledyne Dalsa Sherlock or National Instruments LABVIEW can be used easily.

Click to contact

1st Vision’s sales engineers have over 100 years of combined experience to assist in your camera selection.  With a large portfolio of lenses, cables, NIC card and industrial computers, we can provide a full vision solution!

Contact us to help in the specification and providing pricing

Ph:  978-474-0044  /  info@1stvision.com  / www.1stvision.com

Related Video

Related Blog Posts

Learn how liquid lenses keep continuous focus on machine vision cameras when the working distance changes.

New 1.1” FUJINON CF-ZA-1S Series machine vision lenses with 2.5um pixel resolution – Best in class

FUJI

FUJI lensesFUJINON has released its new CF-ZA-1S lens series supporting high resolution 1.1″ format images sensors down to 2.5um pixel pitches.  This new series has some unique differences making it our go-to lens for this format size.

In this blog, we cover the unique differences, which are at a price point equal to or lower than competing brands, making it the best in its class.

The FUJINON CF-ZA-1S series with support of 2.5um pixels can be used essentially with any image sensor up to 1.1″ formats needing resolution for small pixels.  Focal lengths from 8mm to 50mm are available.FUJI CFZA-1S models

contact us

CLICK HERE FOR FULL SPECIFICATIONS ON THE FUJINON CF-ZA-1S LENSES

Main Features of the FUJINON CF-ZA-1S machine vision lens series

High resolution and support of 2.5um pixels from center to edge
FUJINON’s
“4D High Resolution” keeps uniform resolution from the image center to the peripherals regardless of lens working distance and f-stop.   This is extremely beneficial in applications in which high contrast is needed from center to edge. (i.e Measurement of a part spanning the field of view)FUJI 4D high resolutionRelative illumination reaches 90% +
In general, the illumination of the peripheral areas of the image is determined by the “relative illumination” and the chief ray angle (CFA).  FUJINON has designed the lens series to constrain the CRA allowing a good balance to the peripherals of the image as seen below.   For machine vision applications needing even illumination, this becomes very important for repeatability.  Chief ray angle - FUJINON

Vibration and Impact resistant
FUJINON has done a great job within their new lens series to incorporate anti-vibration and resistance to high impacts for no extra cost!  In applications such as robotic applications, autonomous vehicles and airborne applications to name a few will benefit from this feature.  FUJI anti-vibration

This video highlights these features and more.   It nicely details how the design constraints the CFA for even illumination and is a nice tutorial.

Contact us to talk to an expert!

1st Vision’s sales engineers have over 100 years of combined experience to assist in your camera selection.  With a large portfolio of lenses, cables, NIC card and industrial computers, we can provide a full vision solution!

Ph:  978-474-0044  /  info@1stvision.com  / www.1stvision.com

Related Blogs

What are the f-numbers on machine vision camera lenses? f-stop explained!

Get a 5MP lens for the price of a 3MP one! FUJI’s new XA-5M lenses.

Not All Lenses are Created Equal! Lens MTF Comparisons

What are the f-numbers on machine vision camera lenses? f-stop explained!

machine vision lens

Why does 1stVision focus (no pun intended) so much on machine vision lenses.  As the old saying goes, if you have garbage in, you get garbage out.

The lens is the input to the machine vision system.  A low quality lens means that you have already degraded the image coming into the sensor.  For instance, let’s say you chose a camera with 5um pixels, which equates to a lens being able to resolve 100 lp/mm.  If your lens’ Modular Transform Function (MTF) is only 50 lp/mm, you should have chosen a camera with 10um pixel size, because the lens can’t do any better than that.   As a note, don’t infer that a camera with 10um pixels is worse than a camera with 5umpixels from this example, as that is not true.  Learn more on MTF here

Click hereA machine vision lens gathers light and then focuses it.  When we talk about focus, we are talking about the MTF, but when we discuss light gathering properties, we need to discuss the lens f-number.

FUJI -f-stop
FUJI lens showing f-stops
f-number
The f-number is defined as the ratio of the focal length by the aperture width (diameter of the entrance pupil).  So a 50mm focal length lens with a f-number of 2 has a 25mm entrance pupil.  The lower the f-number, the more light  will be allowed into the system, however this equates to more expensive  lens as you need more glass to make a wider entrance pupil.

f-stop
Many camera lenses have an adjustable iris that opens and closes at the front of the lens to limit the amount of light coming in.  When open all the way, the f-stop is the f-number.  From there, each f-stop from wide open halves the amount of light, which corresponds to reducing the size of the aperture by 1/sqrt(2) or about 0.707 and in turn halving the area.

f-number
Diagram of decreasing apertures, that is, increasing f-numbers, in one-stop increments; each aperture has half the light-gathering area of the previous one.

The f-stop is represented by a sequence of these numbers below, each letting in half the light.

Sequence:  f/1, f/1.4, f/2, f/2.8, f/4, f/5.6, f/8, f/11, f/16, f/22, f/32, f/45, f/64, f/90, f/128

The sequence is obtained by approximating the geometric sequence

s-stop sequence

Characteristics of the f-stop

  • Most lenses are designed to be optimal in the F4-F5.6 range, in which they have the best MTF.
  • The higher f-number (ie f/8 ) is, or the more closed the aperture is, better the depth of field if achieved
  • The lower the f-number (ie f/1.4) is, or the aperature being wide open is where you get the least depth of field, but not great MTF.

In a practical application, you need to trade off exposure time, depth of field, and available machine vision  lighting.  These three variables are always in tension.  If you need fast exposure AND depth of field this means very small amounts of light gets to the sensor.  If you need high contrast images in this situation, something has to change.  Either get more light, accept less depth of field, or have some image blur.

Click to contact

For a full listing of machine vision lenses, click here and use the filter to help in your selection. 

1st Vision’s sales engineers have over 100 years of combined experience to assist in your camera selection.  With a large portfolio of lenses, cables, NIC card and industrial computers, we can provide a full vision solution!

Related Blog posts

Not All Lenses are Created Equal! Lens MTF Comparisons

10 key things you need to know when selecting a machine vision lens

Demystifying Lens performance specifications

Information courteous of Wikipedia