A method for setting a two-dimensional code of an FPC and a storage medium
By identifying the line position on the FPC and setting auxiliary lines to check the offset, the problem of setting QR codes on small-sized FPCs was solved, achieving accurate pasting and integrity of QR codes.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- TAISHAN JINGCHENGDA CIRCUIT TECH CO LTD
- Filing Date
- 2022-12-13
- Publication Date
- 2026-07-24
AI Technical Summary
Existing technologies make it difficult to effectively set up QR codes on small-sized FPCs, especially when setting them up on lines, which can easily lead to open circuits or misalignment, resulting in product scrap.
The camera identifies the location of the FPC lines, and the guide lines are used to match and align the lines with the edges. A QR code is printed on a large sheet of paper, and guide lines are set to check for misalignment, ensuring that the QR code is accurately pasted.
It enables precise pasting of QR codes on small-sized FPCs, avoiding open circuits and misalignment issues, and improving pasting efficiency and integrity.
Smart Images

Figure CN116245133B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of FPC production technology, and in particular to a method for setting QR codes and a storage medium for FPCs. Background Technology
[0002] Currently, most FPCs (Flexible Printed Circuits) require QR code traceability, and product sizes are getting smaller (product size < 2.5*2.5mm), with QR code sizes ≤ 2*2mm. This has become a challenge for FPC manufacturers, and currently, there are three common operating models in FPC factories:
[0003] (1) As Figure 3 As shown, QR code printing is performed through a text silkscreen process. Currently, the smallest QR code that can be printed is 3*3mm. Codes smaller than 3*3mm cannot be printed. The smallest ink droplet of the printed QR code is 0.2mm, which cannot form a QR code image.
[0004] (2) Laser engraving of QR codes on products. Laser engraving can only be done on the waste area of the product, on steel sheets, or on ink. However, product QR codes generally need to be set on the line. If the QR code is laser engraved on the line, it will cause the line to open and the product will be scrapped. Therefore, this solution is not feasible.
[0005] (3) Figure 4 As shown, paper QR codes are printed and affixed before finished product inspection. Currently, the smallest paper size for printing paper QR codes used by printer manufacturers and professional die-cutting manufacturers in the industry is 3*3mm. QR codes on paper smaller than 3*3mm do not meet the requirements for batch prototyping and will result in misalignment after printing.
[0006] Therefore, there are currently some difficulties in implementing QR code settings for FPC. Summary of the Invention
[0007] The technical problem to be solved by the present invention is to provide a QR code setting method and storage medium for FPC, which can effectively realize QR code setting of FPC in small-sized FPC and ensure the accuracy and effectiveness of QR code setting.
[0008] To solve the above-mentioned technical problems, the technical solution adopted by the present invention is as follows:
[0009] A method for setting up a QR code on an FPC includes the following steps:
[0010] S1. Identify the location of the wires to be pasted on the FPC using a camera;
[0011] S2. Identify the edge of the line, match and align the QR code strip with the line, and control the device to attach the QR code strip to the line to be pasted;
[0012] S3. Identify the auxiliary lines of each QR code in the QR code sticker. Based on the number of auxiliary lines identified for each QR code and the relationship between the auxiliary lines and the edge of the line where the QR code is located, determine whether there is any misalignment.
[0013] The QR code sticker has a size greater than 3*3mm, the QR code has a size less than 3*3mm, and the auxiliary lines are located on the extension lines of the two opposite edges of the QR code.
[0014] To solve the above-mentioned technical problems, another technical solution adopted by the present invention is as follows:
[0015] A storage medium having a computer program stored thereon, wherein the computer program, when executed, performs the following steps:
[0016] S1. Identify the location of the wires to be pasted on the FPC using a camera;
[0017] S2. Identify the edge of the line, match and align the QR code strip with the line, and control the device to attach the QR code strip to the line to be pasted;
[0018] S3. Identify the auxiliary lines of each QR code in the QR code sticker. Based on the number of auxiliary lines identified for each QR code and the relationship between the auxiliary lines and the edge of the line where the QR code is located, determine whether there is any misalignment.
[0019] The QR code sticker has a size greater than 3*3mm, the QR code has a size less than 3*3mm, and the auxiliary lines are located on the extension lines of the two opposite edges of the QR code.
[0020] The beneficial effects of the present invention are as follows: The QR code setting method and storage medium of the present invention for FPC are different from the existing printing methods that match the size of the QR code to the printing paper. By printing the QR code on a larger paper, the integrity of the QR code printing is guaranteed. However, printing the QR code on a larger paper can easily lead to misalignment when pasting the QR code. The present invention also sets auxiliary lines to realize the verification of misalignment, thereby ensuring the accuracy and integrity of the QR code pasting. Attached Figure Description
[0021] Figure 1 A flowchart illustrating a method for setting a QR code on an FPC according to an embodiment of the present invention;
[0022] Figure 2 This is an example diagram of QR code sticker application in an FPC QR code setting method according to an embodiment of the present invention;
[0023] Figure 3 This is an example diagram of the QR code printing effect mentioned in the background art of this invention;
[0024] Figure 4 This is an example image of the paper QR code printing effect mentioned in the background art of this invention;
[0025] Figure 5 This is an example image of the QR code laser engraving effect mentioned in the background technology of this invention;
[0026] Figure 6 This is an example diagram of a QR code and its auxiliary lines for a QR code setting method for an FPC according to an embodiment of the present invention. Detailed Implementation
[0027] To explain in detail the technical content, objectives, and effects of the present invention, the following description is provided in conjunction with the embodiments and accompanying drawings.
[0028] Please refer to Figure 1 A method for setting up a QR code on an FPC, including the following steps:
[0029] S1. Identify the location of the wires to be pasted on the FPC using a camera;
[0030] S2. Identify the edge of the line, match and align the QR code strip with the line, and control the device to attach the QR code strip to the line to be pasted;
[0031] S3. Identify the auxiliary lines of each QR code in the QR code sticker. Based on the number of auxiliary lines identified for each QR code and the relationship between the auxiliary lines and the edge of the line where the QR code is located, determine whether there is any misalignment.
[0032] The QR code sticker has a size greater than 3*3mm, the QR code has a size less than 3*3mm, and the auxiliary lines are located on the extension lines of the two opposite edges of the QR code.
[0033] As can be seen from the above description, the beneficial effects of the present invention are as follows: The QR code setting method and storage medium of the present invention for FPC are different from the existing printing methods that match the size of the QR code to the printing paper. By printing the QR code on a larger piece of paper, the integrity of the QR code printing is ensured. However, printing the QR code on a larger piece of paper can easily lead to misalignment when pasting the QR code. The present invention also sets auxiliary lines to realize the verification of misalignment, thereby ensuring the accuracy and integrity of the QR code pasting.
[0034] Furthermore, the QR code strip has at least one row of QR codes, and each row includes at least two QR codes with a spacing between adjacent QR codes.
[0035] Furthermore, the QR code strip has at least one column of QR codes, and each column includes at least two QR codes, with a gap between adjacent QR codes.
[0036] As described above, printing multiple QR codes simultaneously on a single QR code sticker ensures both printing efficiency and accuracy, fully utilizes the space of the QR code sticker, and allows for "one line, multiple lines" during pasting, resulting in higher pasting efficiency.
[0037] Further, step S3 specifically includes:
[0038] Identify the auxiliary lines of the QR code on the route and determine if the number of auxiliary lines is less than 3. If so, it is considered that the QR code pasting on the current route is misaligned.
[0039] Identify the auxiliary lines of the QR code on the route and check if each auxiliary line is parallel to the edge of the route. If not, it is considered that the QR code is misaligned on the current route.
[0040] As described above, by recognizing the number of auxiliary lines and their parallelism to the edge of the line, it is possible to effectively determine whether the pasting has been misaligned, and the recognition is accurate, thus fully ensuring the integrity and effectiveness of the QR code pasting.
[0041] Further, step S1 specifically includes:
[0042] The system acquires images of the FPC using a camera and identifies the marker points within them.
[0043] The location of the line is determined by offsetting the position of the marked point and performing edge recognition on the line.
[0044] As described above, the approximate location of the line can be quickly obtained through the preset markers on the FPC, and the location of the line to be pasted can be quickly determined through edge recognition.
[0045] A storage medium having a computer program stored thereon, wherein the computer program, when executed, performs the following steps:
[0046] S1. Identify the location of the wires to be pasted on the FPC using a camera;
[0047] S2. Identify the edge of the line, match and align the QR code strip with the line, and control the device to attach the QR code strip to the line to be pasted;
[0048] S3. Identify the auxiliary lines of each QR code in the QR code sticker. Based on the number of auxiliary lines identified for each QR code and the relationship between the auxiliary lines and the edge of the line where the QR code is located, determine whether there is any misalignment.
[0049] The QR code sticker has a size greater than 3*3mm, the QR code has a size less than 3*3mm, and the auxiliary lines are located on the extension lines of the two opposite edges of the QR code.
[0050] As can be seen from the above description, the beneficial effects of the present invention are as follows: The QR code setting method and storage medium of the present invention for FPC are different from the existing printing methods that match the size of the QR code to the printing paper. By printing the QR code on a larger piece of paper, the integrity of the QR code printing is ensured. However, printing the QR code on a larger piece of paper can easily lead to misalignment when pasting the QR code. The present invention also sets auxiliary lines to realize the verification of misalignment, thereby ensuring the accuracy and integrity of the QR code pasting.
[0051] Furthermore, the QR code strip has at least one row of QR codes, and each row includes at least two QR codes with a spacing between adjacent QR codes.
[0052] Furthermore, the QR code strip has at least one column of QR codes, and each column includes at least two QR codes, with a gap between adjacent QR codes.
[0053] As described above, printing multiple QR codes simultaneously on a single QR code sticker ensures both printing efficiency and accuracy, fully utilizes the space of the QR code sticker, and allows for "one line, multiple lines" during pasting, resulting in higher pasting efficiency.
[0054] Further, step S3 specifically includes:
[0055] Identify the auxiliary lines of the QR code on the route and determine if the number of auxiliary lines is less than 3. If so, it is considered that the QR code pasting on the current route is misaligned.
[0056] Identify the auxiliary lines of the QR code on the route and check if each auxiliary line is parallel to the edge of the route. If not, it is considered that the QR code is misaligned on the current route.
[0057] As described above, by recognizing the number of auxiliary lines and their parallelism to the edge of the line, it is possible to effectively determine whether the pasting has been misaligned, and the recognition is accurate, thus fully ensuring the integrity and effectiveness of the QR code pasting.
[0058] Further, step S1 specifically includes:
[0059] The system acquires images of the FPC using a camera and identifies the marker points within them.
[0060] The location of the line is determined by offsetting the position of the marked point and performing edge recognition on the line.
[0061] As described above, the approximate location of the line can be quickly obtained through the preset markers on the FPC, and the location of the line to be pasted can be quickly determined through edge recognition.
[0062] The present invention provides a method and storage medium for setting QR codes on FPCs, which is suitable for pasting QR codes on small-sized FPCs.
[0063] Please refer to Figure 1 , 2 6. Embodiment 1 of the present invention is as follows:
[0064] A method for setting up a QR code on an FPC includes the following steps:
[0065] S1. Identify the location of the wires to be pasted on the FPC using a camera;
[0066] Step S1 specifically involves:
[0067] The system acquires images of the FPC using a camera and identifies the marker points within them.
[0068] The location of the line is determined by offsetting the position of the marked point and performing edge recognition on the line.
[0069] In this embodiment, a CCD camera is used for image acquisition. The camera first identifies the Mark alignment points on the entire FPC, and then preliminarily determines the position of the lines to be bonded based on a preset offset. With current technology, the bonding accuracy of the device can reach 0.05mm.
[0070] Meanwhile, in other equivalent embodiments, the color of the line can be distinguished from the background color, thereby enabling more efficient and accurate identification.
[0071] S2. Identify the edge of the line, match and align the QR code strip with the line, and control the device to attach the QR code strip to the line to be pasted.
[0072] In this embodiment, the device is controlled to adhere the lines by matching the edges of the etched lines with the edges of the QR code stickers.
[0073] FPC lines are often arranged in multiple parallel configurations. Therefore, in this embodiment, multiple QR codes are printed on a single QR code sticker. Depending on the actual orientation of the sticker, the QR codes can be arranged in rows or columns, and multiple rows / columns of QR codes can exist within a single QR code sticker.
[0074] Therefore, QR code stickers can also be produced in rolls and cut according to actual needs.
[0075] In addition, the QR code after bonding can be segmented according to the gaps between the lines, or the QR code strip at the gaps can be pressed down during bonding. An example of the bonded result can be found here. Figure 2 .
[0076] S3. Identify the auxiliary lines of each QR code in the QR code sticker. Based on the number of auxiliary lines identified for each QR code and the relationship between the auxiliary lines and the edge of the line where the QR code is located, determine whether there is any misalignment.
[0077] Step S3 specifically involves:
[0078] Identify the auxiliary lines of the QR code on the route and determine if the number of auxiliary lines is less than 3. If so, it is considered that the QR code pasting on the current route is misaligned.
[0079] Identify the auxiliary lines of the QR code on the route and check if each auxiliary line is parallel to the edge of the route. If not, it is considered that the QR code is misaligned on the current route.
[0080] In this embodiment, misalignment may occur after the QR code strip is attached. Especially if the QR code is over-segmented, it may result in incomplete QR code information. Therefore, this invention includes auxiliary lines for the QR code.
[0081] like Figure 6 As shown, the auxiliary lines of the QR code are parallel to the two opposite edges of the QR code and located on the extension lines of the edges. After the QR code sticker is pasted, the auxiliary lines are identified. For each QR code, it is determined whether all four auxiliary lines can be identified. If at least one auxiliary line is not identified, it indicates that the QR code is misaligned or incomplete, and it needs to be re-pasted. Simultaneously, determining whether the auxiliary lines are parallel to the edges of the lines (within a preset deviation range) is also a standard for judging whether the QR code is misaligned.
[0082] In scenarios where a single QR code sticker is pasted onto multiple closely spaced and parallel lines at once, if one of the QR codes is detected to be misaligned, the entire QR code sticker needs to be re-pasted.
[0083] The QR code sticker has a size greater than 3*3mm, and the QR code has a size less than 3*3mm.
[0084] Embodiment 2 of the present invention is as follows:
[0085] A storage medium storing a computer program, which, when executed, implements the steps of the QR code setting method for an FPC according to Embodiment 1 above.
[0086] In summary, the QR code setting method and storage medium provided by this invention differ from existing QR code printing methods that match the size of the printing paper. By printing the QR code on a larger sheet of paper, the integrity of the QR code printing is ensured. However, printing QR codes on larger sheets of paper can easily lead to misalignment when pasting the QR codes. This invention also uses auxiliary lines to verify the misalignment, thereby ensuring the accuracy and integrity of the QR code pasting.
[0087] The above description is merely an embodiment of the present invention and does not limit the patent scope of the present invention. Any equivalent modifications made based on the content of the present invention's specification and drawings, or direct or indirect applications in related technical fields, are similarly included within the patent protection scope of the present invention.
Claims
1. A method for setting up a QR code on an FPC, characterized in that, Including the following steps: S1. Identify the location of the wires to be pasted on the FPC using a camera; Step S1 specifically involves: The system acquires images of the FPC using a camera and identifies the marker points within them. The location of the line is determined by offsetting the position of the marked points and performing edge recognition on the line. S2. Identify the edge of the line, match and align the QR code strip with the line, and control the device to attach the QR code strip to the line to be pasted; S3. Identify the auxiliary lines of each QR code in the QR code sticker. Based on the number of auxiliary lines identified for each QR code and the relationship between the auxiliary lines and the edge of the line where the QR code is located, determine whether there is any misalignment. Step S3 specifically involves: Identify the auxiliary lines of the QR code on the route and determine if the number of auxiliary lines is less than 3. If so, it is considered that the QR code pasting on the current route is misaligned. Identify the auxiliary lines of the QR code on the route and check whether each auxiliary line is parallel to the edge of the route. If not, it is considered that the QR code is misaligned on the current route. The QR code sticker has a size greater than 3*3mm, the QR code has a size less than 3*3mm, and the auxiliary lines are located on the extension lines of the two opposite edges of the QR code.
2. The method for setting a QR code for an FPC according to claim 1, characterized in that, The QR code strip has at least one row of QR codes, and each row includes at least two QR codes with a spacing between adjacent QR codes.
3. The method for setting a QR code for an FPC according to claim 1, characterized in that, The QR code strip has at least one column of QR codes, and each column includes at least two QR codes with a gap between adjacent QR codes.
4. A storage medium having a computer program stored thereon, characterized in that, When the computer program is executed, it performs the following steps: S1. Identify the location of the wires to be pasted on the FPC using a camera; Step S1 specifically involves: The system acquires images of the FPC using a camera and identifies the marker points within them. The location of the line is determined by offsetting the position of the marked points and performing edge recognition on the line. S2. Identify the edge of the line, match and align the QR code strip with the line, and control the device to attach the QR code strip to the line to be pasted; S3. Identify the auxiliary lines of each QR code in the QR code sticker. Based on the number of auxiliary lines identified for each QR code and the relationship between the auxiliary lines and the edge of the line where the QR code is located, determine whether there is any misalignment. Step S3 specifically involves: Identify the auxiliary lines of the QR code on the route and determine if the number of auxiliary lines is less than 3. If so, it is considered that the QR code pasting on the current route is misaligned. Identify the auxiliary lines of the QR code on the route and check whether each auxiliary line is parallel to the edge of the route. If not, it is considered that the QR code is misaligned on the current route. The QR code sticker has a size greater than 3*3mm, the QR code has a size less than 3*3mm, and the auxiliary lines are located on the extension lines of the two opposite edges of the QR code.
5. A storage medium according to claim 4, characterized in that, The QR code strip has at least one row of QR codes, and each row includes at least two QR codes with a spacing between adjacent QR codes.
6. A storage medium according to claim 4, characterized in that, The QR code strip has at least one column of QR codes, and each column includes at least two QR codes with a gap between adjacent QR codes.