Method, device and equipment for correcting boundary of silk-screen area, medium and product

By performing line segment fitting and outlier processing of sampling points at the boundary of the photovoltaic glass silk screen printing area, the problem of inaccurate boundary definition of the silk screen printing area is solved and the accuracy of detection is improved.

CN119622595APending Publication Date: 2025-03-14苏州凌云光工业智能技术有限公司
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411817165.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-11
Publication Date
2025-03-14

AI Technical Summary

Technical Problem

During the production process of photovoltaic glass, the deformation of the boundary of the silk screen printing area leads to inaccurate boundary definition, which makes it easy to misjudgment of normal deformation into product defects.

Method used

By performing layer by layer line segment fitting of the sampling points at the boundary of the silk screen area, a reference line segment is generated, and outliers are determined in each sampling point to form an outlier set, and finally the correction result of the boundary of the silk screen area is determined based on the reference line segment and outlier set.

Benefits of technology

It effectively avoids misjudgment of normal deformation and improves the accuracy of screen printing appearance detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119622595A_ABST
    Figure CN119622595A_ABST
Patent Text Reader

Abstract

The invention discloses a screen printing area boundary correction method and device, equipment, a medium and a product. The method comprises the following steps: according to a preset sampling interval, sampling at the boundary of a pre-acquired silk-screen area to obtain a plurality of sampling points; fitting each sampling point to obtain a reference line segment, and determining outliers not on the reference line segment in each sampling point to generate an outlier set; and according to the reference line segment and the outlier set, determining a correction result of the boundary of the silk-screen area. According to the technical scheme, the problem that the boundary of the silk-screen area is not accurately defined is solved, and the boundary of the silk-screen area is represented by the broken line by performing line segment fitting on the sampling points of the boundary of the silk-screen area layer by layer, so that misjudgment of normal deformation is avoided, and the detection accuracy of the silk-screen appearance is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer vision technology, and in particular to a method, device, equipment, medium and product for correcting a silk-screen area boundary. Background Art

[0002] During the production of photovoltaic glass, it is necessary to inspect the silk-screen appearance of photovoltaic glass. The inspection of silk-screen appearance mainly involves visual inspection of defects such as dirt and damage in the silk-screen area. Strictly speaking, the silk-screen area should be a rectangular area, but during the production of photovoltaic glass, there is normal deformation of the boundary of the silk-screen area. The boundary of the actual silk-screen area is not a strict line segment, but an approximate line segment. Defect detection of the silk-screen area according to the line segment boundary can easily misjudge normal deformation as a product defect. Summary of the invention

[0003] The present invention provides a method, device, equipment, medium and product for correcting the boundary of a silk-screen area to solve the problem of inaccurate definition of the boundary of the silk-screen area. By performing layer-by-layer line segment fitting on the sampling points of the boundary of the silk-screen area, the boundary of the silk-screen area is characterized by a broken line, which is beneficial to avoid misjudgment of normal deformation and improve the detection accuracy of the silk-screen appearance.

[0004] According to one aspect of the present invention, a method for correcting a screen printing area boundary is provided, the method comprising:

[0005] According to the preset sampling interval, sampling is performed at the boundary of the pre-acquired silk-screen printing area to obtain multiple sampling points;

[0006] Fitting each sampling point to obtain a reference line segment, and determining outlier points that are not on the reference line segment among each sampling point to generate an outlier point set;

[0007] A correction result of the silk-screen area boundary is determined according to the reference line segment and the outlier point set.

[0008] According to another aspect of the present invention, a device for correcting a screen printing area boundary is provided, the device comprising:

[0009] A sampling point acquisition module is used to perform sampling at the pre-acquired silk screen area boundary according to a preset sampling interval to obtain multiple sampling points;

[0010] An outlier set generation module is used to fit each sampling point to obtain a reference line segment, and determine outliers that are not on the reference line segment among each sampling point to generate an outlier set;

[0011] The correction result determination module is used to determine the correction result of the silk-screen area boundary according to the reference line segment and the outlier point set.

[0012] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:

[0013] At least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the method for correcting the boundary of the silk screen area described in any embodiment of the present invention.

[0014] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method for correcting the boundary of a silk-screen area described in any embodiment of the present invention when executed.

