White Paper. Machine Vision & Raman Spectroscopy - Application Example. by Kenneth W. Chapman, Senior Vision Engineer, Centice Corporation

Similar documents
Eight Tips for Optimal Machine Vision Lighting

Using Optics to Optimize Your Machine Vision Application

Camera Setup and Field Recommendations

Techniques for Suppressing Adverse Lighting to Improve Vision System Success. Nelson Bridwell Senior Vision Engineer Machine Vision Engineering LLC

TEXTILE INSPECTION INDUSTRY OVERVIEW

OCULUS VR, LLC. Oculus User Guide Runtime Version Rev. 1

GUIDE TO SELECTING HYPERSPECTRAL INSTRUMENTS

iq-led Software V2.1

Applying Automated Optical Inspection Ben Dawson, DALSA Coreco Inc., ipd Group (987)

Colour Profiling Using Multiple Colour Spaces

A Revolution in Information Management

Specim. Making spectral imaging possible

White Paper Focusing more on the forest, and less on the trees

CMOS BASED HYPERSPECTRAL IMAGING FOR COMPACT / LOW-COST / HIGH-VOLUME IMAGING SPECTROSCOPY. SPIE Baltimore - April 2016

Imaging Fourier transform spectrometer

Short Wave Infrared (SWIR) Imaging In Machine Vision

DATAVS2 series.

PRINT INSPECTION MACHINES

APPLICATIONS FOR TELECENTRIC LIGHTING

An Inherently Calibrated Exposure Control Method for Digital Cameras

Semiconductor Foundry Verification

ORIFICE MEASUREMENT VERISENS APPLICATION DESCRIPTION: REQUIREMENTS APPLICATION CONSIDERATIONS RESOLUTION/ MEASUREMENT ACCURACY. Vision Technologies

Tips for a correct functioning of Face Recognition technology. FacePhi Face Recognition.

Agilent 8700 LDIR Chemical Imaging System. Bringing Clarity and Unprecedented Speed to Chemical Imaging.

STEM Spectrum Imaging Tutorial

DRUG PACKAGE, INC Fax

Hyperspectral imaging in Industrial Machine Vision

MR-i. Hyperspectral Imaging FT-Spectroradiometers Radiometric Accuracy for Infrared Signature Measurements

Evaluating Barcode Reading Technologies

MR-i. Hyperspectral Imaging FT-Spectroradiometers Radiometric Accuracy for Infrared Signature Measurements

Master thesis: Author: Examiner: Tutor: Duration: 1. Introduction 2. Ghost Categories Figure 1 Ghost categories

CMOS X-RAY DETECTORS. for Industrial Non-Destructive Testing COMMITTED TO PEOPLE. DRIVEN BY INNOVATION.

DATAVS2 series.

DECISION NUMBER FOURTEEN TO THE TREATY ON OPEN SKIES

Improving the Collection Efficiency of Raman Scattering

Non-destructive Inspection with Terahertz

Handheld Bar Code Scanner. Models SR, HD, LR and XLR. User s Guide

Solid State Luminance Standards

Introduction to the operating principles of the HyperFine spectrometer

Design of Temporally Dithered Codes for Increased Depth of Field in Structured Light Systems

Sony Releases the Industry's Highest Resolution Effective Megapixel Stacked CMOS Image Sensor for Automotive Cameras

OP735. Benchtop Optical Power Meter Instruction Manual

Robust Hand Gesture Recognition for Robotic Hand Control

INNOVATIVE SPECTRAL IMAGING

Standard 7-Segment SMD Display 10 mm

VisioNIR. High Speed NIR Spectrometer for 100% Process Inspection

DEFENSE APPLICATIONS IN HYPERSPECTRAL REMOTE SENSING

FT-IR.

EC-433 Digital Image Processing

Background Adaptive Band Selection in a Fixed Filter System

Z D Image Scan Engine

PLANET 6G series. Vision Inspection for. Tablet & Capsule. Next Generation

