Determination method of wall latex paint spraying flatness and flatness detection system
The ToF sensor obtains wall distance data, generates a distance matrix and calculates flatness, which solves the problem of low manual detection efficiency, realizes fast and comprehensive automated detection of flatness of wall latex paint spraying, and supports intelligent construction.
Patent Information
- Application Number
- CN202411229929.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-03
- Publication Date
- 2024-11-26
AI Technical Summary
In the prior art, the construction effect detection efficiency of manual inspection wall spraying operations is low, lacks a comprehensive evaluation of the overall quality, and does not conform to the development trend of intelligent mechanization.
The ToF sensor is used to obtain the distance data between the wall and the sampling point, generate a distance matrix, and obtain the spray flatness through correction and calculation, and automatically detect it through computer program products and detection systems to avoid manual sampling and detection.
It improves the construction effect detection efficiency of wall spraying operations, realizes a fast and comprehensive evaluation of the flatness of wall latex paint spraying, and supports the integrated application of intelligent construction robots in construction and evaluation.
Smart Images

Figure CN119022835A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of building construction and intelligent sensing technology, and in particular, to a method for determining the flatness of wall latex paint spraying, a device, a computer program product, and a flatness detection system. Background Art
[0002] With the continuous development of construction technology and the increasing progress of intelligent and modern construction methods, intelligent robots and other equipment assist or replace manpower to complete repetitive processes in construction, which has become the mainstream development direction. In construction, spraying of indoor walls is a typical operation scene. Through smearing and spraying, the polished wall surface is decorated with materials such as latex paint in a specific shape or color, so that the wall surface meets the requirements of construction in terms of flatness and meets the aesthetic needs of users in terms of appearance. Due to the direct visibility of the wall construction effect, the quality of construction plays a direct and important role in evaluating the construction effect. The traditional evaluation method focuses on manual sampling and detection using a profilometer or a ruler. This type of method has a certain degree of randomness and subjectivity, and lacks a comprehensive evaluation of the overall quality; at the same time, the manual detection method does not conform to the development trend of intelligent mechanization in the construction industry. Summary of the invention
[0003] The main purpose of the present application is to provide a method, device, computer program product and flatness detection system for determining the flatness of wall latex paint spraying, so as to at least solve the problem of low detection efficiency of the construction effect of manual detection of wall spraying operations in the prior art.
[0004] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a method for determining the flatness of latex paint spraying on a wall is provided, comprising: acquiring multiple distance data, wherein the distance data is data of the distance between the body of the ToF sensor and the sampling points of the wall collected by the ToF sensor, and the distance data corresponds one-to-one to the sampling points; generating a distance matrix based on the multiple distance data, wherein the distance matrix is a matrix of a data set composed of the distance data obtained by multiple data collections; and calculating the flatness of the spraying based on the distance matrix.
[0005] Optionally, obtaining multiple distance data includes: obtaining the number of horizontal samples and the number of vertical samples; controlling the ToF sensor sampling, wherein the serial number of the horizontal coordinate of the sampling point is less than or equal to the horizontal sampling number, and the serial number of the vertical coordinate of the sampling point is less than or equal to the vertical sampling number; obtaining speed of light data and propagation time, wherein the speed of light data is the propagation speed of light when the ToF sensor samples, and the propagation time is the difference between a first time point and a second time point, the first time point is the time point when the ToF sensor emits light, and the second time point is the time point when the ToF sensor receives the light reflected from the wall; calculating the distance data according to the speed of light data and the propagation time.
[0006] Optionally, calculating the flatness of the spraying according to the distance matrix includes: performing fitting correction on the distance matrix to obtain a corrected distance matrix; and calculating the flatness of the spraying according to the corrected distance matrix.
[0007] Optionally, the distance matrix is fitted and corrected to obtain a corrected distance matrix, including: fitting using a linear fitting method to obtain a plane equation of the distance data in the distance matrix; fitting and correcting the distance matrix according to the plane equation to obtain the corrected distance matrix.
[0008] Optionally, calculating the flatness of the spraying according to the corrected distance matrix includes: calculating an average value according to a first formula, wherein the first formula is:
[0009]
[0010] D represents the average value, M represents the number of horizontal sampling, N represents the number of vertical sampling, i x =1,2,3,....,M,i y =1,2,3,....,Nd' ix,iy Represents the corrected distance data at the corresponding serial number in the corrected distance matrix; calculates the flatness according to a second formula, wherein the second formula is:
[0011]
[0012] σ represents the flatness, d ix,iy Represents the distance data at the corresponding sequence number in the distance matrix.
[0013] Optionally, after calculating the flatness of the spraying according to the distance matrix, the method further includes: comparing the size relationship between the flatness and a preset flatness; when the flatness is less than the preset flatness, controlling the spraying equipment to continue spraying the wall to supplement the construction.
[0014] Optionally, after controlling the spraying equipment to continue spraying the wall for supplementary construction, the method also includes: generating a distance matrix after supplementary construction based on the distance data after the supplementary construction; performing a matrix difference operation on the corrected distance matrix and the distance matrix after the supplementary construction to obtain an operation result; and displaying the operation result in a display interface.
[0015] According to another aspect of the present application, a device for determining the smoothness of latex paint spraying on a wall is provided, comprising: an acquisition unit, used to acquire a plurality of distance data, wherein the distance data is data of the distance between a body of the ToF sensor and a sampling point on the wall collected by a ToF sensor, and the distance data corresponds one-to-one to the sampling point; a first generation unit, used to generate a distance matrix based on the plurality of distance data, wherein the distance matrix is a matrix of a data set composed of the distance data obtained by multiple data collections; a first calculation unit, used to calculate the smoothness of the spraying based on the distance matrix.
[0016] According to another aspect of the present application, a computer program product is provided, including a computer program, which, when executed by a processor, implements the steps of any one of the methods for determining the flatness of wall latex paint spraying.
[0017] According to another aspect of the present application, a flatness detection system is provided, comprising: one or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by the one or more processors, and the one or more programs include a method for determining the flatness of wall latex paint spraying according to any one of the methods.
[0018] By applying the technical solution of the present application, a ToF sensor is used to obtain the distance data of the wall, and the distance data is calculated to determine the spraying effect of latex paint on the wall, that is, the flatness. There is no need for manual sampling and detection using a profilometer or a ruler, thereby improving the detection efficiency of the construction effect of the wall spraying operation. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The drawings constituting part of the present application are used to provide a further understanding of the present application. The exemplary embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0020] Figure 1 A hardware structure block diagram of a mobile terminal for executing a method for determining the flatness of latex paint spraying on a wall provided in an embodiment of the present application is shown;
[0021] Figure 2 A schematic flow chart of a method for determining the flatness of wall latex paint spraying provided in accordance with an embodiment of the present application is shown;
[0022] Figure 3 A schematic diagram showing the locations of the wall and sensors in this solution is shown;
[0023] Figure 4 A schematic flow chart of another method for determining the flatness of wall latex paint spraying according to the present solution is shown;
[0024] Figure 5 A structural block diagram of a device for determining the flatness of latex paint spraying on a wall provided in accordance with an embodiment of the present application is shown.
[0025] The above drawings include the following reference numerals:
[0026] 102. Processor; 104. Memory; 106. Transmission device; 108. Input and output device; 1. ToF sensor; 11. Sampling point; 2. Wall. DETAILED DESCRIPTION
[0027] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0028] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0029] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0030] As introduced in the background technology, the efficiency of manual inspection of the construction effect of wall spraying operations in the prior art is low. To solve the above problems, the embodiments of the present application provide a method, device, computer program product and flatness detection system for determining the flatness of wall latex paint spraying.
[0031] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention.
[0032] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 1 is a hardware structure block diagram of a mobile terminal for determining the flatness of wall latex paint spraying according to an embodiment of the present invention. Figure 1 As shown, the mobile terminal may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the mobile terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown.
[0033] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the display method of device information in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, the above method is implemented. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories can be connected to the mobile terminal 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 a combination thereof. The transmission device 106 is used to receive or send data via a network. The above-mentioned specific examples of the network may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0034] In this embodiment, a method for determining the flatness of wall latex paint spraying running on a mobile terminal, a computer terminal or a similar computing device is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0035] Figure 2 FIG. 1 is a flow chart of a method for determining the flatness of wall latex paint spraying according to an embodiment of the present application. Figure 2 As shown, the method comprises the following steps:
[0036] Step S201, obtaining a plurality of distance data, wherein the distance data is data of the distance between the body of the ToF sensor and the sampling points on the wall collected by the ToF sensor, and the distance data corresponds to the sampling points one by one;
[0037] Specifically, the positional relationship between the body of the ToF sensor 1 and the wall 2 is as follows: Figure 3As shown, a ToF sensor 1 is arranged at a certain height from the ground on the wall to be tested. The distance between the ToF sensor 1 and the wall 2 and the height from the ground are jointly determined by the sensor performance and the size of the field of view of the detection. The ToF sensor 1 collects data on the distance between the sensor body and the sampling point 11 (also called the detection point) of the wall 2.
[0038] Step S202, generating a distance matrix according to the plurality of distance data, wherein the distance matrix is a matrix of a data set composed of the distance data obtained by multiple data collections;
[0039] Specifically, the ToF sensor (also called a time-of-flight depth sensor) is used to obtain the distance data between the wall in the field of view of the ToF sensor and the sensor according to the set sampling number and sampling resolution, and the data is saved as a distance matrix D.
[0040] Step S203, calculating the flatness of the spraying according to the above distance matrix.
[0041] Specifically, the flatness of the sprayed surface is calculated according to a given distance matrix. The flatness of the sprayed surface, that is, the flatness or smoothness of the surface, can be obtained by calculating these distances.
[0042] Through this embodiment, the distance data of the wall is obtained by using a ToF sensor, and the distance data is calculated to determine the spraying effect of latex paint on the wall, that is, the flatness. There is no need for manual sampling and detection using a profilometer or a ruler, thereby improving the detection efficiency of the construction effect of the wall spraying operation.
[0043] Specifically, with the development of visual sensing technology, non-contact solutions based on distance detection have been widely used in various industries. Wall construction effect evaluation based on visual sensing can realize non-contact rapid and comprehensive data collection and evaluation, and has the application prospect of being installed on intelligent construction robots to realize the integration of construction and evaluation. By using distance detection methods represented by time-of-flight technology, combined with data and algorithms to evaluate the overall condition of the wall, it is possible to effectively detect the spraying effect in the classic wall latex paint spraying construction scene, which is of great significance in construction quality evaluation, intelligent building construction and other aspects.
[0044] Specifically, this solution can use the wall distance data obtained by the time-of-flight depth sensor to quickly and comprehensively evaluate the wall latex paint spraying effect through data processing and calculation, and can evaluate walls of different sizes by changing the sensor field of view and working distance.
[0045] Specifically, this solution uses a time-of-flight depth sensor to obtain wall distance data, which has the characteristics of non-contact and large-area data collection. Through data processing and calculation, the wall latex paint spraying effect can be quickly and comprehensively evaluated, and the evaluation of walls of different sizes can be achieved by changing the sensor field of view and working distance. The effects of supplementary construction can be compared and displayed.
[0046] In the specific implementation process, obtaining multiple distance data can be achieved through the following steps: obtaining the number of horizontal sampling and the number of vertical sampling; controlling the sampling of the above-mentioned ToF sensor, wherein the serial number of the horizontal coordinate of the above-mentioned sampling point is less than or equal to the above-mentioned horizontal sampling number, and the serial number of the vertical coordinate of the above-mentioned sampling point is less than or equal to the above-mentioned vertical sampling number; obtaining the speed of light data and the propagation time, wherein the above-mentioned speed of light data is the propagation speed of the light when the above-mentioned ToF sensor samples, and the above-mentioned propagation time is the difference between the first time point and the second time point, the above-mentioned first time point is the time point when the above-mentioned ToF sensor emits the light, and the above-mentioned second time point is the time point when the above-mentioned ToF sensor receives the light reflected from the above-mentioned wall; according to the above-mentioned speed of light data and the above-mentioned propagation time, the above-mentioned distance data is calculated.
[0047] In this solution, the distance data is calculated through the horizontal and vertical coordinate numbers of the sampling points, the speed of light data, and the propagation time. The ToF sensor can be used to measure the distance of the wall without directly contacting the wall to obtain the distance data. This non-contact distance measurement method can reduce damage to the wall and improve the accuracy and precision of the measurement. The measurement can be completed quickly in a short time, improving work efficiency and convenience.
[0048] Specifically, according to the plurality of the above distance data, the steps of generating the distance matrix are as follows: in a rectangular detectable field of view of the time-of-flight depth sensor of size W×H, W represents the width of the field of view, H represents the height of the field of view, select a sampling interval of the distance data, and denote the horizontal sampling interval as Δx and the vertical sampling interval as Δy;
[0049] According to the size of the field of view and the sampling interval, the number of samples is calculated. The horizontal sampling number is M and the vertical sampling number is N, which satisfies:
[0050]
[0051] According to the horizontal sampling number M and the vertical sampling number N, all detection points are selected in the field of view at a fixed spacing in the same direction. The coordinates of a detection point (x m ,y n) where x and y represent the position coordinates with the upper left corner of the field of view as the origin, the right direction as the positive direction of x, and the lower direction as the positive direction of y, respectively. m and n represent the number of samples in the horizontal and vertical directions, respectively, satisfying:
[0052] x m =Δx×(i x -1),i x =1,2,3,...,M,y n =Δy×(i y -1),i y =1,2,3,...,N,
[0053] In the above two formulas, i x and i y Respectively represent the coordinates (x m ,y n ) in the entire field of view, the maximum value of the number is the sampling number M and N, where the i of the detection point at the origin of the coordinate is x and i y Both are 1. In this embodiment, M is 890 and N is 680.
[0054] For a detection point (x m ,y n ), a light beam is emitted from the time-of-flight depth sensor to the sampling point, reflected at the sampling point and received by the sensor, and the propagation time t from the emission to the reception of the light beam is recorded. xm,yn , and calculate the distance d between the sampling point and the sensor based on the propagation time and the speed of light ix,iy ,satisfy:
[0055] c represents the speed of light.
[0056] For all sampling points, distance collection is performed. The sampling process can be sequential sampling or simultaneous sampling according to different working modes of the time-of-flight depth sensor. In this embodiment, the sampling process is simultaneous sampling.
[0057] The distance data obtained by collecting the distances of all sampling points are collectively recorded as a distance matrix D. In this embodiment, the distance matrix D is visualized, and the grayscale value represents the distance value in the distance matrix. Specifically, the distance matrix is recorded as D, where:
[0058]
[0059] Specifically, in this embodiment,
[0060] In the specific implementation process, the flatness of the spraying is calculated according to the above distance matrix, which can be achieved through the following steps: fitting and correcting the above distance matrix to obtain a corrected distance matrix; and calculating the above flatness of the spraying according to the above corrected distance matrix.
[0061] In this scheme, the measured distance matrix can be fitted and corrected to obtain a corrected distance matrix, which can eliminate some errors and deviations. The corrected distance matrix is more accurate. The corrected distance matrix is used to calculate the flatness of the sprayed surface, that is, the flatness of the surface, which can improve the accuracy and reliability of the measurement, thereby more accurately evaluating the flatness of the sprayed surface in the future.
[0062] In some embodiments, the distance matrix is fitted and corrected to obtain a corrected distance matrix, which can be specifically achieved through the following steps: linear fitting is used to perform fitting to obtain a plane equation of the distance data in the distance matrix; the distance matrix is fitted and corrected according to the plane equation to obtain the corrected distance matrix.
[0063] In this scheme, the distance data in the distance matrix are fitted using a linear fitting method to obtain a plane equation. Then, the distance matrix is fitted and corrected according to the plane equation to obtain a corrected distance matrix. The data in the distance matrix can be estimated more accurately and the error can be reduced. Through linear fitting and correction, the accuracy and reliability of the data can be improved, so as to better carry out subsequent data analysis and application.
[0064] Specifically, a plane fitting is performed on the acquired distance matrix D, and the distance matrix is corrected using the fitting plane to obtain a corrected distance matrix D'.
[0065] According to the obtained distance matrix D, the plane equation P where the distance data in the distance matrix is located is fitted by linear fitting. In this embodiment, the least squares method is used for plane fitting, and the plane equation P satisfies: Ax+By+Cz+D=0, where A, B, C, and D are the equation parameters obtained using the data in the distance matrix D, and C is not 0; x represents the x-axis coordinate, y represents the y-axis coordinate, and z represents the z-axis coordinate; according to the obtained plane equation P, the distance matrix D is corrected to obtain the corrected distance matrix D'.
[0066] In some embodiments, the above-mentioned flatness of the spraying is calculated according to the above-mentioned corrected distance matrix, which can be specifically achieved by the following steps: calculating the average value according to the first formula, wherein the above-mentioned first formula is:
[0067]
[0068] represents the above average value, M represents the number of horizontal samples, N represents the number of vertical samples, i x =1,2,3,....,M,i y =1,2,3,....,Nd' ix,iy represents the corrected distance data at the corresponding serial number in the corrected distance matrix; the flatness is calculated according to the second formula, wherein the second formula is:
[0069]
[0070] σ represents the above flatness, d ix,iy The above formula is only exemplary, and any variation of the formula falls within the protection scope of this application.
[0071] In this solution, a more accurate flatness can be calculated using the above formula, making the obtained data more accurate.
[0072] Specifically, the flatness F of the wall is calculated based on the corrected distance matrix D' using a statistical method, and the flatness is visualized.
[0073] According to the corrected distance matrix D', calculate the average value of the data in the distance matrix and standard deviation σ, satisfying the first and second formulas, i x and i y Refers to the detection number of the above detection point in the entire field of view; d' ix,iy Refers to the corrected distance value on the corresponding serial number in the corrected distance matrix D'; according to the corrected distance matrix D' and the calculated average value D, the difference between each value in the corrected distance matrix D' and the average value D is calculated to obtain the deviation matrix, and the deviation matrix is normalized to obtain the normalized deviation matrix ΔD'; the standard deviation σ is displayed as a quantitative representation of flatness. In this embodiment, the standard deviation σ is 0.97363, and the normalized deviation matrix ΔD' is displayed, and the grayscale value represents the deviation amount in the deviation matrix.
[0074] In order to ensure the construction quality and improve the reliability and stability of the project, after calculating the flatness of the spraying according to the above distance matrix, the above method also includes the following steps: comparing the size relationship between the above flatness and the preset flatness; when the above flatness is less than the above preset flatness, controlling the spraying equipment to continue spraying the wall to supplement the construction.
[0075] In this solution, the actual wall flatness is compared with the preset flatness. If the actual flatness is less than the preset flatness, then it is necessary to control the spraying equipment to continue spraying the wall to achieve the preset flatness requirement. This can ensure that the flatness of the wall meets the expected standard and improve the construction quality and effect.
[0076] In some embodiments, after controlling the spraying equipment to continue spraying the wall for supplementary construction, the above method also includes the following steps: generating a distance matrix after supplementary construction based on the distance data after supplementary construction; performing matrix difference operation on the above corrected distance matrix and the above distance matrix after supplementary construction to obtain an operation result; and displaying the above operation result in a display interface.
[0077] In this solution, a new distance matrix is generated based on the distance data after the supplementary construction. The new distance matrix is subjected to matrix difference operation with the corrected distance matrix to obtain an operation result. The operation result is displayed in the display interface. In this way, by comparing the difference between the corrected distance matrix and the distance matrix after the supplementary construction, it is possible to check whether the supplementary construction has an impact on the distance. This can help to promptly discover construction problems or errors and make corrections in a timely manner to ensure construction quality and safety. At the same time, displaying the operation results in the display interface can facilitate users to view and analyze, thereby improving work efficiency.
[0078] Specifically, by using the distance data obtained before the supplementary construction and the distance data obtained after the supplementary construction in the same detection area, the effect of the supplementary construction can be obtained.
[0079] The corrected distance matrix D' obtained is recorded as the distance matrix D1 before the supplementary construction; after the supplementary construction, the corrected distance matrix is obtained from the wall surface after the supplementary construction by the above method, which is recorded as the distance matrix D2 after the supplementary construction. The two matrices D1 and D2 have the same size. In this embodiment, the distance matrix D1 before the supplementary construction is subjected to Gaussian filtering and smoothing processing to simulate the effect of the supplementary construction, so as to obtain the distance matrix D2 after the supplementary construction; optionally, the data of the distance matrix D1 before the supplementary construction and the distance matrix D2 after the supplementary construction are aligned using the position parameters of the sensor or the preset marking points on the wall surface; the standard deviation of the distance matrix D2 after the supplementary construction is obtained by the above method, and the standard deviation is displayed for comparison. In this embodiment, the standard deviation of the distance matrix D2 is 0.83491, which is smaller than the standard deviation of the distance matrix D1 before the supplementary construction, which is 0.97363, indicating that the wall surface is smoother; the distance matrix D1 before the supplementary construction and the distance matrix D2 after the supplementary construction are subjected to matrix difference operation, and the obtained results are visualized to show the effect of the supplementary construction, and the grayscale value represents the distance value changed by the supplementary construction.
[0080] In order to enable those skilled in the art to more clearly understand the technical solution of the present application, the implementation process of the method for determining the flatness of wall latex paint spraying of the present application will be described in detail below in combination with specific embodiments.
[0081] This embodiment relates to a specific method for determining the flatness of wall latex paint spraying, such as Figure 4 As shown, the following steps are included:
[0082] Step S1: a time-of-flight depth sensor is arranged at a certain height above the ground on the wall to be tested. The distance between the sensor and the wall and the height above the ground are jointly determined by the sensor performance and the size of the field of view to be detected;
[0083] Step S2: using the time-of-flight depth sensor to obtain the distance data between the wall in the sensor's field of view and the sensor according to the set sampling quantity and sampling resolution, and saving the data as a distance matrix D;
[0084] Step S3: performing plane fitting on the acquired distance matrix D, and using the fitting plane to correct the distance matrix to obtain a corrected distance matrix D';
[0085] Step S4: using a statistical method, the flatness F of the wall is calculated according to the corrected distance matrix D', and the flatness is displayed visually;
[0086] Step S5: By using the distance data obtained before the supplementary construction and the distance data obtained after the supplementary construction in the same detection area, the effect of the supplementary construction can be obtained.
[0087] The embodiment of the present application also provides a device for determining the flatness of latex paint spraying on a wall. It should be noted that the device for determining the flatness of latex paint spraying on a wall of the embodiment of the present application can be used to perform the method for determining the flatness of latex paint spraying on a wall provided by the embodiment of the present application. The device is used to implement the above-mentioned embodiments and preferred implementations, and those that have been described will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware is also possible and conceived.
[0088] The following is an introduction to the device for determining the flatness of wall latex paint spraying provided in an embodiment of the present application.
[0089] Figure 5 It is a structural block diagram of a device for determining the flatness of wall latex paint spraying according to an embodiment of the present application.
[0090] like Figure 5 As shown, the device comprises:
[0091] An acquisition unit 10 is used to acquire a plurality of distance data, wherein the distance data is data of the distance between the body of the ToF sensor and the sampling points on the wall collected by the ToF sensor, and the distance data corresponds to the sampling points one by one;
[0092] A first generating unit 20 is used to generate a distance matrix according to the plurality of distance data, wherein the distance matrix is a matrix of a data set composed of the distance data obtained by multiple data collections;
[0093] The first calculation unit 30 is used to calculate the flatness of the spraying according to the above distance matrix.
[0094] Through this embodiment, the distance data of the wall is obtained by using a ToF sensor, and the distance data is calculated to determine the spraying effect of latex paint on the wall, that is, the flatness. There is no need for manual sampling and detection using a profilometer or a ruler, thereby improving the detection efficiency of the construction effect of the wall spraying operation.
[0095] In the specific implementation process, the acquisition unit includes a first acquisition module, a control module, a second acquisition module and a first calculation module, the first acquisition module is used to obtain the horizontal sampling number and the vertical sampling number; the control module is used to control the sampling of the above-mentioned ToF sensor, wherein the serial number of the horizontal coordinate of the above-mentioned sampling point is less than or equal to the above-mentioned horizontal sampling number, and the serial number of the vertical coordinate of the above-mentioned sampling point is less than or equal to the above-mentioned vertical sampling number; the second acquisition module is used to obtain the speed of light data and the propagation time, wherein the above-mentioned speed of light data is the propagation speed of the light when the above-mentioned ToF sensor samples, and the above-mentioned propagation time is the difference between the first time point and the second time point, the above-mentioned first time point is the time point when the above-mentioned ToF sensor emits the light, and the above-mentioned second time point is the time point when the above-mentioned ToF sensor receives the light reflected from the above-mentioned wall; the first calculation module is used to calculate the above-mentioned distance data according to the above-mentioned speed of light data and the above-mentioned propagation time.
[0096] In this solution, the distance data is calculated through the horizontal and vertical coordinate numbers of the sampling points, the speed of light data, and the propagation time. The ToF sensor can be used to measure the distance of the wall without directly contacting the wall to obtain the distance data. This non-contact distance measurement method can reduce damage to the wall and improve the accuracy and precision of the measurement. The measurement can be completed quickly in a short time, improving work efficiency and convenience.
[0097] In the specific implementation process, the first calculation unit includes a correction module and a second calculation module. The correction module is used to fit and correct the above distance matrix to obtain a corrected distance matrix; the second calculation module is used to calculate the above flatness of the spraying according to the above corrected distance matrix.
[0098] In this scheme, the measured distance matrix can be fitted and corrected to obtain a corrected distance matrix, which can eliminate some errors and deviations. The corrected distance matrix is more accurate. The corrected distance matrix is used to calculate the flatness of the sprayed surface, that is, the flatness of the surface, which can improve the accuracy and reliability of the measurement, thereby more accurately evaluating the flatness of the sprayed surface in the future.
[0099] In some embodiments, the correction module includes a fitting submodule and a correction submodule. The fitting submodule is used to fit by linear fitting to obtain the plane equation of the distance data in the distance matrix; the correction submodule is used to fit and correct the distance matrix according to the plane equation to obtain the corrected distance matrix.
[0100] In this scheme, the distance data in the distance matrix are fitted using a linear fitting method to obtain a plane equation. Then, the distance matrix is fitted and corrected according to the plane equation to obtain a corrected distance matrix. The data in the distance matrix can be estimated more accurately and the error can be reduced. Through linear fitting and correction, the accuracy and reliability of the data can be improved, so as to better carry out subsequent data analysis and application.
[0101] In some embodiments, the second calculation module includes a first calculation submodule and a second calculation submodule, and the first calculation submodule is used to calculate the average value according to a first formula, wherein the first formula is:
[0102]
[0103] represents the above average value, M represents the number of horizontal samples, N represents the number of vertical samples, i x =1,2,3,....,M,i y =1,2,3,....,Nd' ix,iy represents the corrected distance data on the corresponding serial number in the corrected distance matrix; the second calculation submodule is used to calculate the flatness according to the second formula, wherein the second formula is:
[0104]
[0105] σ represents the above flatness, d ix,iy The above formula is only exemplary, and any variation of the formula falls within the protection scope of this application.
[0106] In this solution, a more accurate flatness can be calculated using the above formula, making the obtained data more accurate.
[0107] In order to ensure the construction quality and improve the reliability and stability of the project, the above-mentioned device also includes a comparison unit and a control unit. The comparison unit is used to compare the size relationship between the above-mentioned flatness and the preset flatness after calculating the flatness of the spraying according to the above-mentioned distance matrix; the control unit is used to control the spraying equipment to continue spraying the wall to supplement the construction when the above-mentioned flatness is less than the above-mentioned preset flatness.
[0108] In this solution, the actual wall flatness is compared with the preset flatness. If the actual flatness is less than the preset flatness, then it is necessary to control the spraying equipment to continue spraying the wall to achieve the preset flatness requirement. This can ensure that the flatness of the wall meets the expected standard and improve the construction quality and effect.
[0109] In some embodiments, the above-mentioned device also includes a second generation unit, a second calculation unit and a display unit. The second generation unit is used to generate a distance matrix after supplementary construction based on the distance data after supplementary construction after controlling the spraying equipment to continue spraying the wall for supplementary construction; the second calculation unit is used to perform matrix difference operation on the above-mentioned corrected distance matrix and the above-mentioned distance matrix after supplementary construction to obtain an operation result; the display unit is used to display the above-mentioned operation result in a display interface.
[0110] In this solution, a new distance matrix is generated based on the distance data after the supplementary construction. The new distance matrix is subjected to matrix difference operation with the corrected distance matrix to obtain an operation result. The operation result is displayed in the display interface. In this way, by comparing the difference between the corrected distance matrix and the distance matrix after the supplementary construction, it is possible to check whether the supplementary construction has an impact on the distance. This can help to promptly discover construction problems or errors and make corrections in a timely manner to ensure construction quality and safety. At the same time, displaying the operation results in the display interface can facilitate users to view and analyze, thereby improving work efficiency.
[0111] The above-mentioned device for determining the flatness of latex paint spraying on a wall includes a processor and a memory, and the above-mentioned acquisition unit, the first generation unit and the first calculation unit are all stored in the memory as program units, and the processor executes the above-mentioned program units stored in the memory to realize the corresponding functions. The above-mentioned modules are all located in the same processor; or, the above-mentioned modules are located in different processors in any combination.
[0112] The processor includes a kernel, which retrieves the corresponding program unit from the memory. One or more kernels can be provided, and the problem of low efficiency in the manual inspection of the construction effect of the wall spraying operation in the prior art is solved by adjusting the kernel parameters.
[0113] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0114] An embodiment of the present invention provides a computer-readable storage medium, which includes a stored program, wherein when the program is running, the device where the computer-readable storage medium is located is controlled to execute the method for determining the flatness of wall latex paint spraying.
[0115] Specifically, the method for determining the flatness of wall latex paint spraying includes:
[0116] Step S201, obtaining a plurality of distance data, wherein the distance data is data of the distance between the body of the ToF sensor and the sampling points on the wall collected by the ToF sensor, and the distance data corresponds to the sampling points one by one;
[0117] Step S202, generating a distance matrix according to the plurality of distance data, wherein the distance matrix is a matrix of a data set composed of the distance data obtained by multiple data collections;
[0118] Step S203, calculating the flatness of the spraying according to the above distance matrix.
[0119] An embodiment of the present invention provides a processor, which is used to run a program, wherein the method for determining the flatness of wall latex paint spraying is executed when the program is running.
[0120] Specifically, the method for determining the flatness of wall latex paint spraying includes:
[0121] Step S201, obtaining a plurality of distance data, wherein the distance data is data of the distance between the body of the ToF sensor and the sampling points on the wall collected by the ToF sensor, and the distance data corresponds to the sampling points one by one;
[0122] Step S202, generating a distance matrix according to the plurality of distance data, wherein the distance matrix is a matrix of a data set composed of the distance data obtained by multiple data collections;
[0123] Step S203, calculating the flatness of the spraying according to the above distance matrix.
[0124] An embodiment of the present invention provides a device, the device including a processor, a memory, and a program stored in the memory and executable on the processor, and when the processor executes the program, at least the following steps are implemented:
[0125] Specifically, the method for determining the flatness of wall latex paint spraying includes:
[0126] Step S201, obtaining a plurality of distance data, wherein the distance data is data of the distance between the body of the ToF sensor and the sampling points on the wall collected by the ToF sensor, and the distance data corresponds to the sampling points one by one;
[0127] Step S202, generating a distance matrix according to the plurality of distance data, wherein the distance matrix is a matrix of a data set composed of the distance data obtained by multiple data collections;
[0128] Step S203, calculating the flatness of the spraying according to the above distance matrix.
[0129] The devices in this article can be servers, PCs, PADs, mobile phones, etc.
[0130] A computer program product includes a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above method in each embodiment of the present application are implemented:
[0131] Specifically, the method for determining the flatness of wall latex paint spraying includes:
[0132] Step S201, obtaining a plurality of distance data, wherein the distance data is data of the distance between the body of the ToF sensor and the sampling points on the wall collected by the ToF sensor, and the distance data corresponds to the sampling points one by one;
[0133] Step S202, generating a distance matrix according to the plurality of distance data, wherein the distance matrix is a matrix of a data set composed of the distance data obtained by multiple data collections;
[0134] Step S203, calculating the flatness of the spraying according to the above distance matrix.
[0135] The solution of the present application also provides a flatness detection system, including one or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the above-mentioned memory and are configured to be executed by the above-mentioned one or more processors, and the above-mentioned one or more programs include a method for executing any one of the above-mentioned methods for determining the flatness of wall latex paint spraying.
[0136] Specifically, the method for determining the flatness of wall latex paint spraying includes:
[0137] Step S201, obtaining a plurality of distance data, wherein the distance data is data of the distance between the body of the ToF sensor and the sampling points on the wall collected by the ToF sensor, and the distance data corresponds to the sampling points one by one;
[0138] Step S202, generating a distance matrix according to the plurality of distance data, wherein the distance matrix is a matrix of a data set composed of the distance data obtained by multiple data collections;
[0139] Step S203, calculating the flatness of the spraying according to the above distance matrix.
[0140] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
[0141] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0142] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0143] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0144] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0145] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0146] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0147] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0148] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device 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, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0149] From the above description, it can be seen that the above embodiments of the present application achieve the following technical effects:
[0150] 1) The method for determining the flatness of wall latex paint spraying of the present application uses a ToF sensor to obtain the distance data of the wall, and calculates through the distance data to determine the wall latex paint spraying effect, that is, the flatness. There is no need for manual sampling and detection using a profilometer or a ruler, thereby improving the detection efficiency of the construction effect of the wall spraying operation.
[0151] 2) The device for determining the flatness of wall latex paint spraying of the present application uses a ToF sensor to obtain the distance data of the wall, and determines the wall latex paint spraying effect, that is, the flatness, through calculation based on the distance data. There is no need for manual sampling and detection using a profilometer or a ruler, thereby improving the detection efficiency of the construction effect of the wall spraying operation.
[0152] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A method for determining the flatness of wall latex paint spraying, characterized in that: include: Acquire multiple distance data, wherein the distance data is data of the distance between the body of the ToF sensor and the sampling points on the wall collected by the ToF sensor, and the distance data corresponds to the sampling points one by one; Generate a distance matrix according to the plurality of distance data, wherein the distance matrix is a matrix of a data set composed of the distance data obtained by multiple data collections; The flatness of the spraying is calculated according to the distance matrix.
2. The method according to claim 1, characterized in that: Get multiple distance data, including: Get the horizontal sampling number and the vertical sampling number; Controlling the ToF sensor sampling, wherein the sequence number of the horizontal coordinate of the sampling point is less than or equal to the horizontal sampling number, and the sequence number of the vertical coordinate of the sampling point is less than or equal to the vertical sampling number; Obtaining light speed data and propagation time, wherein the light speed data is the propagation speed of the light when the ToF sensor samples, and the propagation time is the difference between a first time point and a second time point, the first time point is the time point when the ToF sensor emits the light, and the second time point is the time point when the ToF sensor receives the light reflected from the wall; The distance data is calculated according to the light speed data and the propagation time.
3. The method according to claim 1, characterized in that According to the distance matrix, the flatness of the spraying is calculated, including: Performing fitting correction on the distance matrix to obtain a corrected distance matrix; The flatness of the spraying is calculated according to the corrected distance matrix.
4. The method according to claim 3, characterized in that The distance matrix is fitted and corrected to obtain a corrected distance matrix, including: Using a linear fitting method to perform fitting, to obtain a plane equation of the distance data in the distance matrix; The distance matrix is fitted and corrected according to the plane equation to obtain the corrected distance matrix.
5. The method according to claim 3, characterized in that: Calculating the flatness of the spraying according to the corrected distance matrix includes: The average value is calculated according to a first formula, wherein the first formula is: represents the average value, M represents the number of horizontal samples, N represents the number of vertical samples, i x =1,2,3,....,M,i y =1,2,3,....,Nd' ix,iy Represents the corrected distance data at the corresponding sequence number in the corrected distance matrix; The flatness is calculated according to a second formula, wherein the second formula is: σ represents the flatness, d ix,iy Represents the distance data at the corresponding sequence number in the distance matrix.
6. The method according to claim 3, characterized in that: After calculating the flatness of the spraying according to the distance matrix, the method further includes: Comparing the size relationship between the flatness and a preset flatness; When the flatness is less than the preset flatness, the spraying equipment is controlled to continue spraying the wall surface to supplement the construction.
7. The method according to claim 6, characterized in that After controlling the spraying equipment to continue spraying the wall surface to supplement the construction, the method further includes: According to the distance data after the supplementary construction, a distance matrix after the supplementary construction is generated; Performing a matrix difference operation on the corrected distance matrix and the distance matrix after the supplementary construction to obtain an operation result; The calculation result is displayed in the display interface.
8. A device for determining the flatness of latex paint spraying on a wall, characterized in that: include: An acquisition unit, configured to acquire a plurality of distance data, wherein the distance data is data of the distance between the body of the ToF sensor and sampling points on the wall collected by the ToF sensor, and the distance data corresponds to the sampling points one by one; A first generating unit is used to generate a distance matrix according to the plurality of distance data, wherein the distance matrix is a matrix of a data set composed of the distance data obtained by multiple data collections; The first calculation unit is used to calculate the flatness of the spraying according to the distance matrix.
9. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method for determining the flatness of wall latex paint spraying as described in any one of claims 1 to 7 are implemented.
10. A flatness detection system, characterized in that: include: One or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by the one or more processors, and the one or more programs include a method for determining the flatness of wall latex paint spraying as described in any one of claims 1 to 7.
