Distance measuring system, distance measuring method, and computer program

The distance measurement system enhances accuracy by controlling exposure timing and using differential imaging to isolate pattern light components, addressing interference issues in measuring moving objects.

JP2024153392AInactive Publication Date: 2024-10-29CANON KK
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2023067262
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-04-17
Publication Date
2024-10-29
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing distance measurement systems face challenges in maintaining accuracy when measuring moving objects due to interference from disturbance light, particularly in pattern light irradiation methods, leading to decreased measurement precision.

Method used

A distance measurement system that includes pattern light irradiation, imaging, interference determination, and controlled exposure timing to minimize interference effects, using a combination of pattern light irradiation and differential imaging to enhance accuracy.

Benefits of technology

The system effectively suppresses decreases in measurement accuracy by extracting the pattern light component accurately, even in the presence of disturbance light, ensuring precise distance measurements for moving objects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024153392000001_ABST
    Figure 2024153392000001_ABST
Patent Text Reader

Abstract

To provide a distance measuring system capable of suppressing deterioration in distance measurement accuracy.SOLUTION: A distance measuring system comprises: a pattern light irradiation means that irradiates an object with predetermined pattern light; imaging means that captures an image of the object; interference determination means that determines the presence or absence of interference of disturbance light with respect to the pattern light; distance measuring means that calculates a distance to the object on the basis of a feature amount of the pattern light in a difference between a first image in an irradiation state by the pattern light irradiation means and a second image in a non-irradiation state when the interference determination means determines that there is interference of the disturbance light; moving amount calculation means that calculates a moving amount of the object; and control means that controls imaging timing of the first image and the second image by the imaging means on the basis of the moving amount.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a distance measuring system, a distance measuring method, a computer program, and the like that use pattern light. [Background technology]

[0002] In recent years, distance measurement technology that measures the distance to a subject is often used in fields such as in-vehicle sensing, autonomous mobile robots, unmanned guided vehicles, and unmanned aerial vehicles. A representative example of distance measurement technology is stereo ranging, which captures the same subject with multiple cameras and calculates distance information to the subject from the parallax of the captured images. However, this method has the problem that it cannot obtain accurate distance information for subjects without texture.

[0003] To address the above issues, a distance measurement method called the pattern light irradiation method has been proposed. This method calculates the distance to an object from the characteristics of the pattern light when a light of a specific pattern shape is irradiated onto the object. Using this method, it is possible to perform highly accurate distance measurement even for objects that have no texture.

[0004] However, in the pattern light irradiation method, if strong disturbance light other than the irradiated pattern light is irradiated on the object to be measured, the pattern light is buried in the disturbance light, making it difficult to detect the characteristics of the pattern light. Therefore, Patent Document 1 proposes a configuration that improves the measurement accuracy of the subject distance by extracting the component of only the pattern light by using the difference image between when the pattern light is irradiated and when it is not irradiated. [Prior art documents] [Patent documents]

[0005] [Patent Document 1] JP 2022-53871 A Summary of the Invention [Problem to be solved by the invention]

[0006] However, in the configuration described in Patent Document 1, when the object to be measured is a moving object such as a small animal or another mobile robot, it becomes difficult to extract only the pattern light component from the difference image, and it becomes impossible to extract the correct pattern light component only. Therefore, there is a problem that the distance measurement accuracy decreases.

[0007] An object of the present invention is to provide a distance measuring system capable of suppressing a decrease in distance measuring accuracy. [Means for solving the problem]

[0008] In order to achieve the above object, a distance measuring system according to one aspect of the present invention comprises: A pattern light irradiation means for irradiating a target object with a predetermined pattern light; An imaging means for imaging the object; an interference determination means for determining whether or not there is interference of disturbance light with the pattern light; When the interference determination means determines that there is interference of the disturbance light, a distance measuring means for calculating a distance to the object based on a feature amount of the pattern light in a difference between a first image in a state where the pattern light is irradiated by the pattern light irradiating means and a second image in a state where the pattern light is not irradiated; A movement amount calculation means for calculating a movement amount of the object; a control means for controlling a timing of capturing the first image and the second image by the imaging means based on the amount of movement; The present invention is characterized by having the following. Effect of the Invention

[0009] According to the present invention, it is possible to provide a distance measuring system capable of suppressing a decrease in distance measuring accuracy. [Brief description of the drawings]

[0010] [Figure 1] 1 is a functional block diagram illustrating a configuration example of a distance measuring system according to a first embodiment of the present invention. [Diagram 2]6A to 6C are diagrams illustrating a control method in a normal distance measurement mode according to the first embodiment. [Diagram 3] 6A to 6D are diagrams illustrating a control method for a differential ranging mode according to the first embodiment. [Figure 4] 1A and 1B are flowcharts for explaining a distance measuring method according to a first embodiment. [Diagram 5] 6A to 6C are diagrams illustrating an example of a process performed by a moving object determination means according to the first embodiment. [Figure 6] 6A to 6C are explanatory diagrams of control before the exposure timing is changed according to the first embodiment. [Figure 7] 6A to 6C are explanatory diagrams of control after changing the exposure timing according to the first embodiment. [Figure 8] 13A and 13B are diagrams for explaining the process of step S108 according to the second embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0011] Hereinafter, the embodiment of the present invention will be described with reference to the drawings. However, the present invention is not limited to the following embodiment. In each drawing, the same reference numerals are used for the same members or elements, and duplicated descriptions are omitted or simplified.

