Registration method, device, electronic device and medium

By drawing the initial detection area array and translating the local area, and using the mid-perpendicular principle to determine the center of the circle, the problem of weak anti-interference ability and slow calculation speed of the colorimetric sensor array dot automatic recognition algorithm is solved, and fast and accurate dot recognition is achieved Circle center identification and detection area registration.

CN113112455BActive Publication Date: 2024-09-13BEIJING CATARC DATA TECH CENT +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110314993.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-24
Publication Date
2024-09-13
Estimated Expiration
2041-03-24

AI Technical Summary

Technical Problem

The existing colorimetric sensor array dot automatic recognition algorithm has weak anti-interference ability, easily identifies invalid circle centers, and has a slow calculation speed, which affects the accuracy and efficiency of detection results.

Method used

By drawing the initial detection area array, dividing the local area, judging and translating the local area located within the circle point, recording the translation position, and using the principle of the mid-perpendicular line to determine the center of the circle, the amount of calculation is reduced, and the recognition accuracy and speed are improved.

Benefits of technology

It achieves fast and accurate identification of dot center points, reduces the possibility of invalid circle center identification, and improves the efficiency of automatic registration of the detection area. The algorithm has strong anti-interference ability and the registration time is only 4 milliseconds.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113112455B
    Figure CN113112455B
Patent Text Reader

Abstract

The present invention relates to a registration method, device, electronic device and medium. The registration method comprises: drawing an initial detection area array according to the arrangement of a dot-shaped array; dividing each initial detection area into at least four local areas, and determining the local area located in the dot; translating the local area located in the dot to the outside of the corresponding dot, and recording the position when the local area is translated to the outside of the corresponding dot; determining at least two perpendicular midlines according to the connecting lines between at least three of the positions; and determining the center of the corresponding dot according to the at least two perpendicular midlines. The method constructs a method of determining the center of the circle by three points on the circumference of the array dot by using the principle that the perpendicular midline connecting two points on the circumference must pass through the center of the circle, which greatly reduces the amount of calculation for the identification of the center of the circle. The registration time of a 5×8 dot-shaped array is only 4 milliseconds at the fastest, and invalid centers outside the dot area will not be identified. The algorithm has strong anti-interference ability, thereby realizing automatic registration of the detection area.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of chip data analysis, and in particular to a registration method, device, electronic equipment and medium. Background Art

[0002] Colorimetric Sensor Array analysis technology is a gas detection and fingerprint analysis technology that has emerged in recent years. The main detection process of this technology is to make the gas to be tested contact with a colorimetric sensor array chip that can react specifically to a variety of gases, causing the colorimetric sensor array on the chip to change color. The color change data is then read through smart terminals such as smartphone cameras and industrial Internet cameras, and then combined with the gas fingerprint library and pattern recognition technology to achieve qualitative and quantitative analysis of the type and concentration of the gas to be tested.

[0003] The above-mentioned colorimetric sensor array is generally a dot array with uniform diameter formed by the diffusion of multiple reaction reagents on substrates such as polymer films, glass, and test papers. The common diameter of each dot is 1-4mm, and each dot is arranged in order on the substrate and does not touch each other. The intelligent terminal should accurately read the color change data of each dot, and cannot be interfered by the color of the substrate or the color of other adjacent dots. Therefore, it is necessary for the intelligent terminal to automatically identify the center position of each dot, automatically draw a suitable detection area inside each dot area, and extract the data of R (red), G (green), and B (blue) color channels from the detection area. The detection area should be smaller than the dot area to avoid the influence of sudden color changes at the edge of the dot on the detection results. The center of the detection area should also be as close as possible to the center of the dot area to avoid the influence of radial unevenness of the color inside the dot on the detection results. The above-mentioned process of automatically identifying the center of the circle and positioning the detection area is called the registration of the detection area.

[0004] There are some algorithms in the prior art that can realize automatic recognition of the center of an image, such as the Hough circle detection algorithm in the openCV library (a cross-platform computer vision and machine learning software library released under the BSD license (open source)). However, most of these machine vision algorithms are general algorithms that are not designed or optimized for colorimetric sensor arrays. Therefore, there are common problems such as weak anti-interference ability of the algorithm, easy recognition of invalid center points outside the dot area of ​​the colorimetric sensor array, and slow execution speed of the algorithm because part of the computing power is used in the invalid area outside the dot.

[0005] In view of this, the present invention is proposed. Summary of the invention

[0006] The object of the present invention is to provide a registration method, device, electronic device and medium to achieve the effect of accurately and quickly identifying the center of a circle.

[0007] In order to achieve the above object, the present invention adopts the following technical solutions:

[0008] In a first aspect, the present invention provides a registration method, comprising the following steps:

[0009] According to the arrangement of the dot array, draw the initial detection area array;

[0010] Each initial detection area is divided into at least four local areas, and the local area located within the dot is determined; at least four of the local areas are located at the edge of the initial detection area;

[0011] The local area located within the dot is translated to outside the corresponding dot, and the position of the local area when translated to outside the corresponding dot is recorded;

