A method, device, equipment and medium for detecting verticality of a wall plate through hole
By performing edge point extraction and ellipse fitting processing on the wall plate through hole image, the verticality value of the wall plate through hole is calculated, which solves the problem of large detection errors in the existing technology and achieves efficient and accurate verticality of the wall plate through hole. degree detection.
Patent Information
- Application Number
- CN202310908708.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-24
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2043-07-24
AI Technical Summary
In the existing technology, the verticality detection method of wall panel through holes is easily affected by contact force, resulting in detection errors that are difficult to eliminate.
By obtaining the image of the wall plate through hole, extracting the edge point set and performing ellipse fitting processing, the through hole profile information is obtained, including the center point, minor axis diameter, major axis diameter and angle value, and the vertical axis of the wall plate through hole is calculated based on this information. degree value.
The accuracy of the verticality detection of the wall plate through-hole is achieved, errors caused by the influence of external forces are avoided, and the detection efficiency and applicability are improved.
Smart Images

Figure CN117094950B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of image recognition technology, and in particular to a method, device, equipment and medium for detecting the verticality of a through hole in a wall panel. Background Art
[0002] The detection of the verticality of the through-holes in the wall panels is a very important part of the aircraft assembly quality inspection task. Generally, a mandrel is used to simulate the axis of the hole, and the mandrel is inserted into the hole to be measured, which is equivalent to extending the axis of the hole outward. Taking the axis of the mandrel as the reference, multiple laser displacement sensors are used to measure the normal of the surface around the hole, and then the verticality of the hole is obtained. However, the contact measurement method using the mandrel fitting axis will inevitably be affected by the contact force, and the resulting hole verticality detection error is difficult to eliminate by technical means. Summary of the invention
[0003] The embodiments of the present application provide a method, device, equipment and medium for detecting the verticality of a wall panel through hole, which solves the technical problem that errors occur when the prior art cannot detect the verticality of a wall panel through hole.
[0004] On the one hand, an embodiment of the present application provides a method for detecting the verticality of a through hole of a wall panel, comprising:
[0005] Get the wall plate through-hole image;
[0006] Based on the wallboard image, obtaining an edge point set;
[0007] Performing ellipse fitting processing on the edge point set to obtain through-hole contour information; wherein the through-hole contour information includes a through-hole center point value, a minor axis diameter value, a major axis diameter value, and a major axis diameter angle value;
[0008] Based on the through hole profile information, the verticality value of the wall panel through hole is obtained.
[0009] As some optional implementation manners of the present application, obtaining a first edge point set based on the wallboard image includes:
[0010] Performing grayscale processing on the wallboard image to obtain a grayscale image;
[0011] After the grayscale image is denoised, a first edge point set is obtained based on a segmentation threshold.
[0012] As some optional implementations of the present application, after denoising the grayscale image, obtaining a first edge point set based on a segmentation threshold includes:
[0013] After denoising the first grayscale image, spot detection is performed based on a spot detection algorithm to obtain spot information; wherein the spot information includes spot position information and spot size information;
[0014] Based on the spot information, a second grayscale image is obtained; based on the segmentation threshold, the second grayscale image is binarized to obtain a binarized image;
[0015] The binary image is subjected to morphological processing by using a closing operation, and then edge detection is performed to obtain a first edge point set.
[0016] As some optional implementations of the present application, performing ellipse fitting processing on the edge point set to obtain through-hole contour information includes:
[0017] Based on the first edge point set, obtain a second edge point set;
[0018] Based on the second edge point set, obtaining an edge point set of an upper surface of the through hole and an edge point set of a lower surface of the through hole;
[0019] Based on the through-hole upper surface edge point set and the through-hole lower surface edge point set, through-hole upper surface contour information and through-hole lower surface contour information are obtained.
[0020] As some optional implementations of the present application, performing ellipse fitting processing on the edge point set to obtain through-hole contour information includes:
[0021] Performing ellipse fitting processing on the first edge point set to obtain the ellipse area and ellipse equation;
[0022] Based on the ellipse equation, edge points in the first edge point set that are outside the ellipse region are deleted to obtain a second edge point set; wherein all edge points in the second edge point set are located within the ellipse region;
[0023] Based on the second edge point set, obtaining an edge point set of an upper surface of the through hole and an edge point set of a lower surface of the through hole;
[0024] Based on the through-hole upper surface edge point set and the through-hole lower surface edge point set, the through-hole upper surface contour information and the through-hole lower surface contour information are obtained; wherein the through-hole upper surface contour information includes the center coordinate value, the minor axis diameter value, the major axis diameter value and the major axis diameter angle value of the through-hole upper surface; the through-hole lower surface contour information includes the center coordinate value, the minor axis diameter value, the major axis diameter value and the major axis diameter angle value of the through-hole lower surface.
[0025] As some optional implementations of the present application, the ellipse equation satisfies the following relationship:
[0026]
[0027] Wherein, X represents the difference between the horizontal coordinate of the edge point and the horizontal coordinate of the center point, Y represents the difference between the vertical coordinate of the edge point and the vertical coordinate of the center point, α represents the angle value of the major axis diameter, a represents the horizontal coordinate value of the major axis diameter, and b represents the vertical coordinate value of the major axis diameter.
[0028] As some optional implementations of the present application, based on the ellipse equation, deleting edge points outside the ellipse area in the first edge point set to obtain a second edge point set includes:
[0029] Based on the ellipse equation, respectively calculating the ellipse values of all edge points in the first edge point set;
[0030] If the ellipse value of the edge point is greater than 1, it means that the edge point is outside the ellipse area, and the edge point is deleted;
[0031] If the ellipse value of the edge point is less than or equal to 1, it means that the edge point is located in the ellipse area, and the point is included in the second edge point set as a second edge point.
[0032] As some optional implementations of the present application, the ellipse value satisfies the following relationship:
[0033]
[0034] d1 represents the ellipse value of the edge point, X i Indicates the difference between the horizontal coordinate of the edge point and the horizontal coordinate of the center point, Y i It represents the difference between the ordinate of the edge point and the ordinate of the center point, α represents the angle value of the major axis diameter, a represents the abscissa value of the major axis diameter, and b represents the ordinate value of the major axis diameter.
[0035] As some optional implementations of the present application, obtaining the through-hole upper surface edge point set and the through-hole lower surface edge point set based on the second edge point set includes:
[0036] Obtaining a first ray based on the ellipse center point and the major axis diameter angle value of the ellipse area;
[0037] After translating the first ray along the long axis direction by a preset distance, a segmentation line is obtained; based on the segmentation line, the second edge point set is segmented to obtain an edge point set of the upper surface of the through hole and an edge point set of the lower surface of the through hole.
[0038] As some optional implementations of the present application, the dividing line satisfies the following relationship:
[0039] tanα(x-x0)-y+y0+d=0
[0040] Among them, x represents the horizontal coordinate value of the edge point, x0 represents the horizontal coordinate value of the center point, y represents the vertical coordinate value of the edge point, y0 represents the vertical coordinate value of the center point, α represents the angle value of the major axis diameter, and d represents the preset distance value.
[0041] As some optional implementations of the present application, obtaining the verticality value of the wallboard through hole based on the through hole profile information includes:
[0042] Based on the center coordinate value of the upper surface of the through hole and the center coordinate value of the lower surface of the through hole, the upper and lower center distance values are obtained;
[0043] The verticality value of the through hole of the wall panel is obtained by dividing the upper and lower center distance value and the wall panel thickness value.
[0044] On the other hand, the embodiment of the present application provides a wall panel through-hole verticality detection device, comprising:
[0045] An image acquisition module is used to acquire a wall panel image;
[0046] An edge point extraction module is used to obtain an edge point set based on the wallboard image;
[0047] A contour acquisition module is used to perform ellipse fitting processing on the edge point set to obtain through-hole contour information; wherein the through-hole contour information includes a through-hole center point value, a minor axis diameter value, a major axis diameter value, and a major axis diameter angle value;
[0048] The calculation module is used to obtain the verticality value of the wall plate through hole based on the through hole profile information.
[0049] On the other hand, an embodiment of the present application provides an electronic device, including: a memory and a processor, wherein the memory stores an acquisition machine program, and the processor executes the acquisition machine program to implement the aforementioned method.
[0050] On the other hand, an embodiment of the present application provides an acquisition machine-readable storage medium, on which an acquisition machine program is stored, and the processor executes the acquisition machine program to implement the aforementioned method.
[0051] In the prior art, the mandrel simulation method is usually used to detect the verticality of the hole, but this method will inevitably be affected by the contact force, and the resulting hole verticality detection error is difficult to eliminate by technical means. Therefore, the embodiment of the present application proposes a method for detecting the verticality of the wall panel through hole, that is, by obtaining the wall panel through hole image; based on the wall panel image, obtaining the edge point set; performing ellipse fitting processing on the edge point set to obtain the through hole contour information; wherein the through hole contour information includes the through hole center point value, the minor axis diameter value, the major axis diameter value and the major axis diameter angle value; based on the through hole contour information, the verticality value of the wall panel through hole is obtained. It can be seen that the method described in the present application is to first extract the edge points in the wall panel through hole image, and then perform ellipse fitting processing on the edge points to delete the invalid edge points, and then obtain the through hole contour information based on the remaining valid edge points, and obtain the through hole contour information based on the through hole contour information and the wall panel thickness value itself. The verticality value of the wall panel through hole. Through the method described in the present application, the accuracy of the through hole verticality value obtained by the detection can be guaranteed, and the detection error caused by other external forces can be avoided. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0053] Figure 1 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application;
[0054] Figure 2 It is a schematic flow chart of a method for detecting the verticality of a through hole in a wall panel provided in an embodiment of the present application;
[0055] Figure 3 is a wall plate through hole image provided by an embodiment of the present application;
[0056] Figure 4 is an image after ellipse fitting processing provided in an embodiment of the present application;
[0057] Figure 5 is a schematic diagram of a second edge point set obtained after deleting edge points outside the elliptical area provided in an embodiment of the present application;
[0058] Figure 6 It is a schematic diagram of a wall panel through-hole verticality detection device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0059] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0060] The main solution of the embodiment of the present application is: a method for detecting the verticality of a wall panel through hole, comprising: obtaining an image of the wall panel through hole; based on the wall panel image, obtaining an edge point set; performing ellipse fitting processing on the edge point set to obtain through hole contour information; wherein the through hole contour information includes a through hole center point value, a minor axis diameter value, a major axis diameter value and a major axis diameter angle value; based on the through hole contour information, obtaining the verticality value of the wall panel through hole.
[0061] The detection of the verticality of the hole is a very important part of the aircraft assembly quality inspection task. The traditional deep hole verticality measurement method is to use a mandrel to simulate the central axis, insert the mandrel into the measured hole, use the end face as the reference plane, and measure the angle deviation between the central axis and the end face. However, if the measured hole size is small or the hole depth is very large, the measurement error is large and the mandrel is difficult to manufacture. In addition, there are also methods of measuring using three coordinates in the prior art, but due to the expensive equipment and the limitations of the site and the size of the workpiece, it is not applicable to tube sheet parts. In summary, the prior art has the following limitations and defects in the measurement of deep hole verticality: 1. Manual reading and recording of measurement data, large errors, low measurement accuracy and measurement efficiency; 2. The prior art uses a mandrel simulation method, and the measurement length of the measured hole is limited by the length of the mandrel, which cannot achieve convenient and fast measurement, and because the mandrel and the measured hole are clearance fit, the error caused is large. Therefore, its verticality detection urgently needs a fast, efficient, and high-precision non-contact detection method.
[0062] Therefore, in the course of research, in order to overcome the above-mentioned technical defects, the edge contour features of the through hole on the upper and lower surfaces of the wall panel can be highlighted in the image on one side of the wall panel under the two lighting modes of coaxial light and ambient light. The inverse tangent of the ratio of the center distance of the edge contour of the through hole on the upper and lower surfaces of the wall panel to the thickness of the wall panel is taken as the verticality of the hole. For thinner wall panels, the camera captures the image directly facing the through hole, and the edge contours of the through hole on the upper and lower surfaces of the wall panel basically overlap. By capturing the image away from the center of the through hole, the edge contour of the through hole on the upper and lower surfaces of the wall panel can be distinguished, but a part of the edge contour of the through hole on the lower surface of the wall panel is blocked by the upper surface. Therefore, according to the edge contour features of the through hole on the upper and lower surfaces of the wall panel, the edge contour features are then used to detect the verticality of the through hole. This method not only has high detection efficiency, but also has a wide applicability and small detection error.
[0063] Reference Figure 1 , Figure 1 A schematic diagram of the electronic device structure of the hardware operating environment involved in the embodiment of the present application.
[0064] like Figure 1As shown, the electronic device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (WIreless-FIdelity, WI-FI) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM) memory, or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0065] Those skilled in the art will understand that Figure 1 The structure shown in the figure does not constitute a limitation on the electronic device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0066] like Figure 1 As shown, the memory 1005 as a storage medium may include an operating system, a network communication module, a user interface module, and an electronic program.
[0067] exist Figure 1 In the electronic device shown, the network interface 1004 is mainly used for data communication with the network server; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and the memory 1005 in the electronic device of the present application can be set in the electronic device, and the electronic device calls the wall panel through hole verticality detection device stored in the memory 1005 through the processor 1001, and executes the wall panel through hole verticality detection method provided in the embodiment of the present application.
[0068] See also Figure 2 , an embodiment of the present application provides a method for detecting the verticality of a wall plate through hole, comprising:
[0069] Step S10, obtaining a wall panel through hole image. In one embodiment, the wall panel through hole image is as follows: Figure 3 It should be noted that the wall panel through hole image is obtained by the following method: that is, on one side of the wall panel, two lighting modes, coaxial light and surround light, are used to respectively highlight the edge contour features of the through hole on the upper and lower surfaces of the wall panel.
[0070] Step S20: Acquire an edge point set based on the wallboard image.
[0071] It should be noted that the obtaining of the first edge point set based on the wall panel image includes: performing grayscale processing on the wall panel image to obtain a grayscale image; and performing denoising on the grayscale image to obtain the first edge point set based on a segmentation threshold.
[0072] Specifically, the denoising process refers to the use of median filtering to denoise the grayscale image. The segmentation threshold refers to the adaptive segmentation threshold obtained by solving the maximum inter-class variance method (OTSU algorithm). The first edge point set is obtained based on spot detector detection, and the spot detector is obtained based on a spot detection algorithm.
[0073] Specifically, after the grayscale image is denoised, a first edge point set is obtained based on a segmentation threshold, including: after the first grayscale image is denoised, spot detection is performed based on a spot detection algorithm to obtain spot information; wherein the spot information includes spot position information and spot size information; based on the spot information, a second grayscale image is obtained; based on the segmentation threshold, the second grayscale image is binarized to obtain a binary image; after the binary image is morphologically processed using a closing operation, edge detection is performed to obtain a first edge point set.
[0074] More specifically, obtaining the second grayscale image based on the spot (also called pixel point or edge point) information means taking a screenshot based on the position and size of the spot, and taking the screenshot as a rectangular area defined by adding n pixels to the radius with the center of the spot area as the center. More specifically, when edge detection is performed on the binary image, the canny operator is used to perform edge detection on the denoised binary image.
[0075] It should be noted that the rectangular area delineated by adding n pixels to the radius with the center of the spot area as the center means that the delineated rectangular area is larger than the spot, and the side length of the rectangle can be set to 1.2 to 1.5 times the spot diameter. After adding 0.2 to 0.5 times the radius of pixels, the circumscribed rectangle is obtained.
[0076] Step S30, performing ellipse fitting processing on the edge point set to obtain through-hole contour information; wherein the through-hole contour information includes a through-hole center point value, a minor axis diameter value, a major axis diameter value, and a major axis diameter angle value.
[0077] It should be noted that the ellipse fitting processing of the edge point set to obtain the through-hole contour information includes: obtaining the second edge point set based on the first edge point set; obtaining the through-hole upper surface edge point set and the through-hole lower surface edge point set based on the second edge point set; obtaining the through-hole upper surface contour information and the through-hole lower surface contour information based on the through-hole upper surface edge point set and the through-hole lower surface edge point set.
[0078] Specifically, since the through hole of the wall panel is circular, after the edge point set is obtained, an ellipse fitting process is performed on it to delete the edge points that are not within the ellipse, which can be understood as further denoising process. More specifically, the step of performing ellipse fitting on the edge point set to obtain the through-hole contour information includes: performing ellipse fitting on the first edge point set to obtain an ellipse region and an ellipse equation; based on the ellipse equation, deleting edge points in the first edge point set that are outside the ellipse region to obtain a second edge point set; wherein all edge points in the second edge point set are within the ellipse region; based on the second edge point set, obtaining a through-hole upper surface edge point set and a through-hole lower surface edge point set; based on the through-hole upper surface edge point set and the through-hole lower surface edge point set, obtaining through-hole upper surface contour information and through-hole lower surface contour information; wherein the through-hole upper surface contour information includes the center coordinate value, minor axis diameter value, major axis diameter value and major axis diameter angle value of the through-hole upper surface; and the through-hole lower surface contour information includes the center coordinate value, minor axis diameter value, major axis diameter value and major axis diameter angle value of the through-hole lower surface. wherein, the image after ellipse fitting is as follows Figure 4 As shown, the schematic diagram of the second edge point set obtained after deleting the edge points outside the elliptical area is as follows Figure 5 shown.
[0079] It should be noted that after obtaining the ellipse area and the ellipse equation, the ellipse equation is calculated to determine whether the edge point is within the ellipse area, and only the edge points within the ellipse area are retained to improve the detection accuracy. Wherein, the ellipse equation satisfies the following relationship:
[0080]
[0081] Wherein, X represents the difference between the horizontal coordinate of the edge point and the horizontal coordinate of the center point, Y represents the difference between the vertical coordinate of the edge point and the vertical coordinate of the center point, α represents the angle value of the major axis diameter, a represents the horizontal coordinate value of the major axis diameter, and b represents the vertical coordinate value of the major axis diameter. That is, the edge points in the second edge point set are all located in the elliptical region (the elliptical region mentioned here refers to the edge points inside and on the boundary line of the elliptical region).
[0082] Among them, since the through hole includes an upper surface and a lower surface, and both are circular, theoretically the surface should be equal to the lower surface and be a circle of the same size. Therefore, if the image is taken directly from the center of the through hole, it is very likely that only the upper surface of the through hole can be seen, but the lower surface cannot be seen. Therefore, the embodiment of the present application is on one side of the wall panel, in the two lighting modes of coaxial light and surround light, the edge contour features of the through hole on the upper and lower surfaces of the wall panel can be highlighted in the image respectively. The inverse tangent of the ratio of the center distance of the edge contour of the through hole on the upper and lower surfaces of the wall panel and the thickness of the wall panel is used as the verticality of the hole. For thinner wall panels, the camera captures the image directly facing the through hole, and the edge contours of the through hole on the upper and lower surfaces of the wall panel basically overlap. By capturing the image away from the center of the through hole, the edge contours of the through hole on the upper and lower surfaces of the wall panel can be distinguished, but a part of the edge contour of the through hole on the lower surface of the wall panel is blocked by the upper surface. Therefore, according to the edge contour features of the through hole on the upper and lower surfaces of the wall panel, a wall panel through hole edge contour extraction method is proposed; that is, the edge point set is divided into upper surface edge points and lower surface edge points.
[0083] Specifically, based on the ellipse equation, the edge points in the first edge point set that are outside the ellipse area are deleted to obtain the second edge point set, including: based on the ellipse equation, the ellipse values of all edge points in the first edge point set are calculated respectively; if the ellipse value of the edge point is greater than 1, it indicates that the edge point is outside the ellipse area, and the edge point is deleted; if the ellipse value of the edge point is less than or equal to 1, it indicates that the edge point is within the ellipse area, and the point is included in the second edge point set as the second edge point.
[0084] In actual application, the ellipse value satisfies the following relationship:
[0085]
[0086] d1 represents the ellipse value of the edge point, X i Indicates the difference between the horizontal coordinate of the edge point and the horizontal coordinate of the center point, Y i It represents the difference between the ordinate of the edge point and the ordinate of the center point, α represents the angle value of the major axis diameter, a represents the abscissa value of the major axis diameter, and b represents the ordinate value of the major axis diameter.
[0087] Specifically, the obtaining of the through-hole upper surface edge point set and the through-hole lower surface edge point set based on the second edge point set includes: obtaining a first ray based on the ellipse center point and the major axis diameter angle value of the ellipse area; translating the first ray along the major axis direction by a preset distance to obtain a segmentation line; segmenting the second edge point set based on the segmentation line to obtain the through-hole upper surface edge point set and the through-hole lower surface edge point set. It should be noted that the preset distance refers to translating 0.1 times the major axis diameter along the major axis to the center of the image.
[0088] During actual segmentation, the segmentation line satisfies the following relationship:
[0089] tanα(x-x0)-y+y0+d=0
[0090] Among them, x represents the horizontal coordinate value of the edge point, x0 represents the horizontal coordinate value of the center point, y represents the vertical coordinate value of the edge point, y0 represents the vertical coordinate value of the center point, α represents the angle value of the major axis diameter, and d represents the preset distance value.
[0091] After obtaining the contour information of the upper and lower through holes based on the above method, it is necessary to further determine the verticality value of the wall plate through holes, namely:
[0092] Step S40: Obtain the verticality value of the wall panel through hole based on the through hole profile information.
[0093] Specifically, the verticality value of the wall panel through hole is obtained based on the through hole contour information, including: obtaining the upper and lower center distance values based on the center coordinate value of the upper surface of the through hole and the center coordinate value of the lower surface of the through hole; dividing the upper and lower center distance values and the wall panel thickness value to obtain the verticality value of the wall panel through hole.
[0094] It can be seen that the method described in the present application is to first extract the edge points in the wall plate through hole image, then perform ellipse fitting processing on the edge points to delete invalid edge points, and then obtain the contour information of the through hole based on the remaining valid edge points, and obtain the verticality value of the wall plate through hole based on the contour information of the through hole and the thickness value of the wall plate itself. The method described in the present application can ensure the accuracy of the through hole verticality value obtained by the detection, and avoid errors in the detection caused by other external forces.
[0095] See also Figure 6 Based on the same inventive concept, an embodiment of the present application further provides a wall panel through-hole verticality detection device, comprising:
[0096] An image acquisition module is used to acquire a wall panel image;
[0097] An edge point extraction module is used to obtain an edge point set based on the wallboard image;
[0098] A contour acquisition module is used to perform ellipse fitting processing on the edge point set to obtain through-hole contour information; wherein the through-hole contour information includes a through-hole center point value, a minor axis diameter value, a major axis diameter value, and a major axis diameter angle value;
[0099] The calculation module is used to obtain the verticality value of the wall plate through hole based on the through hole profile information.
[0100] It should be noted that each module in the wall panel through-hole verticality detection device in this embodiment corresponds one-to-one to each step in the wall panel through-hole verticality detection method in the aforementioned embodiment. Therefore, the specific implementation method and technical effects achieved by this embodiment can refer to the implementation method of the aforementioned wall panel through-hole verticality detection method, and will not be repeated here.
[0101] In addition, in one embodiment, the present application also provides an electronic device, which includes a processor, a memory, and an acquisition machine program stored in the memory, and the acquisition machine program implements the steps of the method in the aforementioned embodiment when executed by the processor.
[0102] In addition, in one embodiment, the present application also provides an acquisition machine storage medium, on which an acquisition machine program is stored, and when the acquisition machine program is executed by a processor, the steps of the method in the aforementioned embodiment are implemented.
[0103] In some embodiments, the acquisition machine readable storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, flash memory, magnetic surface memory, optical disk, or CD-ROM; or may be various devices including one or any combination of the above memories. The acquisition machine may be various acquisition devices including intelligent terminals and servers.
[0104] In some embodiments, executable instructions may be in the form of a program, software, software module, script, or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine, or other unit suitable for use in an acquisition environment.
[0105] As an example, executable instructions may, but need not, correspond to a file in a file system, may be stored as part of a file that stores other programs or data, such as in one or more scripts in a HyperText Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files storing one or more modules, subroutines, or code portions).
[0106] As an example, the executable instructions may be deployed to be executed on one acquisition device, or on multiple acquisition devices located at one site, or on multiple acquisition devices distributed at multiple sites and interconnected by a communication network.
[0107] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0108] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0109] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, and the acquisition machine software product is stored in a storage medium (such as a read-only memory / random access memory, a magnetic disk, an optical disk), and includes a number of instructions for a multimedia terminal device (which can be a mobile phone, an acquisition machine, a television receiver, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0110] What is disclosed above is only a partial embodiment of the present application, which certainly cannot be used to limit the scope of rights of the present application. A person skilled in the art can understand that the entire or partial process of implementing the above embodiment and the equivalent changes made according to the claims of the present application are still within the scope of the invention.
Claims
1. A method for detecting the verticality of a through hole in a wall panel. It is characterized in that include: Get the wall plate through-hole image; Based on the wallboard image, acquiring an edge point set; Performing ellipse fitting processing on the first edge point set to obtain the ellipse area and ellipse equation; Based on the ellipse equation, edge points located outside the ellipse region in the first edge point set are deleted to obtain a second edge point set; wherein all edge points in the second edge point set are located within the ellipse region; based on the second edge point set, an edge point set of the upper surface of the through hole and an edge point set of the lower surface of the through hole are obtained; based on the edge point set of the upper surface of the through hole and the edge point set of the lower surface of the through hole, upper surface contour information of the through hole and lower surface contour information of the through hole are obtained; wherein the upper surface contour information of the through hole includes the center coordinate value, the minor axis diameter value, the major axis diameter value and the major axis diameter angle value of the upper surface of the through hole; the lower surface contour information of the through hole The information includes the center coordinate value, the minor axis diameter value, the major axis diameter value and the major axis diameter angle value of the lower surface of the through hole; wherein the through hole contour information includes the through hole center point value, the minor axis diameter value, the major axis diameter value and the major axis diameter angle value; the through hole upper surface edge point set and the through hole lower surface edge point set are obtained based on the second edge point set, including: based on the ellipse center point and the major axis diameter and angle value of the ellipse area, a first ray is obtained; after translating the first ray along the major axis direction by a preset distance, a segmentation line is obtained; based on the segmentation line, the second edge point set is segmented to obtain the through hole upper surface edge point set and the through hole lower surface edge point set; Based on the center coordinate values of the upper surface of the through hole and the center coordinate values of the lower surface of the through hole, the upper and lower center distance values are obtained; the upper and lower center distance values are divided by the wall plate thickness value to obtain the verticality value of the wall plate through hole.
2. According to the method for detecting the verticality of a wall panel through hole according to claim 1, It is characterized in that The step of acquiring a first edge point set based on the wallboard image comprises: Performing grayscale processing on the wallboard image to obtain a grayscale image; After the grayscale image is denoised, a first edge point set is obtained based on a segmentation threshold.
3. According to the method for detecting the verticality of the through hole of the wall panel according to claim 2, It is characterized in that After the grayscale image is subjected to denoising, a first edge point set is obtained based on a segmentation threshold, including: After denoising the first grayscale image, spot detection is performed based on a spot detection algorithm to obtain spot information; wherein the spot information includes spot position information and spot size information; Based on the spot information, a second grayscale image is obtained; based on the segmentation threshold, the second grayscale image is binarized to obtain a binarized image; The binary image is subjected to morphological processing by using a closing operation, and then edge detection is performed to obtain a first edge point set.
4. According to the method for detecting the verticality of a wall panel through hole according to claim 1, It is characterized in that The step of performing ellipse fitting processing on the edge point set to obtain through-hole contour information includes: Based on the first edge point set, obtain a second edge point set; Based on the second edge point set, obtaining an edge point set of an upper surface of the through hole and an edge point set of a lower surface of the through hole; Based on the through-hole upper surface edge point set and the through-hole lower surface edge point set, through-hole upper surface contour information and through-hole lower surface contour information are obtained.
5. According to the method for detecting the verticality of a wall panel through hole according to claim 1, It is characterized in that The step of deleting edge points outside the ellipse region in the first edge point set based on the ellipse equation to obtain a second edge point set comprises: Based on the ellipse equation, respectively calculating the ellipse values of all edge points in the first edge point set; If the ellipse value of the edge point is greater than 1, it means that the edge point is outside the ellipse area, and the edge point is deleted; If the ellipse value of the edge point is less than or equal to 1, it means that the edge point is located in the ellipse area, and the point is included in the second edge point set as a second edge point.
6. According to the method for detecting the verticality of a wall panel through hole according to claim 1, It is characterized in that The dividing line satisfies the following relationship: Among them, x represents the horizontal coordinate value of the edge point, x 0 represents the horizontal coordinate value of the center point, y represents the vertical coordinate value of the edge point, 0 represents the vertical coordinate value of the center point, α represents the angle value of the major axis diameter, and d represents the preset distance value.
7. A wall panel through-hole verticality detection device, It is characterized in that include: An image acquisition module is used to acquire a wall panel image; An edge point extraction module is used to obtain an edge point set based on the wallboard image; The contour acquisition module is used to perform ellipse fitting processing on the first edge point set to obtain the ellipse area and the ellipse equation; based on the ellipse equation, the edge points in the first edge point set that are outside the ellipse area are deleted to obtain the second edge point set; wherein all edge points in the second edge point set are located in the ellipse area; based on the second edge point set, the through-hole upper surface edge point set and the through-hole lower surface edge point set are obtained; based on the through-hole upper surface edge point set and the through-hole lower surface edge point set, the through-hole upper surface contour information and the through-hole lower surface contour information are obtained; wherein the through-hole upper surface contour information includes the center coordinate value of the through-hole upper surface, the minor axis diameter value, the major axis diameter value, and the through-hole lower surface contour information. value and major axis diameter angle value; the through hole lower surface contour information includes the center coordinate value, minor axis diameter value, major axis diameter value and major axis diameter angle value of the through hole lower surface; wherein the through hole contour information includes the through hole center point value, minor axis diameter value, major axis diameter value and major axis diameter angle value; the through hole upper surface edge point set and the through hole lower surface edge point set are obtained based on the second edge point set, including: based on the ellipse center point and major axis diameter and angle value of the ellipse area, a first ray is obtained; after translating the first ray along the major axis direction by a preset distance, a segmentation line is obtained; based on the segmentation line, the second edge point set is segmented to obtain the through hole upper surface edge point set and the through hole lower surface edge point set; The calculation module is used to obtain the upper and lower center distance values based on the center coordinate values of the upper surface of the through hole and the center coordinate values of the lower surface of the through hole; the upper and lower center distance values are divided by the wall plate thickness value to obtain the verticality value of the wall plate through hole.
8. An electronic device, It is characterized in that The electronic device includes a memory and a processor, wherein the memory stores an acquisition machine program, and the processor executes the acquisition machine program to implement the method as described in any one of claims 1-6.
9. An acquisition machine-readable storage medium, wherein an acquisition machine program is stored on the acquisition machine-readable storage medium, and a processor executes the acquisition machine program to implement the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Automatic synchronous inclination measuring device for precast pile with circular or circular ring shaped cross section
CN103195106A
Portable folding-type inclination survey device for precast pile with round or ring-shaped cross section
CN103195107A
System and method for detecting perpendicularity of group holes based on vision measurement
CN103940374A
Hole-making perpendicularity detection method and system, storage medium and device
CN114485531A
Image processing apparatus, image processing method, and storage medium
US20110164816A1
