Laser measurement apparatus and control method thereof
Through the combination of the scanning unit and the mobile unit of the laser measurement equipment, three-dimensional point cloud data is generated, which solves the problem of deformation caused by contact measurement and the inability to obtain three-dimensional data through two-dimensional visual inspection, and achieves efficient and accurate three-dimensional measurement.
Patent Information
- Application Number
- CN202310187512.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-27
- Publication Date
- 2024-08-27
AI Technical Summary
In the existing technology, the contact measurement method will cause the object to be detected to deform, and the two-dimensional visual inspection cannot obtain three-dimensional geometric data, resulting in low measurement accuracy and efficiency.
Laser measurement equipment is used, including a scanning unit, a mobile unit and a control unit. It generates a reflection image by emitting laser and receiving reflected light, extracts the measurement position information, and maps it to a three-dimensional coordinate system in the processing device to generate three-dimensional point cloud data. Get the geometric parameters of the object to be measured.
It realizes non-contact measurement, improves the accuracy and efficiency of measurement, and can effectively detect the three-dimensional geometric data of the object to be detected.
Smart Images

Figure CN118548802A
Abstract
Description
Technical Field
[0001] The present application relates to the field of laser measurement technology, and in particular to a laser measurement device and a control method thereof. Background Art
[0002] In the field of industrial manufacturing, it is often necessary to conduct production inspections on parts of different shapes and sizes, or to inspect the surface flatness, angles and other parameters of each part when assembling different parts, in order to ensure the quality of production, processing and assembly of various parts.
[0003] In the related technology, the related technicians generally adopt the traditional contact measurement method, for example, by fixing the object to be detected and placing the measuring probe of the three-dimensional measuring machine against the surface of the object to be detected, and then obtaining the discrete spatial point position of the object to be detected, so as to perform corresponding calculations and obtain the geometric parameters of the object to be detected. Alternatively, two-dimensional visual detection technology can be used for measurement, specifically, a camera can be used to take a photo of a certain plane of the object to be detected, and then the object to be detected can be identified through image analysis or comparison, and then the geometric features on a certain plane of the object to be detected can be obtained.
[0004] However, the contact measurement method in the related art may cause deformation of the object to be detected, and the required device is relatively complex, while the measurement using two-dimensional visual detection technology cannot detect the three-dimensional geometric data of the object to be detected. Therefore, the solution of the related art has the problem of low measurement accuracy and efficiency. Summary of the invention
[0005] The purpose of this application is to provide a laser measurement device and a control method thereof, which can improve the accuracy and efficiency of measurement.
[0006] The embodiment of the present application is implemented as follows:
[0007] According to a first aspect of an embodiment of the present application, a laser measurement device is provided, including a measurement device and a processing device, wherein the measurement device includes at least one scanning unit, at least one moving unit and a control unit;
[0008] Each of the scanning units is fixed on each of the moving units respectively, each of the scanning units is connected to the control unit respectively, and each of the moving units is connected to the control unit respectively, and the control unit is also connected to the processing device;
[0009] Each of the scanning units is used to emit a measuring laser to the object to be measured, receive reflected light reflected from the object to be measured, generate a plurality of reflected images, extract the measurement position information from each of the reflected images and output it to the control unit;
[0010] The control unit is used to configure the parameter information of each scanning unit and control the movement of each mobile unit under the control of the processing device, and is used to receive the measurement position information output by each scanning unit, package the measurement position information output by each scanning unit into target data according to the position of each mobile unit, and send the target data to the processing device;
[0011] The processing device is used to receive the target data, map the target data to a preset three-dimensional coordinate system, generate a three-dimensional point cloud data map, and obtain geometric parameters of the object to be measured according to the three-dimensional point cloud data map.
[0012] Optionally, the scanning unit includes a laser, a sensor and a logic control unit;
[0013] The laser and the sensor are respectively connected to the logic control unit, and the logic control unit is connected to the control unit;
[0014] The laser is used to emit the measuring laser to the object to be measured, and the measuring laser is a strip laser;
[0015] The sensor is used to receive each of the reflected light rays, and generate a reflected electrical signal according to each of the reflected light rays and output it to the logic control unit;
[0016] The logic control unit is used to generate each of the reflection images according to the reflection electrical signal, extract the measurement position information according to the grayscale value of each pixel point in each of the reflection images, and output the measurement position information to the control unit.
[0017] Optionally, the logic control unit is further used to perform preliminary processing operations on each of the reflected electrical signals to obtain valid data in each of the reflected electrical signals, and generate each of the reflected images according to the valid data;
[0018] The preliminary processing operation includes at least one of the following: data decoding, data integration, and frame header determination.
[0019] Optionally, the logic control unit is specifically used to determine the grayscale value of each pixel point in the reflected image, and determine the pixel coordinates corresponding to the target pixel point with the largest grayscale value in each column of pixels in the reflected image; and use a preset fitting algorithm to filter each of the pixel coordinates to obtain each of the measurement position information.
[0020] Optionally, each of the scanning units is further used to establish a two-dimensional coordinate system corresponding to the mobile unit, using the moving direction of the mobile unit as the first axis and a direction perpendicular to the moving direction of the mobile unit as the second axis;
[0021] The scanning unit is further configured to extract measurement position information indicating coordinates of target pixel points on the first axis and / or the second axis from each of the reflection images according to a corresponding two-dimensional coordinate system.
[0022] Optionally, the control unit is further used to package the positions of each of the mobile units and the measured position information indicating the coordinates of each of the target pixel points on the first axis and the second axis at the same time to obtain first target data;
[0023] The control unit is further used to use the position of each of the mobile units at the same time, and the measured position information indicating the coordinates of the target pixel point on the first axis as the second target data;
[0024] The control unit is further configured to send the first target data and the second target data to the processing device through different ports respectively.
[0025] Optionally, the parameter information includes at least one of the following: output mode, exposure time, and acquisition frame rate.
[0026] A second aspect of the embodiments of the present application provides a control method for a laser measuring device, which is applied to any laser measuring device provided in the first aspect above, and the method includes:
[0027] The control unit configures parameter information of each scanning unit to be called, and controls the movement of the mobile unit corresponding to each scanning unit to be called;
[0028] Each of the scanning units emits a measuring laser, generates a plurality of reflection images according to the received reflected light, and extracts the measurement position information from each of the reflection images and outputs it to the control unit;
[0029] The control unit generates target data according to the position of each of the mobile units and each of the measurement position information, and sends the target data to the processing device;
[0030] The processing device generates a three-dimensional point cloud data map according to the target data, and determines the geometric parameters of the object to be measured according to the three-dimensional point cloud data map.
[0031] Optionally, extracting the measurement position information from each of the reflection images and outputting it to the control unit comprises:
[0032] Determine the grayscale value of each pixel in the reflected image;
[0033] Comparing the grayscale values of the pixels, and taking a pixel with the largest grayscale value in each column of pixels of the reflected image as a target pixel;
[0034] The pixel coordinates of each of the target pixel points are filtered using a preset fitting algorithm to obtain each of the measurement position information, wherein the pixel coordinates are used to represent the coordinates of the target pixel point on the first axis and / or the second axis.
[0035] Optionally, the control unit configures parameter information of each scanning unit to be called, including:
[0036] The control unit parses the measurement instruction sent by the processing device to determine the parameter information to be configured and the scanning unit to be called;
[0037] The control unit configures parameter information of each scanning unit to be called according to the parameter information to be configured.
[0038] The beneficial effects of the embodiments of the present application include:
[0039] The embodiment of the present application provides a laser measurement device, which comprises a measurement device and a processing device, and at least one scanning unit, at least one moving unit and a control unit are arranged in the measurement device. Furthermore, each scanning unit is fixed on each moving unit, each scanning unit is connected to the control unit, each moving unit is connected to the control unit, and the control unit is also connected to the processing device.
[0040] From the working principle of the laser measurement device, it can be known that each scanning unit can be driven to move by each moving unit to obtain the reflected light reflected from the object to be measured from different angles and positions, so that the angle and position of the object to be measured in each reflection image can be different, and the obtained measurement position information is also different. In addition, since the target data is obtained by packaging the measurement position information based on the position of each moving unit and / or each scanning unit, the target data can represent the relationship between the position of each scanning unit when obtaining each reflection image and the measurement position information.
[0041] In this way, the measurement position information based on each two-dimensional coordinate system can be mapped and converted into the three-dimensional coordinate system, and then a three-dimensional point cloud data map for characterizing the geometric parameters of the object to be measured in the three-dimensional coordinate system can be obtained to realize three-dimensional visual laser detection.
[0042] Furthermore, the laser measurement device provided in the embodiment of the present application may include multiple scanning units, so that the object to be detected can be measured from different angles or different positions at the same time, which can improve the efficiency of laser measurement.
[0043] Since the laser measuring device does not need to contact the object to be detected, it will not cause deformation of the object to be detected, and can realize three-dimensional visual laser detection to obtain three-dimensional geometric data of the object to be detected, thereby achieving the effect of improving the accuracy and efficiency of measurement. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0045] Figure 1 A schematic diagram of the structure of a first laser measurement device provided in an embodiment of the present application;
[0046] Figure 2 A schematic diagram of the structure of a scanning unit provided in an embodiment of the present application;
[0047] Figure 3 A schematic diagram of the structure of a second laser measurement device provided in an embodiment of the present application;
[0048] Figure 4 A flow chart of a control method for a first laser measurement device provided in an embodiment of the present application;
[0049] Figure 5 A flow chart of a control method for a second laser measurement device provided in an embodiment of the present application;
[0050] Figure 6 This is a flow chart of a third method for controlling a laser measurement device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0051] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, 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 part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations.
[0052] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for which protection is sought, but merely represents selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0053] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.
[0054] In the description of the present application, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inside", "outside", etc. indicate positions or positional relationships based on the positions or positional relationships shown in the accompanying drawings, or the positions or positional relationships in which the invented product is usually placed when in use. They are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific position, be constructed and operated in a specific position, and therefore cannot be understood as a limitation on the present application. In addition, the terms "first", "second", "third", etc. are only used to distinguish the description, and cannot be understood as indicating or implying relative importance.
[0055] In addition, the terms "horizontal", "vertical" and the like do not mean that the components are required to be absolutely horizontal or suspended, but can be slightly tilted. For example, "horizontal" only means that its direction is more horizontal than "vertical", and does not mean that the structure must be completely horizontal, but can be slightly tilted.
[0056] In the description of this application, it should also be noted that, unless otherwise clearly specified and limited, the terms "set", "install", "connect", and "connect" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two elements. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.
[0057] In the related art, the related technicians generally adopt the traditional contact measurement method, for example, by fixing the object to be detected and placing the measuring probe of the three-dimensional measuring machine against the surface of the object to be detected, and then obtaining the discrete spatial point position of the object to be detected, so as to perform corresponding calculations and obtain the geometric parameters of the object to be detected. Alternatively, two-dimensional visual detection technology can be used for measurement. Specifically, a photo of a certain plane of the object to be detected can be taken by a camera, and then the object to be detected can be identified by image analysis or comparison, and then the geometric features on a certain plane of the object to be detected can be obtained. However, the contact measurement method in the related art may cause deformation of the object to be detected, and the device required is relatively complex, and the three-dimensional geometric data of the object to be detected cannot be detected by measuring using two-dimensional visual detection technology. Therefore, the solution of the related art has the problem of low measurement accuracy and efficiency.
[0058] To this end, the embodiment of the present application provides a laser measurement device, which configures the parameter information of each scanning unit through the control unit and controls the movement of each mobile unit, and then each scanning unit emits a measuring laser to the object to be measured, receives the reflected light reflected from the object to be measured, and generates multiple reflection images, extracts the measurement position information from each reflection image and outputs it to the control unit, and then the control unit receives the measurement position information output by each scanning unit, and packages the measurement position information output by each scanning unit into target data according to the position of each mobile unit, and sends the target data to the processing device. Finally, the processing device receives the target data, maps the target data to a preset three-dimensional coordinate system, generates a three-dimensional point cloud data map, and obtains the geometric parameters of the object to be measured according to the three-dimensional point cloud data map. The effect of improving the accuracy and efficiency of measurement can be achieved.
[0059] The laser measuring device provided in the embodiment of the present application is explained in detail below.
[0060] Figure 1 This is a schematic diagram of the structure of a laser measurement device provided in this application. Figure 1 An embodiment of the present application provides a laser measurement device 100 , and the laser measurement device 100 includes: a measurement device 101 and a processing device 102 .
[0061] The measuring device 101 includes at least one scanning unit 1011 , at least one moving unit 1012 , and a control unit 1013 .
[0062] Each scanning unit 1011 is fixed on each moving unit 1012 , each scanning unit 1011 is connected to a control unit 1013 , and each moving unit 1012 is connected to a control unit 1013 . The control unit 1013 is also connected to the processing device 102 .
[0063] Each scanning unit 1011 is used to emit a measuring laser to the object to be measured, receive reflected light reflected from the object to be measured, generate multiple reflected images, extract measurement position information from each reflected image and output it to the control unit 1013 .
[0064] The control unit 1013 is used to configure the parameter information of each scanning unit 1011 and control the movement of each mobile unit 1012 under the control of the processing device 102, and is used to receive the measurement position information output by each scanning unit 1011, package the measurement position information output by each scanning unit 1011 into target data according to the position of each mobile unit 1012, and send the target data to the processing device 102.
[0065] The processing device 102 is used to receive the target data, map the target data to a preset three-dimensional coordinate system, generate a three-dimensional point cloud data map, and obtain geometric parameters of the object to be measured according to the three-dimensional point cloud data map.
[0066] Optionally, the number of each scanning unit 1011 may be one or more. Figure 1 The laser measuring device 100 having four scanning units 1011 is taken as an example, but it does not mean that the laser measuring device 100 in the embodiment of the present application can only have four scanning units 1011.
[0067] Optionally, the object to be measured may be an object of any shape and size, which is not limited in the embodiment of the present application.
[0068] The measuring laser may be a line laser, specifically a strip laser, a blue light, or a laser of other colors, which is not limited in the present embodiment.
[0069] The reflected light may refer to the light emitted by the object to be measured by reflecting the measuring laser, or may refer to the light emitted by the object to be measured by reflecting the measuring laser and other light, which is not limited in the embodiments of the present application.
[0070] Each reflected image can be an image obtained by the scanning unit 1011 photographing the reflected light, and each reflected image can be used to indicate the geometric parameters of the object to be measured, such as the length, width, height, plane flatness or smoothness, surface curvature, etc. of the object to be measured.
[0071] Optionally, the parameter information includes at least one of the following: output mode, exposure time, and acquisition frame rate.
[0072] The output mode may be a Region Of Interest (ROI) mode or a Raw Image Format (RAW) mode.
[0073] Generally, the RAW mode can also be the original image mode, that is, all areas are scanned within the resolution range of the scanning unit 1011 to obtain images of all areas within the resolution range. The ROI mode only scans the area of a specific window within the resolution range of the scanning unit 1011 to obtain images of each specific window area within the resolution range, which can improve the scanning rate and / or acquisition frame rate of each scanning unit 1011. Specifically, each scanning unit 1011 can be configured to a different output mode according to actual needs, and the embodiment of the present application does not limit this.
[0074] The exposure time may refer to the time required to open the shutter in order to project the reflected light onto the photosensitive surface of the photosensitive material of the sensor.
[0075] The acquisition frame rate can be configured based on the region of interest (ROI) mode. Specifically, the ROI mode can be set to define one or more window areas of interest within the resolution range of the scanning unit 1011. By only identifying and acquiring images within each window of interest, the amount of image information that the scanning unit 1011 needs to process or transmit can be reduced, thereby improving the acquisition frame rate of the scanning unit 1011.
[0076] Optionally, each mobile unit 1012 may move on the same plane or on different planes. The moving directions of each mobile unit 1012 may be along the same straight line or along different straight lines. This embodiment of the application does not limit this.
[0077] When controlling each mobile unit 1012 to move, the control unit 1013 may specifically control each mobile unit to move along a preset direction on a preset plane, and the moving speeds of each mobile unit 1012 may be the same.
[0078] Since each scanning unit 1011 is fixed on each moving unit 1012 , when each moving unit 1012 moves, it will drive each scanning unit 1011 to move, and the position of each moving unit 1012 can represent the position of each scanning unit 1011 .
[0079] Optionally, the measured position information may refer to coordinate information for characterizing a feature point in the reflected image. The coordinate information may be the coordinate of the feature point in a two-dimensional coordinate system established based on the moving direction of each moving unit 1012 or each scanning unit 1011 .
[0080] The processing device 102 can be any computer device, such as a computer, a mobile phone, a tablet computer, or other device with processing capabilities, which is not limited in the embodiments of the present application.
[0081] In addition, the target data may refer to data obtained by classifying, solving, and packaging each measurement position information by the control unit 1013. The target data may be used to characterize information of feature points obtained by each scanning unit 1011 scanning the object to be measured, and may be specifically used to characterize geometric parameters of the object to be measured based on each two-dimensional coordinate system.
[0082] Optionally, the preset three-dimensional coordinate system can be established by relevant technical personnel according to actual needs, and the embodiments of the present application do not limit this. In addition, the processing device 102 can map the target data to the three-dimensional coordinate system using any algorithm that can convert two-dimensional coordinates into three-dimensional coordinates, and the embodiments of the present application do not limit this.
[0083] The three-dimensional point cloud data map can be used to characterize the geometric parameters of the object to be measured in the three-dimensional coordinate system, so that three-dimensional visual laser detection can be achieved.
[0084] In addition, the position of each mobile unit 1012 may be a three-dimensional coordinate value represented by the three-dimensional coordinate system, or the processing device 102 may parse the position of each mobile unit 1012 from the target data and convert the position of each mobile unit 1012 into the three-dimensional coordinate system. This embodiment of the application is not limited to this.
[0085] It is worth noting that the relevant technicians can select the scanning unit 1011 to be called through the processing device 102, and can also select the corresponding parameter information of the scanning unit 1011 for configuring the call.
[0086] The working principle of the laser measurement device 100 is as follows: the processing device 102 generates corresponding instructions according to the selection of relevant technicians and outputs them to the control unit 1013. After receiving the instructions output by the processing device 102, the control unit 1013 configures the parameter information of the selected one or more scanning units 1011, and after the configuration is completed, controls the movement unit 1012 corresponding to each selected scanning unit 1011 to move, so that each selected scanning unit 1011 moves.
[0087] At this time, the selected scanning units 1011 continuously emit the measuring laser to the object to be measured based on the configured parameter information, respectively receive the reflected light reflected from the object to be measured and generate each reflection image based on the received reflected light. Each time a reflection image is generated, the selected scanning units 1011 extract the measurement position information from the reflection image. Until the moving units 1012 stop moving, the selected scanning units 1011 stop emitting the measuring laser and output each measurement position information to the control unit 1013.
[0088] Since each mobile unit 1012 moves under the control of the control unit 1013, the control unit 1013 can determine the position of each mobile unit 1012 at each time. After receiving each measurement position information, the control unit 1013 packages each measurement position information sent by each scanning unit 1011 and the position of the mobile unit 1012 corresponding to each scanning unit 1011 into target data and sends it to the processing device 102.
[0089] Since the target data includes the measurement position information obtained by each scanning unit 1011 when scanning the object to be detected and the position of each mobile unit 1012, the processing device 102 can map the measurement position information obtained by each scanning unit 1011 to a three-dimensional coordinate system according to the position of each mobile unit 1012, and obtain a three-dimensional point cloud data map for characterizing the three-dimensional geometric data of the object to be detected, and then perform analytical operations on the three-dimensional point cloud data map through a corresponding algorithm to finally obtain the geometric parameters of the object to be measured.
[0090] In the embodiment of the present application, a measuring device 101 and a processing device 102 are provided in the laser measuring device 100, and at least one scanning unit 1011, at least one moving unit 1012 and a control unit 1013 are provided in the measuring device 101. In addition, each scanning unit 1011 is fixed on each moving unit 1012, each scanning unit 1011 is connected to the control unit 1013, each moving unit 1012 is connected to the control unit 1013, and the control unit 1013 is also connected to the processing device 102.
[0091] From the working principle of the laser measurement device 100, it can be known that each scanning unit 1011 can be driven to move by each moving unit 1012 to obtain the reflected light reflected from the object to be measured from different angles and positions, so that the angle and position of the object to be measured in each reflection image can be different, and then the obtained measurement position information is also different. In addition, since the target data is obtained by packaging each measurement position information based on the position of each moving unit 1012 and / or each scanning unit 1011, the target data can represent the relationship between the position when each scanning unit 1011 obtains each reflection image and each measurement position information.
[0092] In this way, the measurement position information based on each two-dimensional coordinate system can be mapped and converted into the three-dimensional coordinate system, and then a three-dimensional point cloud data map for characterizing the geometric parameters of the object to be measured in the three-dimensional coordinate system can be obtained to realize three-dimensional visual laser detection.
[0093] Furthermore, the laser measurement device 100 provided in the embodiment of the present application may include a plurality of scanning units 1011 , so that the object to be detected can be measured from different angles or different positions at the same time, thereby improving the efficiency of laser measurement.
[0094] Since the laser measuring device 100 does not need to contact the object to be detected, it will not cause deformation of the object to be detected, and can implement three-dimensional visual laser detection to obtain three-dimensional geometric data of the object to be detected, thereby achieving the effect of improving the accuracy and efficiency of measurement.
[0095] For a possible implementation, see Figure 2 The scanning unit 1011 includes a laser J, a sensor C and a logic control unit L.
[0096] The laser J and the sensor C are respectively connected to the logic control unit L, and the logic control unit L is connected to the control unit 1013 .
[0097] The laser J is used to emit a measuring laser to the object to be measured.
[0098] Optionally, the measuring laser is a strip laser. Then the laser J can be a laser that emits a line laser, and can emit the measuring laser at a higher frequency.
[0099] The sensor C is used to receive each reflected light beam, and generate a reflected electrical signal according to each reflected light beam and output it to the logic control unit L.
[0100] Optionally, the sensor C may be a sensor, which may specifically detect light and perform photoelectric conversion on the light to obtain a reflected electrical signal for generating a reflected image.
[0101] The logic control unit L is used to generate each reflection image according to the reflection electrical signal, extract the measurement position information according to the gray value of each pixel point in each reflection image, and output the measurement position information to the control unit 1013.
[0102] Optionally, the logic control unit L may be a field programmable gate array (Field Programmable Gate Array, FPGA for short).
[0103] It is worth noting that if the grayscale values of each pixel in a reflected image are the same, it may indicate that the area of the object to be detected displayed by the reflected image is a flat and smooth plane, and / or the edge of the object to be detected is not detected in the area of the object to be detected displayed by the reflected image.
[0104] If the grayscale values of the pixels in a reflection image are different, it means that the area of the object to be detected displayed by the reflection image has shape changes.
[0105] By detecting the grayscale value of each pixel in the reflected image, the characteristic points in each reflected image can be determined, and then the measurement position information in the reflected image can be accurately and reliably determined.
[0106] In a possible implementation, the logic control unit L is further configured to perform preliminary processing operations on each reflected electrical signal to obtain valid data in each reflected electrical signal, and generate each reflected image according to the valid data.
[0107] Optionally, the preliminary processing operation includes at least one of the following: data decoding, data integration, and frame header determination.
[0108] Optionally, the valid data may refer to a signal in each reflected electrical signal that can be used to generate a reflected image.
[0109] For example, if the logic control unit L is an FPGA, and the sensor C can output the reflected electrical signal in the form of high-speed serial encoded data to the high-speed GTP port of the logic control unit L through the SLVS-EC interface. In this case, the data decoding operation may refer to the serial data decoding processing of the original reflected electrical signal by the high-speed serial-to-parallel conversion IP core. The data integration operation may be the operation of merging the deserialized parallel data obtained by data decoding.
[0110] In addition, the frame header determination operation may refer to determining whether the first serial data received by the logic control unit L is the frame header data, and if so, saving the first serial data and continuing to receive subsequent data. If not, discarding the serial data, and continuing to determine whether the next data is the frame header data, until the frame header data is obtained and saved.
[0111] In this way, invalid data received by the logic control unit L can be discarded, ensuring that the logic control unit L will only generate each reflection image based on the decoded and integrated valid data, so as to ensure the reliability and accuracy of each reflection image, thereby improving the accuracy and efficiency of laser measurement.
[0112] In one possible implementation, the logic control unit L is specifically used to determine the grayscale value of each pixel in the reflected image, and determine the pixel coordinates corresponding to the target pixel with the largest grayscale value in each column of pixels in the reflected image; and use a preset fitting algorithm to filter each pixel coordinate to obtain each measurement position information.
[0113] Optionally, the target pixel point may be the above-mentioned feature point, and may be specifically used to characterize an uneven point or an edge point in the area of the object to be detected displayed by the reflected image.
[0114] Optionally, the pixel coordinates may be used to indicate the position of the target pixel in the reflected image.
[0115] Optionally, the preset fitting algorithm may be a quadratic parabola fitting algorithm.
[0116] It is worth noting that, through the filtering process of the preset fitting algorithm, multiple discrete pixel coordinates can be converted into a linear curve, which can smoothly and linearly represent the information of each measurement position. In addition, since the pixel coordinates represent the position of the target pixel point in the reflected image, and the reflected image is used to display a part of the area of the object to be detected, the pixel coordinates can also be converted into two-dimensional coordinate information based on the corresponding two-dimensional coordinate system, and the embodiment of the present application is not limited to this.
[0117] In this way, the accuracy and practicality of the information of each measurement position can be improved.
[0118] In a possible implementation, each scanning unit 1011 is further used to establish a two-dimensional coordinate system corresponding to the mobile unit 1012 with the moving direction of the mobile unit 1012 as the first axis and the direction perpendicular to the moving direction of the mobile unit 1012 as the second axis.
[0119] The scanning unit 1011 is further configured to extract measurement position information indicating coordinates of target pixel points on the first axis and / or the second axis from each reflected image according to the corresponding two-dimensional coordinate system.
[0120] Optionally, the scanning unit 1011 may specifically convert the pixel coordinates of the target pixel point into two-dimensional coordinate information of a two-dimensional coordinate system, and then use the coordinates on the first axis and / or the second axis in the two-dimensional coordinate information of the target pixel point as the measurement position information.
[0121] For example, the first axis can be regarded as the Y axis and the second axis can be regarded as the X axis. If the measured position information includes the coordinates of the target pixel point on the first axis and the second axis, then the original image mode is used. If the measured position information includes the coordinates of the target pixel point on the first axis, then the Y coordinate mode is used.
[0122] It is worth noting that if the measurement position information only includes the coordinates of the target pixel point on the first axis, the processing pressure of the scanning unit 1011, the control unit 1013 and the processing device 102 can be greatly reduced, thereby greatly improving the measurement efficiency.
[0123] In this way, a corresponding two-dimensional coordinate system can be accurately established based on the moving direction of each mobile unit 1012, so that the measured position information can be represented by the two-dimensional coordinate information.
[0124] In a possible implementation, the control unit 1013 is further used to package the positions of each mobile unit 1012 at the same time, and the measured position information indicating the coordinates of each target pixel point on the first axis and the second axis to obtain the first target data.
[0125] The control unit 1013 is further configured to use the position of each mobile unit 1012 at the same time, and the measured position information indicating the coordinates of the target pixel point on the first axis as the second target data.
[0126] The control unit 1013 is further configured to send the first target data and the second target data to the processing device 102 through different ports respectively.
[0127] Optionally, the time information of each scanning unit 1011 may be synchronized by controlling the exposure time of each scanning unit 1011, thereby facilitating subsequent data alignment of target data and / or three-dimensional point cloud data graphs.
[0128] For one possible approach, see Figure 3 The control unit 1013 includes a logic processing circuit L0 and at least one first protection circuit B1 , and the first protection circuit B1 can be connected to each mobile unit 1012 .
[0129] The scanning unit 1011 further includes a second protection circuit B2 and a power chip D.
[0130] Optionally, the number of the first protection circuits B1 is the same as the number of the scanning units 1011 , and each first protection circuit B2 is connected to the second protection circuit B2 of each scanning unit 1011 .
[0131] Each first protection circuit B2 and each second protection circuit B2 can be used for electrical protection such as electrostatic protection.
[0132] The power chip D can be connected to the logic control unit L to supply power to the logic control unit L, the sensor C and the laser J.
[0133] For specific connection relationships, see Figure 3 , the embodiments of the present application will not be described in detail here.
[0134] The following is a description of the control method performed based on any of the above-mentioned laser measurement devices provided in this application. The specific implementation process and technical effects are mentioned above and will not be repeated below.
[0135] Figure 4 This is a flow chart of a control method for a laser measuring device provided in the present application, which can be applied to any of the above-mentioned laser measuring devices. Figure 4 , the present application embodiment provides a control method for a laser measurement device, comprising:
[0136] Step 2001: The control unit configures parameter information of each scanning unit to be called, and controls the movement of the mobile unit corresponding to each scanning unit to be called.
[0137] Optionally, the control unit may be the above-mentioned control unit 1013 , and the mobile unit may be the above-mentioned mobile unit 1012 .
[0138] Each scanning unit to be called may be any number of the scanning units 1011 mentioned above, and may be specifically adjusted according to the actual selection of the user or relevant technical personnel.
[0139] Since each scanning unit to be called is installed on a corresponding moving unit, when the moving unit moves, each scanning unit to be called will be driven to move.
[0140] Step 2002: Each scanning unit emits a measuring laser, generates a plurality of reflection images according to the received reflected light, and extracts the measurement position information from each reflection image and outputs it to the control unit.
[0141] Optionally, each scanning unit may be a configured scanning unit to be called, which is not limited in the embodiment of the present application.
[0142] Step 2003: The control unit generates target data according to the position of each mobile unit and each measured position information, and sends the target data to the processing device.
[0143] It is worth noting that since the target data is obtained by packaging each measurement position information based on the position of each mobile unit and / or each scanning unit, the target data can represent the relationship between the position when each scanning unit obtains each reflection image and each measurement position information.
[0144] Step 2004: The processing device generates a three-dimensional point cloud data map according to the target data, and determines the geometric parameters of the object to be measured according to the three-dimensional point cloud data map.
[0145] It is worth noting that the target data includes the measurement position information obtained by each scanning unit when scanning the object to be detected and the position of each mobile unit. The processing device can map the measurement position information obtained by each scanning unit to the three-dimensional coordinate system according to the position of each mobile unit, and obtain a three-dimensional point cloud data map for characterizing the three-dimensional geometric data of the object to be detected, and then perform analytical operations on the three-dimensional point cloud data map through a corresponding algorithm to finally obtain the geometric parameters of the object to be measured.
[0146] In this way, the measurement position information based on each two-dimensional coordinate system can be mapped and converted into the three-dimensional coordinate system, and then a three-dimensional point cloud data map for characterizing the geometric parameters of the object to be measured in the three-dimensional coordinate system can be obtained to realize three-dimensional visual laser detection.
[0147] Furthermore, multiple scanning units can be called simultaneously to measure the object to be detected from different angles or different positions, which can improve the efficiency of laser measurement.
[0148] In this way, the accuracy and efficiency of measurement can be improved.
[0149] For a possible implementation, see Figure 5 , extracting measurement position information from each reflection image and outputting it to the control unit, including:
[0150] Step 2005: Determine the grayscale value of each pixel in the reflection image.
[0151] Step 2006: Compare the grayscale values of each pixel point, and take the pixel point with the largest grayscale value in each column of pixels of the reflection image as the target pixel point.
[0152] It is worth noting that if the grayscale values of each pixel in a reflected image are the same, it may indicate that the area of the object to be detected displayed by the reflected image is a flat and smooth plane, and / or the edge of the object to be detected is not detected in the area of the object to be detected displayed by the reflected image.
[0153] If the grayscale values of the pixels in a reflection image are different, it means that the area of the object to be detected displayed by the reflection image has shape changes.
[0154] By detecting the grayscale value of each pixel in the reflected image, the characteristic points in each reflected image can be determined, and then the measurement position information in the reflected image can be accurately and reliably determined.
[0155] Optionally, the target pixel point may be the above-mentioned feature point, and may be specifically used to characterize an uneven point or an edge point in the area of the object to be detected displayed by the reflected image.
[0156] Step 2007: Filter the pixel coordinates of each target pixel point using a preset fitting algorithm to obtain each measurement position information.
[0157] Optionally, the pixel coordinates may be used to indicate the position of the target pixel in the reflected image.
[0158] The pixel coordinates may also be used to represent the coordinates of the target pixel point on the first axis and / or the second axis.
[0159] Optionally, the pixel coordinates may be converted into two-dimensional coordinate information in the corresponding two-dimensional coordinate system. For details, please refer to the description of converting the pixel coordinates into two-dimensional coordinate values in the above embodiment, which will not be described in detail in the present embodiment.
[0160] Optionally, the preset fitting algorithm may be a quadratic parabola fitting algorithm.
[0161] For a possible implementation, see Figure 6 The control unit configures the parameter information of each scanning unit to be called, including:
[0162] Step 2008: The control unit parses the measurement instruction sent by the processing device to determine the parameter information to be configured and the scanning unit to be called.
[0163] Optionally, the measurement instruction may be an instruction generated based on the scanning unit to be called selected by a relevant technician through the processing device, and corresponding parameter information for configuring the called scanning unit may also be selected.
[0164] That is, the measurement instruction may be used to indicate the scanning units that need to be called and parameter information configured for the scanning units that need to be called.
[0165] Step 2009: The control unit configures parameter information of each scanning unit to be called according to the parameter information to be configured.
[0166] In this way, the configuration of each scanning unit selected can be completed according to the selection of the user or relevant technicians to ensure that the laser measurement device can work correctly.
[0167] The above method is executed based on the laser measurement device provided in the above embodiment, and its implementation principle and technical effect are similar, which will not be repeated here. In addition, the operations that can be performed by the laser measurement device provided in the above embodiment should all be implemented by the control method.
[0168] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0169] The above are only preferred embodiments of the present application and are 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 laser measuring device, characterized in that: The device comprises a measuring device and a processing device, wherein the measuring device comprises at least one scanning unit, at least one moving unit and a control unit; Each of the scanning units is fixed on each of the moving units respectively, each of the scanning units is connected to the control unit respectively, and each of the moving units is connected to the control unit respectively, and the control unit is also connected to the processing device; Each of the scanning units is used to emit a measuring laser to the object to be measured, receive reflected light reflected from the object to be measured, generate a plurality of reflected images, extract the measurement position information from each of the reflected images and output it to the control unit; The control unit is used to configure the parameter information of each scanning unit and control the movement of each mobile unit under the control of the processing device, and is used to receive the measurement position information output by each scanning unit, package the measurement position information output by each scanning unit into target data according to the position of each mobile unit, and send the target data to the processing device; The processing device is used to receive the target data, map the target data to a preset three-dimensional coordinate system, generate a three-dimensional point cloud data map, and obtain geometric parameters of the object to be measured according to the three-dimensional point cloud data map.
2. The laser measuring device according to claim 1, characterized in that The scanning unit includes a laser, a sensor and a logic control unit; The laser and the sensor are respectively connected to the logic control unit, and the logic control unit is connected to the control unit; The laser is used to emit the measuring laser to the object to be measured, and the measuring laser is a strip laser; The sensor is used to receive each of the reflected light rays, and generate a reflected electrical signal according to each of the reflected light rays and output it to the logic control unit; The logic control unit is used to generate each of the reflection images according to the reflection electrical signal, extract the measurement position information according to the grayscale value of each pixel point in each of the reflection images, and output the measurement position information to the control unit.
3. The laser measuring device according to claim 2, characterized in that The logic control unit is further used to perform preliminary processing operations on each of the reflected electrical signals to obtain valid data in each of the reflected electrical signals, and generate each of the reflected images according to the valid data; The preliminary processing operation includes at least one of the following: data decoding, data integration, and frame header determination.
4. The laser measuring device according to claim 2, characterized in that The logic control unit is specifically used to determine the grayscale value of each pixel in the reflected image, and determine the pixel coordinates corresponding to the target pixel with the largest grayscale value in each column of pixels in the reflected image; and use a preset fitting algorithm to filter each of the pixel coordinates to obtain each of the measurement position information.
5. The laser measuring device according to claim 1, characterized in that: Each of the scanning units is further used to establish a two-dimensional coordinate system corresponding to the mobile unit, with the moving direction of the mobile unit as the first axis and the direction perpendicular to the moving direction of the mobile unit as the second axis; The scanning unit is further configured to extract measurement position information indicating coordinates of a target pixel point on the first axis and / or the second axis from each of the reflection images according to a corresponding two-dimensional coordinate system.
6. The laser measuring device according to claim 5, characterized in that The control unit is further used to package the positions of each of the mobile units and the measured position information indicating the coordinates of each of the target pixel points on the first axis and the second axis at the same time to obtain first target data; The control unit is further used to use the position of each of the mobile units at the same time, and the measured position information indicating the coordinates of the target pixel point on the first axis as the second target data; The control unit is further configured to send the first target data and the second target data to the processing device through different ports respectively.
7. The laser measuring device according to any one of claims 1 to 6, characterized in that: The parameter information includes at least one of the following: output mode, exposure time, and acquisition frame rate.
8. A control method for a laser measuring device, characterized in that: Applied to the laser measuring device according to any one of claims 1 to 7 above, the method comprises: The control unit configures parameter information of each scanning unit to be called, and controls the movement of the mobile unit corresponding to each scanning unit to be called; Each of the scanning units emits a measuring laser, generates a plurality of reflection images according to the received reflected light, and extracts the measurement position information from each of the reflection images and outputs it to the control unit; The control unit generates target data according to the position of each of the mobile units and each of the measurement position information, and sends the target data to the processing device; The processing device generates a three-dimensional point cloud data map according to the target data, and determines the geometric parameters of the object to be measured according to the three-dimensional point cloud data map.
9. The control method of the laser measuring device according to claim 8, characterized in that: The step of extracting the measurement position information from each of the reflection images and outputting it to the control unit comprises: Determine the grayscale value of each pixel in the reflected image; Comparing the grayscale values of the pixels, and taking a pixel with the largest grayscale value in each column of pixels of the reflected image as a target pixel; The pixel coordinates of each of the target pixel points are filtered using a preset fitting algorithm to obtain each of the measurement position information, wherein the pixel coordinates are used to represent the coordinates of the target pixel point on the first axis and / or the second axis.
10. The control method of the laser measuring device according to claim 8, characterized in that: The control unit configures parameter information of each scanning unit to be called, including: The control unit parses the measurement instruction sent by the processing device to determine the parameter information to be configured and the scanning unit to be called; The control unit configures parameter information of each scanning unit to be called according to the parameter information to be configured.
Citation Information
Cited By
Portable precise laser detector
CN119666332A