[0012] At least two perpendicular bisectors are determined based on the connecting lines between at least three of the positions; and the centers of the corresponding points are determined based on the at least two perpendicular bisectors.

[0013] As a further preferred technical solution, each initial detection area is divided into at least four local areas, and the local area located within the dot is determined, including:

[0014] Each initial detection area is divided into at least four local areas, and the average R, G, and B color values ​​of each local area are calculated;

[0015] The local area within the dot is determined based on the average R, G, B color values ​​and the R, G, B color values ​​of the dot-shaped array substrate.

[0016] As a further preferred technical solution, each initial detection area is divided into at least four local areas, and the average R, G, B color values ​​of each local area are calculated, including:

[0017] According to the shape of the initial detection area, at least four local areas in each initial detection area are determined; and the average R, G, B color values ​​of each local area are calculated respectively.

[0018] As a further preferred technical solution, the determining of the local area within the dot according to the average R, G, B color values ​​and the R, G, B color values ​​of the dot-shaped array substrate includes:

[0019] The difference between the average R, G, B color value and the R, G, B color value of the dot-shaped array substrate is calculated, the difference is compared with a preset threshold, and the local area within the dot is determined according to the comparison result.

[0020] As a further preferred technical solution, the translating the local area located within the dot to the outside of the corresponding dot and recording the position when the local area is translated to the outside of the corresponding dot includes:

[0021] Determine the number of local areas within the dot;

[0022] According to the number of local areas located in the dot, the local areas located in the dot are translated to outside the corresponding dot, and the positions of the local areas when translated to outside the corresponding dot are recorded.

[0023] As a further preferred technical solution, according to the number of local areas located in the dot, translating the local areas located in the dot to the outside of the corresponding dot, and recording the position when translated to the outside of the corresponding dot, comprises:

[0024] Determine the translation direction of each local area within the dot according to the number of local areas within the dot;

[0025] According to the translation direction, each local area is translated, and the position when it is translated outside the corresponding point is recorded.

[0026] As a further preferred technical solution, the step of determining the translation direction of each local area within the dot according to the number of local areas within the dot includes:

[0027] If the number of local regions within the dot is 4, determining that the translation directions of at least three local regions within the dot are independently horizontal, vertical, or directions of lines connecting non-adjacent local regions;

[0028] If the number of local areas within the dot is 3, determine that the translation direction of the first local area is horizontal or vertical, the translation direction of the second local area is horizontal or vertical, and the translation direction of the third local area is the direction from the local area outside the dot to the third local area;

[0029] If the number of local areas within the dot is 2, determine that the translation direction of the first local area is horizontal, vertical, first horizontal and then vertical, or first vertical and then horizontal, and the translation direction of the second local area is horizontal, vertical, first horizontal and then vertical, or first vertical and then horizontal;

[0030] If the number of local regions within the dot is 1, determine that the translation direction of the first local region is horizontal and vertical, and that the Nth local region points to the direction of the first local region;

[0031] The first local area and the second local area are both local areas adjacent to the local area outside the dot, the third local area is a local area far away from the local area outside the dot; the Nth local area is a local area that is not adjacent to the first local area and is outside the dot, and N is an integer greater than or equal to 4.

[0032] In a second aspect, the present invention provides a registration device, comprising:

[0033] An initial detection area array drawing module is used to draw an initial detection area array according to the arrangement of the dot array;

[0034] A local area determination module located within the dot, used to divide each initial detection area into at least four local areas, and determine the local area located within the dot; at least four of the local areas are located at the edge of the initial detection area;

[0035] A position determination module, used for translating the local area located within the dot to the outside of the corresponding dot, and recording the position when the local area is translated to the outside of the corresponding dot;

[0036] The circle center determination module is used to determine at least two perpendicular bisectors based on the connecting lines between at least three of the positions; and to determine the circle center of the corresponding circle point based on the at least two perpendicular bisectors.

[0037] In a third aspect, the present invention provides an electronic device, comprising:

[0038] at least one processor, and a memory communicatively coupled to at least one of the processors;

[0039] The memory stores instructions that can be executed by at least one of the processors, and the instructions are executed by at least one of the processors so that at least one of the processors can perform the above method.

[0040] In a fourth aspect, the present invention provides a medium having computer instructions stored thereon, wherein the computer instructions are used to enable the computer to execute the above method.

[0041] Compared with the prior art, the present invention has the following beneficial effects:

[0042] The registration method provided by the present invention first draws the initial detection area array according to the arrangement of the dot-shaped array. Since the initial detection area array is only drawn according to the arrangement of the dot-shaped array, it is relatively rough, so it cannot be completely aligned with the center of each dot in the dot-shaped array. This step is to provide a reference for subsequent alignment. Then, each initial detection area is divided into at least four local areas, and at least four local areas are located at the edge of the initial detection area. The local area located in the dot is judged. This step is mainly to determine the positional relationship between each initial detection area and the corresponding dot. Then, the local area located in the dot is translated to the outside of the corresponding dot, and the position when it is translated to the outside of the corresponding dot is recorded. Then, according to the connecting lines between the three positions, at least two perpendicular bisectors are determined. According to the principle that the perpendicular bisector of the connecting line of two points on the circumference must pass through the center of the circle, the intersection of the two perpendicular bisectors is determined to be the center of the corresponding dot.