[0015] According to another aspect of the present invention, a computer program product is provided, comprising a computer program, wherein when the computer program is executed by a processor, the method for correcting a silk-screen area boundary according to any embodiment of the present invention is implemented.

[0016] The technical solution of the embodiment of the present invention is to obtain multiple sampling points by sampling at the pre-acquired silk screen area boundary according to a preset sampling interval; fit each sampling point to obtain a reference line segment, and determine the outlier points that are not on the reference line segment in each sampling point to generate an outlier point set; and determine the correction result of the silk screen area boundary according to the reference line segment and the outlier point set. This technical solution solves the problem of inaccurate definition of the silk screen area boundary, and realizes the use of broken lines to characterize the silk screen area boundary by performing layer-by-layer segment fitting on the sampling points of the silk screen area boundary, which is conducive to avoiding misjudgment of normal deformation and improving the detection accuracy of silk screen appearance.

[0017] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0019] Figure 1 is a flow chart of a method for correcting a screen printing area boundary provided according to Embodiment 1 of the present invention;

[0020] Figure 2Ais a flow chart of a method for correcting a screen printing area boundary provided according to a second embodiment of the present invention;

[0021] Figure 2B is a schematic diagram of updating the boundary of the silk-screen area provided according to the second embodiment of the present invention;

[0022] Figure 3 is a schematic structural diagram of a device for correcting a screen printing area boundary provided according to a third embodiment of the present invention;

[0023] Figure 4 It is a structural schematic diagram of an electronic device for implementing the method for correcting the boundary of a silk-screen area according to an embodiment of the present invention. DETAILED DESCRIPTION

[0024] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0025] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices. The acquisition, storage, use, processing, etc. of data in the technical solution of this application comply with the relevant provisions of national laws and regulations.

[0026] Embodiment 1

[0027] Figure 1 A flowchart of a method for correcting the boundary of a silk-screen area is provided for the first embodiment of the present invention. This embodiment is applicable to the silk-screen appearance detection scenario of photovoltaic glass, especially the boundary detection of the silk-screen appearance. The method can be executed by a silk-screen area boundary correction device, which can be implemented in the form of hardware and / or software, and the device can be configured in an electronic device. Figure 1 As shown, the method includes:

[0028] S110 , sampling is performed at a pre-acquired boundary of the silk-screen printing area according to a preset sampling interval to obtain a plurality of sampling points.

[0029] This solution can be executed by electronic devices such as computers and servers, and the electronic devices can obtain the boundary of the screen printing area of ​​the photovoltaic glass in advance. The screen printing area boundary can be obtained by edge detection of the screen printing appearance based on the edge detection model. The electronic device can perform equal-interval sampling on the screen printing area boundary according to a preset sampling interval to obtain multiple sampling points.

[0030] S120 , fitting each sampling point to obtain a reference line segment, and determining outlier points that are not on the reference line segment among each sampling point to generate an outlier point set.

[0031] After obtaining multiple sampling points on the boundary of the silk-screen area, the electronic device can perform linear fitting on each sampling point to obtain a reference line segment. It can be understood that if the boundary of the silk-screen area is deformed or there are defects in the silk-screen area, the sampling points are not all on the same straight line. The electronic device can filter outliers that do not belong to the reference line segment from each sampling point to generate an outlier set.

[0032] S130: Determine a correction result of the silk-screen area boundary according to the reference line segment and the outlier point set.

[0033] Compared with the defects such as dirt and damage in the silk-screen area, the boundary changes caused by normal deformation of the silk-screen area boundary are usually small. Therefore, the electronic device can determine whether the outlier is caused by normal deformation based on the positional relationship between each outlier point and the reference line segment in the outlier point set. If the outlier is caused by normal deformation, the silk-screen area boundary is corrected according to the reference line segment and the outlier point to avoid misjudging the normal deformation as a product defect when performing defect detection on the silk-screen area later.

[0034] In a feasible solution, determining the correction result of the screen printing area boundary according to the reference line segment and the outlier point set includes:

[0035] Taking each outlier point in the outlier point set as a target point in turn, and calculating the distance from the target point to the reference line segment;

[0036] If the distance from the target point to the reference line segment is less than a preset distance threshold, updating the silk-screen area boundary according to the reference line segment and the target point;