WHITE PAPER. How to Include Detector Resolution in MTF Calculations. Zemax A Radiant Zemax Company

VISION. DataVS2 DATAVS2

MrN Physics Tuition in A level and GCSE Physics AQA GCSE Physics Spec P3 Optics Questions

DISCRIMINANT FUNCTION CHANGE IN ERDAS IMAGINE

INSPECTION SENSORS SVS2 SERIES VISION SENSORS HIGHLIGHTS APPLICATIONS

2D Scan Engine MDI-3100 MDI This document provides instructions for installing the MDI-3100 imager scan engine.

F210 Vision Sensor Flow Menus and Macro Capability

Chemical Imaging. Whiskbroom Imaging. Staring Imaging. Pushbroom Imaging. Whiskbroom. Staring. Pushbroom

The spectral colours of nanometers

Smart vision and optical solutions for the food and beverage industry

Photonic-based spectral reflectance sensor for ground-based plant detection and weed discrimination

An Introduction to Automatic Optical Inspection (AOI)

TABLET IMPRINTING SYSTEM

ECEN. Spectroscopy. Lab 8. copy. constituents HOMEWORK PR. Figure. 1. Layout of. of the

IN-SIGHT 9902L LINE SCAN VISION SYSTEM

Miniaturized Spectroradiometer

PRODUCT GUIDE Vision software from the world leader.

Refraction and Lenses

THE VISIONLAB TEAM engineers - 1 physicist. Feasibility study and prototyping Hardware benchmarking Open and closed source libraries

Material analysis by infrared mapping: A case study using a multilayer

INNOVATIVE CAMERA CHARACTERIZATION BASED ON LED LIGHT SOURCE

Mira M-3 Handheld Raman Spectrometer. On-site verification of materials in seconds

Lens Impact Resistance Testing Plan Revised,

IMAGE PROCESSING TECHNIQUE TO COUNT THE NUMBER OF LOGS IN A TIMBER TRUCK

ACULED DYO TM Design-Your-Own Guide

Introduction. Related Work

Advanced 3D Optical Profiler using Grasshopper3 USB3 Vision camera

Microscopic Structures

ColorRanger E 3D Cameras. Explore the true colors of Ranger MultiScan. PDF processed with CutePDF evaluation edition

High Quality Automotive Glass

Machine Vision for the Life Sciences

NELA Brüder Neumeister GmbH

IN-SIGHT 2000 VISION SENSORS

Agilent Cary 610/620 FTIR microscopes and imaging systems RESOLUTION FOR EVERY APPLICATION

Advances in Computer Vision and Pattern Recognition

Aimetis Outdoor Object Tracker. 2.0 User Guide

CircumSpect TM 360 Degree Label Verification and Inspection Technology

flexible lighting technology

Optical basics for machine vision systems. Lars Fermum Chief instructor STEMMER IMAGING GmbH

PRODUCT GUIDE Vision software from the world leader.

APPLICATION OF HYPERSPECTRAL REMOTE SENSING IN TARGET DETECTION AND MAPPING USING FIELDSPEC ASD IN UDAYGIRI (M.P.)

Introduction to Video Forgery Detection: Part I

EXPLORING THE POSSIBILITIES

Indica 2.4 GHz Chip Antenna Part No. A10381 giganova Product Specification

High-speed vision inspection F210 VISION SENSOR

High Speed Hyperspectral Chemical Imaging

Alternate Light Source Imaging

Hands-Free Soap Dispenser

Transcription:

White Paper Machine Vision & Raman Spectroscopy by Kenneth W. Chapman, Senior Vision Engineer, Centice Corporation