[0012] <Example 1> A first embodiment of the present invention will be described below. Fig. 1 is a functional block diagram showing a configuration example of a distance measuring system 100 according to the first embodiment of the present invention. Some of the functional blocks shown in Fig. 1 are realized by causing a CPU or the like as a computer (not shown) included in the distance measuring system 100 to execute a computer program stored in a memory (not shown) as a storage medium.

[0013] However, some or all of these functions may be realized by hardware. For the hardware, a dedicated circuit (ASIC) or a processor (reconfigurable processor, DSP) may be used. Furthermore, the functional blocks shown in Fig. 1 do not have to be built into the same housing, and may be configured by separate devices connected to each other via signal paths.

[0014] The distance measuring system 100 shown in FIG. 1 comprises a pattern light irradiation means 101, an imaging means 102, an interference determination means 103, a distance measuring means 104, a storage means 105, a moving object determination means 106, a movement amount calculation means 107, a system control means 108, and the like.

[0015] The pattern light irradiation means 101 is a means for irradiating a predetermined pattern light onto an object to be measured, and is composed of a light source unit 109 that emits light, and a pattern generation unit 110 that generates a specific pattern shape from the light emitted from the light source.

[0016] The light source unit 109 emits light with a wavelength in the infrared range, and uses, for example, an infrared LED. However, the light emitted from the light source unit 109 does not necessarily have to be infrared light, and light in another wavelength range may be used. The pattern generation unit 110 generates pattern light by changing the transmittance of the infrared light emitted by the light source unit 109 for each region.

[0017] The pattern generating unit 110 may be configured to spatially branch light using a diffractive optical element, to physically insert an ND filter with a different transmittance for each region, or to electrically change the transmittance for each region using a liquid crystal projector, etc. However, any configuration that can generate pattern light may be used, and is not limited to the above configurations.

[0018] The patterned light irradiation means 101 controls switching between irradiation and non-irradiation of the patterned light in accordance with a light emission control signal transmitted from the system control means 108. The light emission control method in this embodiment will be described later in detail.

[0019] The imaging means 102 is a means for capturing an image of an object, and is composed of a lens 111, a photoelectric conversion unit 112, and an A / D conversion unit 113. The lens 111 receives light that is irradiated by the pattern light irradiation means 101 and reflected by the object to be measured, and generates an optical image. The optical image formed by the lens 111 is converted into an analog electric signal by the photoelectric conversion unit 112, such as a CMOS image sensor.

[0020] In addition, the photoelectric conversion unit 112 in this embodiment has sensitivity to at least infrared light. It may be configured to capture both color images and infrared images using four types of filters, R (red), G (green), B (blue), and IR (infrared), or may be configured to generate only infrared images using only an IR filter.

[0021] Alternatively, a configuration may be used in which only a monochrome image is generated without using a color filter. The analog electrical signal converted by the photoelectric conversion unit 112 is converted by the A / D conversion unit 113 into a digital image signal.

[0022] The digital image signal generated by the A / D conversion unit 113 is output to the system control means 108, and is output via the system control means 108 to the interference determination means 103, distance measurement means 104, moving object determination means 106, etc.

[0023] Furthermore, the imaging means 102 controls the exposure time (charge accumulation time) in the photoelectric conversion unit 112 in accordance with an exposure control signal supplied from the system control means 108. The exposure control method in this embodiment will be described later in detail.

[0024] The interference determination means 103 is a means for determining whether or not the pattern light is interfered with by disturbance light. The interference determination means 103 calculates a luminance integrated value in a predetermined region in the digital image signal output from the imaging means 102, and determines whether or not the pattern light is interfered with by disturbance light based on the calculated information. When the pattern light is infrared light, the luminance integrated value calculated is the luminance integrated value of the infrared light.

[0025] When making the determination, the interference determination means 103 may use other indices such as the average brightness value or a histogram as a brightness evaluation value instead of the brightness integrated value as described above, and transmits the determination result to the system control means 108.

[0026] The distance measuring system 100 may be equipped with an external light sensor (not shown). The interference determination means 103 may compare external light data from the external light sensor with on / off information of the light source unit 109 to determine whether or not the external light interferes with the pattern light, and transmit the determination result to the system control means 108.