[0043] The present invention utilizes the principle that the perpendicular bisector of the line connecting two points on the circumference of a circle must pass through the center of the circle to construct a method of determining the center of a circle using three points on the circumference of the array circle dots, and calculations are only performed based on the circle dot array and the array of the initial detection area, thereby greatly reducing the amount of calculation required for center recognition. The fastest alignment time for a 5×8 circle dot array is only 4 milliseconds, and invalid centers outside the circle dot area will not be identified. The algorithm has a strong anti-interference ability, thereby realizing automatic alignment of the detection area. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0045] Figure 1 is a flow chart of the registration method provided in Example 1;

[0046] Figure 2 is a schematic diagram after S110 is completed in the registration method provided in Example 1;

[0047] Figure 3 is a flow chart of the registration method provided in Example 2;

[0048] Figure 4 is a schematic diagram of situation 1 in the registration method S132 provided in Example 2;

[0049] Figure 5 is a schematic diagram of situation 2 in the registration method S132 provided in Example 2;

[0050] Figure 6is a schematic diagram of situation 3 in the registration method S132 provided in Example 2;

[0051] Figure 7 is a schematic diagram of situation 4 in the registration method S132 provided in Example 2;

[0052] Figure 8 is a schematic diagram of situation 5 in the registration method S132 provided in Example 2;

[0053] Fig. 9 is a schematic diagram of situation 6 in the registration method S132 provided in Example 2;

[0054] Fig.10 is a schematic diagram of situation seven in the registration method S132 provided in Example 2;

[0055] Fig.11 is a schematic diagram of situation eight in the registration method S132 provided in Example 2;

[0056] Fig.12 is a schematic diagram of situation nine in the registration method S132 provided in Example 2;

[0057] Fig.13 is a schematic diagram of situation 10 in the registration method S132 provided in Example 2;

[0058] Fig.14 is a schematic diagram of situation 11 in the registration method S132 provided in embodiment 2;

[0059] Fig.15 is a schematic diagram of situation 12 in the registration method S132 provided in embodiment 2;

[0060] Fig.16 is a schematic diagram of situation 13 in the registration method S132 provided in embodiment 2;

[0061] Fig.17 is a schematic diagram of a detection area array drawn without using the registration method of the present invention;

[0062] Fig.18 is a schematic diagram of a detection area array drawn without using the registration method of Example 2;

[0063] Fig.19 is a schematic diagram of the structure of the registration device provided in Example 3;

[0064] Fig. 20 It is a schematic diagram of the structure of the electronic device provided in Example 4. DETAILED DESCRIPTION

[0065] The following is a description of exemplary embodiments of the present application in conjunction with the accompanying drawings, including various details of the embodiments of the present application to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present application. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0066] Example 1

[0067] Figure 1 is a flow chart of a registration method provided by this embodiment, which is applicable to the registration of a dot-shaped array detection area, such as the registration of a colorimetric sensor array detection area. The method can be performed by a registration device, which can be composed of software and / or hardware and is generally integrated in an electronic device.

[0068] See also Figure 1 , the registration method comprises the following steps:

[0069] S110 , drawing an initial detection area array according to the arrangement of the dot array.

[0070] Here, "dot array" refers to an array composed of a plurality of dots.

[0071] “Arrangement of the dot-shaped array” refers to the arrangement method of the dot-shaped array, for example, the dot-shaped array is arranged in several rows and columns.

[0072] The “initial detection area array” refers to the most original detection area array, that is, a most original detection area is drawn for each dot. After the most original detection areas corresponding to all the dots in the dot array are drawn, the initial detection area array is formed.

[0073] Specifically, drawing the initial detection area array according to the arrangement of the dot array includes:

[0074] According to the arrangement of the dot-shaped array, the length and width of the dot-shaped array and the number of initial detection areas are determined;

[0075] According to the arrangement of the dot-shaped array, the length and width of the dot-shaped array and the number of initial detection areas, the position of each initial detection area is determined, and the initial detection area array is drawn.

[0076] Exemplarily, if the dot array is arranged in a 5×8 array (i.e., there are 8 dots in each row, and there are 5 rows in total), first determine the length and width of the array (for example, 28 mm in length and 18 mm in width) and the number of initial detection areas (40), and then draw 40 initial detection areas evenly spaced within the boundary to form an initial detection area array, which is also a 5×8 array, and the rows and columns are strictly aligned.

[0077] It should be noted that the initial detection area may be circular or square. In this embodiment, a square (eg Figure 2 shown).

