Potting AOI multi-point recognition detection control system and image data processing method
By introducing a multi-point identification and detection control system into the AOI inspection equipment, combined with three-axis drive control and visual inspection, the problem of being unable to classify, identify and process products of different specifications and models in the existing technology is solved, and efficient and fast identification and inspection are achieved. and precise processing, adapting to product mixing production status, and supporting continuous operation of production.
Patent Information
- Application Number
- CN202410895012.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-05
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-07-05
AI Technical Summary
Existing AOI testing equipment cannot classify, identify and process image data for products of different specifications and models. Especially when products are mixed and produced, it is difficult to achieve efficient, fast identification, detection and accurate processing.
A Potting AOI multi-point identification and detection control system is designed, including a control system, an image processing system and a three-axis drive mechanism. The product carrier is transported to the pre-inspection area through a conveyor device, and tracking and identification reading components and product identification components are used. Carry out identification and detection, combined with three-axis drive control and visual inspection, to achieve accurate identification of product models and image data processing.
It achieves efficient, fast identification and detection of multiple product models and accurate image data processing, prevents product misdetection, supports continuous production operations, and reduces labor costs.
Smart Images

Figure CN118443681B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of image processing, and more specifically, relates to a Potting AOI multi-point recognition detection control system and an image data processing method. Background Art
[0002] The Chinese full name of AOI is automatic optical inspection, which is a device that detects common defects encountered in production based on optical principles. The general process of AOI inspection equipment is the same, mostly through graphic recognition. That is, the standard digital image stored in the AOI system is compared with the actual detected image to obtain the inspection result. Principle of AOI inspection equipment: When automatically inspecting, the AOI inspection equipment machine automatically scans the PCBA product through a high-definition CCD camera, collects images, and compares the test points with the qualified parameters in the database. After image processing, the defects on the target product are checked, and the defects are displayed / marked through a display or automatic mark for maintenance personnel to repair and improve the process.
[0003] In the prior art, when AOI inspection equipment processes image data, it usually uniformly scans and identifies the data of the entire disk of equipment. It can only scan and identify products of the same specification or the same model, and cannot cope with the situation of mixed product production, and cannot realize product classification identification and image data processing. Summary of the invention
[0004] The present invention aims at solving the technical problems existing in the prior art and provides a Potting AOI multi-point recognition detection control system and an image data processing method.
[0005] In order to solve the above technical problems, the present invention first provides a Potting AOI multi-point identification and detection control system, including a control system, an image processing system, and a three-axis drive mechanism. The image processing system is connected to the three-axis drive mechanism, and also includes a product carrier. The product carrier is transported to a pre-detection area through a conveying device. A number of detection stations are arranged on the product carrier, and a tracking, identification and reading component for distinguishing the models of products to be inspected is provided on the product carrier. A product identification component is provided on the product to be inspected. The control system controls the action of the three-axis drive mechanism, thereby driving the image processing system to perform three-axis movement, and sequentially identifies and detects the tracking, identification and reading component and the product identification component.
[0006] Preferably, the image processing system includes an image acquisition mechanism and a visual detection mechanism, and the image processing system is connected to a human-computer interaction control mechanism of the control system.
[0007] The present invention also provides a multi-point image data processing method, comprising:
[0008] The product carrier carrying the products to be inspected is transported to the pre-inspection area by a conveying device, a three-axis coordinate system of the product carrier is defined, and the position coordinates of each product to be inspected are assigned;
[0009] The image processing system is controlled by the control system. After confirming the position information of the product carrier and the product to be inspected, the image processing system is directly controlled by the IO of the control system to collect images of the product to be inspected on the product carrier in sequence.
[0010] The three-axis drive mechanism realizes closed-loop communication. The control system controls the action of the three-axis drive mechanism to realize feedback of the coordinate value of the three-axis drive mechanism. The control system displays the position of the product to be inspected on the product carrier in real time, controls the image processing system to perform image acquisition and information processing, and outputs the model information of the product to be inspected.
[0011] The image processing system is used to read the tracking and identification reading parts of the product carrier, determine the product carrier model, and output the product category information.
[0012] Preferably, the control system includes a PLC and a PC, and when the identification and detection system performs identification and detection on the product, it also includes:
[0013] Each product to be inspected is provided with two identification areas, A and B. The product carrier is provided with a program number XX, the tens digit is the row of the product carrier, and the ones digit is the major category of the product carrier;
[0014] The PC controls the visual inspection mechanism to identify the tracking and recognition reading components of the product carrier, confirms the product category information, and the PLC controls the three-axis drive mechanism to move to the position A of the first product on the product carrier. The PLC feedback point A is completed and triggers the image processing system to collect image information. The PC reads the image information collection information and obtains the first discrimination result.
[0015] If the first judgment result is that the product is suitable for PLC motion trajectory X1, the recipe of program X1 is called by PLC to control the motion trajectory of the servo motor of the three-axis drive mechanism, and in the process, the image acquisition mechanism is continuously triggered to perform image acquisition;
[0016] If the first judgment result is that the product is not suitable for the PLC motion trajectory X1, the three-axis drive mechanism is controlled by the PLC to move to the position B of the first product on the product carrier, the PLC feedback point B is completed and triggers the image processing system to collect image information, and the PC reads the image information collection information to obtain the second judgment result;
[0017] If the second judgment result is that the product is not suitable for the PLC motion trajectory X2, then continue to judge X3, X4, ...Xn in sequence until the product is suitable for the PLC motion trajectory;
[0018] If the second judgment result is that the product is suitable for PLC motion trajectory X2, the recipe of program X2 is called by PLC to control the motion trajectory of the servo motor of the three-axis drive mechanism, and in the process, the image acquisition mechanism is continuously triggered to perform image acquisition;
[0019] The PLC feedback indicates that the trajectory is completed and several images are collected. The PC reads the image information in turn and confirms the product model. The PC image processing is completed and the feedback process ends.
[0020] Preferably, when the identification and detection system performs identification and detection on the product, it also includes:
[0021] According to the first product on the product carrier, confirm the product model, and select the AOI program to run according to the tracking and identification reading component information of the product carrier. The AOI program is GET product Variant, and the product variant is YY;
[0022] Compare the types of all products in YY in turn according to the procedures of each product variant YY, confirm the product comparison score, and confirm the final product type based on each comparison score;
[0023] Confirm the results for each position on the product carrier by comparing it to all products on that product carrier, based on the type of the first product.
[0024] Preferably, only a single variant of the AOI program is run during the process when confirming the results for each location on the product carrier.
[0025] Preferably, a three-axis coordinate system of the product carrier is defined, and the XYZ coordinate axes are consistent with the display direction of the human-computer interaction control mechanism;
[0026] Each Y row on each product carrier has m products, where m is 8, a fixed value. The number of product rows on the product carrier is defined as n, X*Y=n*8, where n is 1-6.
[0027] Preferably, when the identification and detection system performs identification and detection on the product, it also includes:
[0028] When the motor of the three-axis drive mechanism is running, the PLC obtains the program number to be run from the PC;
[0029] Change the current motion trajectory, debug the current trajectory with the trajectory database data, and compare the YY database, motion trajectory, XYZ coordinates of each point, and running speed in sequence to obtain the comparison result; the trajectory database includes multiple standard trajectory images that correspond to the product to be inspected;
[0030] After confirming that the data in the trajectory database covers the previous current motion trajectory, execute the current running trajectory;
[0031] After the trajectory movement is completed, the feedback is OK.
[0032] Preferably, the product identification component is a dent mark set on the product to be inspected, and the size of the product identification component is 3-7mm; and when the image acquisition mechanism moves following the three-axis driving mechanism, it meets the exposure time * object movement speed < movement direction accuracy requirement.
[0033] Preferably, when the identification and detection system performs identification and detection on the product, the error prevention measures include:
[0034] The system detects the tracking and identification reading components on the product carrier and the product identification components on the product to be inspected;
[0035] After the image acquisition mechanism acquires images of each position of the product to be inspected, it will compare the results. If more than two product models appear, an error reminder will be issued;
[0036] The AOI system will determine the relative score of each product, and non-compliance will send a signal to the back-end process;
[0037] After the control system drives the three-axis drive mechanism to complete a cycle of movement, it will check the number of information collected in each row of the product carrier. If the number does not match, the system will display an error prompt.
[0038] Compared with the prior art, the present invention has the following beneficial effects:
[0039] The present invention conveys the product carrier carrying the product to be inspected to the pre-inspection area through a conveying device, and the control system controls the image processing system to scan and identify each product to be inspected and each product identification component and tracking identification reading component on the product carrier, and obtains the identity information of each product carrier and the product to be inspected in turn, and the AOI image processing system detects and identifies each product, and then outputs the information. Therefore, under the precise coordination of each system, the control system controls the three-axis drive mechanism to change the position and height of the image acquisition of the image processing system, achieving precise control and strong flexibility, realizing the combination of three-axis drive control and visual inspection, and can perform individual identification and inspection on each product on the product carrier, quickly and clearly obtain the product model and specific quantity, and when the product is mixed, it can be detected separately through the tracking identification reading component and product identification component on the product carrier and the product to be inspected, effectively preventing product misdetection, and automatically realizing efficient and quick identification and detection of multiple product models and precise processing of image data through the AOI detection control system.
[0040] In addition, the present invention is connected with the front and rear workstations and the rear-end workstation through a conveying device. While realizing the transportation of product carriers, it adapts to the production line, automatically identifies the product model, and transmits the detection result to the subsequent Potting production station. Different potting treatments are performed according to the differences in product carriers and product models to realize continuous operation and production of products. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0042] Figure 1 It is a structural schematic diagram of the multi-point position identification detection control system of the present invention;
[0043] Figure 2 It is a structural schematic diagram of the product carrier of the present invention;
[0044] Figure 3 A schematic diagram of the detection principle of the image data processing method provided by an embodiment of the present invention;
[0045] Figure 4 A schematic diagram of a flow chart of an image data processing method provided by an embodiment of the present invention;
[0046] Figure 5 A schematic diagram of a three-axis coordinate system displayed on a display interface of the control system of the present invention;
[0047] Figure 6 It is a schematic diagram of the three-axis servo running trajectory on the product carrier of the present invention;
[0048] Figure 7 This is a vt relationship diagram of the camera flying shot of the present invention;
[0049] Figure 8a This is a schematic diagram of the information displayed on the PC side when performing image recognition in the present invention Figure 1 ;
[0050] Figure 8b This is a schematic diagram of the information displayed on the PC side when performing image recognition in the present invention Figure 2 ;
[0051] Fig. 9 This is a schematic diagram of the information interface of the PC product carrier of the present invention;
[0052] Fig.10 It is a control logic flow diagram of the control system of the present invention;
[0053] Fig.11a Physical identification of products to be inspected Figure 1 ;
[0054] Fig.11b Product identification after image acquisition and AOI processing Figure 1 ;
[0055] Fig.11c Physical identification of products to be inspected Figure 2 ;
[0056] Fig.11d Product identification after image acquisition and AOI processing Figure 2 ;
[0057] Fig.12 This is a schematic diagram of the image processing flow of the control system of the present invention;
[0058] Fig.13a The product type and image schematic diagram corresponding to product variant 21 of the present invention;
[0059] Fig.13b Schematic diagram of product type and image corresponding to product variant 22 of the present invention;
[0060] Fig.13c The product type and image schematic diagram corresponding to product variant 23 of the present invention;
[0061] Fig.13d The product type and image schematic diagram corresponding to product variant 31 of the present invention;
[0062] Fig.14 It is a schematic interface showing the image program of all products on the PC side when the product carrier of the present invention is identified;
[0063] Fig.15 It is a schematic diagram of the trajectory formula flow of the three-axis servo motor of the present invention;
[0064] Fig.16a A schematic diagram of a display interface for changing program numbers of two rows of products on a product carrier of the present invention;
[0065] Fig.16b A schematic diagram of a display interface for changing program numbers of three rows of products on a product carrier of the present invention;
[0066] Fig.16c It is a schematic diagram of the display interface of the change program number of 4 rows of products on the product carrier of the present invention.
[0067] Explanation of symbols in the figure:
[0068] 1. Control system; 11. Display panel; 2. Image processing system; 210. Camera; 220. Light source; 3. Three-axis drive mechanism; 4. Product carrier; 410. Inspection station; 5. Conveying device; 6. Products to be inspected. DETAILED DESCRIPTION
[0069] In order to make the technical problems, technical solutions and beneficial effects to be solved by the present application clearer, the following is a further detailed description of a Potting AOI multi-point position recognition detection control system and an image data processing method provided by the present application in combination with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0070] Embodiment 1
[0071] See also Figure 1 , Figure 2 , Figure 1 A schematic structural diagram of a Potting AOI multi-point identification and detection control system provided for an embodiment of the present invention includes a control system 1, an image processing system 2, and a three-axis drive mechanism 3. The image processing system 2 is connected to the three-axis drive mechanism 3, and also includes a product carrier 4. The product carrier 4 is transported to a pre-detection area through a conveying device 5. A plurality of detection stations 410 are arranged on the product carrier 4, and a tracking and identifying reading component for distinguishing the models of products to be inspected is arranged on the product carrier 4. A product identification component is arranged on the product to be inspected 6. The control system 1 controls the action of the three-axis drive mechanism 3, thereby driving the image processing system 2 to perform three-axis motion, and sequentially identifies and detects the tracking and identifying reading component and the product identification component.
[0072] The present invention conveys the product carrier 4 carrying the product to be inspected 6 to the pre-inspection area through the conveying device 5, and the control system 1 controls the image processing system 2 to scan and identify each product to be inspected 6 and each product identification component and tracking identification reading component on the product carrier 4, and obtains the identity information of each product carrier 4 and the product to be inspected 6 in turn, and the AOI image processing system detects and identifies each product, and then outputs the information. Therefore, under the precise coordination of each system, the control system 1 controls the three-axis drive mechanism 3 to change the position and height of the image acquisition of the image processing system 2, so as to achieve precise control and strong flexibility, realize the combination of three-axis drive control and visual inspection, and can perform individual identification and inspection on each product on the product carrier 4, quickly and clearly obtain the product model and specific quantity, and when the product is mixed, it can be detected separately through the tracking identification reading component and product identification component on the product carrier and the product to be inspected, effectively preventing product misdetection, and automatically realizing efficient and quick identification and detection of multiple product models and accurate processing of image data through the AOI inspection control system.
[0073] In addition, the present invention is connected with the front-end station and the back-end station through the conveying device 5. While realizing the conveyance of the product carrier 4, it adapts to the production line, automatically identifies the product model, and transmits the detection result to the subsequent Potting production station. Different potting treatments are performed according to the different product carriers and product models to realize continuous operation and production of the product.
[0074] Specifically, in this embodiment, the Potting AOI multi-point position recognition detection control system includes:
[0075] Control system 1, each device is electrically connected to the control system, and the integrated control of each software and hardware in the detection process is realized through the control system 1, so as to realize intelligent and automatic detection and identification of product models;
[0076] The control system includes a PLC, a PC and a human-machine interaction control mechanism for human-machine interaction. The human-machine interaction control mechanism is provided with a display panel 11. The display panel 11 can display the identification image of each product in real time. The human-machine interaction control mechanism can be used to control and adjust and display product information such as the target image. At the same time, the display panel 11 also synchronously displays the actual direction of the XYZ axis of the three-axis drive mechanism and various parameter information;
[0077] Image processing system 2, used for image acquisition and information recognition of products and product carriers. The image processing system is connected to the human-machine interactive control mechanism of the control system, which is convenient for adjusting the detection process parameters according to different products and timely observing the detection results;
[0078] The image processing system 2 includes an image acquisition mechanism and a visual inspection mechanism. The image acquisition mechanism includes a camera 210 and a light source 220. The camera 210 is used for product identification and image acquisition, and the camera 210 is fixedly arranged on the three-axis driving mechanism 3 and moves with the three-axis driving mechanism 3. The light source 220 is used to provide the camera 210 with the illumination required for image acquisition, and the brightness of the light source 220 can be adjusted according to the different models of the products to be inspected. The visual inspection mechanism includes a code reader, which is used to read the tracking and identification reading components on the product carrier, and then transmit them to the PC to identify the product carrier and the model information of the product.
[0079] A three-axis driving mechanism 3, which is used to drive the camera 210 of the image processing system 2 to move in three axes. The three-axis driving mechanism 3 includes an X-axis driving mechanism, a Y-axis driving mechanism, and a Z-axis driving mechanism. The three-axis driving mechanism 3 includes a servo motor and a movable slide. The movable slide includes a guide rail and a slider. The servo motor drives the movable slide to move, and the servo motor is connected to the control system. The servo motor flexibly drives the camera to perform image recognition and information collection for each product on the product carrier;
[0080] The product carrier 4 is used to support and fix the product 6 to be inspected and to carry the product to move. A plurality of inspection stations 410 are evenly arranged horizontally and vertically on the product carrier 4, and the product 6 to be inspected is installed on the inspection station 410;
[0081] The product carrier 4 is designed according to the product it carries. The product carrier 4 has different types according to different product models, and the number of detection stations set on the same model of product carrier 4 is also classified in multiple ways. Multiple product carriers 4 and the control system 1 have high adaptability.
[0082] The conveying device 5 is arranged at the lower end of the three-axis driving mechanism 3 and is arranged horizontally. The product carrier 4 is movably connected to the conveying device 5, and the product carrier 4 can be moved horizontally in the identification detection control system through the conveying device 5, which is convenient for docking and conversion processing of the front and rear end stations.
[0083] Furthermore, in this embodiment, multiple automatic and manual adjustment modes of equipment operation can be realized through the human-computer interaction interface of the control system 1. In the automatic mode, some operations are grayed out and cannot be manually operated, thereby ensuring detection accuracy and avoiding misoperation intervention.
[0084] In this embodiment, the control system 1 controls the movement of the three-axis drive mechanism 3, and uses the three-axis drive mechanism 3 in the XYZ directions to drive the camera 210 to identify and collect information on each product carrier 4 and each product to be inspected 6 on the product carrier 4, which solves the problem that the prior art can only collect images of the entire tray of products as a whole, and can accurately identify any point product on the product carrier; and the three-axis drive mechanism 3 can realize the arbitrary change of the horizontal position and vertical height of the camera 210 in the detection space. The camera 210 performs visual flying shots of each product to be inspected on the product carrier during high-speed movement, and drives the servo motor under the action of the control system 1 to perform high-precision movement control. After repeated back and forth movement, the shooting point of the camera 210 will not be offset, and the three-axis drive mechanism 3 cooperates to realize the orderly movement of the camera 210 in the detection space.
[0085] In this embodiment, the selection and connection relationship of each driving component of the three-axis driving mechanism adopted are conventional technical means in the field. Those skilled in the art can make adjustments according to actual needs, and the connection position relationship and working principle will not be described in detail here.
[0086] In this embodiment, the product identification component on the product to be inspected 6 is the coded character information set on the surface of the product, and the coded character represents the model information of each product. The tracking and identification reading component on the product carrier 4 is the DMC code set on the product carrier. The DMC code represents the type of each type of product carrier and is used to determine the major category of the product.
[0087] Furthermore, in the present embodiment, there are at least 50 types of products to be inspected, and the characters of the products themselves are not only small in size but also similar to each other, which increases the difficulty of detection compared to the prior art; and the letter size of the product's coding characters is between 3-7mm, the product's coding characters are only simple indentation marks, and the identification position of each type of product is in different areas of the product, which further increases the difficulty of detection.
[0088] Furthermore, in this embodiment, the product to be inspected is an automotive electronic handle component. Since the surfaces of different models of products have different types such as black shell, milky white shell, transparent shell, etc., when acquiring images, parameters such as the camera exposure time, camera gain, and light source brightness need to be adjusted according to the different acquired products.
[0089] Embodiment 2
[0090] Please refer to Figure 3 , Figure 4 The present invention also provides a multi-point image data processing method. Figure 3 A schematic diagram of the detection principle of the image data processing method provided in the embodiment of the present application, Figure 4 A schematic diagram of a flow chart of an image data processing method provided in an embodiment of the present application, from Figure 4 It can be seen that the image data processing method provided in this embodiment includes the following steps 101-105.
[0091] Step 101: transport a product carrier carrying products to be inspected to a pre-inspection area through a conveying device, define a three-axis coordinate system of the product carrier, and assign position coordinates to each product to be inspected.
[0092] In this embodiment, the products processed and assembled at the front-end station of the system are transferred to the image recognition and inspection station, and the product model is automatically identified and inspected through the detection control system, and the detection results are transmitted to the potting processing station at the back end, so that accurate product injection processing can be achieved according to different product models.
[0093] Further, such as Figure 5 As shown, when defining the three-axis coordinate system of the product carrier, the XYZ coordinate axis is consistent with the visual direction of the display interface of the human-computer interaction control mechanism;
[0094] Assume that each Y row on each product carrier has m products, m is 8, which is a fixed value. The number of rows varies for different product carrier models. XY forms a planar array, and the number of product rows on the product carrier is defined as n. Then X*Y=n*8, where n is (1-6).
[0095] like Figure 5As shown, the coordinate axis interface has four rows of products, so X has 4 coordinate values, and because the acquisition positions of the 1st and 8th product images in the Y direction are not fixed, they are defined as photo 1 and photo 8 respectively.
[0096] like Figure 6 As shown, 201 is the product carrier area, 202 is the camera field of view, and 203 is the size of the product area. The coded character information on the product may be at any position in the product area. The camera may have a blind spot, so mobile recognition is required. There is a program number of the motion trajectory, such as: 41, 42, 43, 44...;
[0097] Each product to be inspected is provided with two identification areas, A and B. The product carrier is provided with a program number XX, where the tens digit is the row of the product carrier, i.e. n, and the ones digit is the major category of the product carrier, from Figure 5 It can be seen that the product carriers in program number 41 and row 4 are divided into 41, 42, 43, 44..., and the human-computer interaction interface will display the current running track program number and the track program number that needs to be changed in real time.
[0098] Step 102: Control the image processing system through the control system, confirm the position information of the product carrier and the product to be inspected, and then use the PLC IO to directly control the image processing system to sequentially capture images of the product to be inspected on the product carrier.
[0099] In this embodiment, the PLC IO is used to directly control the camera to take pictures, which can greatly reduce the delay caused by controlling the camera to take pictures through the PC and improve the stability of image acquisition at each product point.
[0100] Furthermore, when the control system controls the three-axis drive mechanism to drive the camera to collect images, it adopts a high-speed flying shooting state to take pictures. The system needs to control the camera to take pictures of the product continuously at high speed and at equal intervals, that is, using visual flying shooting.
[0101] Vision flying shooting uses hardware output to trigger the camera to take pictures in a very short time, and the object being tested is in a state of relative motion during the shooting process. Vision flying shooting not only requires hardware precise output function for high-speed and precise trigger control, but also requires the camera's shooting response time to be fast, with short exposure time, high frame rate, and short software processing time.
[0102] While ensuring accuracy, there is no need to slow down. The flying shot vt relationship diagram is as follows Figure 7 shown.
[0103] The technical difficulty of flying photography lies in the fact that as long as the object is moving, there will be ghosting when the camera is shooting, and the ghosting will affect the flying photography. If you want the ghosting to not affect the flying photography, the following conditions must be met: exposure time * object movement speed < movement direction accuracy requirement.
[0104] In this embodiment, the exposure time of the camera is set to 300us, the transmission speed is 400mm / s, the camera resolution is 2464*2056, the field of view is 50mm*25mm, and the accuracy requirement is that the smear does not exceed 10 pixels. Then:
[0105] Exposure time*object speed=300*400 / 1000000=0.12mm
[0106] The horizontal pixel accuracy requirement is =50 / 2464*10=0.203mm
[0107] Since 0.12mm<0.203mm, the system meets the accuracy requirements of flying photography, can realize visual flying photography, and achieve high-speed image information collection for each product on the product carrier.
[0108] Step 103: The PC reads the photos captured by the camera and performs subsequent information transmission processing.
[0109] In this embodiment, when performing image recognition, the PC terminal displays information such as Figure 8a , Figure 8b As shown, 301 is the real-time detection picture of the current product collected, 302 is the position of the product to be inspected on the product carrier and the product identification determination information, and 303 is the progress bar of the product during the image recognition process.
[0110] TM-L is the model of the material itself, which corresponds to the model identified by the system; when the progress bar is full, it means that all product positions of the current product carrier have been detected. Each time a product is identified, the progress bar will increase dynamically; Pos is the position of the product in the product carrier, Score is the score obtained by product identification, and Result is the final judgment result. As shown in the figure, the current product carrier contains 24 product positions, and the corresponding identification and detection scores and judgment results of each position product. The following table is the corresponding explanation, see Table 1 for details.
[0111] Table 1 Identification test scores and judgment results corresponding to product positions
[0112]
[0113] Furthermore, the real-time image in the 301 image area will be automatically refreshed. It will be refreshed once for each material detected. The current product carrier is equipped with 24 products, that is, it will be refreshed 24 times. The image will be refreshed to the product image at position 16; the position, score and judgment result in the 302 table area will be pulled down to refresh in turn. Currently, position 16 is detected, and the subsequent positions 17, 18, and 19 have not been captured and are therefore not displayed; the 303 progress bar shows the detection progress of all the product quantities carried by the current product carrier.
[0114] Step 104, the PLC controls the movement of the three-axis servo motor, the encoder of the three-axis servo motor feeds back the coordinate value to the PLC in real time, the control system displays the position of the product to be inspected on the product carrier in real time, the camera collects images, and the control system outputs the model information of the product to be inspected.
[0115] In this embodiment, the three-axis servo motor realizes closed-loop communication, the PLC controls the movement of the three-axis servo motor, and the motor encoder feeds back the coordinate value to the PLC in real time, thereby achieving extremely high accuracy and responsiveness during high-speed movement. The position of the product on the product carrier is inferred based on the coordinate value of the motor, and a photo is taken immediately.
[0116] Step 105: Read the DMC code on the product carrier through a barcode reader and transmit it to the PC for determining the product carrier model and outputting the product category information.
[0117] In this embodiment, Fig. 9 As shown, this is the product carrier utilization information, where 401 is the product carrier information, 402 is the total number of times the corresponding product carrier is used in the production process, 403 is the pass rate of model identification of the product carried by the product carrier, 404 is the pie chart data of the number of times each product carrier is used, and 405 is the model information of different models of product carriers.
[0118] Furthermore, the data in 404 will be automatically refreshed with the number of productions. Different colors represent different product carriers, and the numbers inside the colors are the number of times the product carriers have been used. The information in 405 is associated with the 404 pie chart, and the colors correspond to it, accurately identifying the model information of different product carriers.
[0119] Furthermore, in this embodiment, the system corresponds to different formulas for different product models, and can match and retrieve them in real time, which is convenient to operate and realizes intelligent detection.
[0120] In this embodiment, the display interface is not only comfortable and beautiful, but also clear, allowing users to quickly and clearly obtain product models and quantities. Statistics and record-keeping of various production data of materials, product carriers and equipment operation can be performed, and the test data set is automatically saved when the test is completed, which is convenient for unified storage and management of data. The control interface is controlled by the control system, and the test result report can be produced by clicking the interface button, so that the work after the test is completed can be highly efficient.
[0121] The multi-point identification detection control system and image data processing method provided in the present application meet the mixing production status of fully automatic production assembly lines and production lines. There is no need to stop the production line during mixing production, and continuous production can be achieved. The control system controls the image processing system and the three-axis drive mechanism to be linked, so as to realize automatic flying image recognition and product model identification of each product on the product carrier, and transmits the detection results to the subsequent glue injection production station through the control system. At the same time, the operating information of each device in the system can be effectively monitored and counted.
[0122] In addition, the present invention controls the position of the camera through a three-axis servo motor, photographs each product one by one, relies on the product's coding characters to distinguish the product model, and can perform OK / NG judgment at the same time as the inspection by registering the photo, thereby shortening the inspection time of various manufacturing sites such as condition setting of trial products or warehousing inspection, automatically determining the measurement results, and realizing an automatic inspection function without manual setting. It is a truly "fully automatic AOI inspection equipment", which improves automation and inspection efficiency and reduces labor costs.
[0123] Furthermore, as a preferred embodiment of the present invention, when the identification and detection system performs identification and detection on a product, it also includes:
[0124] The PC controls the visual inspection mechanism to identify the tracking and recognition reading components of the product carrier, confirms the product category information, and the PLC controls the three-axis drive mechanism to move to the position A of the first product on the product carrier. The PLC feedback point A is completed and triggers the image processing system to collect image information. The PC reads the image information collection information and obtains the first discrimination result.
[0125] If the first judgment result is that the product is suitable for PLC motion trajectory X1, the recipe of program X1 is called by PLC to control the motion trajectory of the servo motor of the three-axis drive mechanism, and in the process, the image acquisition mechanism is continuously triggered to perform image acquisition;
[0126] If the first judgment result is that the product is not suitable for the PLC motion trajectory X1, the three-axis drive mechanism is controlled by the PLC to move to the position B of the first product on the product carrier, the PLC feedback point B is completed and triggers the image processing system to collect image information, and the PC reads the image information collection information to obtain the second judgment result;
[0127] If the second judgment result is that the product is not suitable for the PLC motion trajectory X2, then continue to judge X3, X4, ...Xn in sequence until the product is suitable for the PLC motion trajectory;
[0128] If the second judgment result is that the product is suitable for PLC motion trajectory X2, the recipe of program X2 is called by PLC to control the motion trajectory of the servo motor of the three-axis drive mechanism, and in the process, the image acquisition mechanism is continuously triggered to perform image acquisition;
[0129] The PLC feedback indicates that the trajectory is completed and several images are collected. The PC reads the image information in turn and confirms the product model. The PC image processing is completed and the feedback process ends.
[0130] Further, such as Figure 6 , Fig.10 As shown, when the identification and detection system performs identification and detection on a product, the control system control logic includes the following steps.
[0131] First, the product carrier carrying the products to be inspected is transported to the pre-inspection area through the conveying device and fixed by the system lifting mechanism; the PC controls the code reader to identify the DMC code of the product carrier, the PC confirms the product category information, and synchronously adjusts the camera parameters such as camera exposure time, camera gain and light source brightness.
[0132] In this embodiment, the light source is set on the top of the product carrier. The light source on the top comes from all corners. The lighting is consistent on the entire concave and convex surface of the product, and the light distribution is uniform, which can achieve a uniform shadowless lighting effect; and the light source is connected to a programmable light source controller, which is connected to the control system to achieve mutual communication with the PC. It can intelligently adjust the brightness of different light sources according to different models of product carriers, and cooperate with the camera to obtain the optimal shooting environment.
[0133] Camera gain refers to the process of electronically amplifying the image signal. In this embodiment, a CCD used for image processing is provided to amplify the signal when shooting in a dark place, thereby enhancing the brightness effect of the detection environment.
[0134] Moreover, the present application automatically performs contrast and sharpening processing on the captured image. The contrast acts on the entire area and has a greater impact on the overall brightness and darkness of the photo. After the contrast is increased, the bright areas of the photo are brighter and the dark areas are darker, thus widening the contrast. Sharpening is mainly achieved by adding black and white high-contrast line "isolation zones" on both sides of the edge to make the edge look more prominent and sharp, thereby solving the problem of difficulty in detecting product edges and low detection accuracy, and eliminating the misidentification of the presence or absence of products at the edge of the product carrier.
[0135] Depend on Figure 11a-Figure 11d It can be seen that under the effect of visual flying, AOI processing is carried out through the control system control, and specific product models are analyzed through data. Not only is the detection accuracy for each product high, but the image is processed by visual software to make the coded characters of each product clearly visible.
[0136] like Fig.10As shown, the PLC receives the servo motion program number 41, and the PLC controls the three-axis servo motor to move to position A of the first product on the product carrier. The PLC feedback point A is completed and triggers the camera to collect image information. The PC reads the camera photo to confirm the product model and obtains the first judgment result.
[0137] If the first judgment result is that the product is suitable for PLC motion trajectory 41, the recipe of program No. 41 is called by PLC to control the motion trajectory of the three-axis servo motor, and in the process, the camera is continuously triggered to collect images;
[0138] If the first judgment result is that the product is not suitable for PLC motion trajectory 41, the three-axis servo motor is controlled by PLC to move to position B of the first product on the product carrier. The PLC feedback point B is completed and triggers the camera to collect image information. The PC reads the camera photo information, confirms the product model, and obtains the second judgment result.
[0139] If the second judgment result is that the product is not applicable to the PLC motion trajectory 42, then the judgments 43, 44, ... 48 are continued in sequence until the product is applicable to the PLC motion trajectory;
[0140] If the second judgment result is that the product is applicable to PLC motion trajectory 42, the PLC calls the recipe of program No. 42 to control the motion trajectory of the three-axis servo motor, and in the process, continuously triggers the camera to collect images; the PLC feedback shows that the trajectory is completed, and 4*8=32 photos are taken. The PC reads the 32 photos in turn and confirms the detailed model of the product. The PC image processing is completed, and the feedback process ends. At the same time, the PLC controls the three-axis servo motor to return to the initial position, and the feedback process ends.
[0141] Furthermore, as a preferred embodiment of the present invention, when the identification and detection system performs identification and detection on a product, it also includes:
[0142] According to the first product on the product carrier, confirm the product model, and select the AOI program to run according to the tracking and identification reading component information of the product carrier. The AOI program is GET product Variant, and the product variant is YY;
[0143] Compare the types of all products in YY in turn according to the procedures of each product variant YY, confirm the product comparison score, and confirm the final product type based on each comparison score;
[0144] Confirm the results for each position on the product carrier by comparing it to all products on that product carrier, based on the type of the first product.
[0145] In this embodiment, the image processing flow includes shooting, image data transmission, image recognition processing and output.
[0146] Shooting: Using light sources to assist the camera to take photos at high speed, it is possible to capture images with good focus and contrast.
[0147] Image data transmission, quickly sending the captured image data to the control system for processing;
[0148] Image recognition processing, including preprocessing and main processing. Preprocessing is the processing of data to the most suitable image for measurement processing, mainly including lighting correction, binarization, filtering and color extraction processing; main processing is the processing method that meets the purpose of detection in a high-precision / high-speed manner, mainly including area detection, model search and edge mode of area, image and position;
[0149] Output, can correspond to all control devices communication mode, through the tolerance setting, determine the output result data.
[0150] Specifically, Fig.12 As shown, when the recognition and detection system performs recognition and detection on a product, the control system performs image processing including the following steps.
[0151] The PC transmits the camera parameters and the brightness of the light source, and synchronously adjusts the camera parameters such as camera exposure time and camera gain and the brightness of the light source according to different product models.
[0152] According to the first product on the product carrier, confirm the product model, and select the AOI program to run according to the DMC code on the product carrier, product variants 21, 22, 23, 31, 32... and so on. Here, the AOI program is GET product Variant, confirm the product variant.
[0153] like Figure 13a-13d , giving examples of the product types and images corresponding to product variants 21, 22, 23, and 31 respectively.
[0154] After confirming the product variants, compare the types of all products in 21, 22, 23, 31... in sequence according to the procedures of program numbers 21, 22, 23, 31..., confirm the comparison score of each product, and confirm the final product type based on each comparison score.
[0155] Then, based on the type of the first product, it is compared with all the products on the product carrier to confirm the results of each position of the product carrier. Here, the AOI program is GET Pos Result, which confirms the results of each product on the product carrier.
[0156] like Fig.14 As shown, the left area in the figure is the image program of all current products, and the right area in the figure is the detailed display of the program.
[0157] In this embodiment, when confirming the results of each position on the product carrier, because running too many AOI programs will cause PC jamming and long processing time, only one product variant program among all product image programs is run during this process, that is, only a single variant AOI program is run, combined with high-speed photography, to achieve high-speed AOI processing.
[0158] Furthermore, as a preferred embodiment of the present invention, when the identification and detection system performs identification and detection on a product, the motor operation trajectory formula includes the following steps.
[0159] like Fig.15 As shown in the figure, when the three-axis servo motor is running, the PLC obtains the program number to be run from the PC, and then changes the current motion trajectory as needed, debugs the current trajectory with the trajectory database data, and compares the motion trajectory, XYZ coordinates of each point, running speed, etc. of the trajectory database that needs to change the program number in turn to obtain the comparison result. The Z coordinate shows the product height photo information. Due to different product models, the height may be inconsistent. After confirming that the data in the trajectory database covers the previous current motion trajectory, the current running trajectory is executed. After the trajectory movement is completed, OK is fed back.
[0160] In this embodiment, the trajectory database includes a plurality of standard trajectory images corresponding to the products to be inspected.
[0161] Figure 16a-Figure 16c The change program number display interface is for products with 2 rows, 3 rows, and 4 rows on the product carrier respectively.
[0162] Furthermore, in this embodiment, XX and YY appearing are track program numbers such as 11, 21, 22, 23, 31, 41, etc.
[0163] Furthermore, as a preferred embodiment of the present invention, when the production line is performing continuous production of mixed materials, the control system sets up multi-layer mixed material error prevention measures. In addition to the basic identification of the DMC code on the product carrier and the coded characters on each product for error prevention, the camera takes pictures of the products at each position and compares the results with each other. When more than two product models appear, the system will issue an error reminder; and the AOI system will determine the relative score of each product, with a total score of 100. When the score is lower than 70, the result is determined to be NG, and a message is sent to the subsequent Potting station to indicate that no injection operation will be performed at this position.
[0164] Moreover, after the PLC drives the three-axis drive mechanism to complete a cycle of movement, the system will check the number of photos taken in each row. If it does not match the set number, the PLC will also display an error prompt to avoid errors.
[0165] The present invention conveys the product carrier carrying the product to be inspected to the pre-inspection area through a conveying device. After the control system detects that the product has arrived, it controls the image processing system to scan and identify each product to be inspected and each product identification component and tracking and identification reading component on the product carrier, and obtains the inspection photo and identity information of each product carrier and the product to be inspected in turn. The AOI image processing system performs inspection and identification judgment on each product, determines the specific position of each product on the product carrier, records the inspection data of the product carrier and the product, and then outputs the information. Therefore, with the precise coordination of each system, the control system controls the three-axis drive mechanism to change the position and height of the image acquisition of the image processing system, achieving precise control and strong flexibility, and realizing the combination of three-axis drive control and visual inspection. The position of the camera is controlled by the three-axis servo motor, and each product is photographed one by one. The product model is distinguished by the product coding characters. By registering photos, OK / NG judgment can be made at the same time as the inspection, shortening the inspection time of various manufacturing sites such as trial product condition setting or warehousing inspection, automatically determining the measurement results, and realizing automatic inspection function without manual setting. It is a truly "fully automatic AOI inspection equipment", which improves automation and inspection efficiency, reduces labor costs, and automatically realizes efficient and fast identification and inspection of various product models and accurate processing of image data through the AOI inspection control system.
[0166] In addition, the present invention is connected with the front and rear workstations and the back-end workstation through a conveying device, and while realizing the transportation of product carriers, it is adapted to the whole-plate production mode of continuous production of the production line. The system can automatically identify products according to different product carriers, and after automatically distinguishing the product model, it feeds back the detection results to the control system and the subsequent Potting production station in real time, so that different potting treatments can be performed according to the differences in product carriers and product models, thereby realizing continuous operation and production of products, and can flexibly respond to the product mixing production status, and at the same time can effectively monitor and count the operation information of each device in the system.
[0167] The multi-point identification detection control system and image data processing method provided by the present invention meet the mixed production state of the fully automatic production assembly line and the production line. There is no need to stop the production line during mixed production. The tracking identification reading components and product identification components on the product carrier and the product to be inspected can be respectively detected, effectively preventing product misdetection, realizing continuous operation and production, and controlling the image processing system and the three-axis drive mechanism linkage through the control system to realize the automatic flying image recognition and product model discrimination of each product on the product carrier. Under the effect of visual flying, the control system controls the AOI processing, and the specific product model is analyzed by data. Not only is the detection accuracy for each product high, but also the image is processed by the visual software, so that the coded characters of each product are clearly visible. The display interface of the present invention is not only comfortable and beautiful, but also the clear interface allows users to see at a glance, and quickly and clearly obtain the product model and quantity. And the statistics and record preservation of each production data of materials, product carriers and equipment operation can be carried out, and the detection data set is automatically saved when the detection is completed, which is convenient for the unified preservation and management of data, and the control interface is controlled by the control system. The test result report can be produced by clicking the interface button, and the operation after the detection is completed is realized efficiently. In addition, the system interface is highly expandable, and more products can be added as needed. It can detect and identify existing products and future product models, and has strong scalability.
[0168] In the description of the present invention, it is necessary to understand that the orientation or positional relationship indicated by terms such as "length", "width", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc. is based on the orientation or positional relationship shown in the drawings, and is only for the convenience of describing the present application and simplifying the description, and does not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present application.
[0169] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0170] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present application should be included in the protection scope of the present application.
Claims
1. A multi-point image data processing method, characterized in that: The image data is processed by using the Potting AOI multi-point recognition and detection control system. The recognition and detection control system includes a control system, an image processing system, and a three-axis driving mechanism. The image processing system is connected to the three-axis driving mechanism, and is characterized in that it also includes a product carrier, which is transported to the pre-detection area by a conveying device. The product carrier is provided with a plurality of detection stations, and the product carrier is provided with a tracking and identifying reading component for distinguishing the model of the product to be inspected. The product to be inspected is provided with a product identification component. The control system controls the action of the three-axis driving mechanism, thereby driving the image processing system to perform three-axis movement, and sequentially identifies and detects the tracking and identifying reading component and the product identification component; Image data processing methods include: The product carrier carrying the products to be inspected is transported to the pre-inspection area by a conveying device, a three-axis coordinate system of the product carrier is defined, and the position coordinates of each product to be inspected are assigned; The image processing system is controlled by the control system to sequentially capture images of the products to be inspected on the product carrier after confirming the position information of the product carrier and the products to be inspected. The three-axis drive mechanism realizes closed-loop communication, the control system controls the action of the three-axis drive mechanism, realizes feedback of the coordinate value of the three-axis drive mechanism, the control system displays the position of the product to be inspected on the product carrier in real time, controls the image processing system to perform image acquisition and information processing, and outputs the model information of the product to be inspected by comparing the product identification components on the product to be inspected; The image processing system reads the tracking and identification reading components of the product carrier, determines the product carrier model, and outputs the product category information; The control system includes a PLC and a PC. When the identification and detection system performs identification and detection on the product, it also includes: Each product to be inspected is provided with two identification areas, A and B. The product carrier is provided with a program number XX, the tens digit is the row of the product carrier, and the ones digit is the major category of the product carrier; The PC controls the visual inspection mechanism to identify the tracking and identification reading components of the product carrier, confirms the major product information, and the PLC controls the three-axis drive mechanism to move to the position A of the first product on the product carrier. The PLC feedback point A is completed and triggers the image processing system to collect image information. The PC reads the image information collection information to obtain the first discrimination result. If the first judgment result is that the product is suitable for PLC motion trajectory X1, the recipe of program X1 is called by PLC to control the motion trajectory of the servo motor of the three-axis drive mechanism, and in the process, the image acquisition mechanism is continuously triggered to perform image acquisition; If the first judgment result is that the product is not suitable for the PLC motion trajectory X1, the three-axis drive mechanism is controlled by the PLC to move to the position B of the first product on the product carrier, the PLC feedback point B is completed and triggers the image processing system to collect image information, and the PC reads the image information collection information to obtain the second judgment result; If the second judgment result is that the product is not suitable for the PLC motion trajectory X2, then continue to judge X3, X4, ... Xn in sequence until the product is suitable for the PLC motion trajectory; If the second judgment result is that the product is suitable for PLC motion trajectory X2, the recipe of program X2 is called by PLC to control the motion trajectory of the servo motor of the three-axis drive mechanism, and in the process, the image acquisition mechanism is continuously triggered to perform image acquisition; The PLC feedback indicates that the trajectory is completed and several images are collected. The PC reads the image information in turn and confirms the product model. The PC image processing is completed and the feedback process ends.
2. A multi-point image data processing method according to claim 1, characterized in that: The image processing system comprises an image acquisition mechanism and a visual detection mechanism, and the image processing system is connected to the human-machine interaction control mechanism of the control system.
3. The multi-point image data processing method according to claim 1, characterized in that: When the identification and detection system performs identification and detection on the product, it also includes: According to the first product on the product carrier, confirm the product model, and select the AOI program to run according to the tracking and identification reading component information of the product carrier. The AOI program is GET product Variant, and the product variant is YY; Compare the types of all products in YY in turn according to the procedures of each product variant YY, confirm the product comparison score, and confirm the final product type based on each comparison score; Confirm the results for each position on the product carrier by comparing it to all products on that product carrier, based on the type of the first product.
4. A multi-point image data processing method according to claim 3, characterized in that: Only a single variant of the AOI program is run during this process to confirm the results for each location on the product carrier.
5. A multi-point image data processing method according to any one of claims 1, 3 and 4, characterized in that: Define the three-axis coordinate system of the product carrier, and the XYZ coordinate axis is consistent with the display direction of the human-computer interaction control mechanism; Each Y row on each product carrier has m products, where m is 8, a fixed value. The number of product rows on the product carrier is defined as n, X*Y=n*8, where n is 1-6.
6. A multi-point image data processing method according to claim 5, characterized in that: When the identification and detection system performs identification and detection on the product, it also includes: When the motor of the three-axis drive mechanism is running, the PLC obtains the program number to be run from the PC; Change the current motion trajectory, debug the current trajectory with the trajectory database data, and compare the YY database, motion trajectory, XYZ coordinates of each point, and running speed in sequence to obtain a comparison result; the trajectory database includes a plurality of standard trajectory images corresponding to the product to be inspected; After confirming that the data in the trajectory database covers the previous current motion trajectory, execute the current running trajectory; After the trajectory movement is completed, the feedback is OK.
7. The multi-point image data processing method according to claim 1, characterized in that: The product identification component is a dent mark set on the product to be inspected, and the size of the product identification component is 3-7mm; and when the image acquisition mechanism moves following the three-axis driving mechanism, it meets the exposure time*object movement speed<movement direction accuracy requirement.
8. The multi-point image data processing method according to claim 1, characterized in that: When the identification and detection system identifies and detects products, the error prevention measures include: The system detects the tracking and identification reading components on the product carrier and the product identification components on the product to be inspected; After the image acquisition mechanism acquires images of each position of the product to be inspected, it will compare the results. If more than two product models appear, an error reminder will be issued; The AOI system will determine the relative score of each product, and non-compliance will send a signal to the back-end process; After the control system drives the three-axis drive mechanism to complete a cycle of movement, it will check the number of information collected in each row of the product carrier. If the number does not match, the system will display an error prompt.
Citation Information
Patent Citations
Detection equipment and detection method
CN109342449A
PCB element detection system and method based on machine vision
CN111289538A
Robot vision detection method for multi-category mixed line production control cabinet
CN112666164A
Product model visual identification method and visual identification system
CN113220924A
System and method for detecting and tracking quality of anode carbon block for aluminum
CN113588653A