Machine vision systems are good at bottle and vial feature inspections such as, cap placement, label print quality and readability, fill level, and a variety of container defects such as chips and cracks. A bigger challenge is the inspection of what is inside a bottle. Centice Corporation of Morrisville, NC has developed technology to tackle that difficult problem. Their sensors look through the container to determine the chemistry, size, shape, and color of objects inside transparent and semi-transparent containers rather than characteristics of the containers themselves. Centice s first product, the PASS Rx Pharmaceutical Authentication System combines machine vision with Raman Spectroscopy to look through the bottoms of amber pill vials used in typical retail pharmacies to dispense medication. The purpose of the PASS Rx system is to help the pharmacist assure the contents of the vials dispensed to the patient is precisely the medication prescribed by the doctor. A barcode/rfid/ weight check system is incapable of such an assurance. Centice s proprietary implementation of Raman Spectroscopy measures the chemical contents of the pills. Sometimes the spectroscopy alone is insufficient to determine whether the correct pills are in the vial. In some cases, families of medications such as Liptor and Levothroid have precisely the same spectral signature, but come in a variety of doses that must be differentiated one from another. Other families of drugs have fluorescence characteristics difficult for the spectroscopy to discriminate. These drugs almost always have differences in sizes, shapes, and/or colors. It is up to the machine vision to measure these visible differences. This is a difficult problem because the machine vision camera must look through the amber vial to evaluate the objects inside. The plastic vial bottoms have molded writing and logos, multiple angled surfaces of different thickness, and a variety of mold artifacts and anomalies that must be ignored or subtracted to perform the inspection properly. Figure 1 is an image of an empty vial as seen by the vision system. Figure 2 is an image of a vial full of one of the Levothroids as seen by the vision system. Machine Vision & Raman Spectroscopy 2

The machine vision problem is made tractable because the Raman Spectroscopy reduces the number of possible shapes, sizes, and colors that need to be evaluated. In the case of Liptor, the Raman can reduce the number of individual drugs the vision system must evaluate from a universe of 3000-4000 drugs for a typical pharmacy to the four Liptors (10mg, 20mg, 40mg, and 80mg). In the case of Liptor, the machine vision must discriminate between the pills based on size alone because the shape and color of all the pills are the same. Other pills are evaluated on any combination of the three machine vision features. This article describes some approaches to feature extraction that solve this very difficult machine vision challenge. The challenges associated with combining vision features with Raman features for classification are left for another article. Figure 1 Figure 2 The Challenges There are several challenges associated with viewing objects through the vial bottom. The writing, mold artifacts, and boundaries between the multiple surfaces of the bottom of the bottle manifest themselves as occlusions and discontinuities in the surfaces and edges of the objects inside the vial. These same artifacts add false edges and surfaces in the image not associated with objects that are outside the vial or part of the vial itself. The thicknesses of the different vial bottom surfaces create a different level of magnification for each of the surfaces. The color of the vial material blocks ranges of light spectra (the amber vial material blocks blue spectra). Bin (or, in this case, pill) stacking occurs so that pills occlude each other, shadows are added, perspective (from pills stacked randomly at different angles) must be managed, and pill shapes from more than one side of the pill can appear (imagine a round pill sitting on its edge). Machine Vision & Raman Spectroscopy 3

Image Accumulation Different light modes and spectra illuminate the scene of the bottom of the vial differently. Application of a multi-mode, multi-spectral image accumulation methodology maximizes the information available to discriminate between object types. The Pass Rx is about the size and shape of a midsized coffee maker so it can fit onto the counter of a typical retail pharmacy. That means the camera, optical system, and lighting have to fit into a very compact area with a short object distance so there is space to accommodate the Raman spectrometer, mechanical system, and embedded computer that make up the rest of the system. Centice worked closely with The Imaging Source (Charlotte, NC/Bremen, Germany) to find a camera with the right sensitivity, speed, drivers, API, and cost to meet the requirements of the application. Navitar (Rochester, NY) helped Centice identify an inexpensive lens to minimize fisheye and other undesirable effects. The multi-mode, multi-spectral lighting system was developed by Centice in-house. Machine Vision & Raman Spectroscopy 4