[0078] Since the initial detection area array is only drawn based on the arrangement of the dot array, it is relatively rough, so it cannot be completely aligned with the center of each dot in the dot array. Relative to the dot array, there will be a small range of overall random offset. This step is to provide a reference for subsequent alignment. Figure 2 It can be seen that, without adopting the registration method of this embodiment, each detection area cannot be well drawn to the middle of the array dots, which will lead to errors in the array analysis results.

[0079] S120, each initial detection area is divided into at least four local areas, and the local area located within the dot is determined; at least four of the local areas are located at the edge of the initial detection area.

[0080] The above-mentioned “edge” refers to being located within the initial detection area and touching the boundary of the initial detection area.

[0081] Specifically, each initial detection area is divided into at least four local areas, and the local area located within the dot is determined, including:

[0082] According to the shape of the initial detection area, at least four local areas in each initial detection area are determined; and the average R, G, and B color values ​​of each local area are calculated respectively;

[0083] The local area within the dot is determined based on the average R, G, B color values ​​and the R, G, B color values ​​of the dot-shaped array substrate.

[0084] The above R, G, and B color values ​​refer to the numerical values ​​of the three colors red, green, and blue.

[0085] Exemplarily, in this embodiment, the shape of the initial detection area is set to be a square, and each initial detection area is divided into four local areas, which are respectively located at the four corners of the square. The size of each local area can be set to 3-30 image pixels.

[0086] Preferably, determining the local area within the dot according to the average R, G, B color values ​​and the R, G, B color values ​​of the dot-shaped array substrate comprises:

[0087] The difference between the average R, G, B color value and the R, G, B color value of the dot-shaped array substrate is calculated, the difference is compared with a preset threshold, and the local area within the dot is determined according to the comparison result.

[0088] The preset threshold is used to characterize the minimum value of the difference between the color value of the local area and the color value of the dot-shaped array substrate. By comparing the difference with the preset threshold, if the difference is greater than the preset threshold, it means that the local area is inside the dot, and if the difference is less than or equal to the preset threshold, it means that the local area is outside the dot. Optionally, the preset threshold is 5-10.

[0089] Through this step, the positional relationship between each initial detection area and the corresponding circle point can be determined, and this positional relationship can be used in the subsequent position and center determination.

[0090] S130, translating the local area located within the dot to the outside of the corresponding dot, and recording the position of the local area when translated to the outside of the corresponding dot.

[0091] The “corresponding dot” refers to the dot where the local area within the dot is located.

[0092] The “position when translated to outside the corresponding dot” refers to the position corresponding to when it is detected that the local area is translated to outside the dot for the first time in a certain direction.

[0093] Specifically, translating the local area located within the dot to the outside of the corresponding dot, and recording the position of the local area when translated to the outside of the corresponding dot, includes:

[0094] The local area located within the dot is translated along at least one of the horizontal, vertical or oblique directions, and the position when the local area is translated to outside the corresponding dot is recorded.

[0095] It should be noted that the local area within the dot can be translated in any of the horizontal, vertical or oblique directions, that is, one local area within the dot can obtain the three positions. Therefore, as long as there is one local area within the dot, three positions can be determined.

[0096] Exemplarily, the local area within the dot is translated in the horizontal, vertical and oblique 45-degree directions (i.e., directions that are 45 degrees to the horizontal and vertical directions) to obtain three positions when the local area is translated to the outside of the corresponding dot.

[0097] Among them, to determine whether the local area originally located in the dot has shifted to the outside of the corresponding dot, the following method is used: calculate the difference between the average R, G, B color values ​​of the local area after the translation and the R, G, B color values ​​of the dot-shaped array substrate, and compare the difference with the preset threshold. If the difference is greater than the preset threshold, it means that the local area has shifted to the outside of the corresponding dot.

[0098] Since each local area is set very small, when the local area is translated outside the corresponding dot, it can be approximately considered to be located on the circumference of the dot. The smaller the local area is set, the higher the accuracy of the method, but it is also more susceptible to local defects, scratches, etc. inside the array dots.

[0099] S140. Determine at least two perpendicular bisectors based on the connecting lines between at least three of the positions; and determine the centers of the corresponding points based on the at least two perpendicular bisectors.

[0100] Specifically, determining at least two perpendicular bisectors according to the connecting lines between at least three of the positions; and determining the center of a corresponding point according to the at least two perpendicular bisectors includes:

[0101] Connect at least three of the positions in pairs, then select two of the line segments and draw the perpendicular bisectors of the two line segments, and the intersection of the two perpendicular bisectors is the center of the corresponding circle;

[0102] Alternatively, based on at least three of the positions, calculate the equations of the line segments passing through every two of the positions, then select two of the line segments, calculate the equations of the perpendicular bisectors of the two line segments, and then calculate the coordinates of the intersection of the two perpendicular bisector equations, which are the center points of the corresponding circles.

[0103] Example 2

[0104] Figure 3 is a flow chart of a registration method provided in this embodiment. This embodiment is a further optimization of step S130 in embodiment 1. Figure 3 , the method comprises the following steps:

[0105] S110 , drawing an initial detection area array according to the arrangement of the dot array.