[0037] If the distance from the target point to the reference line segment is greater than or equal to a preset distance threshold, the silk-screen area boundary is updated according to the reference line segment.

[0038] In this solution, the electronic device can take each outlier in the outlier set as the target point in turn, and calculate the distance from the target point to the reference line segment. If the distance from the target point to the reference line segment is less than the preset distance threshold, it means that the target point is a boundary change caused by normal deformation, and the electronic device can disconnect the reference line segment at the mapping point of the target point, connect the target point to the reference line segment, and obtain the silk screen area boundary represented by a broken line. If the distance from the target point to the reference line segment is greater than or equal to the preset distance threshold, it means that the target point is not a boundary change caused by normal deformation, and the electronic device can use the reference line segment to represent the silk screen area boundary at the target point.

[0039] It should be noted that in order to ensure the accuracy of distance judgment, the electronic device can define the distance size based on the number of pixels, that is, the distance from the target point to the reference line segment can be the number of pixels from the target point to the reference line segment, and the preset distance threshold can be a preset pixel number threshold, such as 30 pixels.

[0040] The technical solution of the embodiment of the present invention is to obtain multiple sampling points by sampling at the pre-acquired silk screen area boundary according to a preset sampling interval; fit each sampling point to obtain a reference line segment, and determine the outlier points that are not on the reference line segment in each sampling point to generate an outlier point set; and determine the correction result of the silk screen area boundary according to the reference line segment and the outlier point set. This technical solution solves the problem of inaccurate definition of the silk screen area boundary, and realizes the use of broken lines to characterize the silk screen area boundary by performing layer-by-layer segment fitting on the sampling points of the silk screen area boundary, which is conducive to avoiding misjudgment of normal deformation and improving the detection accuracy of silk screen appearance.

[0041] Embodiment 2

[0042] Figure 2A This is a flow chart of a method for correcting the border of a screen printing area provided in the second embodiment of the present invention. This embodiment is refined based on the above embodiment. Figure 2A As shown, the method includes:

[0043] S210 , sampling is performed at a pre-acquired boundary of the silk-screen printing area according to a preset sampling interval to obtain a plurality of sampling points.

[0044] S220 , fitting each sampling point to obtain a reference line segment, and determining outlier points that are not on the reference line segment among each sampling point to generate an outlier point set.

[0045] S230: Perform at least one fitting on each outlier in the outlier set to obtain candidate line segments matched by each fitting.

[0046] In this solution, the electronic device can successively fit each outlier in the outlier set, and the object of each fitting is the outlier in the outlier set that is not on the candidate line segment obtained by the previous fitting. The electronic device can evaluate the candidate line segments obtained by each fitting in turn, determine whether the boundary change of the candidate line segment is caused by normal deformation, and then determine whether to merge the candidate line segment with the reference line segment to obtain the boundary of the silk screen area represented by the broken line.

[0047] In this solution, performing at least one fitting on each outlier in the outlier set to obtain candidate line segments matched by each fitting includes:

[0048] Fitting each outlier point in the outlier point set to obtain a candidate line segment for this fitting match;

[0049] If there are outliers in the outlier set that do not belong to the candidate line segment of this fitting match, then based on the outliers in the outlier set that do not belong to the candidate line segment of this fitting match, the outlier set is updated;

[0050] Return to execute fitting for each outlier in the outlier set until the outlier set is an empty set, and output candidate line segments matched by each fitting.

[0051] Specifically, the electronic device may fit each outlier in the outlier set to obtain a candidate line segment of the first fitting match. If there are outliers in the outlier set that do not belong to the candidate line segment of the first fitting match, the outliers in the outlier set that do not belong to the candidate line segment of the first fitting match form a new outlier set. Fit each outlier in the new outlier set to obtain a candidate line segment of the second fitting match. If there are outliers in the outlier set that do not belong to the candidate line segment of the second fitting match, the outliers in the outlier set that do not belong to the candidate line segment of the second fitting match form a new outlier set, and so on, until there are no outliers in the outlier set, and the candidate line segments of each fitting match are output.

[0052] S240 , determining a correction result of the screen printing area boundary according to the angle difference between the candidate line segment obtained by each fitting match and the reference line segment.