[0027] The distance measuring means 104 measures the distance to the object based on the luminance information of the image signal output by the imaging means 102. Specifically, the distance measuring means 104 measures the distance to the object based on the luminance information of the image signal output by the imaging means 102. Specifically, the distance measuring means 104 compares the characteristics of the pattern light in the image signal output by the imaging means 102 with the characteristics of the pattern light irradiated by the pattern light irradiating means 101, and measures the distance to the object by performing distance measurement calculation processing.

[0028] In this embodiment, a method of irradiating a pattern light using a coded pattern is used to measure the distance to the object. That is, the pattern light irradiating means 101 is provided with a two-dimensional pattern in which the horizontal and vertical coordinates of the irradiated pattern light are coded as unique markers, and the light is irradiated to the object using the two-dimensional pattern.

[0029] The distance measurement means 104 detects markers present in each area by performing feature point detection processing, viewpoint conversion processing, pattern matching processing, etc. for each area in the image acquired by the imaging means 102. Then, by associating the positions of the markers in the irradiated pattern light with the positions of the markers present in the acquired image, the distance to the object to be measured is calculated based on the principle of triangulation.

[0030] Furthermore, the distance calculation result is subjected to smoothing processing, outlier removal processing, etc., to interpolate missing distance information and improve accuracy. Note that, in this embodiment, the distance measurement calculation method of the pattern light irradiation method using the coding pattern as described above is used, but is not limited to this.

[0031] The storage means 105 is a means for storing the image signal output from the imaging means 102, the determination result determined by the interference determination means 103, the distance measurement calculation result calculated by the distance measurement means 104, etc. It also stores a threshold value for determining a moving object in the moving object determination means 106, and various computer programs for controlling the distance measurement system 100.

[0032] The moving object determination means 106 is a means for determining whether the object to be measured is a moving object in the distance measurement system 100. The image signal captured by the imaging means 102 is acquired via the system control means, and the feature points of the object to be measured are calculated based on the image signal, and it is determined whether the object to be measured is a moving object based on multiple imaging data.

[0033] Moreover, the movement amount calculation means 107 is a means for calculating the movement amount and the movement vector of the object to be measured that is determined to be a moving object by the moving object determination means 106. The optical flow method is used as a method for calculating the movement vector of the object to be measured. The system control means 108 controls the exposure timing of the imaging means 102 based on the calculated movement amount.

[0034] The system control means 108 has a built-in CPU and the like as a computer, and functions as a control means for controlling the operation of each part of the entire distance measuring system 100 based on a computer program stored in a memory as a storage medium.

[0035] That is, the system control means 108 performs light emission control of the pattern light irradiation means 101 and exposure control (charge accumulation time control) of the imaging means 102. The system control means 108 also writes and reads out the interference determination result using the interference determination means 103, the distance measurement calculation processing result using the distance measurement means 104, and image signals and various information to and from the storage means 105. The system control means 108 also exchanges various information with the moving object determination means 106 and the movement amount calculation means 107.

[0036] Next, the pattern light distance measuring method in the distance measuring means 104 will be described with reference to Fig. 2. Figs. 2(A) to (C) are explanatory diagrams of a control method of a normal distance measuring mode according to the first embodiment, and Fig. 2(A) is a timing chart showing the light irradiation state of the pattern light irradiation means 101, and the exposure period and image output period of the imaging means 102.

[0037] 2(A), the horizontal axis represents time. The vertical axis represents the "light irradiation state" by the patterned light irradiation means 101, the vertical synchronization signal "VD" supplied to the photoelectric conversion unit 112, the "exposure period" (charge accumulation time) of the photoelectric conversion unit 112, and the "image output period" of the photoelectric conversion unit 112. Of the "light irradiation states" shown on the vertical axis, the periods indicated by hatching represent the irradiation state in which the patterned light is irradiated, and the periods indicated by dashed lines without shading represent the non-irradiation state in which the patterned light is not irradiated.

[0038] At the timing when the vertical synchronization signal "VD" on the vertical axis switches from Low to High, an imaging operation (exposure operation) for acquiring an image signal of a new frame is started in the photoelectric conversion unit 112. In this embodiment, a period of N frames to (N+2) frames is shown.

[0039] The "exposure period" on the vertical axis indicates the period during which the photoelectric conversion unit 112 exposes the object to be measured, i.e., the period during which the charge obtained by photoelectric conversion is accumulated in the photoelectric conversion unit 112. When the "exposure period" is low, the charge accumulation operation in the photoelectric conversion unit 112 is reset, and no exposure operation of the object to be measured is performed.

[0040] On the other hand, when the "exposure period" is High, the reset of the photoelectric conversion unit 112 is released and the object to be measured is exposed to light, that is, the charge accumulation operation in the photoelectric conversion unit 112 is performed.

[0041] The "image output period" on the vertical axis is a period during which the signal charge accumulated in the photoelectric conversion unit 112 in the previous frame is converted into a digital signal by the A / D conversion unit 113 and output as an image signal. In this embodiment, image output starts in synchronization with the timing when "VD" on the vertical axis changes from Low to High.

