A visual image positioning method and a tinplate badge prepared by using the method
Through the visual image positioning method, chromatic aberration detection and symmetric structure recognition technology, the problem of angular deviation in tep pen badges in riveting processing is solved, and fast and accurate positioning and pattern matching is achieved, and processing efficiency and yield rate are improved.
Patent Information
- Application Number
- CN202410967613.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-18
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2044-07-18
AI Technical Summary
In the riveting processing of existing tinplate badges, due to the difficulty in quickly distinguishing the angle deviation of the pattern and the bottom cover by manual positioning, the processing efficiency and the yield rate are reduced. In addition, the existing visual image recognition methods are difficult to quickly identify the orientation of complex structures. Causes pattern angle mismatch.
Using the visual image positioning method, images are collected through industrial cameras, color difference detection is used to identify the center point of the color feature area on colored paper and the bottom cover, the reference line is determined, and the deviation angle is calculated through the axis of the symmetrical structure to achieve rapid and accurate positioning.
Through chromatic aberration detection and image recognition technology, the colored paper and the bottom cover are positioned quickly and accurately, ensuring pattern matching, improving processing efficiency and yield, and reducing artificial errors.
Smart Images

Figure CN118505958B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of image processing, in particular to a visual image positioning method and a tinplate badge prepared by using the method. Background Art
[0002] Tinplate is a commonly used alloy material with the characteristics of rust resistance, wear resistance, and uniform color. Tinplate badges are highly tolerant of customized content and can meet various pattern and color requirements. Not only can they restore the classic pictures in their original flavor, but they can also add lasers, glitter, etc. to increase the visual effect and texture.
[0003] During the riveting process of tinplate badges, it is usually necessary to position the pattern and the bottom cover on the tinplate badge so that the angle of the pattern on the badge can match the wearing angle of the bottom cover. The existing positioning method usually adopts manual positioning, which requires manual adjustment of the placement angle of the colored paper or the bottom cover in the mold to make the two match as much as possible. However, it is difficult to quickly distinguish the angle deviation between the two during manual positioning, and the positioning speed is slow, which affects the processing efficiency. In addition, manual positioning is usually determined by the naked eye, which is prone to errors and affects the product yield.
[0004] At present, Chinese patent publication number CN220482630U discloses a semi-automatic badge press, including a frame, a motor-driven divider mechanism is fixedly connected to the top of the frame, and the A and B alternating mold mechanisms are rotatably connected to the top of the turntable mechanism on which the motor-driven divider is installed, and a material platform, a paper moving mechanism, a visual recognition and angle adaptation mechanism, a riveting mechanism, a finished product discharge bin, and an operation panel are fixedly connected to the top of the frame.
[0005] Although this semi-automatic badge press can adjust the paper and the bottom cover through visual recognition and its angle adaptation mechanism, since a variety of patterns are usually required when preparing tinplate badges, and the badge patterns have complex colors and diverse structures, the existing visual image recognition methods are difficult to quickly identify the specific positions of the colored paper and the bottom cover. During the riveting process, the positions of the colored paper and the bottom cover are prone to deviations, resulting in the pattern angle on the colored paper being incompatible with the bottom cover angle, and the badge pattern being deviated when the badge is worn. Summary of the invention
[0006] In view of the above-mentioned shortcomings of the prior art, the object of the present invention is to provide a visual image positioning method and a tinplate badge prepared by using the method.
[0007] To achieve the above object and other related objects, the present invention provides a visual image positioning method, comprising the following steps:
[0008] S1, image acquisition, using an industrial camera to respectively acquire planar images of the first component and the second component;
[0009] S2, locating the first center point, identifying the first color feature in the first component image by color difference detection, determining the range of the first color feature area, and calculating the center point of the first color feature area;
[0010] S3, determining a second center point, identifying a second color feature in the first component image by color difference detection, determining a second color feature region range, and calculating a second color region feature center point;
[0011] S4, determining a first reference line, connecting the center point of the first color area and the center point of the second color area to form the first reference line;
[0012] S5, confirming the second reference line, identifying the symmetrical structure features in the second component image, calculating and drawing the symmetry axis of the symmetrical structure, and matching the symmetry axis with the center point of the second component so that the symmetry axis passing through the center of the second component is the second reference line;
[0013] S6. Calculate the deviation angle, overlap the first component image and the second component image, and measure the angle between the first reference line and the second reference line.
[0014] By adopting the above technical solution and the principle of color difference detection, the first color feature and the second color feature on the first component are respectively and quickly identified, and the first reference line is determined by the center points of the two color feature areas, so as to quickly locate the specific position of the first component. Then, the symmetrical structure in the second component is identified by image recognition technology, and the symmetry axis of the two structures is quickly calculated and drawn according to the characteristics of the docking structure. The second reference line of the second component is quickly determined by the axis of the symmetrical structure in conjunction with the center point of the second component image, so as to determine the specific position of the second component. Finally, the first reference line is overlapped and compared with the second reference line, and the angle between the two reference lines is calculated, so as to judge the deviation angle of the two components, so as to enable the two components to be quickly aligned, so as to ensure that the reference patterns of the two components match without deviation.
[0015] In one embodiment of the present invention, the first color characteristic region is disposed around an edge of the first component image, and a center point of the first color characteristic region is a center point of the first component image.
[0016] By adopting the above technical solution, the first color characteristic area is arranged around the edge of the first component image, so that when the center of the first color characteristic area is confirmed, the center of the entire first component image can be determined simultaneously, and the first color characteristic area can be arranged in a ring.
[0017] In one embodiment of the present invention, the second color characteristic region is located within the first color characteristic region, and the second color characteristic is different in color from the first color characteristic.
[0018] By adopting the above technical solution, the second color feature area is set in the first color feature area. Since the second color feature is different from the first color feature in color, the second color feature area can be quickly identified by color difference detection, and the basic direction of the first component image can be determined by the second color feature area.
[0019] In one embodiment of the present invention, in step S6, a custom coordinate system is established, the coordinates of the first reference line and the second reference line are confirmed, and the second reference line is projected onto the first reference line image.
[0020] By adopting the above technical solution and using the coordinate system projection method, the centers of the two components are used as reference points, and the second reference line is projected onto the first reference line accordingly, so that the comparison between the two reference lines is more intuitive and obvious, and the angle calculation is more accurate.
[0021] A tinplate badge prepared by using the visual image positioning method as described above, wherein the first component is colored paper, the second component is a bottom cover, the first color characteristic area is arranged at the edge of the colored paper, and the bottom cover has symmetrically arranged pin holes.
[0022] By adopting the above technical solution, the center of the colored paper can be quickly located through the first color feature area on the edge of the colored paper. There is no need to identify the colored paper pattern. Only the first color feature area needs to be image-recognized to locate the center of the entire colored paper. Then, the first reference line of the colored paper is determined by the second color feature area, so that the colored paper can be quickly located and the specific direction of the colored paper can be determined. The pin hole is used as the bottom cover identification feature to quickly determine the second reference line of the bottom cover, thereby realizing the rapid positioning of the colored paper and the bottom cover, and quickly matching the colored paper with the bottom cover.
[0023] In one embodiment of the present invention, the first color feature area includes a first identification ring arranged around the edge of the colored paper pattern and a second identification ring arranged outside the first identification ring along the radial direction of the colored paper. The first identification ring and the second identification ring have different colors, and the center of the first identification ring coincides with the center of the colored paper.
[0024] By adopting the above technical solution, the first identification ring is set between the second identification ring and the colored paper pattern, and the color characteristics of the second identification ring are different from those of the first identification ring. By comparing the color saturation of the first identification ring and the second identification ring, the structural characteristics of the first identification ring can be quickly identified by using color difference detection, and the center of the first identification ring can be determined together, so that feature recognition is more efficient and less prone to errors.
[0025] In one embodiment of the present invention, the width of the second identification ring is greater than the width of the first identification ring, and both the first identification ring and the second identification ring are located in the folding area of the colored paper.
[0026] By adopting the above technical solution, the structural features of the first identification ring and the second identification ring can be better grasped through color difference detection, making positioning more efficient and less prone to errors. Moreover, during the riveting process, the first identification ring and the second identification ring can be bent inward into the bottom cover without affecting the aesthetics of the badge surface, thereby realizing a hidden design.
[0027] In one embodiment of the present invention, the second color characteristic region is located on the longitudinal symmetry axis of the first identification ring and is located at the upper end of the first identification ring.
[0028] By adopting the above technical solution, the direction of the colored paper is quickly determined by the second color characteristic area.
[0029] In one embodiment of the present invention, the second color characteristic area includes a first marking area arranged on a first identification ring and a second marking area arranged on a second identification ring, the first marking area and the second marking area are arranged on the same radius line, and the first marking area and the first identification ring have different colors, and the second marking area and the second identification ring have different colors.
[0030] By adopting the above technical solution and using the first marking area and the second marking area, the color contrast between the second color characteristic area and the first color characteristic area is more obvious, and the second color characteristic area can be quickly determined from the first color characteristic area through color difference detection, making the identification of the second color privileged area more accurate, faster and less prone to errors.
[0031] As described above, the tinplate badge and the visual positioning processing method thereof of the present invention have the following beneficial effects: by adopting the color difference detection principle, the first color feature and the second color feature on the colored paper are respectively quickly identified, and the first reference line is determined by the center points of the two color feature areas, and then the specific position of the colored paper is quickly located, and then the symmetrical structure pinholes on the bottom cover are identified by image recognition technology, and the symmetry axis of the two structures is quickly calculated and drawn according to the two pinholes, and the second reference line of the second component is quickly determined by the symmetrical structure axis in conjunction with the center of the bottom cover, and then the specific position of the bottom cover is determined, and finally the first reference line is overlapped and compared with the second reference line, and the angle between the two reference lines is calculated, and then the deviation angle of the two components is determined, so that the two components can be quickly aligned, thereby ensuring that the reference patterns of the two components match and there is no deviation. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 Shown is a schematic diagram of the structure of the colored paper disclosed in the second embodiment of the present invention;
[0033] Figure 2 Shown is a schematic diagram of the structure of the bottom cover disclosed in the second embodiment of the present invention;
[0034] Figure 3The display is the first reference schematic diagram disclosed in the third embodiment of the present invention;
[0035] Figure 4 The display is the second reference schematic diagram disclosed in the third embodiment of the present invention;
[0036] Figure 5 It shows a schematic diagram of the second reference projection disclosed in the third embodiment of the present invention.
[0037] Component number description
[0038] 1. Colored paper; 2. Bottom cover; 3. Identification part; 4. Marking part; 5. Pin hole;
[0039] 10. First identification ring; 11. Second identification ring; 12. First marking area; 13. Second marking area;
[0040] 20. First benchmark; 21. Second benchmark. DETAILED DESCRIPTION
[0041] The following is a description of the implementation of the present invention by means of specific embodiments. Those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification.
[0042] See also Figures 1 to 5 . It should be noted that the structures, proportions, sizes, etc. illustrated in the drawings in this specification are only used to match the contents disclosed in the specification for people familiar with this technology to understand and read, and are not used to limit the limiting conditions for the implementation of the present invention, so they have no substantial technical significance. Any modification of the structure, change in the proportional relationship, or adjustment of the size should still fall within the scope of the technical content disclosed by the present invention without affecting the effects and purposes that can be achieved by the present invention. At the same time, the terms such as "upper", "lower", "left", "right", "middle" and "one" quoted in this specification are only for the convenience of description, and are not used to limit the scope of the implementation of the present invention. Changes or adjustments in their relative relationships should also be regarded as the scope of the implementation of the present invention without substantially changing the technical content.
[0043] Embodiment 1:
[0044] This embodiment provides a visual image positioning method, comprising the following steps:
[0045] S1, image acquisition, using an industrial camera to respectively acquire planar images of the first component and the second component;
[0046] S2, locating the first center point, identifying the first color feature in the first component image by color difference detection, determining the range of the first color feature area, and calculating the center point of the first color feature area;
[0047] The first color characteristic region is arranged around the edge of the first component image, the center point of the first color characteristic region is the center point of the first component image, and the first color characteristic region can be arranged in a ring shape.
[0048] S3, determining a second center point, identifying a second color feature in the first component image by color difference detection, determining a second color feature region range, and calculating a second color region feature center point;
[0049] The second color characteristic region is located within the first color characteristic region, and the second color characteristic is different in color from the first color characteristic.
[0050] S4, determining a first reference line, connecting the center point of the first color area and the center point of the second color area to form the first reference line;
[0051] S5, confirming the second reference line, identifying the symmetrical structure features in the second component image, calculating and drawing the symmetry axis of the symmetrical structure, and matching the symmetry axis with the center point of the second component so that the symmetry axis passing through the center of the second component is the second reference line;
[0052] S6. Calculate the deviation angle, overlap the first component image and the second component image, and measure the angle between the first reference line and the second reference line.
[0053] A custom coordinate system is established, the coordinates of the first and second baselines are confirmed, and the second baseline is projected onto the first baseline image.
[0054] Embodiment 2:
[0055] like Figure 1 , Figure 2 As shown, this embodiment provides a tinplate badge prepared by the visual image positioning method as described in Example 1, including a colored paper 1 with a pattern and a bottom cover 2 with a pin hole 5. The colored paper 1 and the bottom cover 2 are both circular in shape. The edge of the colored paper 1 is provided with an identification portion 3 for locating the center of the colored paper 1 and a marking portion 4 corresponding to the pattern of the colored paper 1 and provided on the identification portion 3 to mark the direction of the pattern. The pattern of the colored paper 1 is located on the inner side of the identification portion 3, and two pin holes 5 are provided and are arranged on both sides of the bottom cover 2 opposite to each other.
[0056] The colored paper 1 is correspondingly configured as the first component, the bottom cover 2 is correspondingly configured as the second component, the identification portion 3 at the edge of the colored paper 1 is the first color characteristic area, and the marking portion 4 is the second color characteristic area.
[0057] The identification part 3 includes a first identification ring 10 arranged around the edge of the pattern of the colored paper 1 and a second identification ring 11 arranged radially outside the first identification ring 10 . The first identification ring 10 and the second identification ring 11 are concentrically arranged, and the center of the first identification ring 10 coincides with the center of the colored paper 1 .
[0058] The first identification ring 10 and the second identification ring 11 are of different colors. The first identification ring 10 is white, and the second identification ring 11 is black. The width of the second identification ring 11 is greater than that of the first identification ring 10. Both the first identification ring 10 and the second identification ring 11 are located in the folding area of the colored paper 1. When the badge is riveted, the first identification ring 10 and the second identification ring 11 can be bent and folded into the bottom cover 2 so that they are not displayed on the surface of the badge.
[0059] The marking portion 4 is located on the longitudinal symmetric axis of the first identification ring 10 and at the upper end of the first identification ring 10 , so that the marking portion 4 is located directly above the pattern of the colored paper 1 .
[0060] The marking portion 4 includes a first marking area 12 arranged on the first identification ring 10 and a second marking area 13 arranged on the second identification ring 11. The first marking area 12 and the second marking area 13 are arranged on the same radius line, and the first marking area 12 and the first identification ring 10 have different colors, and the second marking area 13 and the second identification ring 11 have different colors.
[0061] The first marking area 12 is black, and the second marking area 13 is white. The first marking area 12 and the second marking area 13 are both fan-shaped, filling the first identification ring 10 and the second identification ring 11 respectively, which can quickly identify the first marking area 12 and the second marking area 13 and determine the orientation of the pattern on the colored paper 1.
[0062] An identification portion 3 can be set on the edge of the colored paper 1 to quickly locate the center of the colored paper 1. There is no need to identify the pattern of the colored paper 1. Only the identification portion 3 needs to be identified to locate the center of the entire colored paper 1. Then, the reference direction of the colored paper 1 is determined by the marking portion 4 to achieve rapid positioning of the colored paper 1. The pin hole 5 is used as the identification feature of the bottom cover 2 to quickly determine the reference of the bottom cover 2, thereby achieving rapid positioning of the colored paper 1 and the bottom cover 2. Moreover, the recognition accuracy is high and no manual intervention is required.
[0063] Embodiment three:
[0064] This embodiment provides a tinplate badge processing method as described in Embodiment 2, comprising the following steps:
[0065] S1, image acquisition, placing the colored paper 1 and the bottom cover 2 horizontally in the corresponding molds, and using an industrial camera to capture the plane images of the colored paper 1 and the bottom cover 2 from top to bottom;
[0066] S2, locating the center of the colored paper, identifying the first identification ring 10 by using color difference vision, and locating the center of the first identification ring 10;
[0067] First, the second identification ring 11 with a wider ring width is identified by visual positioning, and then the first identification ring 10 is confirmed by the first identification ring 10 screening factors, and the first identification ring 10 screening factors include the view area type, line width, color change and point selection method;
[0068] Select annular area detection as the view area type, determine the line width with the width of the first identification ring 10, select the color change from black to white, and select the peak point as the point selection method to identify and locate the first identification ring 10, and determine the center of the first identification ring 10, which is the center of the colored paper 1.
[0069] S3, establishing a first reference line 20, identifying the marking area, connecting the center of the circle and the center point of the marking area to establish the first reference line 20;
[0070] The first marking area 12 and the second marking area 13 are identified by color change, and the range threshold of the second marking area 13 is determined. The second marking area 13 is the pattern of the colored paper 1, and then the center point of the marking part 4 is determined. The first reference line 20 is determined by the center of the colored paper 1 and the marking part 4. Figure 3 shown.
[0071] S4, establishing a second reference line 21, identifying the pin hole 5 of the bottom cover 2, drawing the alignment axis of the two pin holes 5, and locating the center of the bottom cover 2;
[0072] Identify the two pin holes 5 on the bottom cover 2. The pin holes 5 are provided with a plurality of characteristic identification points. The identification points on the two pin holes 5 correspond to each other. Connect the two corresponding identification points to form a connecting line. Determine the midpoint of the connecting line. Connect the midpoints of a plurality of connecting lines to form a perpendicular bisector of the two pin holes. The perpendicular bisector is the symmetry axis of the two pin holes. This is used as the second reference line 21. Figure 4 shown.
[0073] S5, calculating the deviation angle, comparing the first reference line 20 with the second reference line 21, matching the center of the colored paper 1 with the center of the bottom cover 2, and calculating the angle between the first reference line 20 and the second reference line 21;
[0074] Establish a custom coordinate system, confirm the coordinates of the first reference line 20 and the second reference line 21, take the center of the circle as the base point, project the second reference line 21 onto the image of the colored paper 1, compare it with the first reference line 20, and calculate the deviation angle between the first reference line 20 and the second reference line 21, such as Figure 5 shown.
[0075] S6, rotate, select an angle, rotate the colored paper 1 or the bottom cover 2 so that the first reference line 20 coincides with the second reference line 21, and complete the matching of the colored paper 1 and the bottom cover 2.
[0076] In summary, the present invention can respectively quickly identify the first color feature and the second color feature on the colored paper by adopting the color difference detection principle, and determine the first reference line by the center points of the two color feature areas, and then quickly locate the specific position of the colored paper, and then identify the symmetrical structure pinholes on the bottom cover by image recognition technology, and quickly calculate and draw the symmetry axis of the two structures according to the two pinholes, and quickly determine the second reference line of the second component by the symmetrical structure axis in conjunction with the center of the bottom cover, and then determine the specific position of the bottom cover, and finally, overlap and compare the first reference line with the second reference line, calculate the angle between the two reference lines, and then judge the deviation angle of the two components, so that the two components can be quickly aligned, thereby ensuring that the reference patterns of the two components match without deviation.
[0077] Therefore, the present invention effectively overcomes various shortcomings in the prior art and has high industrial utilization value.
[0078] The above embodiments are merely illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. Anyone familiar with the art may modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or alterations made by a person of ordinary skill in the art without departing from the spirit and technical concept disclosed by the present invention shall still be covered by the claims of the present invention.
Claims
1. A visual image positioning method, characterized in that: The following steps are involved: S1, image acquisition, using an industrial camera to respectively acquire planar images of the first component and the second component; S2, locating the first center point, identifying the first color feature with a ring-shaped area in the first component image by color difference detection, determining the range of the first color feature area, and calculating the center point of the first color feature area; S3, determining a second center point, identifying a second color feature in the first component image that is located in the first color feature area and has a different color from the first color feature by color difference detection, determining the range of the second color feature area, and calculating a center point of the second color area feature; S4, determining a first reference line, connecting the center point of the first color area and the center point of the second color area to form the first reference line; S5, confirming the second reference line, identifying the symmetrical structure features in the second component image, calculating and drawing the symmetry axis of the symmetrical structure, and matching the symmetry axis with the center point of the second component so that the symmetry axis passing through the center of the second component is the second reference line; S6. Calculate the deviation angle, overlap the first component image and the second component image, and measure the angle between the first reference line and the second reference line.
2. The visual image positioning method according to claim 1, characterized in that: The first color feature region is arranged around the edge of the first component image, and the center point of the first color feature region is the center point of the first component image.
3. The visual image positioning method according to claim 2, characterized in that: The second color characteristic region is located within the first color characteristic region, and the second color characteristic is different in color from the first color characteristic.
4. The visual image positioning method according to claim 1, characterized in that: In the step S6, a custom coordinate system is established, the coordinates of the first reference line and the second reference line are confirmed, and the second reference line is projected onto the first reference line image.
5. A tinplate badge prepared by the visual image positioning method according to any one of claims 1 to 4, characterized in that: The first component is colored paper, the second component is a bottom cover, the first color characteristic area is arranged at the edge of the colored paper, and the bottom cover is provided with symmetrically arranged pin holes.
6. The tinplate badge according to claim 5, characterized in that: The first color characteristic area includes a first identification ring arranged around the edge of the colored paper pattern and a second identification ring arranged outside the first identification ring along the radial direction of the colored paper. The first identification ring and the second identification ring have different colors, and the center of the first identification ring coincides with the center of the colored paper.
7. The tinplate badge according to claim 6, characterized in that: The width of the second identification ring is greater than that of the first identification ring, and both the first identification ring and the second identification ring are located in the folding area of the colored paper.
8. The tinplate badge according to claim 6, characterized in that: The second color characteristic area is located on the longitudinal symmetry axis of the first identification ring and is located at the upper end of the first identification ring.
9. The tinplate badge according to claim 8, characterized in that: The second color characteristic area includes a first marking area set on the first identification ring and a second marking area set on the second identification ring. The first marking area and the second marking area are set on the same radius line, and the first marking area and the first identification ring have different colors, and the second marking area and the second identification ring have different colors.
