7
34 th INTERNATIONAL CONFERENCE ON PRODUCTION ENGINEERING 28. - 30. September 2011, Niš, Serbia University of Niš, Faculty of Mechanical Engineering THE USE OF MACHINE VISION TO RECOGNIZE OBJECTS Remigiusz LABUDZKI Institute of Mechanical Engineering, Poznan University of Technology, Piotrowo 3, Poznan, Poland [email protected] Abstract: Machine vision (system vision) it's a apply computer vision in industry. While computer vision is focused mainly on image processing at the level of hardware, machine vision most often requires the use of additional hardware I/O (input/output) and computer networks to transmit information generated by the other process components, such as a robot arm. Machine vision is a subcategory of engineering machinery, dealing with issues of information technology, optics, mechanics and industrial automation. One of the most common applications of machine vision is inspection of the products such as microprocessors, cars, food and pharmaceuticals. Machine vision systems are used increasingly to solve problems of industrial inspection, allowing for complete automation of the inspection process and to increase its accuracy and efficiency. This paper presents the possible applications of machine vision in the present and show analysis results of the presence a tin alloy on copper elbow. Key words: machine vision, image processing, inspection 1. INTRODUCTION The introduction of the automation has revolutioni- zed the manufacturing in which complex operations have been broken down into simple step-by-step instruction that can be repeated by a machine. In such a mechanism, the need for the systematic assembly and inspection have been realized in different manufacturing processes. These tasks have been usually done by the human workers, but these types of deficiencies have made a machine vision system more attractive. Expectation from a visual system is to perform the following operations: the image acquisition and analysis, the recognition of certain features or objects within that image, and the exploitation and imposition of environmental constraints. Scene constraint is the first consideration for the machine vision system. The hardware for this sub-system consists of the light source for the active imaging, and required optical systems. Different lighting techniques such as the structured lighting can be used for such purpose. The process of vision system starts with the image acquiring in which representation of the image data, image sensing and digitization is accomplished. Image sensing is the next step in order to obtain a proper image from the illuminated scene. Digitization

Ethan Fromespms.masfak.ni.ac.rs/end/papers/35. 293-THE USE OF... · Web viewInstitute of Mechanical Engineering, Poznan University of Technology, Piotrowo 3, Poznan, Poland [email protected]

  • Upload
    others

  • View
    2

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Ethan Fromespms.masfak.ni.ac.rs/end/papers/35. 293-THE USE OF... · Web viewInstitute of Mechanical Engineering, Poznan University of Technology, Piotrowo 3, Poznan, Poland remigiusz.labudzki@put.poznan.pl

34th INTERNATIONAL CONFERENCE ON PRO-DUCTION ENGINEERING

28. - 30. September 2011, Niš, SerbiaUniversity of Niš, Faculty of Mechanical Engineering

THE USE OF MACHINE VISION TO RECOGNIZE OBJECTS

Remigiusz LABUDZKIInstitute of Mechanical Engineering, Poznan University of Technology, Piotrowo 3, Poznan, Poland

[email protected]

Abstract: Machine vision (system vision) it's a apply computer vision in industry. While computer vision is focused mainly on image processing at the level of hardware, machine vision most often requires the use of additional hardware I/O (input/output) and computer networks to transmit information generated by the other process components, such as a robot arm. Machine vision is a subcategory of engineering machinery, dealing with issues of information technology, optics, mechanics and industrial automation. One of the most common applications of machine vision is inspection of the products such as microprocessors, cars, food and pharmaceuticals. Machine vision systems are used increasingly to solve problems of industrial inspection, allowing for com-plete automation of the inspection process and to increase its accuracy and efficiency. This paper presents the possible applications of machine vision in the present and show analysis results of the presence a tin alloy on copper elbow.

Key words: machine vision, image processing, inspection

1. INTRODUCTIONThe introduction of the automation has revolutioni- zed the manufacturing in which complex operations have been broken down into simple step-by-step instruction that can be repeated by a machine. In such a mechanism, the need for the systematic assembly and inspection have been realized in different manu-facturing processes. These tasks have been usually done by the human workers, but these types of defi-ciencies have made a machine vision system more attractive. Expectation from a visual system is to perform the following operations: the image acquisi-tion and analysis, the recognition of certain features or objects within that image, and the exploitation and imposition of environmental constraints.Scene constraint is the first consideration for the machine vision system. The hardware for this sub-system consists of the light source for the active imaging, and required optical systems. Different lighting techniques such as the structured lighting can be used for such purpose. The process of vision sys-tem starts with the image acquiring in which repres-entation of the image data, image sensing and digitiz-ation is accomplished. Image sensing is the next step in order to obtain a proper image from the illumin-ated scene. Digitization is the next process in which image capturing and image display are accomplished. The last step in this process is the image processing in which a more suitable image is prepared [1]. The first aim of this article is to show typical examples of the visions systems in the automated manufacturing systems.

