High-precision measurement method and device of planar optical flow range finder, scanner and storage medium
Through the optical engine and image processing technology of the plane optical flow rangefinder, the low efficiency and error problems of infrared technology and laser technology during close-range measurement are solved, high-precision and convenient distance measurement are achieved, and measurement speed and accuracy are improved. .
Patent Information
- Application Number
- CN202411173717.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-26
- Publication Date
- 2024-11-08
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The output rate of existing infrared technology and laser technology results in close range measurement is low, resulting in lower measurement and solution frequency and high error. The accuracy of existing phase laser rangefinders is limited, making it difficult to further improve.
Using the method of a plane optical flow rangefinder, the object to be measured is illuminated by the light emitting diode, the image sensor receives the image, the image processor matches the relative displacement and accumulates, calculates the motion distance, and uses image processing and optical engine to achieve high-precision measurement.
It realizes high-precision and convenient distance measurement, reduces measurement errors and personnel workload, improves measurement speed and accuracy, and the computing speed can reach 70cm per second.
Smart Images

Figure CN118915039A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of rangefinders, and in particular to a high-precision measurement method, device, scanner and storage medium for a planar optical flow rangefinder. Background Art
[0002] Traditional tools for measuring distance and length are usually tape measures or rulers, which are not easy to operate, especially when measuring long distances. At least two people are needed to assist in the measurement at the same time, and errors are prone to occur. With the development of infrared technology and laser technology, distance measuring instruments are gradually becoming electronic. Reflection measurement is performed using infrared technology and laser technology, which greatly improves the accuracy and convenience of measurement.
[0003] The existing infrared technology and laser technology have a low output rate when measuring at close range. The low measurement solution frequency will lead to very large errors. In terms of processing accuracy, the existing phase laser rangefinder has an accuracy of ±1mm. If you want to continue to improve the accuracy, you will inevitably face the hardware pressure of high-frequency signal processing and the accuracy of phase resolution.
[0004] Therefore, there is an urgent need for a high-precision measurement method, device, scanner and storage medium for a planar optical flow rangefinder to solve the above problems. Summary of the invention
[0005] In view of the above problems, an embodiment of the present application provides a high-precision planar optical flow rangefinder measurement method, the method comprising: The first step is to contact the bottom of the planar optical flow rangefinder with the object to be measured, wherein the light emitting diode emits light and irradiates the object to be measured; The second step is to receive the image of the object to be measured irradiated by the light emitting diode through the image sensor; The third step is to move the plane optical flow rangefinder on the surface of the object to be measured, during which the image sensor will receive a plurality of different images; The fourth step is to match the multiple different images in pairs by the image processor to obtain the relative displacement of the planar optical flow rangefinder; The fifth step is to obtain the moving distance of the planar optical flow rangefinder by accumulating the relative displacement of the planar optical flow rangefinder within the detection time, and the moving distance is the distance to be measured.
[0006] In an optional manner, the resolution of ranging can be adjusted by changing the CPI of the image processor.
[0007] In an optional manner, the operation speed of the planar optical flow rangefinder can reach 70 cm per second.
[0008] In an optional manner, after the image is processed, features of each point will be extracted. Under the condition that the time interval is relatively short, there will always be some images between adjacent images that have completely identical features.
[0009] In an optional manner, the method for analyzing the image digital matrix and calculating the motion distance of the planar optical flow rangefinder is: The light emitting diode is used to generate light to illuminate the surface of the object to be measured; Receive the light characteristics of the surface of the object to be measured through the image sensor and obtain a plurality of different images; By comparing the adjacent first image and the second image, a common part of the two images is found; Give the relative displacement of the second image relative to the first image , ; The data processing unit obtains the relative displacement; According to the formula: , calculate the relative distance of the common feature points of the two images; By comparing the adjacent second image and the third image, a common part of the two images is found; Give the relative displacement of the third image relative to the second image , ; The data processing unit obtains the relative displacement; According to the formula: , calculate the relative distance of the common feature points of the two images; By analogy, we can get the relative distance at each moment, L3, L4, L5, ... L n .
[0010] Finally, add up all the distances, i.e. L1+L2+L3+L4+L5,,,+L n This is the total displacement of the rangefinder.
[0011] A high-precision planar optical flow rangefinder measuring device, the device comprising: A light emitting diode, used for emitting light to illuminate the object to be measured, so as to display the surface features of the object to be measured; An optical lens, used for refracting the light emitted by the light emitting diode and the light received by the image processor; The image processor is used to receive the surface features of the object to be measured and digitally process them by the optical engine, and then the positioning chip in the optical engine analyzes the generated image digital matrix.
[0012] The present invention further provides an electronic device, comprising: A memory for storing executable instructions; The processor is used to implement the high-precision planar optical flow rangefinder measurement method when running the executable instructions stored in the memory.
[0013] The present invention also provides a computer-readable storage medium storing executable instructions, characterized in that when the executable instructions are executed by a processor, the high-precision planar optical flow rangefinder measurement method is implemented.
[0014] The embodiments of the present application have the following beneficial effects through the above method: 1. The bottom of the plane optical flow rangefinder is in contact with the object to be measured, and the positioning chip in the optical engine analyzes the generated image digital matrix. The automatic measurement operation is easy to use, which greatly saves the workload of the measurement personnel and can realize the distance measurement operation of various objects. It is easy to use and has high practicality.
[0015] 2. There will always be the same features between two adjacent images received by the receiver. By comparing the position change information of these feature points, the moving direction and distance of the rangefinder can be determined. This analysis result can eventually be converted into a coordinate offset to realize the positioning of the rangefinder and reduce measurement errors. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The accompanying drawings are only used to illustrate the embodiments and are not to be considered as limiting the present application. In addition, the same reference symbols are used to represent the same components throughout the accompanying drawings. In the accompanying drawings: Figure 1 The working principle diagram of the high-precision measurement method, device, scanner and storage medium of the planar optical flow rangefinder provided in the embodiment of the present application is shown; Figure 2 A schematic diagram of the surface features of the measured object is shown, which shows a high-precision measurement method, device, scanner and storage medium of a planar optical flow rangefinder provided in an embodiment of the present application; Figure 3 A schematic diagram of imaging of a high-precision measurement method, device, scanner, and storage medium image processor for a planar optical flow range finder provided in an embodiment of the present application is shown; DETAILED DESCRIPTION
[0017] The exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present application are shown in the drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments set forth herein.
[0018] A high-precision planar optical flow rangefinder measurement method provided in this embodiment includes the following steps: The first step is to contact the bottom of the planar optical flow rangefinder with the object to be measured, wherein the light emitting diode emits light and irradiates the object to be measured; The second step is to receive the image of the object to be measured irradiated by the light emitting diode through the image sensor; The third step is to move the plane optical flow rangefinder on the surface of the object to be measured, during which the image sensor will receive a plurality of different images; The fourth step is to match the multiple different images in pairs by the image processor to obtain the relative displacement of the planar optical flow rangefinder; The fifth step is to obtain the moving distance of the planar optical flow rangefinder by accumulating the relative displacement of the planar optical flow rangefinder within the detection time, and the moving distance is the distance to be measured.
[0019] Based on the above method, when the time interval is very short, the two adjacent images received by the receiver will always have the same features. By comparing the position change information of these feature points, the moving direction and distance of the rangefinder can be determined. This analysis result can eventually be converted into a coordinate offset to realize the positioning of the rangefinder. During the movement of the tester, the distances in each time period can be added. The accumulated result is the distance of the rangefinder movement, which achieves the purpose of distance measurement, avoids errors caused by manual measurement by measurement personnel, reduces the workload of measurement personnel, speeds up measurement, and improves measurement accuracy.
[0020] Preferably, assuming that the surface image of the object to be measured is marked with pixel points as follows Figure 2 If shown, proceed as follows: When the tester moves on the surface of the object being tested, the image processor will capture images of the surface of the object being tested under the illumination of the photodiode; Assume that the tester moves to the lower right corner, and here we take the first three pictures as an example; At three moments, we get Figure 3 The three images shown; The image processor first Figure 3 Compare the images and find the common part of the two images, that is, the area marked as 56 in the figure; Then the relative displacement of the second image relative to the first image is given by , ; here , After the data processing unit obtains the relative displacement, it can use the formula: (pixel unit) calculate the relative distance; Similarly, image processor comparison Figure 3 ; Determine the location of the common part, that is, the 112 area, and give the relative displacement , , the data processing unit calculates the relative distance according to the formula, (pixel units); By analogy, we can get the relative distance at each moment, L3, L4, L5, ... L n .
[0021] Finally, add up all the distances, i.e. L1+L2+L3+L4+L5,,,+L n This is the total displacement of the rangefinder.
[0022] This embodiment also provides a high-precision planar optical flow rangefinder measuring device, the device comprising: A light emitting diode, used for emitting light to illuminate the object to be measured, so as to display the surface features of the object to be measured; An optical lens, used for refracting the light emitted by the light emitting diode and the light received by the image processor; The image processor is used to receive the surface features of the object to be measured and digitally process them by the optical engine, and then the positioning chip in the optical engine analyzes the generated image digital matrix.
[0023] This embodiment further provides an electronic device, the electronic device comprising: A memory for storing executable instructions; The processor is used to run the executable instructions stored in the memory.
[0024] The electronic device provided in this embodiment includes: at least one processor, a memory, at least one network interface, etc. The various components in the electronic device are coupled together through a bus system. It can be understood that the bus system is used to realize the connection and communication between these components. In addition to the data bus, the bus system also includes a power bus, a control bus and a status signal bus.
[0025] It is understood that the memory can be a volatile memory or a non-volatile memory, and can also include both volatile and non-volatile memories. The memory in the embodiment of the present invention can store data to support data operations. Examples of these data can be any computer program for operation, such as an operating system and an application program. Among them, the operating system includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., which are used to implement various basic services and process hardware-based tasks.
[0026] This embodiment also provides a computer-readable storage medium storing executable instructions, characterized in that when the executable instructions are executed by a processor, the high-precision planar optical flow rangefinder measurement method is implemented.
[0027] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field within the technical scope disclosed by the present invention, based on the technical solution and inventive concept of the present invention, can make equivalent replacement or change without creative labor, which should be covered by the protection scope of the present invention.
Claims
1. A high-precision planar optical flow rangefinder measurement method, characterized in that: The method comprises: The first step is to contact the bottom of the planar optical flow rangefinder with the object to be measured, wherein the light emitting diode emits light and irradiates the object to be measured; The second step is to receive the image of the object to be measured irradiated by the light emitting diode through the image sensor; The third step is to move the plane optical flow rangefinder on the surface of the object to be measured, during which the image sensor will receive a plurality of different images; The fourth step is to match the multiple different images in pairs by the image processor to obtain the relative displacement of the planar optical flow rangefinder; The fifth step is to obtain the moving distance of the planar optical flow rangefinder by accumulating the relative displacement of the planar optical flow rangefinder within the detection time, and the moving distance is the distance to be measured.
2. A high-precision planar optical flow rangefinder measurement method as claimed in claim 1, characterized in that: The resolution of the distance measurement can be adjusted by changing the CPI of the image processor.
3. A high-precision planar optical flow rangefinder measurement method as claimed in claim 1, characterized in that: The operation speed of the planar optical flow range finder can reach 70 cm per second.
4. A high-precision planar optical flow rangefinder measurement method as claimed in claim 1, characterized in that: After the image is processed, the features of each point will be extracted. Under the condition of a relatively short time interval, there will always be some images between adjacent images with completely identical features.
5. A high-precision planar optical flow rangefinder measurement method as claimed in claim 1, characterized in that: The method for analyzing the image digital matrix and calculating the motion distance of the planar optical flow rangefinder is: The light emitting diode is used to generate light to illuminate the surface of the object to be measured; Receive the light characteristics of the surface of the object to be measured through the image sensor and obtain a plurality of different images; By comparing the first image and the second image that are adjacent to each other, a common part of the two images is found; Give the relative displacement of the second image relative to the first image , ; The data processing unit obtains the relative displacement; According to the formula: , calculate the relative distance of the common feature points of the two images; By comparing the adjacent second image and the third image, a common part of the two images is found; Give the relative displacement of the third image relative to the second image , ; The data processing unit obtains the relative displacement; According to the formula: , calculate the relative distance of the common feature points of the two images; By analogy, we can get the relative distance at each moment, L3, L4, L5, ... L n .
6. Finally, add up all the distances, i.e. L1+L2+L3+L4+L5,,,,+L n This is the total displacement of the rangefinder.
7. A high-precision planar optical flow rangefinder measuring device, characterized in that: The device comprises: A light emitting diode, used for emitting light to illuminate the object to be measured, so as to display the surface features of the object to be measured; An optical lens, used for refracting the light emitted by the light emitting diode and the light received by the image processor; The image processor is used to receive the surface features of the object to be measured and digitally process them by the optical engine, and then the positioning chip in the optical engine analyzes the generated image digital matrix.
8. An electronic device, characterized in that: The electronic device comprises: A memory for storing executable instructions; The processor is used to implement the high-precision planar optical flow rangefinder measurement method when running the executable instructions stored in the memory.
9. A computer-readable storage medium storing executable instructions, characterized in that: When the executable instructions are executed by the processor, the high-precision planar optical flow rangefinder measurement method is implemented.
