The present application claims priority from Japanese application JP 2021-129994, filed on Aug. 6, 2021, the contents of which is hereby incorporated by reference into this application.
The present invention relates to a distance measurement system, a distance measurement device, and a distance measurement method.
In the related art, it is known that a distance error may occur when a distance to an object is measured using a distance measurement device. Here, WO 2017/150246 A discloses a technique that achieves three-dimensional detection, measurement, display, or depiction which has high detection accuracy or high measurement accuracy and whose accuracy does not depend on environmental illuminance.
That is, WO 2017/150246 A discloses a technique in which, when the sum of the amount of exposure a0 by a first exposure signal is A0, the sum of the amount of exposure a1 by a second exposure signal is A1, and the sum of the amount of exposure a2 by a third exposure signal is A2, a signal processing unit determines the magnitude relationship between A0 and A2 for each pixel and performs calculation of Expressions 3 and 5 according to the determination results (Expressions 2 and 4) to calculate the distance to a subject.
It is generally known that, in an environment in which a material having high reflectance is used for walls, floors, and the like, unnecessary reflections from the walls, the floors, and the like cause a multipath phenomenon in which the length of an optical path seems to be large. Therefore, in a case in which distance measurement is performed by measuring the time until emission light (for example, infrared rays) emitted from a laser is reflected by an object and returned to a light receiving element (that is, in a case in which distance measurement based on time of flight known as TOF is performed), in an environment that is strongly affected by multipath, there is a problem that a distance error occurs because the distance measured by the TOF is longer than the actual distance to the object to be measured.
However, it is considered that the technique disclosed in WO 2017/150246 A does not sufficiently respond to the occurrence of the distance error caused by the influence of the multipath.
Therefore, an object of the invention is to provide a distance measurement system, a distance measurement device, and a distance measurement method that check the influence of multipath, correct a distance for each pixel to suppress an error from an actual distance, and improve the accuracy of the distance.
According to a first aspect of the invention, the following distance measurement system is provided. That is, the distance measurement system includes a distance measurement device and an external processing device. The distance measurement device receives reflected light from a subject for a plurality of exposure periods in a frame in which irradiation light is emitted, switches a plurality of distance calculation expressions according to an amount of charge measured for each exposure period, and calculates a measured distance to the subject from the amount of charge measured for each exposure period. The external processing device acquires the measured distance from the distance measurement device and performs data processing. The external processing device predicts a measured distance including a distance error caused by an influence of multipath, generates a correction expression for correcting the measured distance, and corrects the measured distance acquired from the distance measurement device using the correction expression.
According to a second aspect of the invention, the following distance measurement device is provided. That is, the distance measurement device receives reflected light from a subject for a plurality of exposure periods in a frame in which irradiation light is emitted, switches a plurality of distance calculation expressions according to an amount of charge measured for each exposure period, and calculates a measured distance to the subject from the amount of charge measured for each exposure period. Then, the distance measurement device predicts a measured distance including a distance error caused by an influence of multipath, generates a correction expression for correcting the measured distance, and corrects the measured distance using the correction expression.
According to a third aspect of the invention, the following distance measurement method is provided. That is, the distance measurement method is a method using a distance measurement device that receives reflected light from a subject for a plurality of exposure periods in a frame in which irradiation light is emitted, switches a plurality of distance calculation expressions according to an amount of charge measured for each exposure period, and calculates a measured distance to the subject from the amount of charge measured for each exposure period. The distance measurement method includes: predicting a measured distance including a distance error caused by an influence of multipath; generating a correction expression for correcting the measured distance; and correcting the measured distance using the correction expression.
According to the invention, it is possible to provide a distance measurement system, a distance measurement device, and a distance measurement method that check the influence of multipath, correct a distance for each pixel to suppress an error from an actual distance, and improve the accuracy of the distance.
A distance measurement system 1 according to an embodiment will be described with reference to the drawings.
As illustrated in
First, the configuration of the TOF camera 10 will be described. The TOF camera 10 is a device (distance measurement device) that measures a distance on the basis of so-called time of flight (TOF). The TOF camera 10 includes a light emitting unit 11, a light receiving unit 12, a light emission control unit 13, a distance calculation unit 14, an image processing unit 15, and a power supply unit 16.
The light emitting unit 11 emits pulsed irradiation light emitted by a light source (a laser diode (LD) in the example illustrated in
The light emission control unit 13 has a light source driving circuit that turns on or off the light source or adjusts the amount of light emitted and can control the light source driving circuit in response to a command from a CPU 18 which will be described below. Then, the irradiation light from the light source is emitted to a region in which a subject is present.
The distance calculation unit 14 calculates the distance to the subject on the basis of the electric signal (described as image DATA in
The power supply unit 16 has a configuration used to supply power. Power is supplied to the TOF camera 10 on the basis of an appropriate method. For example, power may be supplied to the TOF camera 10 by Power of Ethernet (PoE). In this case, the configuration of an interface is implemented by the power supply unit 16, and the TOF camera 10 and the external processing device 20 are connected by a LAN cable. In addition, power may be supplied to the TOF camera 10 by a power cord that is appropriately connected.
The distance calculation unit 14 and the image processing unit 15 are programs. In addition, the TOF camera 10 includes a light emission processing unit 17 which is a program used to control the light emission control unit 13. Then, the TOF camera 10 includes the CPU 18 that executes these programs (14, 15, and 17). Further, in this example, the CPU 18 is used as a processor that operates the programs. However, any device may be used as long as it performs a predetermined process, and other semiconductor devices may be used instead of the CPU 18. Furthermore, the TOF camera 10 may include an appropriate storage device (for example, a ROM) that stores data such as programs. In addition, the TOF camera 10 may include a RAM that temporarily stores data at the time of data processing.
In this embodiment, the TOF camera 10 performs measurement in units of frames, and the measurement is performed at a rate of, for example, 30 frames/sec on the basis of an exposure signal from the light receiving unit 12 which indicates exposure/non-exposure operations. Therefore, the operation timing of each unit (14, 15, and 17) is determined on the basis of the timing of the exposure signal of the light receiving unit 12. Here, the light emission processing unit 17 controls the light emission control unit 13 on the basis of the exposure signal to control a light emission period/a turn-off period of the light emitting unit 11. The distance calculation unit 14 calculates the distance on the basis of the exposure signal. The image processing unit 15 performs image processing on the basis of the exposure signal (or stops the image processing on the basis of the exposure signal).
Next, the external processing device 20 will be described. The external processing device 20 can be a general computer and includes a processor. The processor may perform a predetermined process and can be, for example, a CPU. However, the processor may be other semiconductor devices (for example, a GPU). In addition, the external processing device 20 may include a storage device, such as a ROM, that stores data. Further, the external processing device 20 may include a RAM that temporarily stores data at the time of data processing. In this embodiment, the processor of the external processing device 20 acquires data from the TOF camera 10, performs data processing which will be described in detail below, and corrects the distance measured by the TOF camera 10.
Next, the calculation of the distance by the TOF camera 10 will be described in more detail with reference to
As described above, the light emission control unit 13 controls the light emitting unit 11 such that a subject 2 (in this example, a person) is irradiated with an irradiation pulse 31 for distance measurement. Then, the irradiation pulse 31 is reflected by the subject 2 and becomes a reflected light pulse 32, and the light receiving unit 12 receives the reflected light pulse 32 through a lens 33. The light receiving unit 12 receives the reflected light 32 with an image sensor 34 that is a two-dimensional sensor, such as a CCD sensor, in which pixels are two-dimensionally arranged and converts the amount of exposure at each pixel position into an electric signal. The distance calculation unit 14 calculates a distance Z to the subject 2 from the electric signal of the light receiving unit 12 and generates two-dimensional distance data.
When a time difference from the emission of the irradiation pulse 31 by the light emitting unit 11 to the reception of the reflected light pulse 32 by the light receiving unit 12 is t, the distance Z to the subject 2 can be calculated as Z=c×t/2 (c is the light speed). Here, the time difference t can be calculated on the basis of a pulse width of the irradiation pulse 31 and the amount of charge detected by the image sensor 34 for a plurality of exposure periods.
The distance Z to the subject 2 may be calculated by switching a plurality of numerical expressions according to conditions. For example, the distance Z can be calculated on the basis of Numerical Expression 1 and Numerical Expression 2 illustrated in
Here, Numerical Expression 1 and Numerical Expression 2 are used in a case in which the exposure period is divided into three parts and exposure and measurement are performed. That is, in this example, the exposure is performed in the consecutive order of a first exposure period, a second exposure period, and a third exposure period. Then, the amount of charge measured for the first exposure period is represented by A0, the amount of charge measured for the second exposure period is represented by A1, and the amount of charge measured for the third exposure period is represented by A2. In addition, in Numerical Expression 1 and Numerical Expression 2, Z is the distance, c is the light speed, and Tp is the pulse width of the irradiation pulse.
The switching conditions of Numerical Expression 1 and Numerical Expression 2 will be described. Focusing on the value of the amount of charge to be measured, Numerical Expression 1 (a first distance calculation expression which is referred to as a Near expression in some cases) is used to calculate the distance Z under the condition of A0≥A2. On the other hand, Numerical Expression 2 (a second distance calculation expression which is referred to as a Far expression in some cases) is used to calculate the distance Z under the condition of A0<A2.
In an ideal state, Numerical Expression 1 and Numerical Expression 2 can be used to achieve high measurement accuracy, but a distance error occurs in an environment affected by multipath. Here, the difference in the measured distance between measurement in the ideal state and measurement including the influence of the multipath will be described with reference to
First, the reception of the reflected light in the ideal state will be described. As in the case of the description of the above-mentioned Numerical Expression 1 and Numerical Expression 2, it is considered that the exposure period is divided into three parts and the reflected light is received at each timing. Here, the length of each of the three exposure periods is set to be equal to the length of the emission period (light emission period) of the emission pulse. Then, when the irradiation pulse is emitted and the reflected light is returned, a portion of the reflected light is received for the first exposure period, and the remaining reflected light is received for the second exposure period. In addition, in the example illustrated in
In this ideal state, the amounts of charge (A0 to A3) measured for each exposure period are used to acquire the measurement result with ensured linearity (in other words, with high accuracy) from Numerical Expression 1 and Numerical Expression 2 as illustrated in a graph of
The influence of the multipath on the measured distance will be described with reference to the graph illustrated in
Here, in the ideal state, when the above-described Numerical Expression 1 and Numerical Expression 2 are used, the amounts of charge satisfying the relationship of A0=A2 are measured at the position of ½ L, and the distance is measured. That is, the relationship of A0=A2 is established when ½ L is measured as the measured distance. Therefore, in the ideal state, for an actual distance of 0 to ½ L, an accurate measured distance can be calculated on the basis of Numerical Expression 1 (Near expression). In addition, for an actual distance of ½ L to L, an accurate measured distance can be calculated on the basis of Numerical Expression 2 (Far expression).
However, when there is an influence of the multipath, the distance error is included in the measured distance. Therefore, the position where the amounts of charge satisfying the relationship of A0=A2 are measured changes. For example, in the graph illustrated in
Next, an example of the influence of the multipath in a room will be described with reference to
In a case in which the TOF camera 10 measures a subject in a narrow passage, a room, an elevator hall where a wall material having high light reflectance is used, or the like, a measurement error occurs due to the influence of the multipath as described above. That is, as illustrated in
As described above, the accuracy of the measured distance is reduced by the influence of the multipath. Therefore, in this embodiment, a correction process flow illustrated in
In the example of the correction process flow illustrated in
In addition, the external processing device 20 acquires the amounts of charge (A0, A1, and A2) measured in a state in which the light source emits light from the TOF camera 10 (Step 102). That is, in Step 102, the components acquired in Step 101 and components of the reflected light, which has been reflected by the subject and returned, are acquired. Here, the components of the reflected light include multipath components in the measurement environment. In addition, Step 101 and Step 102 may be performed before Step 103 which will be described below, and the timing when Step 101 and Step 102 are performed may be appropriately changed.
Here, an example of a method for acquiring the amounts of charge (A0, A1, A2) in Step 101 and Step 102 will be described with reference to
In general, the distance is measured by repeating a plurality of frames including both the light emission period and the exposure period. However, in this example, a frame including both the light emission period and the exposure period (described as an odd-numbered frame in
In this embodiment, the components described in Step 101 and the components described in Step 102 are acquired on the basis of the frames that have been set alternately in this way. That is, the components described in Step 101 are acquired on the basis of the frame that does not include the light emission period and includes the exposure period, and the components described in Step 102 are acquired on the basis of the frame that includes both the light emission period and the exposure period. In addition, the example in which the frames are alternately set has been described above. Any configuration may be used as long as the components of the ambient light in the measurement environment are appropriately acquired. For example, the cycle of the frame that does not include the light emission period and includes the exposure period may be appropriately changed in consideration of the actual measurement environment.
After Step 101 and Step 102, the components (that is, the amounts of charge A0, A1, and A2 measured in Step 102) acquired in Step 101 are removed from the components acquired in Step 102 (that is, the amounts of charge A0, A1, and A2 related to ambient light BG) measured in Step 102 (Step 103). In Step 103, the components of the ambient light are subtracted to be removed, and components of the reflected light including the influence of the multipath (that is, the amounts of charge A0′, A1′, and A2′ from which the components of the ambient light have been removed) are acquired.
Then, a pixel for which A0′=A2′ is established is searched from each pixel (each pixel of the image sensor 34) in one frame calculated in Step 103 (Step 104). That is, the pixel for which the calculation expressions of the Near expression and the Far expression are switched is picked up.
Then, the value of A0′/A1′ and the value of A2′/A1′ are calculated from the pixel for which A0′=A2′ is established and which has been searched in Step 104, and the value of A0′/A1′ (=A2′/A1′) is calculated (Step 105). Here, the meaning of the radio between the amounts of charge will be described with reference to
In a state in which the multipath and the ambient light are not included (ideal state), the amount of charge A0 is zero and the amount of charge A2 is measured on the basis of the position of ½ L. That is, the relationship of A0=A2 is established at the position of ½ L, and the applicable range of the Near expression and the Far expression is switched on the basis of this position.
Focusing on the ratio between the amounts of charge at this time, A0/A1 is greater than 0 within the applicable range of the Near expression and is 0 out of the applicable range of the Near expression. Similarly, A2/A1 is greater than 0 within the applicable range of the Far expression and is 0 out of the applicable range of the Far expression. Then, the values of these ratios are equal to each other at the switching position (that is, the position of ½ L) of the calculation expression (that is, A0/A1=A2/A1 is established).
Then, a case in which the influence of the multipath is small unlike the ideal conditions will be described.
As illustrated in
Next, a case in which the influence of the multipath is large unlike the ideal conditions will be described.
As illustrated in
In a case in which the value of A0′/A1′ (=A2′/A1′) is calculated in Step 105, the relational expression of the distance error is calculated. Then, the distance error at the actual distance of ½ L is calculated from the relational expression of the distance error (Step 106). Then, a method for calculating the relational expression of the distance error will be described with reference to
A graph illustrated in
A graph illustrated in
Then, a relational expression of the distance error that summarizes the relationship between the magnitude of the ratio between the amounts of charge acquired in Step 105 and the distance error at the position of ½ L is generated. For example, the relational expression of the distance error can be represented by αx (α is a coefficient) as illustrated in
In Step 106, as illustrated in
In a case in which the distance error of the point B is calculated in Step 106, the measured distance at the point B is predicted (Step 107). That is, a measured distance (described as Depth(½ L) in
In a case in which the measured distance at the point B is predicted, a correction expression that corrects the influence of the multipath is generated. Then, a correction operation is performed such that the Near side (the range from the actual distance of 0 to ½ L) and the Far side (the range from the actual distance of ½ L to L) approach the ideal values (Step 108). First, an example of how to calculate the correction expression will be described with reference to
In this example, a correction expression is calculated which brings the Near-side measured distance (corresponding between A and B in
Similarly, a correction expression is calculated which brings the Far-side measured distance (corresponding between B and C in
In this way, in Step 108, the correction expressions for correcting the Near-side and Far-side measured distances are generated. Then, the correction operation is performed on the measured distance measured by the TOF camera 10 such that the Near-side measured distance, that is, the measured distance from a point A (0, 0) to the point B (½ L, Depth(½ L)) is ideal. In addition, the correction operation is performed on the measured distance measured by the TOF camera 10 such that the measured distance from the point B (½ L, Depth(½ L)) to a point C (L, L) is ideal.
Here, in a case in which the measured distance to be corrected is shorter than the B point distance (or is equal to or shorter than the B point distance) in the correction of the measured distance, a Near-side correction expression is used. In a case in which the measured distance to be corrected is longer than the B point distance (or is equal to or longer than the B point distance), a Far-side correction expression is used. In a case in which the measured distance to be corrected is equal to the point B distance, any correction expression may be used. Further, according to the correction process flow of this embodiment, the processor of the external processing device 20 can perform the correction operation on the measured distance acquired from each pixel of the image sensor 34 using the generated correction expression. Furthermore, in the example illustrated in
According to this correction process flow, appropriate correction can be performed to correct the measured distance even in a case in which the applicable range of the Near expression and the Far expression deviates from the ideal state due to the influence of the multipath and the Near expression and the Far expression are not switched at the timing of the actual distance of ½ L.
Next, an example of the effect of the correction operation will be described with reference to
In the example illustrated in
A method has been described above which improves the distance calculation error caused by the multipath, using the distance calculation method, which uses A0, A1, and A2 respectively measured for the first exposure period, the second exposure period, and the third exposure period that are divided from the exposure period and two calculation expressions (the Near expression and the Far expression) that are switched according to the conditions of each of the measured amounts of charge, as an example.
That is, the strength of the influence of the multipath in the measurement environment is evaluated from the magnitude of the value of each ratio between the amounts of charge (for example, the value at which the value of A0/A1 is equal to the value of A2/A1) used to calculate the distance at the position where the distance calculation expressions are switched (that is, in a case in which there is no influence of the multipath, the position where the ideal distance is clear and the position corresponding to ½ L in the above description).
The relationship between the value of the ratio between the amounts of charge at the position where the distance calculation expressions are switched and the distance error caused by the influence of the multipath is calculated to generate the relational expression of the distance error as illustrated in
The distance error related to the position where the distance calculation expressions are switched (that is, the position where the ideal distance is clear in a case in which there is no influence of the multipath) is calculated on the basis of the magnitude of the ratio between the amounts of charge acquired in the actual measurement environment, using the relational expression of the distance error.
As described above, the distance error at the position where the ideal distance is clear is calculated. Therefore, as described above, it is possible to calculate the correction expression such that the distance is close to the ideal value of the measured distance in the ideal state and to perform the correction operation. The measured distance is corrected on the basis of these processes. Therefore, the influence of the multipath is suppressed, and the measurement error is reduced.
Further, the distance calculation method using three exposure periods and two calculation expressions has been described as an example. However, the invention is not limited to the distance calculation method using three exposure periods and two calculation expressions. It is not difficult to conceive that the invention can be applied to a distance calculation method using a plurality of exposure periods more than three exposure periods and a plurality of calculation expressions more than two calculation expressions.
In addition, a method is considered which calculates a correction coefficient or the like from the correlation between the actual distance and the measured distance at a plurality of points (a plurality of different distance positions) and calculates a correction expression. For example, a method is considered in which subjects are actually positioned every 1 m, a correction coefficient or the like is calculated on the basis of a correlation with the measured distance acquired from the subjects positioned every 1 m, and a correction expression is calculated, as illustrated in
The invention is not limited to the above-described embodiment and includes various modification examples. For example, the embodiment has been described in detail for a better understanding of the invention, and the invention is not necessarily limited to the embodiment including all of the described configurations.
The corrected distance data may be used, for example, for movement trace for a person, people counting, or the like. Therefore, a high-accuracy process with a reduced measurement error is achieved. In addition, for example, an appropriate processor executes an application to achieve the movement trace and the people counting. Here, the external processing device 20 may perform a process in cooperation with this application and a program used to perform the correction process flow.
The external processing device 20 may appropriately perform data processing, such as the correction process flow, and the data used for the data processing may be stored in an external storage device connected to the external processing device 20. Then, the external processing device 20 may acquire data from the external storage device and perform a process. Further, the external processing device 20 may be disposed at the same installation position as the TOF camera 10 or may be disposed at a remote location different from the installation position of the TOF camera 10. The external processing device 20 may acquire data using wired communication or may acquire data using wireless communication.
In this embodiment, the system has been described in which the program used to perform the correction process flow is executed by the external processing device 20 and the external processing device 20 performs the correction processing flow. However, the TOF camera 10 may execute the program used to perform the correction process flow and output the corrected measured distance. In this case, the external processing device 20 is omitted. Then, for example, the program used to perform the correction process flow may be stored in the storage device of the TOF camera 10, and the processor (for example, the CPU 18) of the TOF camera 10 may execute this program. Therefore, the TOF camera 10 (distance measurement device) is provided which can check the influence of the multipath, correct the distance for each pixel to suppress the error from the actual distance, and improve the accuracy of the distance.
Number | Date | Country | Kind |
---|---|---|---|
2021-129994 | Aug 2021 | JP | national |