Machine vision system components and operation
Machine vision systems typically consist of a digital camera, a light source, and a computer processor that analyzes the captured images. To obtain an image of sufficient quality, the distance from an object to a lens, lighting intensity, and exposure duration all need to be synchronized. Two synchronization methods are used, either time-based, when object speed is constant, or distance-based when object speed can vary. While a variety of sensor types can be used for time-based synchronization, incremental encoder feedback is almost always required for distance-based timing.
A key function of encoder feedback within vision systems is to trigger image capture at the appropriate time. As an example, in an inspection application for parts transported on a conveyor, the edge of an approaching object is detected by a photoelectric sensor. The system counts encoder pulses from the point of detection, with each pulse representing an interval of distance traveled. The light and camera are triggered when the desired count is achieved, indicating the part is in the correct position for image capture. The encoder pulses are also used to time the camera exposure.
Encoder resolution for line scan cameras
Line scan cameras capture a single line of pixels, with each exposure occurring as the object moves past the camera. The successive pixel lines are then digitally assembled to render the complete image. With line scan cameras, it's important that the camera's frame rate is synchronized with the object's travel. Otherwise, images can be distorted by compression or extension. This is where encoders play an important role in the vision system.
Since the line scan camera creates an image of a moving object one row of pixels at a time, the interval between exposures must be timed precisely to avoid distortion from too many or too few pixel lines. The key encoder attribute that creates successful imaging is encoder resolution, stated as Cycles Per Revolution or CPR. Factors dictating encoder resolution are image size, image resolution, frame rate, and transport speed. The image acquisition card or camera software may include scaling capabilities that allow the user to correlate a line of pixels with a certain number of encoder pulses.
For encoder transport applications, the speed of the conveyor belt must be measured accurately to ensure the image is free of distortion. An encoder with a measuring wheel, such as the Model TR1 Tru-Trac, is a common means of obtaining accurate belt speed feedback. The EPC Model TR1 is an easy-to-use, linear measurement solution that is readily integrated with vision sensors for conveyor speed feedback.
Typically, the pixel dimension for each image line dictates encoder resolution. For example, if an inspection process requires a minimum of 5 pixels per mm to identify a defect, the pixel dimension is 0.2 mm/scan. Each encoder pulse will trigger a scan, so encoder resolution should be 5 pulses per mm of belt travel. With a measuring wheel circumference of 200 mm, the desired TR1 Tru-Trac encoder resolution would be 1000 CPR.
Some installations can benefit from a programmable encoder, such as Model 58TP or Model 25SP that offers resolutions from 1 – 65,536 CPR. For example, to compensate for changes to other system components (conveyor, lighting, image field, etc.) or inspection attributes, the encoder resolution may need to be tuned to an optimal CPR to eliminate image defects. For an OEM of inspection equipment, a programmable encoder can facilitate the installation of devices on a wide range of customer applications and operating environments.
Conclusion
A properly configured rotary encoder is a key component in many high-performance machine vision systems. Both end-user and OEM system designers benefit from encoders that have configuration options to meet a wide range
of application requirements, as well as attributes such as accuracy and reliability.
Contact the BEPC Sales Team for assistance in selecting and specifying encoders for your next machine vision system.
Examples of motion feedback for machine vision systems
• Autonomous vehicles & robots
• Object detection
• Part counting and verification
• Automated vision testing and measurement
• Bar code reading/scanning
• Defect detection