[0042] In this embodiment, the system control means 108 performs timing control when measuring the distance to the object so that the period during which the "light irradiation state" is in the irradiation state and the period during which the "exposure period" is in the High state overlap. This allows the pattern light irradiated by the pattern light irradiation means 101 to be reliably captured by the imaging means 102 as image information, based on the reflected light from the object to be measured.

[0043] 2A, at time t21, the "light irradiation state" of the patterned light irradiation means 101 is switched from an irradiation state to a non-irradiation state. At this time, VD is supplied from the system control means 108 to the imaging means 102, and an operation for capturing an image signal of the Nth frame in the imaging means 102 is started.

[0044] 2A, the exposure time is controlled to be shorter than one frame period. That is, during the period from time t21 to t22, a reset operation is performed to sweep out all the charges accumulated in the photoelectric conversion unit 112, and the charges generated during this period are not used as an image signal.

[0045] At time t22, a light emission control signal is supplied from the system control means 108 to the patterned light application means 101, and the light application state of the patterned light application means 101 is switched from the non-illumination state to the illumination state.

[0046] At the same time, an exposure control signal is sent from the system control means 108 to the imaging means 102 to release the reset state of the photoelectric conversion unit 112, thereby starting an exposure operation (charge accumulation operation). In other words, only light reflected from the object to be measured after time t22 is exposed (charge accumulated).

[0047] During the period from time t22 to t23, the patterned light application means 101 is in an irradiation state, and the imaging means 102 is in an exposure operation (charge accumulation operation) state. At time t23, a light emission control signal is transmitted from the system control means 108 to the patterned light application means 101, and the light irradiation state of the patterned light application means 101 is switched from an irradiation state to a non-irradiation state.

[0048] At the same time, an exposure control signal is sent from the system control means 108 to the imaging means 102 to end the exposure period. Furthermore, at time t23, VD is sent, a read operation (image output period) of the charges accumulated in the photoelectric conversion unit 112 is started, and output of the image signal is started after A / D conversion processing.

[0049] In the period from time t23 to t24, an image signal of the Nth frame exposed (charge-accumulated) in the period from time t22 to t23 is output from the imaging means 102 and supplied to the system control means 108. In addition, the image signal of the Nth frame is supplied from the system control means 108 to the distance measuring means 104 etc.

[0050] At time t24, the supply of the Nth frame image signal from the imaging means 102 to the system control means 108 ends, and accordingly, the supply of the Nth frame image signal from the system control means 108 to the distance measuring means 104 also ends.

[0051] As shown in FIG. 2(A), by synchronizing the irradiation period during which the pattern light irradiation means 101 irradiates the pattern light with the exposure period (charge accumulation period) during which the imaging means 102 is exposed, it is possible to reliably obtain an image signal in a state in which the pattern light is irradiated onto the object to be measured.

[0052] In addition, in the first embodiment, the period during which the pattern light is irradiated and the exposure period are exactly the same, but they do not necessarily have to be exactly the same period, and it is sufficient that the exposure period and the irradiation period during which the pattern light is irradiated overlap for a predetermined time or more.

[0053] Fig. 2(B) is a diagram showing an example of a subject image exposed during the period from time t22 to t23 and supplied from the imaging means 102 to the distance measuring means 104 via the system control means 108 during the period from time t23 to t24. Fig. 2(C) is a diagram showing, for reference, an example of a subject image exposed by the photoelectric conversion unit 112 in a state where pattern light is not irradiated by the pattern light irradiation means 101.

[0054] In this embodiment, by controlling the light irradiation state and exposure period at the timing shown in Fig. 2(A), it is possible to reliably obtain an object image on which, for example, a dot-shaped pattern light is superimposed as shown in Fig. 2(B). As a result, it is possible to reliably obtain the measurement result of the object distance for each frame. The distance measurement method using the pattern light as shown in Fig. 2(A) is hereinafter referred to as "normal pattern distance measurement".

[0055] In addition, when strong disturbance light is irradiated on the object to be measured, the pattern light is interfered with by the disturbance light in the above-mentioned distance measurement method, and the distance measurement accuracy is reduced. Therefore, when the influence of disturbance light is large and the distance measurement accuracy is insufficient, an example of a specific control method for the "differential distance measurement mode" used in this embodiment will be described with reference to FIG.

[0056] Figures 3(A) to (D) are explanatory diagrams of the control method of the differential ranging mode in Example 1, and Figure 3(A) is a timing chart showing the light irradiation state of the pattern light irradiation means 101, the exposure period of the imaging means 102, the image output period, etc. in the differential ranging mode.

[0057] Fig. 3(A) differs from Fig. 2(A) in the control of the light irradiation state in the patterned light irradiation means 101. That is, in the example of Fig. 2(A), patterned light is irradiated for each frame using the patterned light irradiation means 101, such as the Nth frame, the N+1th frame, the N+2th frame, ...