[0106] S120, each initial detection area is divided into at least four local areas, and the local area located within the dot is determined; at least four of the local areas are located at the edge of the initial detection area.

[0107] The above S110 and S120 are the same as those in Embodiment 1 and are not described again here.

[0108] S131. Determine the number of local areas within the dot.

[0109] By determining the number of local areas within the dot, the degree of overlap between the initial detection area and the dot can be determined, providing a basis for subsequent translation.

[0110] S132. According to the number of local areas located in the dot, translate the local areas located in the dot to outside the corresponding dot, and record the positions of the local areas when translated to outside the corresponding dot.

[0111] Specifically, according to the number of local areas located in the dot, translating the local areas located in the dot to the outside of the corresponding dot, and recording the positions when the local areas are translated to the outside of the corresponding dot, includes:

[0112] Determine the translation direction of each local area within the dot according to the number of local areas within the dot;

[0113] According to the translation direction, each local area is translated, and the position when it is translated outside the corresponding point is recorded.

[0114] Preferably, if the number of local regions within the dot is 4, the translation directions of at least three local regions within the dot are determined to be independently horizontal, vertical, or directions of lines connecting non-adjacent local regions;

[0115] If the number of local areas within the dot is 3, determine that the translation direction of the first local area is horizontal or vertical, the translation direction of the second local area is horizontal or vertical, and the translation direction of the third local area is the direction from the local area outside the dot to the third local area;

[0116] If the number of local areas within the dot is 2, determine that the translation direction of the first local area is horizontal, vertical, first horizontal and then vertical, or first vertical and then horizontal, and the translation direction of the second local area is horizontal, vertical, first horizontal and then vertical, or first vertical and then horizontal;

[0117] If the number of local regions within the dot is 1, determine that the translation direction of the first local region is horizontal and vertical, and that the Nth local region points to the direction of the first local region;

[0118] The first local area and the second local area are both local areas adjacent to the local area outside the dot, the third local area is a local area far away from the local area outside the dot; the Nth local area is a local area that is not adjacent to the first local area and is outside the dot, and N is an integer greater than or equal to 4.

[0119] The above-mentioned “transverse direction” refers to a direction parallel to the length direction of the dot-shaped array substrate; the above-mentioned “longitudinal direction” refers to a direction parallel to the width direction of the dot-shaped array substrate.

[0120] Exemplary:

[0121] Case 1: For the square initial detection area, if the number of local areas within the dot is 3, and the local area outside the dot is the upper left area (such as Figure 4 shown), Figure 4 The initial detection area is set as a square abcd, which includes the upper left local area a0, the upper right local area b0, the lower right local area c0, and the lower left local area d0. The upper left local area a0 is outside the dot. The lower right local area c0 is moved to the lower right by a local area distance, recorded as c1, and it is determined whether c1 is outside the corresponding dot. If not, it continues to move, and is recorded as c2, c3, c4, c5 in sequence until c6 is executed. The result of the judgment is that it has moved outside the corresponding dot. The upper left corner coordinate of c6 is recorded as (x1, y1). Next, the upper right local area b0 is moved upward by a local area distance, recorded as b1, and it is determined whether b1 is outside the array dot. If not, it continues to move until b2 is executed. The result of the judgment is that it has moved outside the corresponding dot. The upper left corner coordinate of b2 is recorded as (x2, y2). Next, move the lower left local area d0 to the left by the distance of a local area, recorded as d1, and determine whether d1 is outside the array dots. If not, continue moving until d2 is executed. The judgment result is that it has moved outside the corresponding dot. The upper left corner coordinate of d2 is recorded as (x3, y3).

[0122] Case 2: If the number of local regions within the dot is 3, and the local region outside the dot is the upper right region (e.g. Figure 5 As shown), the lower left local area is moved to the lower left until the coordinates (x1, y1) are obtained, the lower right local area is moved to the right until the coordinates (x2, y2) are obtained, and the upper left local area is moved upward until the coordinates (x3, y3) are obtained.

[0123] Case 3: If the number of local regions within the dot is 3, and the local region outside the dot is the lower left region (such as Figure 6 As shown), the upper right local area is moved to the upper right until the coordinates (x1, y1) are obtained, the upper left local area is moved to the left until the coordinates (x2, y2) are obtained, and the lower right local area is moved downward until the coordinates (x3, y3) are obtained.

[0124] Case 4: If the number of local regions within the dot is 3, and the local region outside the dot is the lower right region (e.g. Figure 7 As shown), the upper left local area is moved to the upper left until the coordinates (x1, y1) are obtained, the lower left local area is moved downward until the coordinates (x2, y2) are obtained, and the upper right local area is moved to the right until the coordinates (x3, y3) are obtained.

[0125] Case 5: If the number of local regions within the dot is 2, and the local regions within the dot are the upper right region and the lower right region (e.g. Figure 8 As shown), the local area at the midpoint of the bc segment (the local area can be obtained by moving the upper right local area downward to the midpoint of the bc segment, or by moving the lower right local area upward to the midpoint of the bc segment) is moved to the right until the coordinates (x1, y1) are obtained, the upper right local area is moved upward until the coordinates (x2, y2) are obtained, and the lower right local area is moved downward until the coordinates (x3, y3) are obtained.