[0053] After completing the fitting of all outliers, the electronic device can calculate the angle difference between the candidate line segment obtained by each fitting and the reference line segment in turn. Specifically, the electronic device can calculate the angle between the candidate line segment and the reference line segment based on the slope of the candidate line segment and the slope of the reference line segment. Compared with the defects such as dirt and damage in the silk-screen area, the boundary change caused by normal deformation of the silk-screen area boundary is usually small. Therefore, the electronic device can measure the size of the boundary change by the size of the angle difference.

[0054] It is understandable that the electronic device can set an angle threshold, and use the angle threshold to measure the angle difference between the candidate line segment obtained by each fitting and the reference line segment, and then determine whether to merge the candidate line segment with the reference line segment to obtain the silk screen area boundary represented by the broken line.

[0055] In a feasible solution, the correction result of the screen printing area boundary is determined according to the angle difference between the candidate line segment of each fitting match and the reference line segment, including:

[0056] The candidate line segments matched by each fitting are taken as the target line segments in turn;

[0057] If the angle difference between the target line segment and the reference line segment is greater than or equal to a preset angle threshold, updating the screen printing area boundary according to the reference line segment;

[0058] If the angle difference between the target line segment and the reference line segment is less than a preset angle threshold, the screen printing area boundary is updated according to the reference line segment and the target line segment.

[0059] It is easy to understand that the electronic device can sequentially use the candidate line segments of each fitting match as the target line segment, and determine whether the angle difference between the target line segment and the reference line segment is less than the preset angle threshold. If the angle difference between the target line segment and the reference line segment is greater than or equal to the preset angle threshold, the reference line segment is used to characterize the silk screen area boundary corresponding to the outlier involved in the target line segment. If the angle difference between the target line segment and the reference line segment is less than the preset angle threshold, the target line segment is merged with the reference line segment to generate a broken line segment to characterize the silk screen area boundary corresponding to the outlier involved in the target line segment.

[0060] Based on the above solution, updating the screen printing area boundary according to the reference line segment and the target line segment includes:

[0061] Determine a first dimension coordinate range and a second dimension coordinate range of the reference line segment according to the endpoint coordinates of the reference line segment;

[0062] Determine a first dimension coordinate range and a second dimension coordinate range of the target line segment according to the endpoint coordinates of the target line segment;

[0063] If the coordinate ranges of the reference line segment and the target line segment have an intersection in at least one of the first dimension and the second dimension, the target sampling point in the reference line segment and the target outlier point in the target line segment are determined according to the adjacent relationship between the sampling points, and the target sampling point is connected with the target outlier point to generate a target broken line segment for updating the boundary of the silk-screen area.

[0064] The electronic device can establish a plane coordinate system to represent the reference line segment and the target line segment in the same plane coordinate system. It is understandable that the plane coordinate system can be represented by two-dimensional coordinates, such as the horizontal coordinate and the vertical coordinate in the Cartesian coordinate system, and the polar coordinate and the polar angle coordinate in the polar coordinate system. According to the endpoint coordinates of the reference line segment, the first dimension coordinate range and the second dimension coordinate range of the reference line segment are determined. Similarly, according to the endpoint coordinates of the target line segment, the first dimension coordinate range and the second dimension coordinate range of the target line segment are determined.

[0065] If the coordinate ranges of the reference line segment and the target line segment have an intersection in at least one of the first dimension and the second dimension, the target sampling point in the reference line segment and the target outlier point in the target line segment are determined according to the adjacent relationship between the sampling points, and the target sampling point and the target outlier point are connected to generate a target polyline segment for updating the boundary of the silk-screen area. If the coordinate ranges of the reference line segment and the target line segment do not have an intersection in both the first dimension and the second dimension, the endpoints of the reference line segment are connected to the endpoints of the target line segment according to the adjacent relationship between the sampling points.