[0058] However, in the differential ranging mode shown in Fig. 3(A), pattern light is irradiated every other frame, such as the Nth frame, the N+2th frame, the N+4th frame, .... Then, the exposure operation (charge accumulation operation) is performed in a state where the pattern light is not irradiated in the N+1th frame, the N+3rd frame, the N+5th frame, ....

[0059] Fig. 3(B) is a diagram showing an example of a subject image output from the imaging means 102 to the distance measuring means 104 via the system control means during a period from time t32 to t33 of the Nth frame, and during a period from time t33 to t35 of the N+1th frame. Note that Fig. 3(B) shows an image in a state where both disturbance light such as spot light and pattern light are irradiated on the object to be measured.

[0060] Fig. 3(C) is a diagram showing an example of a subject image exposed during the period from time t34 to t36 of the N+1th frame and output from the imaging means 102 to the distance measuring means 104 via the system control means during the period from time t36 to t37 of the N+2th frame. The image shown in Fig. 3(C) is an image acquired without irradiation of pattern light, and is therefore an image in a state where only disturbance light is irradiated onto the object to be measured.

[0061] FIG. 3(D) is a diagram showing an example of a difference image generated for each pixel by calculating the difference between FIG. 3(B) and FIG. 3(C). As shown in FIG. 3(D), by removing the disturbance light components of FIG. 3(C) from the image of FIG. 3(B), it is possible to extract only the pattern light components.

[0062] That is, in the image in Fig. 3(B), the pattern light is buried in the strong disturbance light, making it difficult to detect the characteristics of the pattern light. However, by generating the difference image in Fig. 3(D) using the image acquired when only disturbance light is irradiated in Fig. 3(C), it becomes possible to detect the characteristics of the pattern light with high accuracy.

[0063] On the other hand, in the differential ranging mode, two frames are required to generate the differential image required for ranging, so the object to be measured may move when acquiring images with and without pattern light irradiation as shown in Figure 3(B) and Figure 3(C). In that case, the accuracy of generating the differential image decreases, leading to a decrease in the accuracy of ranging.

[0064] Therefore, in Example 1, when the object to be measured moves during a differential ranging mode using a difference image, the exposure timing is controlled to shorten the interval when acquiring images with / without light irradiation, thereby improving the accuracy of generating the difference image.

[0065] The differential distance measurement using the differential image in the first embodiment will be described with reference to Fig. 4. Fig. 4 (A) and (B) are flowcharts showing the distance measurement method according to the first embodiment. The flows shown in Fig. 4 (A) and (B) are executed by a CPU (not shown) serving as a computer in the system control means 108 reading out a computer program stored in a memory (not shown) serving as a storage medium.

[0066] In Fig. 4A, in step S101 at startup, distance measurement is started in the normal pattern distance measurement mode shown in Fig. 2. That is, a pattern light irradiation step of irradiating a predetermined pattern light onto an object and an imaging step of imaging the object are executed, and the distance to the object is calculated based on the feature amount of the pattern light reflected by the object.

[0067] In step S102, external luminance information is acquired by the interference determination means 103 using an external light sensor or an integrated luminance value in a predetermined region in the digital image signal, etc. In step S103, the luminance information value acquired in step S102 is compared with a predetermined threshold value Th1 stored in advance in the storage unit, and it is determined whether the luminance information value is equal to or greater than the threshold value Th1.

[0068] The threshold value Th1 for determining the presence or absence of disturbance light is changed according to the emission intensity of the pattern light application means 101. For example, when the emission intensity is high, the threshold value Th1 is increased.

[0069] Here, step S103 functions as an interference determination step for determining whether or not disturbance light interferes with the pattern light. If the determination in step S103 is Yes, it is determined that the pattern light is interfered with by ambient light, and the process proceeds to step S104 to switch to the differential ranging mode.

[0070] Here, threshold value Th1 is threshold information for determining that the irradiated pattern light is being interfered with by external light, and if greater importance is placed on distance measurement accuracy and it is desired to minimize degradation of distance measurement accuracy due to external light, threshold value Th1 is set low.

[0071] On the other hand, when the distance measurement speed is important, the threshold value Th is set to a high value. Although a high threshold value Th1 may cause a detection error, for example, if an error occurs once every several frames, the impact is small, the threshold value Th1 may be set to a high value.

[0072] In the differential ranging mode, the basic distance measurement method operates as described with reference to Fig. 3. Fig. 4(B) is a flowchart explaining the flow in the differential ranging mode, and in step S105, the moving object determination means 106 determines whether the object to be measured is moving or not.

[0073] A method of determining a moving object by the moving object determination means 106 in step S105 will be described with reference to Fig. 5. Fig. 5(A) to (C) are diagrams for explaining a processing example of the moving object determination means according to the first embodiment, and Fig. 5(A) is a diagram showing an example of a distance measurement target object in a distance measurement target range.