[0126] Case 6: If the number of local regions within the dot is 2, and the local regions within the dot are the lower left region and the lower right region (such as Fig. 9 As shown), the local area at the midpoint of the dc segment (the local area can be obtained by moving the lower right local area to the left to the midpoint of the dc segment, or by moving the lower left local area to the right to the midpoint of the dc segment) is moved downward until the coordinates (x1, y1) are obtained, the lower right local area is moved to the right until the coordinates (x2, y2) are obtained, and the lower left local area is moved to the left until the coordinates (x3, y3) are obtained.

[0127] Case 7: If the number of local regions within the dot is 2, and the local regions within the dot are the upper left region and the lower left region (e.g. Fig.10 As shown), the local area at the midpoint of the ad segment (the local area can be obtained by moving the upper left local area downward to the midpoint of the ad segment, or by moving the lower left local area upward to the midpoint of the ad segment) is moved to the left until the coordinates (x1, y1) are obtained, the upper left local area is moved upward until the coordinates (x2, y2) are obtained, and the lower left local area is moved downward until the coordinates (x3, y3) are obtained.

[0128] Case 8: If the number of local regions within the dot is 2, and the local regions within the dot are the upper left region and the upper right region (such as Fig.11 As shown), the local area at the midpoint of the ab segment (the local area can be obtained by moving the upper left local area to the right to the midpoint of the ab segment, or by moving the upper right local area to the left to the midpoint of the ab segment) is moved upward until the coordinates (x1, y1) are obtained, the upper left local area is moved to the left until the coordinates (x2, y2) are obtained, and the upper right local area is moved to the right until the coordinates (x3, y3) are obtained.

[0129] Case 9: If the number of local regions within the dot is 1, and the local region within the dot is the upper left region (e.g. Fig.12As shown), move the upper left local area to the upper left until the coordinates (x1, y1) are obtained, move the upper left local area to the left until the coordinates (x2, y2) are obtained, and move the upper left local area upward until the coordinates (x3, y3) are obtained.

[0130] Case 10: If the number of local regions within the dot is 1, and the local region within the dot is the upper right region (e.g. Fig.13 As shown), move the upper right local area to the upper right until the coordinates (x1, y1) are obtained, move the upper right local area upward until the coordinates (x2, y2) are obtained, and move the upper right local area to the right until the coordinates (x3, y3) are obtained.

[0131] Case 11: If the number of local regions within the dot is 1, and the local region within the dot is the lower left region (e.g. Fig.14 As shown), move the lower left local area to the lower left until the coordinates (x1, y1) are obtained, move the lower left local area downward until the coordinates (x2, y2) are obtained, and move the lower left local area to the left until the coordinates (x3, y3) are obtained.

[0132] Case 12: If the number of local regions within the dot is 1, and the local region within the dot is the lower right region (e.g. Fig.15 As shown), move the lower right local area to the lower right until the coordinates (x1, y1) are obtained, move the lower right local area to the right until the coordinates (x2, y2) are obtained, and move the lower right local area downward until the coordinates (x3, y3) are obtained.

[0133] Case 13: If the number of local areas within the dot is 4 (e.g. Fig.16 As shown), the lower right local area is moved to the lower right until the coordinates (x1, y1) are obtained, the upper right local area is moved upward until the coordinates (x2, y2) are obtained, and the lower left local area is moved to the left until the coordinates (x3, y3) are obtained.

[0134] S140. Determine at least two perpendicular bisectors based on the connecting lines between at least three of the positions; and determine the centers of the corresponding points based on the at least two perpendicular bisectors.

[0135] Specifically, this step includes: according to at least three of the positions, calculating the equation of the line segment passing through every two of the positions, then selecting two of the line segments, calculating the equation of the perpendicular bisectors of the two line segments, and then calculating the coordinates of the intersection of the two perpendicular bisector equations, which is the center of the corresponding circle.

[0136] For example, for the above situation 1, the calculation formula of the center coordinates (x, y) is:

[0137] x=((y1+y3) / 2-(x1-x3) / (y3-y1)×(x1+x3) / 2-(y1+y2) / 2+(x1-x2) / (y2-y1)×(x1+x2) / 2) / ((x1-x2) / (y2-y1)-(x1-x3) / (y3-y1));

[0138] y=x×(x1-x2) / (y2-y1)+(y1+y2) / 2-(x1-x2) / (y2-y1)×(x1+x2) / 2.

[0139] To prevent division by zero errors, when applying the above formula to calculate the coordinates (x, y), a small offset should be added to y2 and y3, for example, 0.000001.

[0140] Fig.17 The figure shows the detection area array drawn without using the method of the present invention. Fig.18 The figure shows the detection area array drawn by the method of Example 2, wherein the circles with numbers are detection areas. Fig.18 It takes only 4 milliseconds to acquire, and the detection area array is well registered with the sensing array.

[0141] Example 3

