Method and device for determining chip placement parameters in a tray
The fully automatic burner collects the tray image and uses the intelligent recognition model to calculate chip placement parameters, which solves the problem of low manual positioning efficiency, achieves precise and automated positioning of chips in the tray, and improves positioning accuracy and efficiency.
Patent Information
- Application Number
- CN202410341526.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-25
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-03-25
AI Technical Summary
In the existing technology, the positioning of chips in the tray relies on manual labor, resulting in low efficiency and positioning deviations.
A fully automatic burner is used to collect the pallet image, and the point cloud data is constructed through size detection, matching the size and shape type, and input into the pre-trained chip placement area intelligent recognition model. The position coordinates and attitude parameters of the chip placement point are calculated and sent to the pallet positioning equipment.
It realizes the automated and precise positioning of chips in the tray, improves efficiency, reduces manual subjective deviations, and ensures that chips are accurately delivered to the placement area.
Smart Images

Figure CN118154566B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of file management, and in particular to a method and device for determining chip placement parameters in a tray. Background Art
[0002] In the process of determining the chip placement parameters in the tray, the industry currently uses manual methods to determine them, that is, first fix the tray manually, then move the Z axis to the top of the tray, and manually position it to determine the height first, and then manually set the tray array, either by positioning the fixed positions of 2 trays or by using 3 fixed positioning points on the tray, and then manually obtain the chip placement parameters in the tray. Therefore, the positioning of chips in the tray in the existing field relies on manual labor, resulting in low efficiency. At the same time, the chip placement parameters in the tray will be biased due to the influence of manual subjective factors. Summary of the invention
[0003] In view of the technical problems existing in the prior art, the present invention provides a method and device for determining chip placement parameters in a tray, so as to solve the problem that the positioning of chips in the tray in the prior art relies on manual labor, resulting in low efficiency, and realizes combination with tray automatic positioning equipment to accurately provide chip placement parameters in the tray.
[0004] The technical solution of the present invention to solve the above technical problems is as follows:
[0005] A method for determining chip placement parameters in a tray, comprising:
[0006] Collecting a pallet image of a pallet to be positioned on a fully automatic burner, performing size detection on the pallet image to obtain size points, and using the pallet image to construct pallet point cloud data;
[0007] Matching the pallet point cloud data with a pre-created size and shape type library to obtain a target size and shape type;
[0008] Inputting the target size and shape type and the tray image into a pre-trained chip placement area intelligent recognition model to obtain an output candidate chip placement area;
[0009] Selecting a chip placement point from the candidate chip placement area, and determining the position coordinates of the chip placement point according to the tray point cloud data;
[0010] Calculating the tray clutch degree between the size point and the chip placement point on the tray image;
[0011] Calculating the posture parameter and the rotation direction value of the chip placement point according to the tray clutch degree, wherein the rotation direction value represents the rotation direction of the rotation mechanism of the tray to be positioned;
[0012] The position coordinates, the posture parameters and the rotation direction value are sent to the tray positioning device as chip placement parameters.
[0013] According to a method for determining chip placement parameters in a tray provided by the present invention, the method of collecting a tray image of a tray to be positioned on a fully automatic burner, performing size detection on the tray image to obtain size points, and constructing tray point cloud data using the tray image includes:
[0014] When the laser beam sensor detects the size of the tray to be positioned, the dual-line array camera is triggered to take pictures of the size area of the tray to be positioned on the plane where the full-automatic burner is located to obtain a left-eye image and a right-eye image, and the left-eye image is used as the tray image;
[0015] Performing size detection on the left-eye image or the right-eye image to obtain size points;
[0016] The left eye image and the right eye image are respectively subjected to distortion correction, and corner points are respectively extracted from the corrected left eye image and the right eye image as key points, and the key points are reconstructed using the parallax principle to obtain initial point cloud data, and the data irrelevant to the pallet to be positioned in the initial point cloud data is eliminated to obtain the pallet point cloud data.
[0017] According to a method for determining chip placement parameters in a tray provided by the present invention, calculating the tray clutch degree between the size point and the chip placement point on the tray image includes:
[0018] Determine the equation of the straight line according to the coordinates of the chip placement point and the dimension point;
[0019] Extracting the center line pixel point coordinates of the tray to be positioned between the size point and the chip placement point from the tray image;
[0020] Substituting the straight line equation and the center line pixel point coordinates into formula 1 to obtain the tray clutch degree;
[0021]
[0022] Among them, ε represents the degree of tray clutch, n represents the number of center line pixels, and the straight line equation is expressed as x=ay+b. x g Indicates the horizontal coordinate of the chip placement point, y g Indicates the vertical coordinate of the chip placement point, x h Indicates the horizontal coordinate of the dimension point, y h Indicates the vertical coordinate of the dimension point.
[0023] According to a method for determining chip placement parameters in a tray provided by the present invention, the posture parameter and the rotation direction value of the chip placement point are calculated according to the tray clutch degree, including:
[0024] comparing the tray clutch degree with a preset value;
[0025] When the tray clutch degree does not exceed the preset value, a first posture parameter is calculated according to the size point and the chip placement point, wherein the first posture parameter is expressed as x g Indicates the horizontal coordinate of the chip placement point, y g Indicates the vertical coordinate of the chip placement point, x h Indicates the horizontal coordinate of the dimension point, y h Indicates the ordinate of the dimension point;
[0026] When the tray clutch degree does not exceed the preset value, the posture point is first determined according to the chip placement point and the size point, and then the second posture parameter is calculated according to the posture point and the chip placement point, wherein the second posture parameter is expressed as x g Indicates the horizontal coordinate of the chip placement point, y g Indicates the vertical coordinate of the chip placement point, x z Indicates the horizontal coordinate of the posture point, y z The ordinate of the attitude point;
[0027] Calculate the rotation direction value according to formula 2;
[0028]
[0029] Where p represents the rotation direction value, p = 1 means the rotating mechanism rotates clockwise, p = -1 means the rotating mechanism rotates counterclockwise, y h Indicates the vertical position of the dimension point, y g Indicates the vertical coordinate of the chip placement point, y z Indicates the vertical coordinate of the posture point.
[0030] According to a method for determining chip placement parameters in a tray provided by the present invention, the tray point cloud data is matched with a pre-created size and shape type library to obtain a target size and shape type, including:
[0031] Using modeling software to create corresponding pallet size models for at least one known size and shape type, respectively, to obtain the size and shape type library created in advance;
[0032] The pallet point cloud data is matched with each of the pallet dimension models respectively, and the dimension shape type corresponding to the matched pallet dimension model is used as the target dimension shape type.
[0033] According to a method for determining chip placement parameters in a tray provided by the present invention, the pre-trained chip placement area intelligent recognition model obtains a candidate chip placement area, which is obtained by training through the following steps:
[0034] Constructing a deep learning model, wherein the input of the deep learning model is a tray image and a size morphology type text, and the output of the deep learning model is the coordinates of a preset shape candidate box;
[0035] Annotating images of trays with known optimal chip placement points based on the input and output of the deep learning model to construct a training set, a validation set, and a test set;
[0036] The deep learning model is trained using the training set, the validation set and the test set to obtain a pre-trained chip placement area intelligent recognition model.
[0037] According to a method for determining chip placement parameters in a tray provided by the present invention, before taking a picture of the plane where the full-automatic programmer is located using a dual-line array camera, the method further includes:
[0038] The dual-line array camera is calibrated using a calibrator, wherein an upper cover plate of the calibrator includes a first step, a second step and a third step, wherein the lengths and widths of the first step, the second step and the third step are the same, the height of the first step is greater than the height of the second step, the height of the second step is greater than the height of the third step, a plurality of right-angled triangular light-transmitting holes are evenly spaced on the first step, a plurality of square light-transmitting holes are evenly spaced on the second step, and two rows of circular light-transmitting holes are evenly spaced and cross-distributed on the third step.
[0039] The present invention also provides a device for determining chip placement parameters in a tray, comprising:
[0040] An image acquisition module, the image acquisition module is used to acquire a pallet image of a pallet to be positioned on the fully automatic burner, perform size detection on the pallet image to obtain size points, and construct pallet point cloud data using the pallet image;
[0041] A matching module, the matching module is used to match the pallet point cloud data with a pre-created size and shape type library to obtain a target size and shape type;
[0042] A chip placement area recognition module, the chip placement area recognition module is used to input the target size and shape type and the tray image into a pre-trained chip placement area intelligent recognition model to obtain an output candidate chip placement area;
[0043] A chip placement point determination module, the chip placement point determination module is used to select a chip placement point from the candidate chip placement area and determine the position coordinates of the chip placement point according to the tray point cloud data;
[0044] A first calculation module, the first calculation module is used to calculate the tray clutch degree between the size point and the chip placement point on the tray image;
[0045] A second calculation module, the second calculation module is used to calculate the posture parameter and the rotation direction value of the chip placement point according to the tray clutch degree, wherein the rotation direction value represents the rotation direction of the rotation mechanism of the tray to be positioned;
[0046] A chip placement parameter determination module is used to send the position coordinates, the posture parameters and the rotation direction value as chip placement parameters to a tray positioning device.
[0047] The present invention also provides an electronic device, comprising: a memory for storing a computer software program; a processor for reading and executing the computer software program, thereby implementing any of the above-mentioned methods for determining chip placement parameters in a tray.
[0048] The present invention also provides a non-transitory computer-readable storage medium, characterized in that a computer software program is stored in the storage medium, and when the computer software program is executed by a processor, it implements any of the above-mentioned methods for determining chip placement parameters in a tray.
[0049] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the method for determining chip placement parameters in a tray as described in any one of the above is implemented.
[0050] The beneficial effects of the present invention are as follows: by collecting a tray image of a tray to be positioned on a fully automatic burner, the tray image is processed to obtain tray point cloud data of size points and shapes, the target size and shape type is identified through the tray point cloud data, and then the target size and shape type and the tray image are input into a pre-trained chip placement area intelligent recognition model to obtain a candidate chip placement area, and then a chip placement point is selected from the candidate chip placement area and mapped to the tray point cloud data of the shape, thereby obtaining the position coordinates of the chip placement point, and further using the chip placement point and the size point to calculate the tray clutch, and then combining the tray clutch to calculate the posture parameters and rotation direction values of the grabbing point, and finally sending the position coordinates, posture parameters and rotation direction values to the tray positioning device, thereby realizing automatic provision of accurate chip placement point information to the tray positioning device, thereby ensuring that the chip to be detected can be accurately delivered to the chip placement area of the tray. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] Figure 1 It is one of the flow charts of the method for determining chip placement parameters in a tray provided by the present invention;
[0052] Figure 2 It is a structural schematic diagram of the image acquisition device provided by the present invention;
[0053] Figure 3 It is a schematic diagram of the upper cover of the stepped calibrator provided by the present invention;
[0054] Figure 4 This is the second flow chart of the method for determining chip placement parameters in a tray provided by the present invention;
[0055] Figure 5 It is a structural schematic diagram of a device for determining chip placement parameters in a tray provided by the present invention;
[0056] Figure 6 A schematic diagram of an electronic device according to an embodiment of the present invention;
[0057] Figure 7 A schematic diagram of an embodiment of a computer-readable storage medium provided for an embodiment of the present invention. DETAILED DESCRIPTION
[0058] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.
[0059] In the description of this application, 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 technical features indicated. 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, "plurality" means two or more, unless otherwise clearly and specifically defined.
[0060] In the description of the present application, the term "for example" is used to mean "used as an example, illustration or description". Any embodiment described as "for example" in the present application is not necessarily to be construed as being more preferred or advantageous than other embodiments. The following description is given to enable any technician in the field to implement and use the present invention. In the following description, details are listed for the purpose of explanation. It should be understood that a person of ordinary skill in the art can recognize that the present invention can be implemented without using these specific details. In other examples, well-known structures and processes will not be elaborated in detail to avoid unnecessary details to obscure the description of the present invention. Therefore, the present invention is not intended to be limited to the embodiments shown, but is consistent with the widest scope consistent with the principles and features disclosed in the present application.
[0061] Figure 1 This is one of the flow charts of the method for determining chip placement parameters in a tray provided by an embodiment of the present invention. Please refer to Figure 1 As shown, this embodiment provides a method for determining chip placement parameters in a tray, which can be implemented through steps S101 to S107. Each step will be described in detail below:
[0062] Step S101 , collecting a pallet image of a pallet to be positioned on a fully automatic writer, performing size detection on the pallet image to obtain size points, and constructing pallet point cloud data using the pallet image.
[0063] In this embodiment, the fully automatic burner is a device for chip burning. Since the size of the tray will affect the chip placement area of the tray where the chip is fed, the tray positioning device needs to be used to position the size of the tray before the chip enters the chip placement area of the tray so as to adjust its posture. The tray to be positioned refers to the tray placed on the fully automatic burner and needs to be adjusted in size by the tray positioning device. The tray image can be obtained by any existing image acquisition device.
[0064] Step S102, matching the pallet point cloud data with a pre-created size and shape type library to obtain a target size and shape type.
[0065] In this embodiment, the pre-created size and shape type library includes models of multiple known pallet size and shape types, and the pallet point cloud data is matched with each model in the size and shape type library. For example, size and shape models with the same or similar shapes are found by calculating the similarity or certain characteristic parameters that characterize the shapes. The size and shape type corresponding to the similar or identical models found is the target size and shape type, and the target size and shape type is one of the multiple known pallet size and shape types.
[0066] Step S103, inputting the target size and shape type and the tray image into a pre-trained chip placement area intelligent recognition model to obtain an output candidate chip placement area.
[0067] In an embodiment, the chip placement area intelligent recognition model can mark the chip placement area on the tray image in a specific shape according to the input tray image and the target size and shape type corresponding to the tray image. The chip placement area intelligent recognition model can also output the candidate chip placement area in the form of coordinates.
[0068] Step S104 , selecting a chip placement point from the candidate chip placement area, and determining the position coordinates of the chip placement point according to the tray point cloud data.
[0069] In this embodiment, the chip placement point is a point selected from the candidate chip placement area. The chip placement point can be selected based on the shape of the candidate chip placement area. For example, for a rectangular candidate chip placement area, the intersection of the diagonals can be used as the chip placement point. For a circular candidate chip placement area, the center of the circle can be selected as the chip placement point.
[0070] Step S105 , calculating the tray clutch degree between the dimension point and the chip placement point on the tray image.
[0071] In this embodiment, the tray clutch refers to the degree of curvature of the tray segment between the dimension point and the chip placement point expressed numerically. The tray clutch can be obtained by any existing measurement method related to the degree of curvature.
[0072] Step S106, calculating the posture parameter and the rotation direction value of the chip placement point according to the tray clutch degree, wherein the rotation direction value represents the rotation direction of the rotation mechanism of the tray to be positioned.
[0073] Step S107, sending the position coordinates, posture parameters and rotation direction values as chip placement parameters to the tray positioning device.
[0074] The method for determining chip placement parameters in a tray of the present embodiment collects a tray image of the tray to be positioned on the fully automatic burner, obtains tray point cloud data of size points and shapes by processing the tray image, identifies the target size and shape type through the tray point cloud data, and then inputs the target size and shape type and the tray image into a pre-trained chip placement area intelligent recognition model to obtain a candidate chip placement area, then selects a chip placement point from the candidate chip placement area and maps the chip placement point to the tray point cloud data of shape, thereby obtaining the position coordinates of the chip placement point, further calculates the tray clutch degree using the chip placement point and the tray clutch degree, and then calculates the posture parameters and rotation direction values of the grabbing point, and finally sends the position coordinates, posture parameters and rotation direction values to the tray positioning device, thereby realizing automatic provision of accurate chip placement point information to the tray positioning device, thereby ensuring that the chip to be detected can be accurately delivered to the chip placement area of the tray.
[0075] In some possible implementations, the aforementioned step S102, collecting a pallet image of the pallet to be positioned on the fully automatic writer, performing size detection on the pallet image to obtain size points, and constructing pallet point cloud data using the pallet image, specifically includes:
[0076] When the laser beam sensor detects the size of the tray to be positioned, the dual-line array camera is triggered to take pictures of the size area of the tray to be positioned on the plane where the full-automatic burner is located to obtain left and right images, and the left image is used as the tray image.
[0077] For example, Figure 2 This is a schematic diagram of the structure of the image acquisition device provided by the present invention. Figure 2 As shown in the figure, the image acquisition device includes: a camera, a light source, a calibrator and a laser. The camera is an array camera composed of two linear array cameras. There is a 450nm narrowband filter on the lens. The camera is installed on the regulator to adjust the initial posture. The baseline distance is 300mm. The center of the line of sight is perpendicular to the full-automatic burner, and the center of the baseline coincides with the center plane of the full-automatic burner. The light source is an array light source composed of two blue linear array light sources, which are symmetrically installed on both sides of the camera to provide uniform and higher-power fill light. The calibrator is used for offline calibration of the internal and external parameters of the array camera. The laser is a counter-beam type, which can detect the head and tail of the pallet and is installed at a position of 0.6m to 1.0m from the exit of the serpentine vibrator. Along the movement direction of the full-automatic burner, the image acquisition device is installed as a whole at a distance of 0.4m from the laser and 3m high. The counter-beam laser sends a start signal to the camera when detecting the size of the pallet, so as to accurately obtain the image of the pallet.
[0078] In the specific implementation process, the dual-line array camera preferably uses blue light with short wavelength and good linearity when taking images. In combination with a narrow-band filter, it can effectively remove the influence of ambient light and the thermal radiation of the chip to be detected, form a clear tray image, and then extract a high-precision tray contour.
[0079] The size point is obtained by performing size detection on the left eye image or the right eye image. It should be noted that the size detection can use both the left eye image and the right eye image, and the present invention does not limit the image used for size detection.
[0080] Exemplarily, the size point can perform preprocessing such as mean filtering and histogram equalization on the left-eye image, use the morphological characteristics of the size to detect the size of the tray, and determine the coordinates of the size point.
[0081] Distortion correction is performed on the left and right images respectively, and corner points are extracted from the corrected left and right images as key points. The key points are reconstructed using the parallax principle to obtain initial point cloud data, and data irrelevant to the pallet to be positioned in the initial point cloud data is removed to obtain pallet point cloud data. The initial point cloud data may include background data in addition to pallet data, and the background may be a fully automatic burner and side walls, etc.
[0082] In the specific implementation process, the calibrated internal parameter data is used to correct the left and right images respectively, and the calibrated external parameters are used to make the right image coincide with the left image. The image key points, i.e., corner points, are extracted for matching. The key points are reconstructed using the parallax principle to obtain the point cloud data of the entire frame image. The placement characteristics of the pallet are then used to eliminate background data that is not related to the pallet to be positioned, thereby obtaining the pallet point cloud data.
[0083] The method for determining chip placement parameters in a tray of this embodiment realizes accurate chip placement of tray size and shape based on a dual-line array camera, and converts two-dimensional image data into tray point cloud data, which can provide accurate chip placement point posture for the tray positioning device.
[0084] In some possible implementations, the aforementioned step S102, matching the pallet point cloud data with a pre-created size and shape type library to obtain a target size and shape type, specifically includes:
[0085] Using modeling software to create corresponding pallet size models for at least one known size and shape type, respectively, to obtain a pre-created size and shape type library;
[0086] The pallet point cloud data is matched with each pallet dimension model respectively, and the dimension shape type corresponding to the matched pallet dimension model is used as the target dimension shape type.
[0087] In the specific implementation process, based on the expert experience of tray morphology types, modeling software is used to create matching models of trays with different size shapes, such as the wall-fitting size shape model, the head-to-body fitting size shape model, the bending size shape model, and the reclining size shape model. In the specific implementation process, if the tray shape recognition is unknown, the image and corresponding point cloud data will be automatically saved, and the model can be quickly created based on the data, and the corresponding new size shape type will be added to the newly created model.
[0088] The method for determining chip placement parameters in a tray of this embodiment can realize the recognition of various tray sizes and shapes by model matching, has high accuracy, and the size and shape type library is easy to expand and has good adaptability.
[0089] In some possible implementations, a pre-trained chip placement region intelligent recognition model obtains a candidate chip placement region, which is obtained by training through the following steps;
[0090] Construct a deep learning model, wherein the input of the deep learning model is the pallet image and the size morphology type text, and the output of the deep learning model is the coordinates of the preset shape candidate box;
[0091] Based on the input and output of the deep learning model, images of trays with known optimal chip placement points are annotated to construct training sets, validation sets, and test sets;
[0092] The deep learning model is trained using the training set, validation set, and test set to obtain a pre-trained chip placement area intelligent recognition model.
[0093] The method for determining chip placement parameters in a tray of this embodiment uses a deep learning model to learn tray images that have known morphological types and chip placement positions, so that the deep learning model can predict the range of chip placement points based on the size type recognition results and two-dimensional tray images matched with the tray morphological point cloud by the model, thereby realizing intelligent decision-making based on deep learning to quickly and accurately locate the chip placement points, and also using tray morphological text information for reinforcement learning.
[0094] In some possible implementations, the aforementioned step S104, selecting a chip placement point from the candidate chip placement area, and determining the position coordinates of the chip placement point according to the tray point cloud data, specifically includes:
[0095] The center point of the candidate chip placement area is used as the optimal chip placement position to obtain the chip placement point; for example, when the candidate chip placement area is a rectangle, the intersection of the diagonals of the rectangle can be selected as the optimal chip placement position, i.e., the chip placement point; and when the candidate chip placement area is a circle, the center of the circle can be selected as the optimal chip placement position, i.e., the chip placement point;
[0096] The coordinates of the center point are obtained and mapped to the pallet point cloud data to obtain the position coordinates corresponding to the chip placement point.
[0097] The chip placement parameter determination method in the tray of this embodiment selects the best chip placement point from the candidate chip placement area output by the chip placement area intelligent recognition model, and uses the tray point cloud data to map the chip placement point to provide accurate chip placement position information for the tray positioning device.
[0098] In some possible implementations, the aforementioned step S105, calculating the tray clutch degree between the size point and the chip placement point on the tray image, specifically includes:
[0099] Determine the equation of the line based on the coordinates of the chip placement point and the dimension point;
[0100] Extracting the center line pixel coordinates of the tray to be positioned between the dimension point and the chip placement point from the tray image;
[0101] Substitute the straight line equation and the center line pixel coordinates into Formula 1 to obtain the tray clutch degree;
[0102]
[0103] Among them, ε represents the degree of tray clutch, n represents the number of center line pixels, and the straight line equation is expressed as x=ay+b. x g Indicates the horizontal coordinate of the chip placement point, y g Indicates the vertical coordinate of the chip placement point, x h Indicates the horizontal coordinate of the dimension point, y h Indicates the vertical coordinate of the dimension point.
[0104] In order to determine the bending condition of the pallet from the chip placement point to a size section, this embodiment proposes a quantitative calculation method for the pallet clutch. The implementation principle is as follows: in the image coordinate system, a straight line equation is determined using the coordinates of the chip placement point and the size point, the pallet centerline coordinates are extracted, the y value of each centerline coordinate is substituted into the straight line equation, the absolute difference of x is calculated, and all deviation values are accumulated and divided by the number of centerline coordinates to obtain the pallet clutch value. The obtained pallet clutch can accurately evaluate the degree of bending from the chip placement point to the pallet size point, and prepare for the subsequent position coordinate calculation and rotation direction value calculation.
[0105] In some possible implementations, the aforementioned step S106, calculating the attitude parameter and the rotation direction value of the chip placement point according to the tray clutch degree, specifically includes:
[0106] Compare the tray clutch degree with a preset value;
[0107] When the tray clutch degree does not exceed the preset value, the first posture parameter is calculated according to the size point and the chip placement point, where the first posture parameter is expressed as x g Indicates the horizontal coordinate of the chip placement point, y g Indicates the vertical coordinate of the chip placement point, x h Indicates the horizontal coordinate of the dimension point, y h Indicates the ordinate of the dimension point;
[0108] When the tray clutch does not exceed the preset value, the posture point is first determined according to the chip placement point and the size point, and then the second posture parameter is calculated according to the posture point and the chip placement point, where the second posture parameter is expressed as x g Indicates the horizontal coordinate of the chip placement point, y g Indicates the vertical coordinate of the chip placement point, x z Indicates the horizontal coordinate of the posture point, y z The ordinate of the attitude point;
[0109] In this embodiment, the posture point is a point that is a preset length away from the chip placement point along the center line. It should be noted that the preset length can be adjusted according to actual conditions. As a reference, the preset length can be set to 20mm. The angle of the straight line connecting the posture point and the chip placement point is the horizontal rotation posture value.
[0110] Calculate the rotation direction value according to formula 2;
[0111]
[0112] Where p represents the rotation direction value, p = 1 means the rotating mechanism rotates clockwise, p = -1 means the rotating mechanism rotates counterclockwise, y h Indicates the vertical position of the dimension point, y g Indicates the vertical coordinate of the chip placement point, y z Indicates the vertical coordinate of the posture point.
[0113] This embodiment uses the preset value as the boundary, and defines the corresponding posture parameter calculation method for the case where the pallet clutch degree exceeds the preset value and the case where it does not exceed the preset value. It also provides a strategy for taking the rotation direction value, thereby providing the positioning device with a generalized posture matrix composed of seven-dimensional generalized parameters consisting of position, posture and direction, thereby achieving precise guidance of the pallet positioning device.
[0114] In some possible implementations, before taking a picture of the plane where the full-automatic burner is located using the dual-line array camera, the method further includes:
[0115] The dual-line array camera is calibrated using a calibrator, wherein the upper cover plate of the calibrator includes a first step, a second step and a third step, wherein the lengths and widths of the first step, the second step and the third step are the same, the height of the first step is greater than the height of the second step, the height of the second step is greater than the height of the third step, a plurality of right-angled triangular light-transmitting holes are evenly spaced on the first step, a plurality of square light-transmitting holes are evenly spaced on the second step, and two rows of circular light-transmitting holes are evenly spaced and cross-distributed on the third step.
[0116] In this embodiment, the calibrator is a stepped calibrator based on multiple patterns. The calibrator consists of a lower cover plate, an upper cover plate, a strip lamp substrate and a light homogenizer. The size is 1200mm*60mm*60mm, and the step height is 20mm. Please refer to Figure 3 As shown, the first step of the upper cover plate is evenly distributed with right-angled triangular light-transmitting holes, with long side and short side: 40*20mm, center interval 60mm, and 9 holes; the second step of the upper cover plate is evenly distributed with square light-transmitting holes, size 40*40mm, center line spacing 65mm, and 6 holes; the third step of the upper cover plate is cross-distributed with two rows of circular light-transmitting holes, radius 10mm, vertical distance between upper and lower circular holes 30mm, horizontal distance between upper and lower circular holes 20mm, spacing between circular holes in the same row 40mm, and 9 holes in each row.
[0117] The recommended machining accuracy of the calibrator cover is preferably 0.0025mm. The origin of the calibrator coordinate system is the upper left corner of the light-transmitting hole at the left end of the second step. The positive direction of the X axis is pointing to the third step along the length direction, the positive direction of the Y axis is pointing to its lower left corner along the length direction, and the positive direction of the Z axis is perpendicular to the calibrator plane. In the calibrator coordinate system, the coordinates of each corner point can be calculated. Using the coordinate relationship model of the world coordinate system point and the pixel point of the dual-line array camera, based on the optimization solution, the internal and external parameters can be calibrated through the calibrator.
[0118] The method for determining chip placement parameters in a tray of the present embodiment, by designing the calibrator into a multi-step and multi-pattern style, can implement parameter calibration when the calibrator is fixed, avoiding the error introduced by moving the calibrator, and reducing the calibration error relative to a single pattern; in addition, the right-angled triangle pattern can intuitively feedback the tilt of the calibrator, the square pattern can intuitively feedback the rotation of the calibrator, and the circular pattern can intuitively feedback the deformation of the collected calibration image.
[0119] In another embodiment, to facilitate understanding of the solution of the present invention, please refer to Figure 4 As shown, this embodiment provides another method for determining chip placement parameters in a tray, and the specific implementation process is as follows:
[0120] First, install the dual-line array camera for image acquisition. The specific installation position can be set above the flat panel. Install the image acquisition device as a whole at a distance of 0.4m from the laser along the movement direction of the automatic burner, with an installation height of 3m.
[0121] Next, the internal and external parameters are calibrated by a multi-pattern-based step-type calibrator based on the optimization solution using the coordinate relationship between the world coordinate system points and the pixel points of the dual-line array camera.
[0122] Next, a group of laser beam sensors are formed to provide a start signal to the image acquisition device. When the signal is a pallet size signal, the array linear array camera is triggered to collect pallet image data.
[0123] Next, the calibrated intrinsic parameter data is used to correct the left and right images respectively, and the calibrated extrinsic parameters are used to make the right image coincide with the left image. The image key points, i.e., corner points, are extracted for matching, and the key points are reconstructed using the parallax principle to obtain the point cloud data of the entire frame image.
[0124] Then, the point cloud is eliminated based on the placement characteristics of the pallet, the point cloud data of the pallet is obtained, and the point cloud data of the pallet is matched with the pallet shape model to know the size and shape type of the pallet.
[0125] If the current pallet shape category cannot be identified, the pallet point cloud data is saved, and the left-eye image is taken synchronously for preprocessing. Combined with the pallet size coordinate detection results, the chip placement point is detected through edge detection, morphological processing, etc., to obtain the chip placement point coordinates. At the same time, the chip placement point is marked on the pallet image, prompting manual secondary judgment.
[0126] If the morphological recognition is successful, the left eye image and morphological category information are passed to the trained chip placement point intelligent judgment model. The deep learning model can return a chip placement point area. Generally, the center of the area is taken as the chip placement point coordinate, set to (x g ,y g ). Using the pixel coordinates of the chip placement point and the pallet point cloud data, we can know that the coordinates corresponding to the chip placement point position are the chip placement point coordinates, which are recorded as (x0, y0, z0).
[0127] After obtaining the pallet image, a sub-thread can be started. The left-eye image is pre-processed by mean filtering, histogram equalization, etc., and the pallet size is detected by using the morphological characteristics of the size to determine the size point coordinates, which are recorded as (x h ,y h ), extract the skeleton curve from the chip placement point to the size point along the tray, and then calculate the horizontal distance between each point on the curve and the line connecting it. The average distance is the tray clutch value.
[0128] If the tray clutch value is not greater than 8, the rotation angle γ of the tray chip placement position around the Z axis (left camera coordinate system) is calculated by the size point and the chip placement point. Since the tray at the chip placement point is perpendicular to the fully automatic programmer, the rotation angles around the X and Y axes are both 0, that is, the posture parameters are expressed as
[0129] If the tray clutch value is greater than 8, the tray clutch from the chip placement point to the dimension point is large, and it is necessary to locate another posture point along the dimension direction and at the specified length. The coordinates of the posture point are marked as (x z ,y z ), then the posture record
[0130] At the same time, the rotation direction is calculated to obtain the direction representation value p, and the p value is:
[0131] The generalized pose of the chip placement point on the pallet, which is composed of the chip placement point coordinates, chip placement point posture parameters and direction characterization values, is the pose matrix [x0, y0, z0, 0, 0, γ, p]. The data is sent to the pallet positioning device through the communication system to achieve precise guidance of the pallet positioning device. At the same time, the system continues to monitor the status of the sensor. When a trigger signal is detected, the above steps are repeated.
[0132] The method for determining chip placement parameters in a tray of this embodiment has at least the following beneficial technical effects: based on the dual-line array camera, the accurate chip placement point position can be provided for the tray positioning device; the model matching can be used to realize the recognition of various tray forms, which is easy to expand; the intelligent decision-making based on deep learning can realize fast and accurate positioning of the chip placement point, and the text information of the tray form is used to enhance the learning effect; the use of a stepped calibrator based on various patterns can realize efficient calibration of the dual-line array camera.
[0133] The device for determining chip placement parameters in a tray provided by the present invention is described below. The device for determining chip placement parameters in a tray described below and the method for determining chip placement parameters in a tray described above can refer to each other.
[0134] Optional, such as Figure 5 As shown, Figure 5 : is a schematic diagram of the structure of the device for determining chip placement parameters in a tray provided by the present invention, the device includes an image acquisition module 510, a matching module 520, a chip placement area recognition module 530, a chip placement point determination module 540, a first calculation module 550, a second calculation module 560 and a chip placement parameter determination module 570. The above modules are described in detail below:
[0135] The image acquisition module 510 is used to acquire the pallet image of the pallet to be positioned on the fully automatic burner, perform size detection on the pallet image to obtain size points, and use the pallet image to construct pallet point cloud data;
[0136] The matching module 520 is used to match the pallet point cloud data with a pre-created size and shape type library to obtain a target size and shape type;
[0137] The chip placement area recognition module 530 is used to input the target size and shape type and the tray image into the pre-trained chip placement area intelligent recognition model to obtain the output candidate chip placement area;
[0138] The chip placement point determination module 540 is used to select a chip placement point from the candidate chip placement area and determine the position coordinates of the chip placement point according to the tray point cloud data;
[0139] The first calculation module 550 is used to calculate the tray clutch degree between the size point and the chip placement point on the tray image;
[0140] The second calculation module 560 is used to calculate the posture parameter and the rotation direction value of the chip placement point according to the tray clutch degree, wherein the rotation direction value represents the rotation direction of the rotation mechanism of the tray to be positioned;
[0141] The chip placement parameter determination module 570 is used to send the position coordinates, posture parameters and rotation direction values as chip placement parameters to the tray positioning device.
[0142] The device for determining chip placement parameters in a tray of the present embodiment collects a tray image of the tray to be positioned on the fully automatic burner, obtains tray point cloud data of size points and shapes by processing the tray image, identifies the target size and shape type through the tray point cloud data, and then inputs the target size and shape type and the tray image into a pre-trained chip placement area intelligent recognition model to obtain a candidate chip placement area, then selects a chip placement point from the candidate chip placement area and maps the chip placement point to the tray point cloud data of shape, thereby obtaining the position coordinates of the chip placement point, further calculates the tray clutch degree using the chip placement point and the tray clutch degree, and then calculates the posture parameters and rotation direction values of the grabbing point, and finally sends the position coordinates, posture parameters and rotation direction values to the tray positioning device, thereby realizing automatic provision of accurate chip placement point information to the tray positioning device, thereby ensuring that the chip to be detected can be accurately delivered to the chip placement area of the tray.
[0143] See also Figure 6 , Figure 6 Schematic diagram of an electronic device provided by an embodiment of the present invention. Figure 6As shown, an embodiment of the present invention provides an electronic device 600, including a memory 610, a processor 620, and a computer program 611 stored in the memory 610 and executable on the processor 620. When the processor 620 executes the computer program 611, the following steps are implemented:
[0144] Collecting a pallet image of a pallet to be positioned on a fully automatic burner, performing size detection on the pallet image to obtain size points, and using the pallet image to construct pallet point cloud data;
[0145] Matching the pallet point cloud data with a pre-created size and shape type library to obtain a target size and shape type;
[0146] Inputting the target size and shape type and the tray image into a pre-trained chip placement area intelligent recognition model to obtain an output candidate chip placement area;
[0147] Selecting a chip placement point from the candidate chip placement area, and determining the position coordinates of the chip placement point according to the tray point cloud data;
[0148] Calculating the tray clutch degree between the size point and the chip placement point on the tray image;
[0149] Calculating the posture parameter and the rotation direction value of the chip placement point according to the tray clutch degree, wherein the rotation direction value represents the rotation direction of the rotation mechanism of the tray to be positioned;
[0150] The position coordinates, the posture parameters and the rotation direction value are sent to the tray positioning device as chip placement parameters.
[0151] See also Figure 7 , Figure 7 Schematic diagram of an embodiment of a computer-readable storage medium provided in an embodiment of the present invention. Figure 7 As shown, this embodiment provides a computer-readable storage medium 700, on which a computer program 711 is stored. When the computer program 711 is executed by a processor, the following steps are implemented:
[0152] Collecting a pallet image of a pallet to be positioned on a fully automatic burner, performing size detection on the pallet image to obtain size points, and using the pallet image to construct pallet point cloud data;
[0153] Matching the pallet point cloud data with a pre-created size and shape type library to obtain a target size and shape type;
[0154] Inputting the target size and shape type and the tray image into a pre-trained chip placement area intelligent recognition model to obtain an output candidate chip placement area;
[0155] Selecting a chip placement point from the candidate chip placement area, and determining the position coordinates of the chip placement point according to the tray point cloud data;
[0156] Calculating the tray clutch degree between the size point and the chip placement point on the tray image;
[0157] Calculating the posture parameter and the rotation direction value of the chip placement point according to the tray clutch degree, wherein the rotation direction value represents the rotation direction of the rotation mechanism of the tray to be positioned;
[0158] The position coordinates, the posture parameters and the rotation direction value are sent to the tray positioning device as chip placement parameters.
[0159] It should be noted that in the above embodiments, the description of each embodiment has its own emphasis, and for parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0160] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0161] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (apparatus), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded computer, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0162] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0163] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0164] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0165] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A method for determining chip placement parameters in a tray, characterized in that: include: Collecting a pallet image of a pallet to be positioned on a fully automatic burner, performing size detection on the pallet image to obtain size points, and using the pallet image to construct pallet point cloud data; Matching the pallet point cloud data with a pre-created size and shape type library to obtain a target size and shape type; Inputting the target size and shape type and the tray image into a pre-trained chip placement area intelligent recognition model to obtain an output candidate chip placement area; Selecting a chip placement point from the candidate chip placement area, and determining the position coordinates of the chip placement point according to the tray point cloud data; Calculating the tray clutch degree between the size point and the chip placement point on the tray image; Calculating the posture parameter and the rotation direction value of the chip placement point according to the tray clutch degree, wherein the rotation direction value represents the rotation direction of the rotation mechanism of the tray to be positioned; Sending the position coordinates, the posture parameters and the rotation direction value as chip placement parameters to a tray positioning device; The step of calculating the degree of engagement of the tray between the size point and the chip placement point on the tray image includes: Determine the equation of the straight line according to the coordinates of the chip placement point and the dimension point; Extracting the center line pixel point coordinates of the tray to be positioned between the size point and the chip placement point from the tray image; Substituting the straight line equation and the center line pixel point coordinates into formula 1 to obtain the tray clutch degree; Among them, ε represents the degree of tray clutch, n represents the number of center line pixels, and the straight line equation is x=ay+b. x g Indicates the horizontal coordinate of the chip placement point, y g Indicates the vertical coordinate of the chip placement point, x h Indicates the horizontal coordinate of the dimension point, y h Indicates the ordinate of the dimension point; Calculating the attitude parameter and the rotation direction value of the chip placement point according to the tray clutch degree includes: comparing the tray clutch degree with a preset value; When the tray clutch degree does not exceed the preset value, a first posture parameter is calculated according to the size point and the chip placement point, wherein the first posture parameter is expressed as x g Indicates the horizontal coordinate of the chip placement point, y g Indicates the vertical coordinate of the chip placement point, x h Indicates the horizontal coordinate of the dimension point, y h Indicates the ordinate of the dimension point; When the tray clutch degree does not exceed the preset value, the posture point is first determined according to the chip placement point and the size point, and then the second posture parameter is calculated according to the posture point and the chip placement point, wherein the second posture parameter is expressed as x g Indicates the horizontal coordinate of the chip placement point, y g Indicates the vertical coordinate of the chip placement point, x z Indicates the horizontal coordinate of the posture point, y z The ordinate of the attitude point; Calculate the rotation direction value according to formula 2; Where p represents the rotation direction value, p = 1 means the rotating mechanism rotates clockwise, p = -1 means the rotating mechanism rotates counterclockwise, y h Indicates the vertical position of the dimension point, y g Indicates the vertical coordinate of the chip placement point, y z Indicates the vertical coordinate of the posture point.
2. The method for determining chip placement parameters in a tray according to claim 1, characterized in that: The method of collecting a pallet image of a pallet to be positioned on a fully automatic burner, performing size detection on the pallet image to obtain size points, and constructing pallet point cloud data using the pallet image includes: When the laser beam sensor detects the size of the tray to be positioned, the dual-line array camera is triggered to take pictures of the size area of the tray to be positioned on the plane where the full-automatic burner is located to obtain a left-eye image and a right-eye image, and the left-eye image is used as the tray image; Performing size detection on the left-eye image or the right-eye image to obtain size points; The left eye image and the right eye image are respectively subjected to distortion correction, and corner points are respectively extracted from the corrected left eye image and the right eye image as key points, and the key points are reconstructed using the parallax principle to obtain initial point cloud data, and the data irrelevant to the pallet to be positioned in the initial point cloud data is eliminated to obtain the pallet point cloud data.
3. The method for determining chip placement parameters in a tray according to claim 1, characterized in that: The pallet point cloud data is matched with a pre-created size and shape type library to obtain a target size and shape type, including: Using modeling software to create corresponding pallet size models for at least one known size and shape type, respectively, to obtain the size and shape type library created in advance; The pallet point cloud data is matched with each of the pallet dimension models respectively, and the dimension shape type corresponding to the matched pallet dimension model is used as the target dimension shape type.
4. The method for determining chip placement parameters in a tray according to claim 1, characterized in that: The pre-trained chip placement area intelligent recognition model obtains candidate chip placement areas, which are trained by the following steps: Constructing a deep learning model, wherein the input of the deep learning model is a tray image and a size morphology type text, and the output of the deep learning model is the coordinates of a preset shape candidate box; Annotating images of trays with known optimal chip placement points based on the input and output of the deep learning model to construct a training set, a validation set, and a test set; The deep learning model is trained using the training set, the validation set and the test set to obtain a pre-trained chip placement area intelligent recognition model.
5. The method for determining chip placement parameters in a tray according to claim 2, characterized in that: Before using the dual-line array camera to take a picture of the plane where the full-automatic burner is located, the method further includes: The dual-line array camera is calibrated using a calibrator, wherein an upper cover plate of the calibrator includes a first step, a second step and a third step, wherein the lengths and widths of the first step, the second step and the third step are the same, the height of the first step is greater than the height of the second step, the height of the second step is greater than the height of the third step, a plurality of right-angled triangular light-transmitting holes are evenly spaced on the first step, a plurality of square light-transmitting holes are evenly spaced on the second step, and two rows of circular light-transmitting holes are evenly spaced and cross-distributed on the third step.
6. A device for determining chip placement parameters in a tray, characterized in that: include: An image acquisition module, the image acquisition module is used to acquire a pallet image of a pallet to be positioned on the fully automatic burner, perform size detection on the pallet image to obtain size points, and construct pallet point cloud data using the pallet image; A matching module, the matching module is used to match the pallet point cloud data with a pre-created size and shape type library to obtain a target size and shape type; A chip placement area recognition module, the chip placement area recognition module is used to input the target size and shape type and the tray image into a pre-trained chip placement area intelligent recognition model to obtain an output candidate chip placement area; A chip placement point determination module, the chip placement point determination module is used to select a chip placement point from the candidate chip placement area and determine the position coordinates of the chip placement point according to the tray point cloud data; A first calculation module, the first calculation module is used to calculate the tray clutch degree between the size point and the chip placement point on the tray image; A second calculation module, the second calculation module is used to calculate the posture parameter and the rotation direction value of the chip placement point according to the tray clutch degree, wherein the rotation direction value represents the rotation direction of the rotation mechanism of the tray to be positioned; a chip placement parameter determination module, the chip placement parameter determination module being used to send the position coordinates, the posture parameters and the rotation direction value as chip placement parameters to a tray positioning device; The step of calculating the degree of engagement of the tray between the size point and the chip placement point on the tray image includes: Determine the equation of the straight line according to the coordinates of the chip placement point and the dimension point; Extracting the center line pixel point coordinates of the tray to be positioned between the size point and the chip placement point from the tray image; Substituting the straight line equation and the center line pixel point coordinates into formula 1 to obtain the tray clutch degree; Among them, ε represents the degree of tray clutch, n represents the number of center line pixels, and the straight line equation is x=ay+b. x g Indicates the horizontal coordinate of the chip placement point, y g Indicates the vertical coordinate of the chip placement point, x h Indicates the horizontal coordinate of the dimension point, y h Indicates the ordinate of the dimension point; Calculating the attitude parameter and the rotation direction value of the chip placement point according to the tray clutch degree includes: comparing the tray clutch degree with a preset value; When the tray clutch degree does not exceed the preset value, a first posture parameter is calculated according to the size point and the chip placement point, wherein the first posture parameter is expressed as x g Indicates the horizontal coordinate of the chip placement point, y g Indicates the vertical coordinate of the chip placement point, x h Indicates the horizontal coordinate of the dimension point, y h Indicates the ordinate of the dimension point; When the tray clutch degree does not exceed the preset value, the posture point is first determined according to the chip placement point and the size point, and then the second posture parameter is calculated according to the posture point and the chip placement point, wherein the second posture parameter is expressed as x g Indicates the horizontal coordinate of the chip placement point, y g Indicates the vertical coordinate of the chip placement point, x z Indicates the horizontal coordinate of the posture point, y z The ordinate of the attitude point; Calculate the rotation direction value according to formula 2; Where p represents the rotation direction value, p = 1 means the rotating mechanism rotates clockwise, p = -1 means the rotating mechanism rotates counterclockwise, y h Indicates the vertical position of the dimension point, y g Indicates the vertical coordinate of the chip placement point, y z Indicates the vertical coordinate of the posture point.
7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method for determining chip placement parameters in a tray as described in any one of claims 1 to 5 is implemented.
8. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for determining chip placement parameters in a tray according to any one of claims 1 to 5 is implemented.