[0074] Assuming that pattern light is irradiated in the Nth frame as shown in Fig. 3(A), the image captured during the next pattern light irradiation is the N+2th frame, and the image captured in the Nth frame is shown in Fig. 5(B), and the image captured in the N+2th frame is shown in Fig. 5(C). In step S105, based on the captured images, the coordinates of the feature points of the object to be measured in the Nth and N+2th frames are calculated two-dimensionally along the X and Y axes.

[0075] The coordinates of feature point A in Fig. 5(B) are P1(x1,y1), and the coordinates of feature point A in Fig. 5(C) are P2(x2,y2). In step S105, the coordinates P1 and P2 of feature point A are compared, and if the coordinates are apart by a predetermined distance or more, it is determined that the object to be measured is a moving object, and the process proceeds to step S106. If the determination in step S105 is No, the process proceeds to step S109.

[0076] In step S106, the movement amount calculation means 107 calculates the movement amount in pixel information using the information of the coordinates P1 and P2 of the feature point A, and proceeds to step S107. Here, step S106 functions as a movement amount calculation step for calculating the movement amount of the object. In step S107, it is determined whether the movement amount calculated in step S106 is equal to or greater than a predetermined threshold value Th2 stored in advance in the storage unit.

[0077] If it is determined in step S107 that the amount of movement is equal to or greater than threshold value Th2, the process proceeds to step S108. If it is determined No in step S107, the process proceeds to step S109. Note that threshold value Th2 is threshold value information for determining whether or not to change the exposure timing in this embodiment in the differential ranging mode, and threshold value Th2 is set low when high-precision ranging is required for a ranging object with a large amount of movement.

[0078] In step S108, the exposure timing and the irradiation intensity are changed. Step S108 functions as a control step (control means) that controls the timing of capturing the first image and the second image in the imaging step based on the amount of movement. Here, in step S108, when the amount of movement is equal to or greater than a predetermined threshold value Th2, the imaging interval between the first image and the second image is controlled to be shorter than a predetermined value.

[0079] A specific control example in step S108 will be described with reference to Fig. 6 and Fig. 7. Fig. 6(A) to (C) are explanatory diagrams of control before the exposure timing is changed according to the first embodiment, and Fig. 6(A) is a timing chart showing the light irradiation state of the pattern light irradiation means 101 and the exposure period of the imaging means 102 before the exposure timing is changed.

[0080] An exposure operation is performed in a state where pattern light is irradiated between times t61 and t62 in Fig. 6(A), and the image captured between times t61 and t62 is read out and acquired between times t62 and t64. An example of the image acquired in this way is shown in Fig. 6(B).

[0081] On the other hand, between times t63 and t64, an exposure operation is performed in a state where the pattern light is not irradiated, and between times t64 and t66, the image captured between times t63 and t64 is read out and acquired. The image acquired at that time is shown in FIG. 6(C).

[0082] In the differential ranging mode, the image in Fig. 6(B) with the pattern light irradiated is superimposed with the image in Fig. 6(C) without the pattern light irradiated, and only the pattern light component is extracted. However, since the timing of the images in Fig. 6(B) and 6(C) is shifted by one frame, the position a1 of the object in Fig. 6(B) has moved significantly to the left as position a2 in Fig. 6(C).

[0083] In this way, when the movement amount of the object in the image is large, it is not possible to extract only the pattern light component, and the distance measurement accuracy decreases. Therefore, in this embodiment, the exposure timing is changed so as to shorten the interval between times t62 and t63 in FIG. 6(A), for example. In other words, the imaging interval between the first image and the second image is controlled to be shorter than a predetermined value. This state is shown in FIG.

[0084] 7(A) to (C) are explanatory diagrams of control after the exposure timing is changed in the first embodiment, and FIG. 7(A) is a timing chart showing the light irradiation state of the pattern light irradiation means 101 and the exposure period of the imaging means 102 after the exposure timing is changed.

[0085] Exposure is performed in a state where pattern light is irradiated between times t71 and t72, and the image captured between times t71 and t72 is read out and acquired between times t72 and t75. The image acquired at this time is shown in FIG.

[0086] Moreover, exposure is performed in a state where the pattern light is not irradiated between times t73 and t74, and the image captured between times t73 and t74 is read out and acquired between times t75 and t77. The image acquired at this time is shown in FIG.

[0087] It should be noted that the time interval between times t72 and t73 is set shorter than the time interval between times t62 and t63 in FIG. 6, so that the imaging timing of the image in FIG. 7(B) and the imaging timing of the image in FIG. 7(C) are shorter than one frame.

[0088] That is, the imaging interval between the first and second images corresponds to the difference between (t71+t72) / 2 and (t73+t74) / 2, but the imaging interval is controlled to be shorter than a predetermined value (one frame period). Therefore, the moving distance (b2-b1) of the object becomes shorter than the moving distance (a2-a1) in FIG.