[0142] like Fig.19 As shown, this embodiment provides a registration device, including:

[0143] An initial detection area array drawing module 101 is used to draw an initial detection area array according to the arrangement of the dot array;

[0144] The local area determination module 102 located within the dot is used to divide each initial detection area into at least four local areas to determine the local area located within the dot; at least four of the local areas are located at the edge of the initial detection area;

[0145] A position determination module 103 is used to translate the local area located within the dot to the outside of the corresponding dot, and record the position of the local area when translated to the outside of the corresponding dot;

[0146] The circle center determination module 104 is used to determine at least two perpendicular bisectors according to the connecting lines between at least three of the positions; and determine the circle center of the corresponding point according to the at least two perpendicular bisectors.

[0147] The configuration device in this embodiment is used to execute the registration method of the above embodiments, and thus has at least the functional modules and beneficial effects corresponding to the above embodiments.

[0148] Example 4

[0149] like Fig. 20As shown, this embodiment provides an electronic device, including:

[0150] at least one processor; and

[0151] a memory communicatively connected to at least one of the processors; wherein,

[0152] The memory stores instructions executable by at least one of the processors, and the instructions are executed by at least one of the processors to enable at least one of the processors to perform the above method. At least one processor in the electronic device can perform the above method, and thus has at least the same advantages as the above method.

[0153] Optionally, the electronic device also includes an interface for connecting various components, including a high-speed interface and a low-speed interface. Various components are interconnected using different buses and can be installed on a common mainboard or installed in other ways as needed. The processor can process instructions executed in the electronic device, including instructions stored in or on a memory to display the graphical information of a GUI (Graphical User Interface) on an external input / output device (such as a display device coupled to an interface). In other embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple electronic devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Fig. 20 A processor 201 is taken as an example.

[0154] The memory 202, as a computer-readable storage medium, can be used to store software programs, computer executable programs and modules, such as program instructions / modules corresponding to the registration method in the embodiment of the present invention (for example, the initial detection area array drawing module 101, the local area determination module 102 located within the dot, the position determination module 103 and the center determination module 104 in the registration device). The processor 201 executes various functional applications and data processing of the device by running the software programs, instructions and modules stored in the memory 202, that is, realizes the above-mentioned safety operation and maintenance center accident prediction method.

[0155] The memory 202 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application required for a function; the data storage area may store data created according to the use of the terminal, etc. In addition, the memory 202 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 202 may further include a memory remotely arranged relative to the processor 201, and these remote memories may be connected to the device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0156] The electronic device may further include: an input device 203 and an output device 204. The processor 201, the memory 202, the input device 203 and the output device 204 may be connected via a bus or other means. Figure 3 The example of connecting through bus is taken in the following.

[0157] The input device 203 can receive input digital or character information, and the output device 204 can include a display device, an auxiliary lighting device (e.g., LED), and a tactile feedback device (e.g., a vibration motor), etc. The display device can include, but is not limited to, a liquid crystal display (LCD), a light emitting diode (LED) display, and a plasma display. In some embodiments, the display device can be a touch screen.

[0158] Optionally, the electronic device may be a tablet computer or a smart phone.

[0159] Example 5

[0160] This embodiment provides a medium on which computer instructions are stored, and the computer instructions are used to enable the computer to execute the above method. The computer instructions on the medium are used to enable the computer to execute the above method, and thus have at least the same advantages as the above method.

[0161] The medium in the present invention may adopt any combination of one or more computer-readable media. The medium may be a computer-readable signal medium or a computer-readable storage medium. The medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples of the medium (a non-exhaustive list) include: an electrical connection with one or more wires, 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 thereof. In this document, the medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device, or device.

[0162] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0163] The program code contained on the computer-readable medium can be transmitted using any appropriate medium, including but not limited to wireless, wire, optical cable, RF (Radio Frequency), etc., or any suitable combination of the above.

[0164] Computer program code for performing the operations of the present invention may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0165] 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 recorded in this application can be executed in parallel, sequentially or in different orders, as long as the expected results of the technical solution disclosed in this application can be achieved, and this document is not limited here.

[0166] The above specific implementations do not constitute a limitation on the protection scope of this application. 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 modifications, equivalent substitutions and improvements made within the spirit and principles of this application should be included in the protection scope of this application.

Claims