[0066] Figure 2B is a schematic diagram of updating the boundary of the silk-screen area according to the second embodiment of the present invention. In a specific example, Figure 2B As shown in the figure, the electronic device obtains 13 sampling points on the boundary of the silk-screen area, namely A, B, C, D, E, F, G, H, I, J, Q, P and O. Segment AJ is the reference segment obtained by fitting all sampling points. Sampling points D, E, F, G, Q, P and O do not belong to segment AJ and are outliers relative to the reference segment. The outlier set is {D, E, F, G, Q, P, O}. Line segment DG is obtained by linear fitting of the outlier set. Q, P and O do not belong to segment DG and are outliers relative to segment DG. Therefore, the outlier set is updated to {Q, P, O}. Since the outlier set is not an empty set, linear fitting is continued for the cluster points in the outlier set to obtain segment QO. At this time, the outlier set is an empty set and linear fitting is stopped.

[0067] Take the line segment DG as the target line segment. If the angle difference between the line segment DG and the reference line segment AJ is less than the preset angle threshold, the electronic device can obtain the horizontal coordinate range and the vertical coordinate range of the reference line segment AJ according to the coordinates of the points A and J in the reference line segment AJ, and obtain the horizontal coordinate range and the vertical coordinate range of the target line segment DG according to the coordinates of the points D and G in the target line segment DG. The horizontal coordinate range of the reference line segment AJ and the horizontal coordinate range of the target line segment DG have an intersection. The electronic device can determine that the target sampling points in the reference line segment AJ are C and H, and the target outliers in the target line segment DG are D and G according to the adjacent relationship between the sampling points, connect the target sampling point C with the target outlier point D, connect the target sampling point H with the target outlier point G, and generate the target broken line segment ABCDEFGHIJ for updating the boundary of the silk screen area. If the angle difference between the line segment DG and the reference line segment AJ is greater than or equal to the preset angle threshold, the electronic device directly uses the line segment CH shown by the dotted line as the boundary of the silk screen area corresponding to the sampling points D, E, F and G.

[0068] After completing the processing of the line segment DG, the electronic device can update the line segment QO to the target line segment. If the angle difference between the line segment QO and the reference line segment AJ is less than the preset angle threshold, the electronic device can obtain the horizontal coordinate range and the vertical coordinate range of the reference line segment AJ according to the coordinates of point A and point J in the reference line segment AJ, and the electronic device can obtain the horizontal coordinate range and the vertical coordinate range of the target line segment QO according to the coordinates of point Q and point O in the target line segment QO. There is no intersection between the horizontal coordinate range of the reference line segment AJ and the horizontal coordinate range of the target line segment DG, and there is no intersection between the vertical coordinate range of the reference line segment AJ and the vertical coordinate range of the target line segment DG. The electronic device can directly connect the sampling point A and the sampling point O according to the adjacent relationship between the sampling points, and update the boundary of the silk screen area. If the angle difference between the line segment QO and the reference line segment AJ is greater than or equal to the preset angle threshold, the electronic device can extend the reference line segment AJ to the A end, so that the mapping points of the sampling points Q, P and O can be obtained on the extended line segment of the reference line segment AJ. The electronic device can extend the reference line segment AJ to the extended line segment Q ′ O ′ As the silk screen area boundary corresponding to the sampling points Q, P and O.

[0069] The technical solution of the embodiment of the present invention is to obtain multiple sampling points by sampling at the pre-acquired silk screen area boundary according to a preset sampling interval; fit each sampling point to obtain a reference line segment, and determine the outlier points that are not on the reference line segment in each sampling point to generate an outlier point set; and determine the correction result of the silk screen area boundary according to the reference line segment and the outlier point set. This technical solution solves the problem of inaccurate definition of the silk screen area boundary, and realizes the use of broken lines to characterize the silk screen area boundary by performing layer-by-layer segment fitting on the sampling points of the silk screen area boundary, which is conducive to avoiding misjudgment of normal deformation and improving the detection accuracy of silk screen appearance.

[0070] Embodiment 3

[0071] Figure 3 This is a schematic diagram of the structure of a device for correcting the border of a screen printing area provided in the third embodiment of the present invention. Figure 3 As shown, the device comprises:

[0072] The sampling point acquisition module 310 is used to perform sampling at the pre-acquired silk-screen area boundary according to a preset sampling interval to obtain a plurality of sampling points;

[0073] An outlier set generation module 320 is used to fit each sampling point to obtain a reference line segment, and determine outlier points that are not on the reference line segment among each sampling point to generate an outlier set;

[0074] The correction result determination module 330 is used to determine the correction result of the silk-screen area boundary according to the reference line segment and the outlier point set.