[0089] In step S109, only the pattern light component is extracted by subtracting the image in the state where the pattern light is irradiated (FIG. 7B) from the image in the state where the pattern light is not irradiated (FIG. 7C). Then, distance measurement is performed to calculate the distance to the object based on the feature amount of the pattern light. Here, step S109 functions as a distance measurement step (distance measurement means).

[0090] Furthermore, in step S109, if it is determined that there is interference from disturbance light, the distance to the object is calculated based on the feature of the pattern light in the difference between the first image in the illuminated state by the light illumination step and the second image in the non-illuminated state.

[0091] In addition, in this embodiment, by shortening the exposure timing between the pattern irradiation state and the non-irradiation state, it is possible to easily extract only the pattern light component from the difference image and suppress a decrease in distance measurement accuracy.

[0092] <Example 2> Hereinafter, a second embodiment of the present invention will be described. In the first embodiment, the exposure time is not changed, and only the timing of pattern irradiation and non-irradiation is changed, but in the second embodiment, the exposure time is changed. That is, when the amount of movement is equal to or greater than a predetermined threshold, the imaging time of the first image and the second image is controlled to be shorter than a predetermined value.

[0093] The configuration of the distance measuring system and the flowchart in the embodiment 2 are substantially the same as those in the embodiment 1. The difference from the embodiment 1 is that the exposure timing, the exposure time, and the irradiation timing and the irradiation time of the pattern light are changed in the process of step S108 in the flowchart in FIG.

[0094] 8(A) and (B) are diagrams for explaining the processing of step S108 according to the second embodiment of the present invention, and FIG. 8(A) is a timing chart showing the light irradiation state of the pattern light irradiation means 101 and the exposure period of the imaging means 102 before the exposure time is changed.

[0095] Exposure is performed in a state where the pattern light is irradiated between times t81a and t82a, and the image captured between times t81a and t82a is acquired between times t82a and t84a. Also, exposure is performed in a state where the pattern light is not irradiated between times t83a and t84a, and the image captured between times t83a and t84a is acquired between times t84a and t86a.

[0096] Fig. 8(B) is a timing chart showing the light irradiation state of the patterned light irradiation means 101 and the exposure period of the imaging means 102 when the exposure time is changed to be shorter. Exposure is performed in the patterned light irradiation state between times t81b and t82b in Fig. 8(B), and an image captured between times t81b and t82b is acquired between times t82b and t84b.

[0097] Moreover, exposure is performed in a state where the pattern light is not irradiated between times t83b and t84b, and the images captured between times t83b and t84b are acquired between times t85b and t87b. Note that the frame periods (readout periods) of the Nth, N+1th, N+2th, and N+3th frames in FIG. 8B are constant.

[0098] In this way, by shortening the time difference between exposure when the pattern light is irradiated and exposure when the pattern light is not irradiated, and by shortening the exposure time, it is possible to easily extract only the pattern light component from the difference image and suppress a decrease in distance measurement accuracy.

[0099] The pattern irradiation time is controlled by the pattern light irradiation means 101 in accordance with the changed exposure time. In this embodiment, when the amount of movement is equal to or greater than a predetermined threshold, the image capturing time of the first image and the second image is controlled to be shorter than a predetermined value, and the light source unit 109 is controlled to increase the irradiation intensity of the pattern light. This makes it possible to stably ensure the amount of reflected light of the pattern light from the object.

[0100] In the second embodiment, when the exposure time is shortened, the readout period from the photoelectric conversion unit 112 is kept constant, the exposure time is shortened, and the exposure timing in the irradiated state of the pattern light and the exposure timing in the non-irradiated state are brought closer together, so that an unnatural feeling is unlikely to occur when the image is displayed. However, in order to secure the time for the calculation processing for distance measurement, the readout period does not have to be kept constant.

[0101] Also, instead of bringing the exposure timing in the irradiated state of the pattern light and the exposure timing in the non-irradiated state closer to each other as in Fig. 8(B), the exposure interval may be shortened by increasing the frame rate for driving the photoelectric conversion unit 112. In other words, it is also possible to simply increase the frame rate in Fig. 8(A).

[0102] As described above in the first and second embodiments, by controlling the timing and duration of exposure when the pattern light is irradiated and when it is not irradiated, it is possible to easily extract only the pattern light component from the difference image and suppress deterioration in distance measurement accuracy.

[0103] Although the present invention has been described in detail based on the preferred embodiments, the present invention is not limited to the above embodiments, and various modifications are possible based on the spirit of the present invention, and are not excluded from the scope of the present invention. The above embodiments include the following combinations.

[0104] (Configuration 1) A distance measuring system comprising: a pattern light irradiation means for irradiating a predetermined pattern light onto an object; an imaging means for imaging the object; an interference determination means for determining whether or not there is interference of disturbance light with the pattern light; a distance measuring means for calculating a distance to the object based on a characteristic amount of the pattern light in a difference between a first image in an irradiation state by the pattern light irradiation means and a second image in a non-irradiation state when the interference determination means determines that there is interference of the disturbance light; a movement amount calculation means for calculating a movement amount of the object; and a control means for controlling the timing of imaging the first image and the second image by the imaging means based on the movement amount.