1. A registration method, characterized in that: The following steps are involved: According to the arrangement of the dot array, draw the initial detection area array; The method includes drawing a most original detection area for each dot, and after the most original detection areas corresponding to all the dots in the dot array are drawn, an initial detection area array is formed; Each initial detection area is divided into at least four local areas, and the local area located within the dot is determined; at least four of the local areas are located at the edge of the initial detection area; The local area located within the dot is translated to outside the corresponding dot, and the position of the local area when translated to outside the corresponding dot is recorded; Determine at least two perpendicular bisectors based on the connecting lines between at least three of the positions; determine the center of the corresponding point based on the at least two perpendicular bisectors; The translating the local area located in the dot to the outside of the corresponding dot and recording the position when the local area is translated to the outside of the corresponding dot includes: determining the number of local areas located in the dot; determining the translation direction of each local area located in the dot according to the number of local areas located in the dot; translating each local area according to the translation direction, and recording the position when the local area is translated to the outside of the corresponding dot; If the number of local areas within the dot is 4, determine that the translation directions of at least three local areas within the dot are independently horizontal, vertical, or the direction of the line connecting non-adjacent local areas; if the number of local areas within the dot is 3, determine that the translation direction of the first local area is horizontal or vertical, the translation direction of the second local area is horizontal or vertical, and the translation direction of the third local area is the direction from the local area outside the dot to the third local area; if the number of local areas within the dot is 2, determine that the translation direction of the first local area is horizontal, vertical, first horizontal and then vertical, or first vertical and then horizontal, and the translation direction of the second local area is horizontal or vertical. The direction is horizontal, vertical, first horizontal and then vertical, or first vertical and then horizontal, and then the first local area and the second local area are moved horizontally or vertically respectively; if the number of local areas within the dot is 1, the translation direction of the first local area is determined to be horizontal, vertical, and the direction in which the Nth local area points to the first local area; the first local area and the second local area are both local areas adjacent to the local area outside the dot, and the third local area is a local area far away from the local area outside the dot; the Nth local area is a local area that is not adjacent to the first local area and is outside the dot, and N is an integer greater than or equal to 4.

2. The registration method according to claim 1, characterized in that: The method of dividing each initial detection area into at least four local areas and determining the local area located within the dot includes: Each initial detection area is divided into at least four local areas, and the average R, G, and B color values ​​of each local area are calculated; The local area within the dot is determined based on the average R, G, B color values ​​and the R, G, B color values ​​of the dot-shaped array substrate.

3. The registration method according to claim 2, characterized in that: The step of dividing each initial detection area into at least four local areas and calculating the average R, G, and B color values ​​of each local area includes: According to the shape of the initial detection area, at least four local areas in each initial detection area are determined; and the average R, G, B color values ​​of each local area are calculated respectively.

4. The registration method according to claim 2, characterized in that: The determining of the local area within the dot according to the average R, G, B color values ​​and the R, G, B color values ​​of the dot-shaped array substrate comprises: The difference between the average R, G, B color value and the R, G, B color value of the dot-shaped array substrate is calculated, the difference is compared with a preset threshold, and the local area within the dot is determined according to the comparison result.

5. A registration device, characterized in that: include: An initial detection area array drawing module is used to draw an initial detection area array according to the arrangement of the dot array; The method includes drawing a most original detection area for each dot, and after the most original detection areas corresponding to all the dots in the dot array are drawn, an initial detection area array is formed; A local area determination module located within the dot, used to divide each initial detection area into at least four local areas, and determine the local area located within the dot; at least four of the local areas are located at the edge of the initial detection area; A position determination module, used for translating the local area located within the dot to the outside of the corresponding dot, and recording the position when the local area is translated to the outside of the corresponding dot; A circle center determination module, used to determine at least two perpendicular bisectors according to the connecting lines between at least three of the positions; and determine the circle center of the corresponding point according to the at least two perpendicular bisectors; The translating the local area located in the dot to the outside of the corresponding dot and recording the position when the local area is translated to the outside of the corresponding dot includes: determining the number of local areas located in the dot; determining the translation direction of each local area located in the dot according to the number of local areas located in the dot; translating each local area according to the translation direction, and recording the position when the local area is translated to the outside of the corresponding dot; If the number of local areas within the dot is 4, determine that the translation directions of at least three local areas within the dot are independently horizontal, vertical, or the direction of the line connecting non-adjacent local areas; if the number of local areas within the dot is 3, determine that the translation direction of the first local area is horizontal or vertical, the translation direction of the second local area is horizontal or vertical, and the translation direction of the third local area is the direction from the local area outside the dot to the third local area; if the number of local areas within the dot is 2, determine that the translation direction of the first local area is horizontal, vertical, first horizontal and then vertical, or first vertical and then horizontal, and the translation direction of the second local area is horizontal or vertical. The direction is horizontal, vertical, first horizontal and then vertical, or first vertical and then horizontal, and then the first local area and the second local area are moved horizontally or vertically respectively; if the number of local areas within the dot is 1, the translation direction of the first local area is determined to be horizontal, vertical, and the direction in which the Nth local area points to the first local area; the first local area and the second local area are both local areas adjacent to the local area outside the dot, and the third local area is a local area far away from the local area outside the dot; the Nth local area is a local area that is not adjacent to the first local area and is outside the dot, and N is an integer greater than or equal to 4.

6. An electronic device, characterized in that: include: at least one processor, and a memory communicatively coupled to at least one of the processors; The memory stores instructions executable by at least one of the processors, and the instructions are executed by at least one of the processors so that the at least one processor can execute the method according to any one of claims 1 to 4.

7. A medium, characterized in that The medium stores computer instructions, and the computer instructions are used to enable a computer to execute the method according to any one of claims 1 to 4.