[0075] In a feasible solution, the correction result determination module 330 includes:

[0076] A candidate line segment generating unit, used for performing at least one fitting on each outlier in the outlier set to obtain a candidate line segment matched by each fitting;

[0077] The correction result determination unit is used to determine the correction result of the screen printing area boundary according to the angle difference between the candidate line segment of each fitting match and the reference line segment.

[0078] Based on the above solution, the candidate line segment generating unit is specifically used to:

[0079] Fitting each outlier point in the outlier point set to obtain a candidate line segment for this fitting match;

[0080] If there are outliers in the outlier set that do not belong to the candidate line segment of this fitting match, then based on the outliers in the outlier set that do not belong to the candidate line segment of this fitting match, the outlier set is updated;

[0081] Return to execute fitting for each outlier in the outlier set until the outlier set is an empty set, and output candidate line segments matched by each fitting.

[0082] In this solution, optionally, the correction result determination unit is specifically used to:

[0083] The candidate line segments matched by each fitting are taken as the target line segments in turn;

[0084] If the angle difference between the target line segment and the reference line segment is greater than or equal to a preset angle threshold, updating the screen printing area boundary according to the reference line segment;

[0085] If the angle difference between the target line segment and the reference line segment is less than a preset angle threshold, the screen printing area boundary is updated according to the reference line segment and the target line segment.

[0086] On the basis of the above solution, the correction result determination unit is specifically used to:

[0087] Determine a first dimension coordinate range and a second dimension coordinate range of the reference line segment according to the endpoint coordinates of the reference line segment;

[0088] Determine a first dimension coordinate range and a second dimension coordinate range of the target line segment according to the endpoint coordinates of the target line segment;

[0089] If the coordinate ranges of the reference line segment and the target line segment have an intersection in at least one of the first dimension and the second dimension, the target sampling point in the reference line segment and the target outlier point in the target line segment are determined according to the adjacent relationship between the sampling points, and the target sampling point is connected with the target outlier point to generate a target broken line segment for updating the boundary of the silk-screen area.

[0090] In another feasible solution, the correction result determination module 330 is specifically used to:

[0091] Taking each outlier point in the outlier point set as a target point in turn, and calculating the distance from the target point to the reference line segment;

[0092] If the distance from the target point to the reference line segment is less than a preset distance threshold, updating the silk-screen area boundary according to the reference line segment and the target point;

[0093] If the distance from the target point to the reference line segment is greater than or equal to a preset distance threshold, the screen printing area boundary is updated according to the reference line segment.

[0094] The device for correcting the boundary of a silk-screen area provided in the embodiment of the present invention can execute the method for correcting the boundary of a silk-screen area provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0095] Embodiment 4

[0096] Figure 4 A schematic diagram of an electronic device 410 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0097] like Figure 4 As shown, the electronic device 410 includes at least one processor 411, and a memory connected to the at least one processor 411 in communication, such as a read-only memory (ROM) 412, a random access memory (RAM) 413, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 411 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 412 or the computer program loaded from the storage unit 418 to the random access memory (RAM) 413. In the RAM 413, various programs and data required for the operation of the electronic device 410 can also be stored. The processor 411, the ROM 412, and the RAM 413 are connected to each other via a bus 414. An input / output (I / O) interface 415 is also connected to the bus 414.

[0098] Multiple components in the electronic device 410 are connected to the I / O interface 415, including: an input unit 416, such as a keyboard, a mouse, etc.; an output unit 417, such as various types of displays, speakers, etc.; a storage unit 418, such as a disk, an optical disk, etc.; and a communication unit 419, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 419 allows the electronic device 410 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0099] The processor 411 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 411 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 411 executes the various methods and processes described above, such as a method for correcting the boundaries of the silk-screen area.

[0100] In some embodiments, the correction method of the silk-screen area boundary can be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 418. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 410 via the ROM 412 and / or the communication unit 419. When the computer program is loaded into the RAM 413 and executed by the processor 411, one or more steps of the correction method of the silk-screen area boundary described above can be performed. Alternatively, in other embodiments, the processor 411 can be configured to execute the correction method of the silk-screen area boundary by any other appropriate means (for example, by means of firmware).