[0105] (Configuration 2) The distance measuring system according to configuration 1, wherein a threshold value for determining the presence or absence of the disturbance light by the interference determination means is changed according to the emission intensity of the pattern light irradiation means.

[0106] (Configuration 3) The distance measuring system described in configuration 1 or 2, characterized in that when the amount of movement is equal to or greater than a predetermined threshold, the control means controls the imaging interval between the first image and the second image to be shorter than a predetermined value.

[0107] (Configuration 4) A ranging system described in any one of configurations 1 to 3, characterized in that when the amount of movement is equal to or greater than a predetermined threshold, the control means controls the imaging time of the first image and the second image to be shorter than a predetermined value.

[0108] (Configuration 5) A distance measuring system described in any one of configurations 1 to 4, characterized in that when the amount of movement is equal to or greater than a predetermined threshold, the control means controls the imaging time of the first image and the second image to be shorter than a predetermined value, and increases the irradiation intensity of the pattern light irradiated by the pattern light irradiation means.

[0109] (Method) A distance measuring method comprising: a pattern light irradiation step of irradiating a predetermined pattern light onto an object; an imaging step of imaging the object; an interference determination step of determining whether or not there is interference of disturbance light with the pattern light; a distance measuring step of calculating a distance to the object based on a characteristic amount of the pattern light in the difference between a first image in an irradiated state by the pattern light irradiation step and a second image in a non-irradiated state when the interference determination step determines that there is interference of the disturbance light; a movement amount calculation step of calculating an amount of movement of the object; and a control step of controlling the timing of imaging the first image and the second image by the imaging step based on the movement amount.

[0110] (Program) A computer program for controlling each means of the distance measuring system according to any one of configurations 1 to 5 by a computer.

[0111] In order to realize a part or all of the control in the above-mentioned embodiment, a computer program for realizing the functions of the above-mentioned embodiment may be supplied to a distance measuring system or the like via a network or various storage media. Then, a computer (or a CPU, MPU, or the like) in the distance measuring system or the like may read and execute the program. In this case, the program and the storage medium storing the program constitute the present invention. [Explanation of symbols]

[0112] 101: Pattern light irradiation means 102: Imaging means 103: Interference determination means 104: Distance measurement means 105: Storage means 106: Moving object determination means 107: Movement amount calculation means 108: System control means 109: Light source section 110: Pattern generation section 111: Lens 112: Photoelectric conversion unit 113: A / D conversion section

Claims

1. A pattern light irradiation means for irradiating a target object with a predetermined pattern light; An imaging means for imaging the object; an interference determination means for determining whether or not there is interference of disturbance light with the pattern light; When the interference determination means determines that there is interference of the disturbance light, a distance measuring means for calculating a distance to the object based on a feature amount of the pattern light in a difference between a first image in a state where the pattern light is irradiated by the pattern light irradiating means and a second image in a state where the pattern light is not irradiated; A movement amount calculation means for calculating a movement amount of the object; a control means for controlling a timing of capturing the first image and the second image by the imaging means based on the amount of movement; A ranging system comprising:

2. 2. The distance measuring system according to claim 1, wherein a threshold value for determining the presence or absence of the disturbance light by said interference determining means is changed according to the emission intensity of said pattern light emitting means.

3. 2. The distance measuring system according to claim 1, wherein the control means controls the imaging interval between the first image and the second image so as to be shorter than a predetermined value when the amount of movement is equal to or greater than a predetermined threshold value.

4. 2. The distance measuring system according to claim 1, wherein the control means controls the imaging time of the first image and the second image so as to be shorter than a predetermined value when the amount of movement is equal to or greater than a predetermined threshold value.

5. The distance measurement system according to claim 1, characterized in that, when the amount of movement is equal to or greater than a predetermined threshold, the control means controls the imaging time of the first image and the second image to be shorter than a predetermined value, and increases the irradiation intensity of the pattern light irradiated by the pattern light irradiation means.

6. A pattern light irradiation step of irradiating a predetermined pattern light onto an object; an imaging step of imaging the object; an interference determination step of determining whether or not there is interference of disturbance light with the pattern light; When it is determined that there is interference of the disturbance light in the interference determination step, a distance measuring step of calculating a distance to the object based on a feature amount of the pattern light in a difference between a first image in an irradiated state by the pattern light irradiating step and a second image in a non-irradiated state; A movement amount calculation step of calculating a movement amount of the object; a control step of controlling timing of capturing the first image and the second image in the imaging step based on the amount of movement; A distance measuring method comprising the steps of:

7. A computer program for controlling each unit of the distance measuring system according to any one of claims 1 to 5 by a computer.

Citation Information

Patent Citations

  • Distance measuring sensor and distance measuring method

    JP2022053871A