Electronic apparatus, distance measuring method, and distance measuring program
The electronic device improves distance measurement accuracy by using multiple imaging units to perform triangulation and motion stereo, enhancing precision on diverse road surfaces.
Patent Information
- Application Number
- JP2023048868
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-24
- Publication Date
- 2024-10-07
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Conventional distance measurement techniques from a moving object to a target lack accuracy.
An electronic device equipped with multiple imaging units facing different directions performs triangulation in a common field of view to measure distance using motion stereo, calculating the baseline length through triangulation and integrating information from multiple angles to enhance accuracy.
The device achieves highly accurate distance measurement on various road surfaces, including uneven terrain, without requiring expensive sensors like LiDAR, by combining triangulation with motion stereo to calculate depth distances with improved precision.
Smart Images

Figure 2024137371000001_ABST
Abstract
Description
[Technical field]
[0001] The present disclosure relates to an electronic device, a distance measuring method, and a distance measuring program. [Background technology]
[0002] Conventionally, there is known a distance measurement technique that measures the distance from a moving body such as a vehicle to an object using an imaging unit such as a camera arranged in the moving body. For example, Patent Document 1 discloses a stereo camera system and a distance measurement method that reduce the processing load for distance measurement by the stereo camera. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] Patent Publication No. 2020-190925 Summary of the Invention [Problem to be solved by the invention]
[0004] However, in the conventional technology, there is room for improvement in the accuracy of measuring the distance from a moving body to a target.
[0005] An object of the present disclosure is to provide an electronic device, a distance measuring method, and a distance measuring program that can improve the accuracy of measuring the distance from a moving body to a target. [Means for solving the problem]
[0006] According to a first aspect of the present invention, there is provided an electronic device comprising: An imaging unit that is disposed on the moving body and includes a first imaging unit and a second imaging unit that face in different directions; a control unit that performs triangulation in a common field of view of the two imaging units and measures a distance to an object by motion stereo from a moving distance of the imaging units obtained based on the triangulation; Equipped with.
[0007] The distance measurement method according to the second aspect is as follows: A step of performing triangulation in a common field of view of an imaging unit including a first imaging unit and a second imaging unit that are disposed on a moving body and face in different directions; measuring a distance to an object by motion stereo from a moving distance of the imaging unit obtained based on the triangulation; Includes.
[0008] The third perspective of the ranging program is For electronic devices, A step of performing triangulation in a common field of view of an imaging unit including a first imaging unit and a second imaging unit that are disposed on a moving body and face in different directions; measuring a distance to an object by motion stereo from a moving distance of the imaging unit obtained based on the triangulation; The method executes an operation including: Effect of the Invention
[0009] According to the present disclosure, it is possible to provide an electronic device, a distance measurement method, and a distance measurement program that can improve the accuracy of measuring the distance from a moving body to a target. [Brief description of the drawings]
[0010] [Figure 1] 1 is a schematic diagram showing distance measurement performed by a moving object having an electronic device according to an embodiment of the present disclosure; [Diagram 2] FIG. 1 is a block diagram showing an example of a configuration of an electronic device according to an embodiment of the present disclosure. [Diagram 3] FIG. 3 is a first diagram for explaining an example of processing performed by the electronic device of FIG. 2. [Figure 4] FIG. 2 is a second diagram for explaining an example of processing by the electronic device of FIG. [Diagram 5] FIG. 3 is a third diagram for explaining an example of processing by the electronic device of FIG. [Figure 6] FIG. 4 is a fourth diagram for explaining an example of processing by the electronic device of FIG. [Figure 7]FIG. 5 is a fifth diagram for explaining an example of processing by the electronic device of FIG. [Figure 8] 3 is a flowchart illustrating an example of an operation of the electronic device of FIG. 2. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0011] Hereinafter, an embodiment of the present disclosure will be mainly described with reference to the accompanying drawings. The following description also applies to a distance measuring method and a distance measuring program to which the present disclosure is applied.
[0012] Fig. 1 is a schematic diagram showing distance measurement by a moving object 1 having an electronic device 10 according to an embodiment of the present disclosure. Fig. 2 is a block diagram showing an example of a configuration of the electronic device 10 according to an embodiment of the present disclosure. With reference to Figs. 1 and 2, a description will be mainly given of the configuration of the moving object 1 and the electronic device 10 possessed by the moving object 1, and an example of distance measurement by the electronic device 10 possessed by the moving object 1.
[0013] The electronic device 10 according to an embodiment of the present disclosure is mounted on, for example, a moving body 1. In the present disclosure, the "moving body 1" includes vehicles, ships, aircraft, drones, and the like. The "vehicles" include automobiles, industrial vehicles, railroad vehicles, lifestyle vehicles, and fixed-wing aircraft that run on runways. The "automobiles" include passenger cars, trucks, buses, motorcycles, trolley buses, and the like. The "industrial vehicles" include industrial vehicles for agriculture and construction, and the like. The industrial vehicles include forklifts and golf carts, and the like. The industrial vehicles for agriculture include tractors, cultivators, transplanters, binders, combines, and lawnmowers, and the like. The industrial vehicles for construction include bulldozers, scrapers, excavators, crane vehicles, dump trucks, and road rollers, and the like. The vehicles include those that run by automatic driving, those that run based on the driving by a driver, and those that run by human power. The classification of the vehicles is not limited to the above-mentioned examples. For example, the automobile may include industrial vehicles that can run on roads. The same vehicle may be included in multiple classifications. "Ships" include passenger ships, marine jets, boats, and tankers, etc. "Aircraft" include fixed-wing aircraft and rotorcraft, etc. "Drones" include drones for flying and underwater transportation, etc.
[0014] 2, the electronic device 10 includes a first imaging section 111, a second imaging section 112, a third imaging section 113, and a fourth imaging section 114, a storage section 12, and a control section 13. Hereinafter, when the first imaging section 111, the second imaging section 112, the third imaging section 113, and the fourth imaging section 114 are not distinguished from one another, they are referred to as "imaging section 11." The first imaging section 111, the second imaging section 112, the third imaging section 113, and the fourth imaging section 114 are disposed in the moving object 1.
[0015] The first imaging unit 111 faces the moving object 1 in a first direction and captures a scene in the first direction. The first imaging unit 111 outputs the captured scene to the control unit 13 as a first image. In the present disclosure, the "first image" includes, for example, at least one still image and a video including a plurality of still images successively as frames. The first imaging unit 111 includes, for example, a first camera. The first camera includes a monocular camera having a fisheye lens. Without being limited thereto, the first camera may include a monocular camera having a viewing angle of 180° to nearly 360° by an ultra-wide-angle lens other than a fisheye lens. The first camera may include a monocular camera having a wide-angle lens. The first camera may include any other monocular camera having a viewing angle capable of forming a common viewing field V between adjacent cameras, which will be described later with reference to FIG. 1. In addition, the first camera is not limited to a monocular camera, and may include a compound-eye camera.
[0016] The second imaging unit 112 faces the moving object 1 in a second direction and captures a scene in the second direction. The second imaging unit 112 outputs the captured scene to the control unit 13 as a second image. In the present disclosure, the "second image" includes, for example, at least one still image and a video including a plurality of still images successively as frames. The second imaging unit 112 includes, for example, a second camera. The second camera includes a monocular camera having a fisheye lens. Without being limited thereto, the second camera may include a monocular camera having a viewing angle of 180° to nearly 360° by an ultra-wide-angle lens other than a fisheye lens. The second camera may include a monocular camera having a wide-angle lens. The second camera may include any other monocular camera having a viewing angle capable of forming a common field of view V between adjacent cameras. In addition, the second camera is not limited to a monocular camera and may include a compound eye camera.
[0017] The third imaging unit 113 faces the moving object 1 in the third direction and captures a scene in the third direction. The third imaging unit 113 outputs the captured scene to the control unit 13 as a third image. In the present disclosure, the "third image" includes, for example, at least one still image and a video including a plurality of still images successively as frames. The third imaging unit 113 includes, for example, a third camera. The third camera includes a monocular camera having a fisheye lens. Without being limited thereto, the third camera may include a monocular camera having a viewing angle of 180° to nearly 360° by an ultra-wide-angle lens other than a fisheye lens. The third camera may include a monocular camera having a wide-angle lens. The third camera may include any other monocular camera having a viewing angle capable of forming a common field of view V between adjacent cameras. In addition, the third camera is not limited to a monocular camera and may include a compound eye camera.
[0018] The fourth imaging unit 114 faces the moving object 1 in a fourth direction and captures a scene in the fourth direction. The fourth imaging unit 114 outputs the captured scene to the control unit 13 as a fourth image. In the present disclosure, the "fourth image" includes, for example, at least one still image and a video including a plurality of still images successively as frames. The fourth imaging unit 114 includes, for example, a fourth camera. The fourth camera includes a monocular camera having a fisheye lens. Without being limited thereto, the fourth camera may include a monocular camera having a viewing angle of 180° to nearly 360° by an ultra-wide-angle lens other than a fisheye lens. The fourth camera may include a monocular camera having a wide-angle lens. The fourth camera may include any other monocular camera having a viewing angle capable of forming a common field of view V between adjacent cameras. In addition, the fourth camera is not limited to a monocular camera and may include a compound eye camera.
[0019] The storage unit 12 includes storage devices such as a hard disk drive (HDD), a solid state drive (SSD), an electrically erasable programmable read-only memory (EEPROM), a read-only memory (ROM), and a random access memory (RAM). The storage unit 12 stores information necessary to realize the operation of the electronic device 10. The storage unit 12 stores information obtained by the operation of the electronic device 10. For example, the storage unit 12 stores system programs, application programs, and various data obtained by any means such as communication.
[0020] The storage unit 12 may function as a main storage device, an auxiliary storage device, or a cache memory. The storage unit 12 is not limited to being built into the electronic device 10, and may be an external storage device connected via a digital input / output port such as a Universal Serial Bus (USB).
[0021] The control unit 13 includes one or more processors. In the present disclosure, a "processor" refers to, but is not limited to, a general-purpose processor or a dedicated processor specialized for a specific process. The control unit 13 is communicably connected to each component constituting the electronic device 10, and controls the operation of the entire electronic device 10. For example, the control unit 13 may constitute a part of an ECU (Electronic Control Unit) of the moving object 1 as a vehicle.
[0022] 1, four imaging units 11 including a first imaging unit 111, a second imaging unit 112, a third imaging unit 113, and a fourth imaging unit 114 are disposed on a moving body 1 and face in different directions. For example, when the moving body 1 includes a vehicle, the first imaging unit 111, the second imaging unit 112, the third imaging unit 113, and the fourth imaging unit 114 are disposed so as to face in four directions, namely, front, rear, left, and right, of the vehicle.
[0023] As an example, the first direction in which the first imaging unit 111 faces from the moving object 1 corresponds to the forward direction. The second direction in which the second imaging unit 112 faces from the moving object 1 corresponds to the rightward direction. The third direction in which the third imaging unit 113 faces from the moving object 1 corresponds to the backward direction. The fourth direction in which the fourth imaging unit 114 faces from the moving object 1 corresponds to the leftward direction. The four cameras included in each of the four imaging units 11 form an all-around camera in the moving object 1.
[0024] Each of the first camera of the first imaging section 111, the second camera of the second imaging section 112, the third camera of the third imaging section 113, and the fourth camera of the fourth imaging section 114 has a viewing angle close to 180°. Due to the wide viewing angle of each camera, a common field of view V is formed by a pair of cameras adjacent to each other. For example, a first common field of view V1 is formed in the pair of the first imaging section 111 and the second imaging section 112. For example, a second common field of view V2 is formed in the pair of the second imaging section 112 and the third imaging section 113. For example, a third common field of view V3 is formed in the pair of the third imaging section 113 and the fourth imaging section 114. For example, a fourth common field of view V4 is formed in the pair of the fourth imaging section 114 and the first imaging section 111.
[0025] The electronic device 10 possessed by the moving body 1 detects an object S present in front of the moving body 1 in the moving direction and an object S present in another direction, and supports the movement of the moving body 1. In this disclosure, the "object S" includes objects, people such as pedestrians, and other moving bodies moving around the moving body 1. The electronic device 10 notifies an operator who is operating the movement of the moving body 1 of information related to the detected object S. For example, the electronic device 10 measures the distance between the detected object S and the moving body 1, and predicts the risk of collision between the object S and the moving body 1 according to the distance. The electronic device 10 notifies the operator of the risk of collision and executes a warning process.
[0026] The electronic device 10 performs a highly accurate distance measurement process by motion stereo using each camera by performing a triangulation process using a pair of imaging units 11 having a common field of view V. An example of the process performed by the electronic device 10 will be described in more detail below.
[0027] Fig. 3 is a first diagram for explaining an example of processing by the electronic device 10 of Fig. 2. The control unit 13 of the electronic device 10 generates a parallax image from a pair of frame images having a chronological relationship, for example, by using each camera constituting a panoramic camera in the moving object 1. In the following, the generation process of the parallax image will be explained by taking the second camera of the second imaging unit 112 as an example, but the same explanation applies to the other imaging units 11.
[0028] Fig. 3(a) is a schematic diagram showing an example of a frame image at time t. Fig. 3(b) is a schematic diagram showing an example of a frame image at time t-1. The two schematic diagrams shown in Fig. 3 show, as an example, the state of a second image captured by the second camera of the second imaging unit 112 disposed on the right side of the moving object 1 and facing in the right direction.
[0029] The moving object 1 moves forward at a predetermined speed. Therefore, the four imaging units 11 arranged on the moving object 1 also change their positions over time in accordance with the movement of the moving object 1. For example, the second imaging unit 112 also changes its position as time passes from time t-1 to time t. As a result, the frame image at time t-1 and the frame image at time t are captured from different imaging positions for the second imaging unit 112. Parallax occurs between these frame images.
[0030] The control unit 13 of the electronic device 10 generates a parallax image of two frame images based on a frame image at time t-1 and a frame image at time t. The control unit 13 generates the parallax image in motion stereo using any method such as a stereo matching method or a plane sweep method.
[0031] The control unit 13 calculates the depth distance Z from the parallax D included in the generated parallax image based on the following formula 1.
number
[0032] In the present disclosure, the "parallax D" is, for example, the amount of movement on an image of a predetermined corresponding point of the target S that occurs between a frame image at time t and a frame image at time t-1, converted into a physical distance in real space. The parallax D is converted from the pixel difference for a predetermined corresponding point between the above two frame images into a physical distance by multiplying a coefficient based on information such as pixel size for each pixel. The "depth distance Z" is, for example, the distance from a camera included in the imaging unit 11 to a predetermined corresponding point of the target S along the optical axis of the camera.
[0033] In motion stereo, the control unit 13 needs to obtain the base line length B, focal length f, and parallax D as information to calculate the depth distance Z according to the above formula 1, but it is not easy to calculate the base line length B as an absolute distance from an image. Therefore, with motion stereo alone, the value of the base line length B is unknown, and it is not easy to accurately calculate the depth distance Z.
[0034] Therefore, the control unit 13 performs triangulation in the common field of view V of at least one set of the four imaging units 11, and calculates the base length B as the movement distance of the imaging units 11 based on the triangulation. The control unit 13 measures the distance to the target S by motion stereo from the movement distance of the imaging units 11 obtained based on the triangulation. The following mainly describes the calculation process of the base length B using triangulation.
[0035] Fig. 4 is a second diagram for explaining an example of processing by the electronic device 10 of Fig. 2. In the following, the calculation processing of the base line length B based on triangulation will be explained using a pair of the first camera of the first imaging unit 111 and the second camera of the second imaging unit 112 as an example, but the same explanation is also applicable to other pairs of imaging units 11.
[0036] Fig. 4(a) is a schematic diagram showing an example of a first image captured by a first camera of the first imaging unit 111 facing forward in the moving object 1. Fig. 4(b) is a schematic diagram showing an example of a second image captured by a second camera of the second imaging unit 112 facing right in the moving object 1. The two images shown as schematic diagrams in Fig. 4 were captured simultaneously at a predetermined timing while the moving object 1 was moving.
[0037] As described above, in the panoramic cameras mounted on the moving body 1, there exists an area where the fields of view of adjacent cameras overlap as a common field of view V. When executing the triangulation process, the control unit 13 detects corresponding points P i For example, the control unit 13 calculates a corresponding point P from the first common field of view V1 between the first image captured by the first camera of the first imaging unit 111 and the second image captured by the second camera of the second imaging unit 112. i The control unit 13 calculates the calculated corresponding point P i The triangulation process is performed based on the above.
[0038] Fig. 5 is a third diagram for explaining an example of processing by the electronic device 10 of Fig. 2. In the triangulation processing executed by the control unit 13, the following calculation is performed. For example, in Fig. 5, the distance L between the first camera of the first imaging unit 111 and the second camera of the second imaging unit 112 is expressed by the following formula 2.
[0039]
number
[0040] By transforming Equation 2, the depth distance Z' is calculated as Equation 3 below.
number
[0041] On the other hand, the control unit 13 detects a corresponding point P i The depth distance Z to the target is calculated using the following formula based on Z' calculated by triangulation.
number
[0042] The control unit 13 detects all the corresponding points P i The same calculation process is performed for each corresponding point P i Depth distance Zi The control unit 13 executes a similar calculation process for the first camera of the first imaging unit 111 adjacent to the second camera of the second imaging unit 112. The control unit 13 calculates the corresponding points P i Depth distance Z to i Calculate.
[0043] Each corresponding point P i is the disparity D that can be obtained from the disparity image. i and the depth distance Z obtained by triangulation. i Therefore, the baseline length B i is calculated.
[0044] The control unit 13 detects the corresponding points P in the common visual field V generated by the above-mentioned motion stereo. i The disparity D in the disparity image containing i and the corresponding point P i Depth distance Z to i Based on the above, the baseline length B i As the moving distance of the imaging unit 11, for example, the control unit 13 calculates the parallax D i and the corresponding point P from the second camera obtained by triangulation. i Depth distance Z to i Based on this, the baseline length B is calculated using the following formula 6. i Calculate.
[0045]
number
[0046] 6 is a fourth diagram for explaining an example of the process performed by the electronic device 10 of FIG. i In order to exclude the outlier M2, multiple corresponding points P i The calculated baseline length B i The moving distance of the imaging unit 11 used to measure the distance to the target S is finally calculated by statistical processing based on the mode M1.
[0047] For example, as shown in FIG. 6, the control unit 13 may calculate a plurality of baseline lengths B i For each of the corresponding points P i The control unit 13 removes the outlier M2 and calculates the remaining baseline length B around the mode M1. i Calculate the average value.
[0048] The control unit 13 uses the calculated average value as the final base line length B, i.e., the movement distance of the imaging unit 11, in the processing of distance measurement by motion stereo. The control unit 13 calculates the depth distance Z based on the average value and the parallax D in the parallax image according to Equation 1. This enables the control unit 13 to generate an accurate depth image over the entire field of view of the camera of a given imaging unit 11, and to measure the distance to all targets S present in the depth image.
[0049] 7 is a fifth diagram for explaining an example of processing by the electronic device 10 of FIG. 2. In the above description, the base line length B is calculated based on statistical processing in one camera, but this is not limited to this. The control unit 13 calculates the base line lengths B iThe moving distance of the imaging unit 11 used for measuring the distance to the target S may be finally calculated by statistical processing based on the mode M1.
[0050] Baseline length B calculated by formula 6 i is the distance the image capturing unit 11 moves in accordance with the movement of the moving object 1, and therefore, ideally, it should be the same value for all cameras. However, for example, in a nighttime scene, the front of the moving object 1 is illuminated by lighting, and the corresponding points P i However, the other common view V is dark, so the corresponding point P i It may not be easy to calculate the corresponding points P. This makes it more susceptible to the effects of erroneous matching, making it difficult to calculate the movement distance of the imaging unit 11. As a result, it may not be easy to measure the distance to the target S by motion stereo. Even in scenes other than at night, it may be difficult to detect the corresponding points P for all four cameras constituting the omnidirectional camera. i However, it may not be easy to obtain sufficient
[0051] Therefore, assuming the above-mentioned cases, the control unit 13 calculates the corresponding points P i Baseline length B corresponding to i For example, as shown in FIG. 7B, the control unit 13 may calculate information on the movement distance of the entire imaging unit 11 in the moving object 1 in an integrated manner by integrating and calculating the base lengths B i For each of the corresponding points P i The control unit 13 removes the outlier M2 and calculates the remaining baseline length B around the mode M1. i The mode M1 shown in FIG. 7B is calculated by averaging the multiple baseline lengths B i It appears statistically more clearly compared to the mode M1 of the histogram for .
[0052] The control unit 13 uses the calculated average value as the final base line length B, i.e., the movement distance of the imaging unit 11, in the processing of distance measurement by motion stereo. As described above, the control unit 13 may perform triangulation in the common fields of view V of multiple sets of imaging units 11 out of the four imaging units 11, and measure the distance to the target S by motion stereo from the movement distance of the imaging units 11 obtained based on the triangulation.
[0053] Fig. 8 is a flowchart illustrating an example of the operation of the electronic device 10 of Fig. 2. With reference to Fig. 8, an example of the process of the distance measuring method executed by the electronic device 10 will be described.
[0054] In step S100, the control unit 13 of the electronic device 10 captures an image using the imaging unit 11. The control unit 13 stores the image captured using the imaging unit 11 in the storage unit 12 as information.
[0055] In step S101, the control unit 13 of the electronic device 10 generates a parallax image between a frame image at time t-1 and a frame image at time t, based on the images captured in step S100.
[0056] In step S102, the control unit 13 of the electronic device 10 executes triangulation in the common fields of view V of at least one set of the four imaging units 11 facing in different directions.
[0057] In step S103, the control unit 13 of the electronic device 10 detects the corresponding point P from the imaging unit 11 based on the triangulation performed in step S102. i Depth distance Z to i Calculate.
[0058] In step S104, the control unit 13 of the electronic device 10 calculates the parallax D i and the depth distance Z obtained in step S103 by the triangulation in step S102. i Based on this, the moving distance of the imaging unit 11 is calculated as the base line length B i It is calculated as follows.
[0059] In step S105, the control unit 13 of the electronic device 10 measures the distance to the target S by motion stereo from the movement distance of the imaging unit 11 obtained in step S104.
[0060] According to the electronic device 10 of the embodiment described above, it is possible to improve the accuracy of distance measurement from the moving body 1 to the target S. The electronic device 10 performs triangulation in each common field of view V of at least one set of imaging units 11, and measures the distance to the target S by motion stereo from the obtained moving distance of the imaging units 11. As a result, unlike distance measurement by a conventional monocular camera, the electronic device 10 can accurately measure the distance to the target S even on an uneven road surface other than flat ground, such as a dirt road. The electronic device 10 can realize high-precision distance measurement that does not depend on the road surface condition. By performing triangulation in addition to motion stereo, the electronic device 10 can accurately calculate the base length B required for calculating the depth distance Z in motion stereo as the moving distance of the imaging units 11. As a result, the electronic device 10 can accurately calculate the depth distance Z in motion stereo.
[0061] The electronic device 10 detects the parallax D in the parallax image. i and the depth distance Z obtained by triangulation i By calculating the movement distance of the imaging unit 11 based on the above, it is possible to accurately calculate the base length B required for calculating the depth distance Z in motion stereo. Therefore, the electronic device 10 can accurately calculate the depth distance Z in motion stereo.
[0062] The electronic device 10 detects a plurality of corresponding points P i The moving distance of the imaging unit 11 used for measuring the distance to the target S is calculated by statistical processing based on the most frequent value M1 of the moving distance of the imaging unit 11 calculated for the baseline length B i Therefore, the electronic device 10 can more easily distinguish the outlier M2 that occurs as noise due to erroneous matching. iBy calculating the mode M1, it becomes possible to more accurately calculate the movement distance of the imaging unit 11 used to measure the distance to the target S. As a result, the electronic device 10 can more accurately calculate the depth distance Z in motion stereo.
[0063] The electronic device 10 is disposed on the moving object 1 and further includes a third imaging unit 113 facing a direction different from the first imaging unit 111 and the second imaging unit 112, thereby enabling distance measurement of the target S over a wider range around the moving object 1 compared to a case in which the electronic device 10 has two imaging units 11. The electronic device 10 can also increase the number of combinations of the imaging units 11 that form the common field of view V. In other words, the electronic device 10 can also increase the number of combinations of the imaging units 11 that perform triangulation in the common field of view V.
[0064] The electronic device 10 performs triangulation in the common field of view V of the plurality of sets of the three imaging units 11, and measures the distance to the target S by motion stereo from the moving distance of the imaging units 11 obtained based on the triangulation. This allows the electronic device 10 to further improve the accuracy of measuring the distance from the moving body 1 to the target S. Unlike distance measurement using a conventional monocular camera, the electronic device 10 can measure the distance to the target S with high accuracy even on uneven road surfaces other than flat ground, such as dirt. The electronic device 10 can achieve high-precision distance measurement that does not depend on the road surface condition. The electronic device 10 performs triangulation using the plurality of sets of the imaging units 11 in addition to motion stereo, and can therefore accurately calculate the base length B required for calculating the depth distance Z in the motion stereo as the moving distance of the imaging units 11 from multiple angles. As a result, the electronic device 10 can more accurately calculate the depth distance Z in the motion stereo.
[0065] The electronic device 10 calculates the moving distance of the imaging unit 11 used for measuring the distance to the target S by statistical processing based on the most frequent value M1 of the moving distance of the imaging unit 11 calculated for each of the multiple common fields of view V in the multiple sets of imaging units 11. iTherefore, the electronic device 10 can more easily discriminate the outlier M2 that occurs as noise due to erroneous matching. i By calculating the mode M1 of the distances, the moving distance of the image capturing unit 11 used for measuring the distance to the target S can be calculated with higher accuracy. As a result, the electronic device 10 can calculate the depth distance Z more accurately in the motion stereo. For example, the electronic device 10 can detect the corresponding points P i Baseline length B i Even in cases where it is difficult to calculate the baseline length B i It is also possible to complement
[0066] The electronic device 10 can realize high-precision distance measurement all around the vehicle by configuring an all-around sensing system with the first imaging unit 111, the second imaging unit 112, and the third imaging unit 113 being arranged so as to face either the front, rear, left or right direction of the vehicle. The electronic device 10 can achieve such an effect more prominently by arranging the four imaging units 11 so as to face the four directions of the front, rear, left and right of the vehicle. The electronic device 10 can realize high-precision distance measurement all around the vehicle without blind spots. The electronic device 10 can realize high-precision distance measurement only with a general-purpose vehicle-mounted camera without requiring an expensive sensor such as LiDAR (Light Detection And Ranging). The electronic device 10 can also realize high-precision distance measurement by following a conventional general all-around sensing system.
[0067] Although the present disclosure has been described based on the drawings and embodiments, it should be noted that those skilled in the art can make various modifications and alterations based on the present disclosure. Therefore, it should be noted that these modifications and alterations are included in the scope of the present disclosure. For example, the functions included in each configuration or each step can be rearranged so as not to be logically inconsistent, and multiple configurations or steps can be combined or divided into one.
[0068] For example, the shape, size, arrangement, orientation, number, etc. of each of the above-mentioned components are not limited to the above description and the contents illustrated in the drawings. The shape, size, arrangement, orientation, number, etc. of each of the components may be configured arbitrarily as long as the function can be realized.
[0069] For example, a general-purpose terminal device such as a smartphone or a computer can function as a part of the electronic device 10 according to the embodiment described above. Specifically, a program describing the processing contents for realizing each function of the electronic device 10 according to the embodiment is stored in a memory of the terminal device, and the program is read and executed by a processor of the terminal device. Therefore, the present disclosure can also be realized as a distance measurement program executable by a processor.
[0070] Alternatively, the present disclosure may be realized as a non-transitory computer-readable medium storing a distance measurement program executable by one or more processors to cause the electronic device 10 according to an embodiment to execute each function. It should be understood that these are also included within the scope of the present disclosure.
[0071] In the above embodiment, the electronic device 10 is described as having four imaging units 11, further including a fourth imaging unit 114 that is arranged on the moving object 1 and faces a different direction from the three imaging units 11, but is not limited thereto. The electronic device 10 may have three imaging units 11, including a first imaging unit 111, a second imaging unit 112, and a third imaging unit 113, that are arranged on the moving object 1 and face different directions from each other. In this case, the control unit 13 of the electronic device 10 may perform triangulation in the common field of view V of at least one set of the imaging units 11 among the three imaging units 11, and measure the distance to the target S by motion stereo from the moving distance of the imaging units 11 obtained based on the triangulation.
[0072] The electronic device 10 is not limited to a configuration having three imaging units 11 or four imaging units 11, and may have two imaging units 11, or may have five or more imaging units 11.
[0073] In the above embodiment, the electronic device 10 detects the corresponding point P i The disparity D in the disparity image containing i and the corresponding point P i Depth distance Z to i However, the electronic device 10 may use any other method to calculate the base length B required for calculating the depth distance Z in the motion stereo, that is, the moving distance of the imaging unit 11.
[0074] In the above embodiment, the electronic device 10 detects a plurality of corresponding points P i In the above description, the moving distance of the imaging unit 11 used for measuring the distance to the target S is calculated by statistical processing based on the most frequent value M1 of the moving distance of the imaging unit 11 calculated for, but the present invention is not limited to this. The electronic device 10 does not have to execute such statistical processing.
[0075] In the above embodiment, the electronic device 10 calculates the moving distance of the imaging unit 11 used for measuring the distance to the target S by statistical processing based on the most frequent value M1 of the moving distance of the imaging unit 11 calculated in each of the multiple common fields of view V in the multiple sets of imaging units 11. However, the present invention is not limited to this. The electronic device 10 does not have to execute such statistical processing.
[0076] In the above embodiment, the first imaging unit 111, the second imaging unit 112, the third imaging unit 113, and the fourth imaging unit 114 are arranged in the electronic device 10 so as to face four directions, namely, front, rear, left and right, of the vehicle, but are not limited thereto. The four imaging units 11 do not have to be arranged so as to be able to measure distances all around the vehicle, and may be arranged so as to be able to measure distances only in a part of the all around the vehicle.
[0077] Some of the embodiments of the present disclosure will be described below as examples. However, it should be noted that the embodiments of the present disclosure are not limited to these examples. [Appendix 1] An imaging unit that is disposed on the moving body and includes a first imaging unit and a second imaging unit that face in different directions; a control unit that performs triangulation in a common field of view of the two imaging units and measures a distance to an object by motion stereo from a moving distance of the imaging units obtained based on the triangulation; Equipped with electronic equipment. [Appendix 2] 13. The electronic device according to claim 1, the control unit calculates the movement distance based on a parallax in a parallax image including the corresponding point in the common field of view generated by the motion stereo and a depth distance from the imaging unit to the corresponding point obtained by the triangulation. electronic equipment. [Appendix 3] 3. The electronic device according to claim 2, the control unit calculates the movement distance used for measuring the distance to the object by statistical processing based on a mode value of the movement distances calculated for the plurality of corresponding points. electronic equipment. [Appendix 4] An electronic device according to any one of claims 1 to 3, The imaging unit, Further including a third imaging unit disposed on the moving body and facing in a direction different from the first imaging unit and the second imaging unit. electronic equipment. [Appendix 5] 5. The electronic device according to claim 4, The control unit performs triangulation in a common field of view of each of the plurality of sets of the imaging units among the three imaging units, and measures the distance to the object by motion stereo from the movement distance obtained based on the triangulation. electronic equipment. [Appendix 6] 6. The electronic device according to claim 5, the control unit calculates the moving distance used for measuring the distance to the object by statistical processing based on a mode of the moving distances calculated in a plurality of common fields of view in a plurality of sets of the imaging units. electronic equipment. [Appendix 7] An electronic device according to any one of Supplementary Notes 4 to 6, the moving object includes a vehicle, The first imaging unit, the second imaging unit, and the third imaging unit are each arranged to face any one of the front, rear, left, and right directions of the vehicle. electronic equipment. [Appendix 8] A step of performing triangulation in a common field of view of an imaging unit including a first imaging unit and a second imaging unit that are disposed on a moving body and face in different directions; measuring a distance to an object by motion stereo from a moving distance of the imaging unit obtained based on the triangulation; Including, Distance measurement method. [Appendix 9] For electronic devices, A step of performing triangulation in a common field of view of an imaging unit including a first imaging unit and a second imaging unit that are disposed on a moving body and face in different directions; measuring a distance to an object by motion stereo from a moving distance of the imaging unit obtained based on the triangulation; performing an action including Ranging program. [Explanation of symbols]
[0078] 1. Mobile 10 Electronic equipment 11 Imaging unit 111 First imaging unit 112 Second imaging unit 113 Third Imaging Unit 114 4th Imaging Unit 12 Storage section 13 Control section B, B i Baseline Length D, D i parallax f focal length M1 Mode M2 outliers P i Corresponding points S Target V Common Field of View V1 First common field of view V2 Second common field of view V3 Third common field of view V4 4th common field of view Z, Z i , Z' depth distance
Claims
1. An imaging unit that is disposed on the moving body and includes a first imaging unit and a second imaging unit that face in different directions; a control unit that performs triangulation in a common field of view of the two imaging units and measures a distance to an object by motion stereo from a moving distance of the imaging units obtained based on the triangulation; Equipped with electronic equipment.
2. 2. The electronic device according to claim 1, the control unit calculates the movement distance based on a parallax in a parallax image including the corresponding point in the common field of view generated by the motion stereo and a depth distance from the imaging unit to the corresponding point obtained by the triangulation. electronic equipment.
3. 3. The electronic device according to claim 2, the control unit calculates the movement distance used for measuring the distance to the object by statistical processing based on a mode value of the movement distances calculated for the plurality of corresponding points. electronic equipment.
4. 4. The electronic device according to claim 1, The imaging unit, The imaging device further includes a third imaging unit that is disposed on the moving body and faces in a direction different from the first imaging unit and the second imaging unit. electronic equipment.
5. 5. The electronic device according to claim 4, The control unit performs triangulation in a common field of view of each of the plurality of sets of the imaging units among the three imaging units, and measures the distance to the object by motion stereo from the movement distance obtained based on the triangulation. electronic equipment.
6. 6. The electronic device according to claim 5, the control unit calculates the moving distance used for measuring the distance to the object by statistical processing based on a mode of the moving distances calculated in a plurality of common fields of view in a plurality of sets of the imaging units. electronic equipment.
7. 5. The electronic device according to claim 4, the moving object includes a vehicle, The first imaging unit, the second imaging unit, and the third imaging unit are each arranged to face any one of the front, rear, left, and right directions of the vehicle. electronic equipment.
8. A step of performing triangulation in a common field of view of an imaging unit including a first imaging unit and a second imaging unit that are disposed on a moving body and face in different directions; measuring a distance to an object by motion stereo from a moving distance of the imaging unit obtained based on the triangulation; Including, Distance measurement method.
9. For electronic devices, A step of performing triangulation in a common field of view of an imaging unit including a first imaging unit and a second imaging unit that are disposed on a moving body and face in different directions; measuring a distance to an object by motion stereo from a moving distance of the imaging unit obtained based on the triangulation; performing an operation including Ranging program.
Citation Information
Patent Citations
Stereo camera system and distance-measuring method
JP2020190925A