2. OPERATION OF A MACHINE VISION SYSTEMA visual system can perform the following functions: the image acquisition and analysis, the recognition of an object or objects within an object groups. The light from a source illuminates the scene and an op-tical image is generated by image sensors. Image acquisition is a process whereby a photo detector is used to generate and optical image that can be con-verted into a digital image. This process involves the image sensing, representation of image data, and digitization. Image processing is a process to modify and prepare the pixel values of a digital image to produce a more suitable form for subsequent opera-tions. Pattern classification refers to the process in which an unknown object within an image is identi-fied as being part of one particular group among a number of possible objects.

3. THE COMPONENTS OF MACHINE VISION SYSTEMA typical machine vision system consists of several components of the following:- one or more digital or analogue camera (black and white or colour) with optical lenses,- interface the camera to digitize the image (the so-called frame grabber),- processor (this is usually PC or embedded processor such as DSP),

Page 2: Ethan Fromespms.masfak.ni.ac.rs/end/papers/35. 293-THE USE OF... · Web viewInstitute of Mechanical Engineering, Poznan University of Technology, Piotrowo 3, Poznan, Poland remigiusz.labudzki@put.poznan.pl

- device I/O (input/output), or communication links (e.g. RS-232) used to report the results of system,- lens for taking close-ups,- adapted to the system, specialized light source (such as LEDs, fluorescent lamps, halogen lamps,- software to the imaging and detection of features in common image (image processing algorithm) (fig. 2),- sync-sensor to detect objects (this is usually an optical or magnetic sensor), which gives the signal for the sampling and processing of image,- the regulations to remove or reject products with defects.Sync-sensor determines when a product (eg. running on a conveyor) has reached the position in which it can be inspected. The signal from the sensor starts the camera, which starts downloading the image of the product, and sometimes (depending on the sys- tem) gives a signal to synchronize the lighting in order to obtain a good image sharpness. Light sources are used in vision systems for lighting pro- ducts in order to offset the dark places and to minimi- ze the adverse effects of the emergence of conditions for the observation (such as shadows and reflections). Most of the panels to be used with LEDs.

Fig.1. A typical vision system operation [2]

Fig. 2. The latest software Easy Builder (Cognex) for total analysis of image

The image from the camera is captured by frame grabber, which is a digitalize device (included in

each intelligent camera or located in a separate tab on the computer) and convert image from a digital cam-era to digital format (usually up to two-dimensional array whose elements refer to the individual image pixels). The image in digital form is saved to com-puter memory, for its subsequent processing by the machine vision softwareDefine abbreviations and acronyms the first time they are used in the text, even if they have been defined in the abstract. Abbrevia-tions such as IEEE, SI, CGS, ac, dc, and ms do not have to be defined. Do not use abbreviations in the title unless they are unavoidable.Depending on the software algorithm, typically ex-ecuted several stages, making up the complete image processing. Often at the beginning of this process, the image is noise filtering and colours are converted from the shades of gray on a simple combination of two colours: white and black (binarization process). The next stages of image processing are counting, measuring and/or identity of objects, their size, de-fects, or other characteristics. In the final stage of the process, the software generates information about the condition of the product inspected, according to pre-programmed criteria. When does a negative test (the product does not meet the established requirements), the program gives a signal to reject the product, the system may eventually stop the production line and send information about this incident to the staff.

4. APPLICATION OF MACHINE VISIONMachine vision systems are widely used in the manu-facture of semiconductors, where these systems are carrying out an inspection of silicon wafers, micro-chips, components such as resistors, capacitors and lead frames [3].In the automotive machine vision systems are used in control systems for industrial robots, inspection of painted surfaces, welding quality control [4, 5], rapid-prototyping [6, 7], checking the engine block [8] or detect defects of various components. Check-ing products and quality control procedures may include the following: the presence of parts (screws, cables, suspension), regularity of assembly, of the proper execution and location of holes and shapes (curves, circular area, perpendicular surfaces, etc.), correct selection of equipment options for the imple-mentation of the quality of surface markings (manu-facturer's numbers and geographical detail), geomet-rical dimensions (with an accuracy of a single mi-cron) [2] the quality of printing).Beside listed above are other area to implement ma-chine vision. Fig. 3 shows the simplest arrangement of the machine vision measuring olive oil bottles on production lines. The online defect inspection method based on machine vision for float glass fabrication is shown in Fig. 4. This method realizes the defect detec-tion exactly and settles the problem of miss-detection under scurvinesss fabricating circumstance. Several digital line-scan monochrome cameras are laid above float glass to capture the glass image. The red LED

1 Remigiusz LABUDZKI, PhD, Poznan University of Technology, Piotrowo 3, 60-965 Poznan, [email protected]

Page 3: Ethan Fromespms.masfak.ni.ac.rs/end/papers/35. 293-THE USE OF... · Web viewInstitute of Mechanical Engineering, Poznan University of Technology, Piotrowo 3, Poznan, Poland remigiusz.labudzki@put.poznan.pl

light source laid under the glass provides illumination for grabbing the image. High performance computers are used to complete the inspection based on image processing.Another interesting proposition is use the machine vision system to validation of vehicle instrument cluster [10]. The machine vision system (Fig. 5) con-sists of a camera, lighting, optics and image pro-cessing software. A Cognex In-sight CCD vision sensor was selected for image acquisition and pro-cessing, which offers a resolution of 1600 x 1200 pixels and 64 MB flash memory. The acquisition rate of the vision sensor is 15 full frames per second. The image acquisition is through progressive scanning. The camera can work in a partial image acquisition mode, which provides flexibility for selecting image resolution and acquisition rate.

Fig. 3. The simplest arrangement of the machine vision measuring olive oil bottles on production lines [9]

Fig. 4. Float glass inspection system [10]

Fig. 5. System configuration for validation testing of vehicle instrument cluster [11]

The image processing software provides a wide lib-rary of vision tools for feature identification, verifica-tion, measurement and testing applications. The Pat-MaxTM technology for part fixturing and advanced

OCR/OCV tools for reading texts are available within the software. The primary source of illumina-tion is from LED ring lights with directional front lighting, which provides high contrast between the object and background. The selection of optical lens depends on the field of view and the working dis-tance. In this setting, a lens with a focal length of 12 mm is used.

5. IDENTIFICATION OF SELECTED CHARACTERISTICS OF ELBOWThe author made an attempt to identify the fill tube copper tin alloy. To realize this purpose the appropri-ate test bench was built. The identification was car-ried out using Basler camera connected to the com-puter with NI software. Using the capabilities of NI's software author decided to perform detection in three variants.

5.1.Pattern matching with distinguishing shades of grayPattern matching using image processing black and white, which gives each of the points of one of 256 shades of gray, and then recognize the pattern. For comparison - the processing of binary images are treated as black or white.

Fig. 6. Distinguishing shades of gray

5.2. Pattern Matching with color imagesThe basis for recognizing the pattern in the image is the original process of storing the image pattern. Remembering the pattern may cover the entire recor-ded image, or part of a limited manually to a frag-ment. Separation of the standard windows can accel-erate the process of searching the entire image in the search for a pop. The window scans the specified search area, starting from the upper left corner, end-ing at the bottom right to find a place that best suits the saved model.

1 Remigiusz LABUDZKI, PhD, Poznan University of Technology, Piotrowo 3, 60-965 Poznan, [email protected]

Page 4: Ethan Fromespms.masfak.ni.ac.rs/end/papers/35. 293-THE USE OF... · Web viewInstitute of Mechanical Engineering, Poznan University of Technology, Piotrowo 3, Poznan, Poland remigiusz.labudzki@put.poznan.pl

Fig. 7. Creating a pattern on a workpiece without tin5.3. Matching patterns with circlesThis method involves finding the edge on which to draw a circle. If the program will recognize a few points, after which the connection may be formed circle - draws him. The program searches for these points in a strictly defined by the user environment. In the case of an experiment carried out if the pro-gram recognized points in the test piece was a tin. Then, in the place where the tin was found by points, which belonged to the edge of the circle. If, however, does not detail the groove was filled with tin program does not draw a circle, which meant a defect part. The status of the inspection is set to FAIL if the pro-gram could not draw a circle and a PASS if the circle has been drawn.

Fig. 8. Lack of recognition of an appropriate amount of edge

6. CONCLUSION

Analyzing test results is not difficult to choose the best solution. The results obtained for a method which involves drawing a circle on the basis of the edge is definitely the best. 48 tests performed in this method were positive, that is, agree with reality. This represents as much as 96%. Only in two cases, the program poorly studied object recognized. The reason for this could be for example, inadequate lighting. However, the error rate is so low that the solution can be applied on the machine.Otherwise the case is when it comes to pattern matching. In this case, as many as 10 of 50 attempts resulted in an erroneous analysis. 20% error is too many to be the solution to enter the production hall. One can estimate that a similar margin of error in the

control of units have a man. There would therefore make sense to use the vision system, which would improve substantially no audit details. Negative res-ults of measurement may arise from the fact that we do not find two identical connectors filled with tin. Each of the surface, which creates the tin has a differ-ent structure. Therefore, the pattern was not always correctly compared to subsequent test details.Ended in complete failure to distinguish between degrees of greyness. Here, in comparison to previous methods, the number of correct negative diagnoses exceeds the diagnosis. As many as 32 attempts (64%) gave a negative result, which excludes this solution. Too many factors can influence the outcome of the experiment, because it is not suitable for use. The shade of tin is relatively similar, while the color of copper fittings may be in a significantly different.The results show that the analysis of the presence of an alloy of tin to copper tubes can join the many already existing machine vision applications such:- biometrics,- positioning,- industrial production on a large scale,- small-lot production of unique objects,- safety systems in industrial environments,- intermediate inspection (e.g. quality control),- visual control of inventory in the warehouse and

management systems (counting, reading bar codes, storage interfaces for digital systems),

- control of autonomous mobile robots,- quality control and purity of food products, - exploitation of bridges,- retail automation,- agriculture,- vision systems for blind people.

REFERENCES[1] Golnabi H, Asadpour A.: Design and application of

industrial machine vision systems. Robotics and Com-puter-Integrated Manuf., 23 (2007), 630–637.

[2] Zhang Z., Chen Z., Shi J., Jia F., Dai M.: Surface roughness vision measurement in different ambient light conditions. 15th Int. Conf. Mechatronics and Ma-chine Vision in Practice, Auckland, 2008.

[3] Bhuvanesh A., Ratnam M.: Automatic detection of stamping defects in lead frames using machine vision. Int. J. Adv. Manuf. Technology, 2007, pp 1201-1210.

[4] Tsai M., Ann N-J.: An automatic golf head robotic welding system using 3D machine vision system. Workshop on Advanced Robotics and Its Social Im-pacts, Taipei, 2008, pp 1-6.

[5] Liao G., Xi J.: Pipeline weld detection system based on machine vision. 9th Int. Conf. on Hybrid Intelligent Systems, Shenyang, 12-14 August 2009, pp 325-328.

[6] See A.: Rapid prototyping design and implementation of a motion control integrated with an inexpensive machine vision system. Instrumentation and Measure-ment Technology, 3, Ottawa, 2005.

[7] Cheng Y., Jafari M.: Vision-based online process con-trol in manufacturing applications. Trans. on Automa-tion science and engineering, 5, 2008, 140-153.

1 Remigiusz LABUDZKI, PhD, Poznan University of Technology, Piotrowo 3, 60-965 Poznan, [email protected]

Page 5: Ethan Fromespms.masfak.ni.ac.rs/end/papers/35. 293-THE USE OF... · Web viewInstitute of Mechanical Engineering, Poznan University of Technology, Piotrowo 3, Poznan, Poland remigiusz.labudzki@put.poznan.pl

[8] Yradley E.: New generation machine vision: coping with changes in light and surface quality. Computing & Control Engineering Journal, 16(2005)6, pp 26-31.

[9] Taouil K., Chtourou Z., Kamoun L.: Machine vision based quality monitoring in olive oil conditioning. Image processing theory, tools and applications, Sousse, 2008, 1-4.

[10] Peng X., Chen Y., Yu W., Zhou Z., Sun G.: An online defects inspection method for float glass fabrication based on machine vision. Int. J. Adv. Manuf. Techn., 39(2008), pp 1180-1189.

[11] Huang Y., Mouzakitis A., McMurran R., Dhadyala G., Jones R.: Design validation testing of vehicle instru-ment cluster using machine vision and hardware-in-the-loop. Int. Conf. on Vehicular Electronics and Safety, Columbus, 2008, pp. 265-270.

1.

1 Remigiusz LABUDZKI, PhD, Poznan University of Technology, Piotrowo 3, 60-965 Poznan, [email protected]