Figure 3 Evaluating Shape and Size There are a number of ways to evaluate the images after they are accumulated. The Raman sensor can almost always determine the pill type to within a range of two to six pill types based on spectral fingerprints alone. The machine vision system then needs to calculate features that describe the size, shape, and/or color well enough to identify the exact strength category to which the pill belongs. The remainder of this article provides a brief description of the approach taken for each of those categories. The shape and size features are divided into two categories: 1) features of the predominant shape in the bottle irrespective of a priori information, and 2) features that describe conformance to a known shape set. The first method of shape evaluation is preferable because it does not require retrieval of pill information from a data store to start the inspection. Shape feature extraction depends only on the ability to identify those pixels in the image associated with objects inside the vial rather than outside the vial or on the vial, accumulation of those pixels into segments that are contiguous spatially or spectrally, and calculation of features based on the areas or boundaries of those segments. Figure 3 shows results of searches for two pills where the predominant shapes are circles of different sizes. Machine Vision & Raman Spectroscopy 5

Figure 4 Figure 5 Often though, the first category of shape and size features is insufficient to to categorize a pill correctly. In those cases, an expected shape/size set is passed to the vision system that describes the boundaries and areas of the pill family identified by the spectroscopy. This is a very effective method of correctly identifying the shape in the vial, but requires the use of computationally intensive and often, non-deterministic image processing techniques. Figure 4 shows the result of a search for a pill with an expected diamond shape of an expected size. Figure 5 shows that same inspection but with the pills of the incorrect shape and size in the vial. Machine Vision & Raman Spectroscopy 6

Evaluating Color The challenge of color is twofold. First, the camera has to be calibrated in a manner that best accommodates the spectra of the vial material. Second, the pixels that hold valid color information must be separated from the pixels that do not. The pixel selection problem is different from the one described in the paragraphs on shape and size features. Those pixels that hold good shape information might not be so good for evaluating color if they fall in an area of shadow or glint. After the pixels are selected, color histograms are calculated for several color spaces. The color channel histograms are then evaluated against reference histograms. Pixels with no useful color information are marked in red in the vial image shown in Figure 6. The original image is shown in Figure 7. Figure 6 Figure 7 Conclusion The combination of Raman Spectroscopy and machine vision provides synergies in the evaluation of objects in packages that cannot be realized by machine vision or spectroscopy alone. The development of new vision techniques to look inside semi-transparent vials was required as the techniques typically available for package inspection are mostly useful for measuring things like labels, barcodes, fill levels, and cap placement. In the case of the PASS Rx, powerful object classification techniques were needed to perform the difficult task of drug authentication. Machine Vision & Raman Spectroscopy 7

Headquarters: The Imaging Source Europe GmbH Sommerstrasse 36, D-28215 Bremen, Germany Phone: +49 421 33591-0 North & South America: The Imaging Source, LLC 6926 Shannon Willow Rd, S 400, Charlotte, NC 28226, USA Phone: +1 704-370-0110 Asia Pacific: The Imaging Source Asia Co. Ltd. 6F-1, No.230, Sec.3, Ba-De Road,,Song-Shan District 10555, Taipei City, Taiwan Phone: +886 2-2577-1228 www.theimagingsource.com All product and company names in this document may be trademarks and tradenames of their respective owners and are hereby acknowledged. The Imaging Source Europe GmbH cannot and does not take any responsibility or liability for any information contained in this document. The source code presented in this document is exclusively used for didactic purposes. The Imaging Source does not assume any kind of warranty expressed or implied, resulting from the use of the content of this document or the source code. The Imaging Source Company reserves the right to make changes in specifications, function or design at any time and without prior notice. Last update: February 2012 Copyright 2012 The Imaging Source Europe GmbH, wpmvraman.en_us.pdf All rights reserved. Reprint, also in parts, only allowed with permission of The Imaging Source Europe GmbH. All weights and dimensions are approximate. Unless otherwise specified the lenses shown in the context of cameras are not shipped with these cameras. Machine Vision & Raman Spectroscopy 8