[0101] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0102] The computer programs for implementing the method of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer or other programmable screen printing area boundary correction device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine as a stand-alone software package and partially on a remote machine, or entirely on a remote machine or server.

[0103] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0104] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0105] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0106] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0107] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0108] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for correcting the boundary of a screen printing area, characterized in that: The method comprises: According to the preset sampling interval, sampling is performed at the boundary of the pre-acquired silk-screen printing area to obtain multiple sampling points; Fitting each sampling point to obtain a reference line segment, and determining outlier points that are not on the reference line segment among each sampling point to generate an outlier point set; A correction result of the silk-screen area boundary is determined according to the reference line segment and the outlier point set.

2. The method according to claim 1, characterized in that The step of determining the correction result of the screen printing area boundary according to the reference line segment and the outlier point set includes: Perform at least one fitting on each outlier in the outlier set to obtain candidate line segments matched by each fitting; The correction result of the screen printing area boundary is determined according to the angle difference between the candidate line segment of each fitting match and the reference line segment.

3. The method according to claim 2, characterized in that The step of fitting each outlier in the outlier set at least once to obtain candidate line segments matched by each fitting step includes: Fitting each outlier point in the outlier point set to obtain a candidate line segment for this fitting match; If there are outliers in the outlier set that do not belong to the candidate line segment of this fitting match, then based on the outliers in the outlier set that do not belong to the candidate line segment of this fitting match, the outlier set is updated; Return to execute fitting for each outlier in the outlier set until the outlier set is an empty set, and output candidate line segments matched by each fitting.

4. The method according to claim 3, characterized in that The step of determining the correction result of the screen printing area boundary according to the angle difference between the candidate line segment obtained by each fitting match and the reference line segment comprises: The candidate line segments matched by each fitting are taken as the target line segments in turn; If the angle difference between the target line segment and the reference line segment is greater than or equal to a preset angle threshold, updating the screen printing area boundary according to the reference line segment; If the angle difference between the target line segment and the reference line segment is less than a preset angle threshold, the screen printing area boundary is updated according to the reference line segment and the target line segment.

5. The method according to claim 4, characterized in that The updating of the silk screen area boundary according to the reference line segment and the target line segment includes: Determine a first dimension coordinate range and a second dimension coordinate range of the reference line segment according to the endpoint coordinates of the reference line segment; Determine a first dimension coordinate range and a second dimension coordinate range of the target line segment according to the endpoint coordinates of the target line segment; If the coordinate ranges of the reference line segment and the target line segment have an intersection in at least one of the first dimension and the second dimension, the target sampling point in the reference line segment and the target outlier point in the target line segment are determined according to the adjacent relationship between the sampling points, and the target sampling point is connected with the target outlier point to generate a target broken line segment for updating the boundary of the silk-screen area.

6. The method according to claim 1, characterized in that The step of determining the correction result of the screen printing area boundary according to the reference line segment and the outlier point set includes: Taking each outlier point in the outlier point set as a target point in turn, and calculating the distance from the target point to the reference line segment; If the distance from the target point to the reference line segment is less than a preset distance threshold, updating the silk-screen area boundary according to the reference line segment and the target point; If the distance from the target point to the reference line segment is greater than or equal to a preset distance threshold, the silk-screen area boundary is updated according to the reference line segment.

7. A device for correcting the boundary of a screen printing area, characterized in that: The device comprises: A sampling point acquisition module is used to perform sampling at the pre-acquired silk-screen area boundary according to a preset sampling interval to obtain multiple sampling points; An outlier set generation module is used to fit each sampling point to obtain a reference line segment, and determine outliers that are not on the reference line segment among each sampling point to generate an outlier set; The correction result determination module is used to determine the correction result of the silk-screen area boundary according to the reference line segment and the outlier point set.

8. An electronic device, characterized in that: The electronic device comprises: At least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the method for correcting the boundary of the silk screen area according to any one of claims 1-6.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method for correcting the boundary of a silk-screen area according to any one of claims 1 to 6 when executed.

10. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the method for correcting a silk-screen area boundary according to any one of claims 1 to 6 is implemented.

Citation Information

Cited By

  • Lung segment reconstruction method and device, electronic equipment and storage medium

    CN121353368A