Vision & Sensors


  Home
  Subscribe
  eNewsletter
  Quality Magazine
  Online
  Industry Headlines
  eXtras
  Blogs
  Webinars
  Current Issue
  Calendar
  Cover Story
  Features
  Columns
  Industry News
  Products
  Resources
  V&S Source Book
  Archives
  Digital Edition Archive
  2010 Quality Plant of the Year
  2010 Quality Professional of the Year
  Industry Links
  Career Center
  Product Info (Free)
  Classified Ads
  Quality Showcases
  Quick Clicks
  Market Research
  Vision & Sensors Info
  Special Collections
  NDT Supplement
Search in: EditorialProductsCompanies
Learning with Lecky: Back to Vision Basics
by Ned Lecky
November 24, 2010

ARTICLE TOOLS
EmailEmailPrintPrintReprintsReprintsshareShare



We just ran into an application for a fantastic little camera from IDS called the UI-1008XS. This 8-megapixel color camera weighs only 12 grams, fits in a volume less than a 1-inch cube including built-in auto-focus lens, and has trigger capability and a USB 2.0 interface that powers the camera as well as providing data connectivity.

Our application, however, also required more standard machine vision cameras with GigE interfaces, and needed the option of adding Camera Link or analog cameras to support some legacy hardware pre-installed on older machines. In addition, some of the cameras required could only be purchased from other camera vendors including Basler, Dalsa, PixeLink, and Point Grey.

By just going back to the basics, we were able to create a simple solution. Effectively, we took the demo programs supplied by each vendor for their own camera interface and wrapped each one of these into its own thread. A thread is a lightweight process that happily coexists with many other threads that are all part of the same application. They run independent of one another, each waiting, in the appropriate way, for an image from the desired camera.

By adopting this approach, we were able to rapidly create independent camera interface programs based on the camera vendors’ own code- a safe and risk-averse approach that is almost certain to speed deployment. Modern multi-core processors and big 64-bit operating systems, including Linux and Windows 7 can manage all of the memory and library interactions required to support armies of threads for cameras with very little effort. Furthermore, the threads are automatically distributed across all of the processor cores to allow for true simultaneous execution, making use of all of the hardware that is available for processing.

In our typical applications, each camera has its own grab thread, waiting patiently for the next image. In addition, each camera has a processing thread that spends its time analyzing the data most recently received form its’ associated camera. Finally, we add multiple accelerator threads for “hard” operations, like optical character recognition (OCR), a processor-intensive activity which benefits from the subdivision of the image into separate regions to allow parallelizing of the character recognition tasks.

Using a similar architecture in your own image processing applications will speed you on your way to writing efficient, sophisticated and stable image analysis applications.



Ned Lecky
Ned Lecky, Ph.D., is the owner of Lecky Integration (Little Falls, NY), an integration and consulting company using advanced electronics, software, cameras and simulations to engineer and manufacture solutions for clients in machine vision, mechanical system controls, and transportation and security inspection. For more information, call (518) 258-5874, e-mail ned@lecky.com or visit www.lecky.com  or his blog at www.visionsensorsmag.com.  

|PrintEmail
  Comments (0)Post a Comment
 

No HTML or BBCode in comments please.
 







BNP Media