Information processing apparatus, information processing method, and program

The information processing device for vehicles accurately estimates distances to road objects by measuring pixel counts and calculating road widths independent of pitch angle, addressing accuracy and cost issues in monocular camera systems.

JP2024153440APending Publication Date: 2024-10-29CANON KK

Patent Information

Application Number
JP2023067339
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-04-17
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

Existing distance measurement technologies using monocular cameras in vehicles face challenges in achieving accurate distance estimation due to uncertainties in pitch angle calculation, which can lead to unstable distance accuracy, and high computational demands that increase costs when using high-speed processing devices.

Method used

The system employs an information processing device that detects road and object areas in images, measures pixel counts, calculates actual road widths independent of pitch angle, and estimates distances using a method that minimizes pitch angle dependence, allowing for accurate and cost-effective distance measurement.

Benefits of technology

This approach enables stable and accurate distance estimation to road objects without relying on pitch angle accuracy, reducing computational complexity and maintaining cost-effectiveness.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024153440000001_ABST
    Figure 2024153440000001_ABST
Patent Text Reader

Abstract

To accurately acquire the distance to a distance measurement target on the road.SOLUTION: An information processing apparatus detects a distance measurement target captured in an image acquired by an imaging apparatus, and measures the number of pixels in a width direction of the road captured in the image. The information processing apparatus generates a plurality of pieces of width information from the plurality of distances to a plurality of points on the road corresponding to the coordinates in the image and the number of pixels in the width direction corresponding to each of the plurality of distances, and acquires the actual width of the road on the basis of the plurality of distances and the width information. The information processing apparatus acquires the distance from the imaging apparatus to the distance measurement target on the road on the basis of the actual width and the number of pixels in the width direction of the road.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to an information processing technique for measuring distance using an image. [Background technology]

[0002] Conventionally, there are various distance measurement technologies that use images captured by a camera mounted on a vehicle (hereinafter referred to as an on-board camera) to measure the distance from the vehicle to a measurement target (hereinafter referred to as an object) on the road. As one of these distance measurement technologies, a distance estimation technology that uses a monocular camera as the on-board camera, which is advantageous in terms of cost, has attracted attention. In the following explanation, the on-board camera is assumed to be a monocular camera. The distance from the on-board camera to an object on the road (the distance from the vehicle to the object) can be calculated based on the pixel position in the vertical direction of the image coordinates of the object shown in the image captured by the on-board camera. However, although the monocular camera is advantageous in terms of cost, it can obtain less information from the image compared to a stereo camera, and sufficient distance measurement accuracy may not be obtained.

[0003] On the other hand, Patent Document 1 discloses a technology for generating a distance image of a road surface shown in an image of a predetermined frame of a video captured by a camera, and calculating the vehicle distance based on the generated distance image and a model generated in advance. When generating the distance image, the road surface on which the vehicle traveled is restored based on the captured video image and the vehicle speed, and the intersection of the restored road surface and a ray extending from the optical center of the camera for each pixel of the predetermined frame is obtained. Then, the distance image is generated based on the distance to each pixel corresponding to the ray where the intersection is obtained. The model is generated as an error model in which the scale of the error included in the distance is determined as variables: the displacement between the pitch angle of the camera when the image of the predetermined frame was captured and the pitch angle of the camera corresponding to the restored road surface, and the length in the image from the optical center of the camera to each pixel.

[0004] In addition, Non-Patent Document 1 discloses a technology that estimates the pitch angle of an on-board camera with respect to a parallel road from a translation vector, and then synthesizes the pitch angle rate between front and rear frames, which is decomposed from the pitch angle and a rotation matrix, using a moving average method, thereby achieving highly accurate pitch angle estimation. [Prior art documents] [Patent documents]

[0005] [Patent Document 1] Patent Publication No. 2021-81368 [Non-patent literature]

[0006] [Non-Patent Document 1] Journal of the Institute of Image Information and Television Engineers, Vol. 69 No.4, pp.J169~J176(2015) "Pitch Angle Estimation Using an In-Vehicle Monocular Camera for Measuring Inter-Vehicle Distance" Summary of the Invention [Problem to be solved by the invention]

[0007] In the case of the technology of Patent Document 1, the accuracy of the pitch angle of the vehicle-mounted camera is important to obtain a highly accurate distance. However, with the technology described in Patent Document 1, it is difficult to obtain a highly accurate pitch angle, and therefore the accuracy of the distance tends to become unstable. In addition, in the case of the technology of Non-Patent Document 1, although it is possible to estimate the pitch angle with high accuracy from an image obtained by an on-board camera, the amount of calculation required for this becomes very large, and there is a risk that real-time processing cannot be performed. It is also possible to use a calculation device capable of high-speed processing, but in that case, the cost will increase significantly.

[0008] Therefore, an object of the present invention is to make it possible to obtain the distance to a distance measurement target on a road with high accuracy. [Means for solving the problem]

[0009] The information processing device of the present invention is characterized by having an object detection means for detecting a distance measurement object shown in an image acquired by an imaging device, a measurement means for measuring the number of pixels in the width direction of the road shown in the image acquired by the imaging device, an actual width acquisition means for generating multiple width information from multiple distances to multiple positions on the road corresponding to the coordinates of the image and the number of pixels in the width direction corresponding to each of the multiple distances, and acquiring the actual width of the road based on the multiple distances and the width information, and a distance acquisition means for acquiring the distance from the imaging device to the distance measurement object on the road based on the actual width and the number of pixels in the width direction of the road. Effect of the Invention

[0010] According to the present invention, it is possible to obtain the distance to a distance measurement target on a road with high accuracy. [Brief description of the drawings]

[0011] [Figure 1] FIG. 1 illustrates an example of a configuration including an information processing apparatus according to an embodiment. [Diagram 2] 5A and 5B are diagrams illustrating an example of an image output from a developing unit. [Diagram 3] FIG. 11 is a diagram illustrating an example of object external world information. [Figure 4] FIG. 11 is a diagram showing an example of road environment information; [Diagram 5] FIG. 11 is a diagram used to explain an example in which the accuracy of the road distance depends on the accuracy of the pitch angle. [Figure 6] FIG. 2 is a diagram illustrating an example of the configuration of a distance estimation unit in the first embodiment. [Figure 7] 4 is a flowchart of a distance estimation process in the first embodiment. [Figure 8] FIG. 13 is a diagram used to explain road width calculation. [Figure 9] FIG. 11 is a diagram used to explain a process for generating an actual road width from a relational expression. [Figure 10] 11A and 11B are diagrams used to explain an object distance calculation process. [Figure 11] FIG. 11 is a diagram illustrating an example of the configuration of a distance estimation unit in the second embodiment. [Figure 12] 10 is a flowchart of a distance estimation process in the second embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0012] Hereinafter, an embodiment of the present invention will be described with reference to the drawings. The following embodiments do not limit the present invention, and not all of the combinations of features described in the present embodiments are necessarily essential to the solution of the present invention. The configuration of the embodiment may be appropriately modified or changed depending on the specifications of the device to which the present invention is applied and various conditions (conditions of use, environment of use, etc.). In addition, the embodiment may be configured by appropriately combining parts of the embodiments described below. In the following embodiments, the same or similar configurations and processing steps are given the same reference symbols, and duplicated explanations are omitted.

[0013] <First embodiment> 1 is a diagram showing an example of a configuration including an information processing device according to the present embodiment. In the present embodiment, an example is given in which the information processing device is applied to a distance measuring device included in a system (vehicle-mounted system) mounted on a vehicle.

[0014] The optical system 101 is an optical system of an on-board camera that is an imaging device mounted on a vehicle. The optical system 101 includes a plurality of lens groups, filters, etc., and forms an image (optical image) of a subject or the like on an imaging element 102 described later. In this embodiment, the on-board camera is a so-called monocular camera that is more cost-effective than a stereo camera. The image sensor 102 is configured to include a CMOS (complementary metal oxide semiconductor) or a CCD (charge-coupled device). The image sensor 102 sequentially outputs image signals corresponding to an optical image formed by the optical system 101 to a developing unit 103 for each frame of a moving image. The developing unit 103 generates image data (hereinafter simply referred to as image) based on the image signal output from the imaging element 102 , and outputs the image data to the object recognition unit 113 and the road recognition unit 123 .

[0015] The object recognition unit 113 is a target detection unit that detects a distance measurement target area included in the image input from the development unit 103, and generates external world information indicating information about the detected distance measurement target area. In the present embodiment, the distance measurement target area is an area of ​​an object such as a vehicle on a road that is reflected in the image, and hereinafter, the distance measurement target area is simply called an "object", and the external world information indicating information about the distance measurement target area is called "object external world information". The object external world information is information indicating the position, size such as width and height, area, etc. of an object detected from an image in the image. In addition, the object external world information may include information about the attribute and identification number of the object detected from the image. Then, the object recognition unit 113 outputs the generated object external world information to the ground measurement unit 104. Note that the object recognition unit 113 may be configured with a CNN (Convolutional Neural Network). That is, the object recognition unit 113 may perform an object recognition process such as recognizing an object to be distanced from an image by CNN.

[0016] The road recognition unit 123 detects a road area included in the image input from the development unit 103, and generates external environment information (hereinafter referred to as road external environment information) indicating information related to the detected road area. Then, the road recognition unit 123 outputs the generated road external environment information to the road measurement unit 105. Note that the road recognition unit 123 may be configured with a CNN, similar to the object recognition unit 113. That is, the road recognition unit 123 may perform a process of recognizing a road area from an image by using a CNN.

[0017] The ground contact measurement unit 104 performs a ground contact position acquisition process to measure the ground contact position of an object on a road based on the object external environment information generated by the object recognition unit 113. In this embodiment, the ground contact measurement unit 104 obtains the ground contact position of an object on a road as a Y coordinate value of the image coordinates.

[0018] Fig. 2 is a schematic diagram of an image output from the development unit 103. In Fig. 2, an object 201 is a distance measurement target area detected from an image, and in the example of Fig. 2, a vehicle is shown. A road 202 is a road area detected from an image. Note that the bottom end of the coordinate system (Y coordinate = 0) of the image shown in Fig. 2 is the bottom end of the image captured by the vehicle-mounted camera, and does not indicate the installation position of the vehicle-mounted camera.

[0019] 3 is a diagram showing a schematic representation of object external environment information generated in response to the object 201 detected by the object recognition unit 113 in the example image shown in FIG. 2. A rectangular area 301 in FIG. 3 shows the position information of the object 201 (vehicle) shown in FIG. 2. In FIG. 3, when the bottom left corner of the image is set as the coordinate origin of the image, the Y coordinate value y1 closest to the coordinate origin can be regarded as the ground contact position T (=y1) of the object 201 with respect to the road 202 in FIG. 2. The ground contact measurement unit 104 outputs information on this ground contact position T (=y1) to the road measurement unit 105 as ground contact position information.

[0020] The road measurement unit 105 measures the number of road pixels corresponding to the width of the road corresponding to the ground contact position T, based on the road environment information generated by the road recognition unit 123 and the ground contact position information (ground contact position T (=y1)) obtained by the ground contact measurement unit 104. Furthermore, the road measurement unit 105 measures a plurality of road pixel numbers corresponding to a plurality of widths of the road, based on the road environment information, as described below.

[0021] Fig. 4 is a diagram that shows a schematic representation of road environment information generated by the road recognition unit 123 from the image shown in Fig. 2. The hatched area in Fig. 4 shows a schematic representation of position information of a road area 402 that corresponds to the road 202 in Fig. 2. Note that Fig. 4 also shows a rectangle 401 that corresponds to the rectangular area 301 in Fig. 3 that shows the position of the object 201 in Fig. 2, in order to easily show the positional relationship between the ground contact position information (ground contact position T) and the road area 402.

[0022] The road measurement unit 105 scans the road area 402 represented by the road external environment information in the X-coordinate direction (from left to right) in order from the bottom end of the Y-coordinate, and counts the number of consecutive pixels in the X-coordinate direction, that is, the number of road pixels Np corresponding to the width direction of the road area 402. However, if the pixel count value is 0 or if the consecutive count is interrupted midway, the road measurement unit 105 does not output the count value. In addition, the road measurement unit 105 acquires the Y-coordinate value when scanning the number of road pixels Np in the width direction as the position information Y. The road measurement unit 105 performs such scanning in the X-coordinate direction and counting the number of pixels multiple times while shifting the Y-coordinate value by, for example, a predetermined value in the Y-coordinate direction for each scan. In this embodiment, the number of times the Y-coordinate value is shifted for each scan is, for example, a predetermined number (for example, P times) that is set in advance. This provides P road pixel counts Np corresponding to the predetermined number P of times the Y coordinate value is shifted in sequence for each scan, and position information Y corresponding to each of the P road pixel counts Np. Note that the number of times the Y coordinate is shifted in sequence for each scan is not limited to the predetermined number P, and may be repeated until scanning of the entire road area 402 is completed.

[0023] Then, the road measurement unit 105 outputs the number Np of road pixels in the width direction of the road area 402 obtained as described above to the distance estimation unit 106. Furthermore, the road measurement unit 105 outputs position information Y corresponding to each number Np of road pixels in the width direction to the position distance measurement unit 107 in accordance with the output of the number Np of road pixels in the width direction.

[0024] Similarly, the road measurement unit 105 scans the Y coordinate corresponding to the contact position T input from the contact measurement unit 104 in the road area 402 in the X-coordinate direction and counts the number of consecutive pixels in the X-coordinate direction. That is, the road measurement unit 105 not only scans P times as described above, but also counts the number of road pixels in the width direction corresponding to the contact position T. However, in this case, as described above, if the pixel count value is 0 or if the continuous count is interrupted midway, the count value is not output. Then, the road measurement unit 105 outputs the count value of the number of pixels in the width direction corresponding to the contact position T to the distance estimation unit 106 as the road pixel count Mp corresponding to the contact position T. In addition, the road measurement unit 105 outputs the contact position T input from the contact measurement unit 104 to the position distance measurement unit 107 as position information Y corresponding to the road pixel count Mp.

[0025] Based on the plurality of pieces of position information Y input from road measurement unit 105 as described above, position and distance measurement unit 107 performs a position and distance measurement process to estimate a distance on the road corresponding to each of the plurality of pieces of position information Y. Then, position and distance measurement unit 107 outputs the distance on the road estimated for each of the plurality of pieces of position information Y to distance estimation unit 106 as road distance D. Details of the process in position and distance measurement unit 107 will be described later.

[0026] Distance estimation unit 106 receives as input road distance D estimated by position distance measurement unit 107 for each of the multiple pieces of position information Y, and road pixel number Np obtained by road measurement unit 105 for each of the multiple pieces of position information Y and road pixel number Mp corresponding to ground contact position T. Distance estimation unit 106 then calculates object distance Db indicating the distance from the vehicle-mounted camera to object 201 based on the multiple road distances D and road pixel numbers Np and Mp. Details of the object distance calculation process in distance estimation unit 106 will be described later. Distance estimation unit 106 outputs the calculated object distance Db to vehicle control unit 108.

[0027] The vehicle control unit 108 has an ECU (Electronic Control Unit) configured using logic circuits, and performs operations such as displaying distance information on a vehicle monitor (not shown) and controlling the driving unit 109 based on the object distance Db input from the distance estimation unit 106. When the vehicle control unit 108 determines that the distance to an object represented by the object distance Db is close while traveling, for example, it performs control such as decelerating the vehicle speed by controlling a gear control unit and a brake unit of the driving unit 109 (described later).

[0028] The driving unit 109 is a driving mechanism for driving the vehicle, and includes, for example, a power unit (not shown) such as an engine or a motor that generates a driving force for rotating the tires, and a steering unit that controls the traveling direction of the vehicle. The driving unit 109 also includes a gear box for rotating the tires using the driving force generated by the power unit, a gear control unit that controls the configuration inside the gear box, a brake unit that performs braking operation, and the like.

[0029] The process performed by the position measuring unit 107 will now be described. As described above, the position measuring unit 107 performs a position measuring process to estimate the distance to a position on the road corresponding to each of the multiple position information Y input from the road measurement unit 105, and outputs the estimated distance as the road distance D.

[0030] Here, with reference to FIG. 5, a distance estimation method assuming that the road distance D is estimated using the pitch angle of the vehicle-mounted camera 500 will be described. FIG. 5(a) is a diagram showing a vehicle-mounted camera 500 and a distance measurement position 503 on a road that is a road distance D away from the vehicle-mounted camera 500. In the example of FIG. 5, the lens 501 of the vehicle-mounted camera 500 is simply shown as a single convex lens, but the lens 501 is actually composed of a group of multiple lenses. Also, FIG. 5(b) and FIG. 5(c) are side views of FIG. 5(a), showing a state in which the vehicle-mounted camera 500 is located at a predetermined height above the road. Also, in FIG. 5, for ease of explanation, the distance measurement position 503 on the road is shown as a vertical plane 504.

[0031] First, referring to FIG. 5(b), an example of distance estimation in the case where the pitch angle P of the vehicle-mounted camera 500 is P=0°, that is, the optical axis of the vehicle-mounted camera 500 is parallel to the road surface, will be described. Here, the focal length of the vehicle-mounted camera 500 is F, the installation height of the vehicle-mounted camera 500 from the road surface is H, and the focal length F and the installation height H are preset values. Also, on the sensor surface 502 (image sensor surface) of the vehicle-mounted camera 500, the image side size corresponding to the position information Y is Ws. Note that the image side size Ws can be calculated from the position information Y and the pixel pitch Ps of the sensor surface 502, which depends on the specifications of the vehicle-mounted camera 500. When the pitch angle P of the vehicle-mounted camera 500 is P=0° as in the example of FIG. 5(b), the relative ratio F:Ws=D:H is established for the road distance D. That is, the road distance D can be calculated by the following formula (1).

[0032] D=(H*F) / Ws=(H*F) / (Ps*Y) Equation (1)

[0033] Next, referring to FIG. 5(c), a distance estimation method when the pitch angle P of the vehicle-mounted camera 500 is, for example, P>0° will be described. In the example of FIG. 5(c), as in FIG. 5(b), the focal length of the vehicle-mounted camera 500 is F, the installation height is H, and the image side size corresponding to the position information Y is Ws. Also, the pitch angle P of the vehicle-mounted camera 500 is inclined, for example, by an angle p° with respect to the horizontal direction, that is, the optical axis of the vehicle-mounted camera 500 is inclined by an angle p° with respect to the road surface. As in the example of FIG. 5(c), when the pitch angle P of the vehicle-mounted camera 500 is P=p°, the relative ratio F:Ws=D':D'tan(p)+H / cos(p) holds for the road distance D'. That is, the road distance D' can be calculated by the following formula (2).

[0034] D'=(H*F) / (Ws*cos(p)-F*sin(p))=(H*F) / (Ps*Y*cos(p)-F*sin(p)) Equation (2)

[0035] Furthermore, the road distance D shown in FIG. 5(c) can be calculated using the following formula (3).

[0036] D=D' / cos(p)=(1 / cos(p))*((H*F) / (Ps*Y*cos(p)-F*sin(p))) Equation (3)

[0037] That is, as shown in the formula (3), the road distance D depends on the pitch angle P (=p°). In other words, the estimation accuracy of the road distance D depends on the estimation accuracy of the pitch angle.

[0038] In the case of the information processing device of this embodiment, it is possible to estimate the road distance D independent of the accuracy of the pitch angle p, and in particular, it is possible to estimate the object distance Db with high accuracy independent of the accuracy of the pitch angle p. Hereinafter, with reference to the configuration and processing of the distance estimation unit 106, it will be described how this embodiment can estimate the road distance D independent of the accuracy of the pitch angle p and estimate the object distance Db with high accuracy.

[0039] Fig. 6 is a block diagram showing an example of the configuration of the distance estimation unit 106 according to the first embodiment. Fig. 7 is a flowchart showing the flow of processing by the distance estimation unit 106 according to the first embodiment. As described above, the distance estimation unit 106 calculates the object distance Db based on the road distance D for each of the multiple pieces of position information Y, the road pixel count Np for each of the multiple pieces of position information Y, and the road pixel count Mp corresponding to the ground contact position T.

[0040] In step S701, the road distance D for each piece of position information Y output from the position measuring unit 107 and the road pixel number Np for each piece of position information Y output from the road measurement unit 105 are sequentially input to the width estimation unit 601 of the distance estimation unit 106. Therefore, the processes from step S701 to step S703 are performed based on the road distance D and the road pixel number Np for each piece of position information Y. Furthermore, the road distance D and the road pixel number Np correspond to the same coordinates of the image output from the development unit 103. That is, the road pixel number Np and the road distance D related to the same coordinates Q(X,Y) shown in FIG. 4 are input to the width estimation unit 601 at the same timing.

[0041] Next, in the process of step S702, the width estimation unit 601 generates width information N indicating the width of the road corresponding to the road distance based on the road distance D and the number of road pixels Np input in step S701. Here, as shown in FIG. 8, when the focal length of the lens 501 of the vehicle-mounted camera 500 is F, the image side size on the sensor surface 502 is Ws, and the width information N is constant, the relative ratio F:Ws=D:N is established for the road distance D. As described above, the image side size Ws can be calculated from the number of road pixels Np, the pixel pitch Ps on the sensor surface 502 of the vehicle-mounted camera 500, and the focal length F. That is, according to the relative ratio F:Ws=D:N, the road distance D can be calculated by the following formula (4) without depending on the pitch angle p as in the above formulas (2) and (3). The width information N can be calculated by the following formula (5). In this manner, in this embodiment, the road width information N is calculated by the formula (5) and the calculation of the formula (4) is performed, whereby the road distance D that does not depend on the accuracy of the pitch angle p can be obtained.

[0042] D=(F*N) / Ws Equation (4)

[0043] N=(Ws*D) / F=(Np*Ps*D) / F Equation (5)

[0044] Next, in step S703, the width estimation unit 601 pairs the road width information N generated in step S702 with the road distance D corresponding to the road width information N, and stores the pair in the memory 603. Next, in the process of step S704, the width estimation unit 601 judges whether or not all the width information N for each position information Y and all the corresponding road distances D have been generated, and if any have not been generated, returns to the process of step S701. That is, the width estimation unit 601 repeats the process of steps S701 to S703 described above until all pairs of the width information N for each position information Y and the corresponding road distances D have been generated. For example, when P road pixel counts Np as explained in FIG. 4 are input, the width estimation unit 601 generates P pairs of the width information N and the road distances D.

[0045] Then, when it is determined in step S704 that all pairs of road width information N and its corresponding road distance D for each position information Y have been generated, the width estimation unit 601 advances the process to step S705. In step S705, the width estimation unit 601 estimates a relational equation in which the road distance D is a variable X on the XY coordinate plane and the road width information N is a variable Y. When estimating the relational equation, the width estimation unit 601 sets the pair of road width information N and its corresponding road distance D as coordinate information S(D,N) (hereinafter referred to as road information S) expressed by one coordinate on the XY coordinate plane.

[0046] 9 is a diagram showing an example of plotting each piece of road information S for each pair of width information N and its corresponding road distance D on an XY coordinate plane, and each point 901a to 901f in the diagram represents the plotted point of each piece of road information S. Then, based on each piece of road information S, the width estimation unit 601 estimates a linear equation (Y=aX+b) as a relational equation with the road distance D as a variable X and the width information N as a variable Y, using a method for minimizing the sum of squared errors, for example, called the least squares method.

[0047] Next, in step S706, the width estimation unit 601 estimates the intercept b of the relational equation (Y=aX+b) estimated in step S705 as the actual road width Nc, which indicates the road width when the road distance D=0, as the process of obtaining the actual road width in step S706. In the case of the example in Fig. 9, the value of the intercept b of the relational equation (Y=aX+b) when the road distance D=0 is obtained as the actual road width Nc.

[0048] In this embodiment, there are two reasons why the actual road width Nc is estimated from the relational expression (Y=aX+b) generated in step S705. The first reason is to estimate the road width accurately using a method that is not affected by the pitch angle. Although the road width can be calculated accurately using the above-mentioned formula (3), it depends on the accuracy of the pitch angle. On the other hand, since it is considered that there is almost no effect of the pitch angle when the road distance D=0, it is safe to consider the road width at this road distance D=0 to be approximately the actual road width Nc. Also, for example, under the condition that the road width is constant, the road width will be the same as the actual road width Nc estimated at road distance D=0, regardless of the road distance D being any distance greater than 0.

[0049] The second reason is that it is actually difficult to accurately measure the road width at a position where the distance from the vehicle-mounted camera is 0 m, that is, the actual road width Nc when the road distance D = 0. Generally, vehicle-mounted cameras are installed at a certain height, such as near the rearview mirror, so that they can capture an object on the road that is the target of distance measurement. In order for the vehicle-mounted camera to capture the road directly below the camera (the position where the road distance D = 0), a wide-angle lens such as a fisheye lens is required. When a wide-angle lens is used for shooting, the resolution of the captured image is relatively lower than that of other lenses, so it is expected that the accuracy of measuring the road width will also be lower.

[0050] For these two reasons, the width estimation unit 601 estimates the intercept b of the relational expression (Y=aX+b) estimated in step S705 as the actual width Nc indicating the road width when the road distance D = 0. That is, the width estimation unit 601 estimates the road width at the point where the road distance D = 0, obtained from the road distance D and width information N for each of multiple pieces of position information Y on the road, as the actual road width Nc.

[0051] Next, in the process of step S707, the width estimation unit 601 outputs the actual road width Nc generated in step S706 to the distance calculation unit 602. At this time, the distance calculation unit 602 receives as input the actual road width Nc generated by the width estimation unit 601, the road pixel count Mp generated by the road measurement unit 105 corresponding to the contact position T, and further the pixel pitch Ps and focal length F that depend on the vehicle-mounted camera specifications.

[0052] Then, in step S708, the distance calculation unit 602 performs a distance acquisition process to calculate an object distance Db, which is a distance to an object, based on the information. That is, the distance calculation unit 602 calculates the object distance Db, which is the road distance D to the ground contact position T corresponding to the road pixel number Mp, from the relative ratio of the actual width Nc, the road pixel number Mp, the pixel pitch Ps, and the focal length F. For example, as shown in FIG. 10, if the road distance to a provisionally determined reference line BL is Da and the road pixel number corresponding to the road distance Da is Npa, the object distance Db can be expressed by the relative ratio Da:1 / Npa=Db:1 / Mp using the road width pixel number Mp. The object distance Db can be calculated by the following formula (6) using the actual width Nc, the road width pixel number Mp, and the pixel pitch Ps and focal length F that depend on the vehicle-mounted camera specifications.

[0053] Db=(Da*Npa) / Mp=(Nc*F) / (Ps*Mp) Equation (6)

[0054] After that, in step S709, the distance calculation unit 602 outputs the object distance Db calculated in step S708 to the vehicle control unit 108 shown in FIG. In this embodiment, the least squares method is used to estimate a linear expression, but a relational expression approximating an n-th degree expression (n is a natural number) may be used as long as it represents a set of multiple road distances D and the corresponding width information Np. In other words, the width estimation unit 601 estimates the intercept of an n-term expression approximated by an n-th degree expression based on multiple road information S as the actual width. In addition, the road pixel count Np and road distance D for each position information Y are input in sequence to the distance estimation unit 106, but all of the road pixel counts Np and road distances D may be input simultaneously, in which case memory 603 is not required.

[0055] As described above, according to this embodiment, the relational expressions are estimated based on multiple distances and road widths, and the road width that is not affected by the pitch angle is estimated, so that the object distance can be stably estimated regardless of the accuracy of the pitch angle. Furthermore, according to this embodiment, the processing of each of the above-mentioned expressions is a simple calculation process, and a calculation device capable of high-speed processing is not required, so that the cost does not increase.

[0056] <Second embodiment> Next, as a second embodiment, an example of switching the distance estimation method when the amount of road information S generated by the distance estimation unit 106 in Fig. 1 is small will be described. Note that the system configuration according to the second embodiment is similar to that in Fig. 1 described above, and therefore illustration and description thereof will be omitted. FIG. 11 is a diagram showing an example of the configuration of the distance estimation unit 106 according to the second embodiment. In the example of the configuration of FIG. 11, components that are generally similar to those in FIG. 6 described above are given the same reference numerals as in FIG. 6, detailed descriptions thereof are omitted, and descriptions are added only for the parts that differ. FIG. 12 is a flowchart showing the flow of processing in the distance estimation unit 106 according to the second embodiment. In the flowchart of FIG. 12, processing steps that are generally similar to those in FIG. 7 described above are given the same reference numerals as in FIG. 7, detailed descriptions thereof are omitted, and descriptions are added only for the parts that differ.

[0057] The processes from step S701 to step S704 are the same as those described above, but in the second embodiment, the width estimation unit 1101 counts the number of pairs of width information N and corresponding road distance D generated in the processes from step S701 to step S704. The number of pairs of width information N and road distance D corresponds to the number of pieces of road information S described above. Then, when it is determined in step S704 that all pairs of width information N and road distance D have been generated, the width estimation unit 1101 advances the process to step S1211.

[0058] When the process proceeds to step S1211, the width estimation unit 1101 outputs the count value of the number of pairs of the width information N and the road distance D as the reliability H. Here, the number of pairs of the width information N and the road distance D is related to the estimation accuracy of the relational equation in the subsequent step S705. For example, when the number of pairs of the width information N and the road distance D is small, the estimation accuracy of the relational equation is low, and therefore the estimation accuracy of the actual width Nc indicating the width of the road when the road distance D=0 is low. In other words, the reliability H is information indicating the estimation accuracy of the actual width Nc generated by the relational equation. The reliability H generated by the width estimation unit 1101 is also output from the distance estimation unit 106 to the vehicle control unit 108. The reliability H is used in the vehicle control unit 108, for example, to determine whether or not to update the display of the distance information on a vehicle monitor (not shown).

[0059] Next, in step S1212, the width estimation unit 1101 compares the reliability H with a preset reliability threshold value Th0. Here, if H≧Th0, the width estimation unit 1101 determines that the estimation accuracy of the relational equation obtained in the subsequent step S705 is high, and proceeds to step S705. Then, in step S705, the width estimation unit 1101 estimates the relational equation in the same manner as described above, using all pairs of width information N and road distance D stored in the memory 603. Furthermore, in the next step 706, the width estimation unit 1101 generates the intercept of the relational equation estimated in step 705, that is, the actual road width Nc. After that, the width estimation unit 1101 proceeds to step S707.

[0060] On the other hand, when H < Th0 in the comparison of step S1212, the width estimation unit 1101 deems that the estimation accuracy of the relational expression obtained in the subsequent step S705 is low, and proceeds to step S1213. Then, in step S1213, the width estimation unit 1101 selects one piece of width range information N from the plurality of pieces of width range information N stored in the memory 603, and sets it as the actual width range Nc. For example, as described above, since the shorter the road distance D, the smaller the influence of the error due to the pitch angle, the width estimation unit 1101 selects the width range information N corresponding to the shortest road distance D and sets it as the actual width range Nc. After that, the width estimation unit 1101 proceeds to step S707.

[0061] When proceeding to step S707, the width estimation unit 1101 outputs the actual width range Nc generated in step S706 or step S1213 to the distance calculation unit 602. At this time, the distance calculation unit 602 receives the actual width range Nc generated by the width estimation unit 1101, the number of road pixels Mp generated by the road measurement unit 105, and information on the pixel pitch Ps and the focal length F depending on the in-vehicle camera specifications.

[0062] Then, in step S708, the distance calculation unit 602 calculates the object distance Db in the same manner as described above, and outputs the object distance Db to the distance selection unit 1104. At this time, the distance selection unit 1104 receives the preset reliability threshold Th1 and the reliability H generated by the width estimation unit 1101, and also receives the already created object distance Dc. As an example, the object distance Dc can be the object distance Db obtained immediately before, or an object distance estimated based on an average value of the road width range based on the number of pixels in the width direction.

[0063] The distance selection unit 1104 compares the reliability threshold Th1 with the reliability H as the process of step S1214. Then, when H≥Th1, the distance selection unit 1104 outputs the object distance Db generated by the distance calculation unit 602. On the other hand, when H<Th1, the distance selection unit 1104 outputs the already created object distance Dc as the object distance Dd. And in the case of the second embodiment, the object distance Dd output from the distance selection unit 1104 will be input to the vehicle control unit 108.

[0064] In the second embodiment, when the reliability H is high and the object distance Db obtained in step S709 is input, the vehicle control unit 108, as described above, controls the drive unit 109 to decelerate the vehicle or the like when it is determined that the object distance Db is close.

[0065] On the other hand, when the reliability H is low and the object distance Dc is input in step S1215, the vehicle control unit 108 can also determine that it is information indicating that the reliability H is low based on the object distance Dc. For this reason, as an example, when the object distance Dc is input, the vehicle control unit 108 may perform a warning display such as that accurate control based on the object distance cannot be performed on a vehicle monitor (not shown). Further, the vehicle control unit 108 may control the drive unit 109 based on the object distance Db obtained immediately before, the object distance based on the value obtained by averaging the road width, and the like. Of course, these are just examples and are not limited to this example.

[0066] Note that in the example described above, an example in which the reliability H is used by the vehicle control unit 108 is shown, but it may be used outside the present implementation form. For example, it may be used for the selection condition with the object distance generated by an object distance estimation method different from the present implementation form. Also, although it has been described that the reliability threshold Th0 and the reliability threshold Th1 are set to different values, they may be the same value. When the reliability threshold Th0 and the reliability threshold Th1 are the same value, the object distance Db using the actual width Nc generated in step S1213 is not selected by the distance selection unit 1104.

[0067] As described above, according to the second embodiment, the object distance can be stably estimated even when there are a small number of pairs (road information S) of road width information N and road distance D. Furthermore, in the case of this embodiment, it is also possible to notify the outside of the estimation accuracy of the object distance by the reliability H.

[0068] The present invention can also be realized by a process in which a program for implementing one or more of the functions of the above-described embodiments is supplied to a system or device via a network or a storage medium, and one or more processors in a computer of the system or device read and execute the program. The present invention can also be realized by a circuit (e.g., ASIC) for implementing one or more of the functions. The above-mentioned embodiments are merely examples of the implementation of the present invention, and the technical scope of the present invention should not be interpreted as being limited by these. In other words, the present invention can be implemented in various forms without departing from its technical concept or main features.

[0069] The disclosure of this embodiment includes the following configuration, method, and program. (Configuration 1) An object detection means for detecting an object to be measured that appears in an image acquired by an imaging device; A measuring means for measuring the number of pixels in a width direction of a road shown in the image acquired by the imaging device; an actual width acquisition means for generating a plurality of width information items from a plurality of distances to a plurality of positions on the road corresponding to the coordinates of the image and the number of pixels in the width direction corresponding to each of the plurality of distances, and acquiring an actual width of the road based on the plurality of distances and the width information items; a distance acquisition means for acquiring a distance from the imaging device to the distance measurement target on the road based on the actual width and the number of pixels in the width direction of the road; 13. An information processing device comprising: (Configuration 2) The information processing device described in configuration 1, characterized in that the actual width acquisition means acquires, among the multiple pieces of width information and the corresponding distances, the width information corresponding to the closest distance to the imaging device as the actual width. (Configuration 3) 3. The information processing device according to configuration 1 or 2, wherein the actual road width acquisition means acquires the actual road width based on a relational expression that approximates a set of the distances and the road width information. (Configuration 4) The information processing device according to configuration 3, wherein the actual road width acquisition means acquires, as the actual road width, an intercept of a relational expression obtained by approximating the sets of the distances and the road width information with a linear expression. (Configuration 5) The information processing device described in configuration 3, wherein the actual width acquisition means acquires, as the actual width, an intercept of a relational equation that approximates pairs of the multiple distances and the width information with an n-th degree equation (n is a natural number). (Configuration 6) a road recognition means for recognizing the road shown in the image acquired by the imaging device; 6. The information processing device according to any one of configurations 1 to 5, wherein the measurement means measures the number of pixels in a width direction of the road recognized by the road recognition means. (Configuration 7) a touchdown position acquisition means for acquiring a touchdown position where the target to be measured touches the road; The measurement means acquires the number of pixels in the width direction at the contact position, The information processing device described in any one of configurations 1 to 6, characterized in that the distance acquisition means calculates the distance from the imaging device to the ground position as the distance from the imaging device to the distance measurement target based on the actual road width, the number of pixels in the width direction at the ground position, and the pixel pitch and focal length of the imaging device. (Configuration 8) 8. The information processing device according to configuration 7, wherein the grounding position acquisition means acquires, as the grounding position, coordinates of a lower end of the target object in an image coordinate system having a lower left end of the image as an origin. (Configuration 9) 9. The information processing device according to any one of configurations 1 to 8, wherein the actual road width acquisition means further acquires a reliability of the actual road width. (Configuration 10) 10. The information processing device according to configuration 9, wherein the actual road width acquisition means acquires, as the reliability, the number of pairs of the distance and the road width information. (Configuration 11) 11. The information processing device according to configuration 9 or 10, wherein the actual road width acquisition means acquires the actual road width when the reliability is higher than a predetermined threshold value. (Configuration 12) The information processing device according to any one of configurations 9 to 11, wherein the actual road width acquisition means acquires one piece of road width information selected from the plurality of pieces of road width information as the actual road width when the reliability is lower than a predetermined threshold value. (Configuration 13) The information processing device according to configuration 12, wherein the actual road width acquisition means selects, from the plurality of road width information, the road width information corresponding to the closest distance to the imaging device. (Configuration 14) 14. The information processing device according to any one of configurations 9 to 13, further comprising an output unit that outputs the distance to the target object acquired by the distance acquisition unit when the reliability is higher than a predetermined threshold value. (Configuration 15) 15. The information processing device according to any one of configurations 1 to 14, further comprising an output means for outputting, when the reliability is lower than a predetermined threshold, information indicating that the reliability is low. (Configuration 16) 16. The information processing device according to any one of configurations 1 to 15, further comprising a control means for controlling a vehicle based on the distance to the target object acquired by the distance acquisition means. (Method 1) a target detection step of detecting a target to be measured that appears in an image acquired by an imaging device; a measuring step of measuring the number of pixels in a width direction of a road shown in the image acquired by the imaging device; an actual width acquisition process for generating a plurality of width information items from a plurality of distances to a plurality of positions on the road corresponding to the coordinates of the image and the number of pixels in the width direction corresponding to each of the plurality of distances, and acquiring an actual width of the road based on the plurality of distances and the width information items; a distance acquisition step of acquiring a distance from the imaging device to the distance measurement target on the road based on the actual width and the number of pixels in the width direction of the road; 13. An information processing method comprising: (Program 1) A program for causing a computer to function as the information processing device according to any one of configurations 1 to 16. [Explanation of symbols]

[0070] 102: imaging element, 113: object recognition unit, 104: ground contact measurement unit, 123: road recognition unit, 105: road measurement unit, 106: distance estimation unit, 107: position distance measurement unit, 108: vehicle control unit

Claims

1. An object detection means for detecting an object to be measured that appears in an image acquired by an imaging device; A measuring means for measuring the number of pixels in a width direction of a road shown in the image acquired by the imaging device; an actual width acquisition means for generating a plurality of width information items from a plurality of distances to a plurality of positions on the road corresponding to the coordinates of the image and the number of pixels in the width direction corresponding to each of the plurality of distances, and acquiring an actual width of the road based on the plurality of distances and the width information items; a distance acquisition means for acquiring a distance from the imaging device to the distance measurement target on the road based on the actual width and the number of pixels in the width direction of the road; 13. An information processing device comprising:

2. The information processing device according to claim 1, characterized in that the actual road width acquisition means acquires, from among the plurality of road width information and the corresponding distances, the road width information corresponding to the closest distance to the imaging device as the actual road width.

3. The information processing device according to claim 1 , wherein the actual road width acquisition means acquires the actual road width based on a relational expression that approximates a set of the distances and the road width information.

4. 4. The information processing apparatus according to claim 3, wherein the actual road width acquisition means acquires, as the actual road width, an intercept of a relational expression obtained by approximating a set of the distances and the road width information by a linear expression.

5. The information processing device according to claim 3, characterized in that the actual road width acquisition means acquires, as the actual road width, an intercept of a relational expression that approximates pairs of the distances and the road width information with an n-th degree equation (n is a natural number).

6. a road recognition means for recognizing the road shown in the image acquired by the imaging device; 2. The information processing apparatus according to claim 1, wherein said measuring means measures the number of pixels in a width direction of the road recognized by said road recognition means.

7. a touchdown position acquisition means for acquiring a touchdown position where the target to be measured touches the road; The measuring means acquires the number of pixels in the width direction at the contact position, The information processing device according to claim 1, characterized in that the distance acquisition means calculates the distance from the imaging device to the ground contact position as the distance from the imaging device to the distance measurement target based on the actual road width, the number of pixels in the width direction at the ground contact position, and the pixel pitch and focal length of the imaging device.

8. 8. The information processing apparatus according to claim 7, wherein the ground contact position acquisition means acquires, as the ground contact position, coordinates of a lower end of the target object in an image coordinate system having a lower left corner of the image as an origin.

9. The information processing apparatus according to claim 1 , wherein the actual road width acquisition means further acquires a reliability of the actual road width.

10. 10. The information processing apparatus according to claim 9, wherein the actual road width acquisition means acquires, as the reliability, the number of pairs of the distance and the road width information.

11. The information processing apparatus according to claim 9 , wherein the actual road width acquisition means acquires the actual road width when the reliability is higher than a predetermined threshold value.

12. The information processing device according to claim 9, characterized in that, when the reliability is lower than a predetermined threshold, the actual road width acquisition means acquires one piece of road width information selected from the plurality of pieces of road width information as the actual road width.

13. The information processing device according to claim 12, characterized in that the actual road width acquisition means selects, from the plurality of road width information, the road width information corresponding to the closest distance to the imaging device.

14. 10. The information processing apparatus according to claim 9, further comprising an output unit that outputs the distance to the target object acquired by the distance acquisition unit when the reliability is higher than a predetermined threshold value.

15. 10. The information processing apparatus according to claim 9, further comprising an output unit that outputs information indicating that the reliability is low when the reliability is lower than a predetermined threshold value.

16. 2. The information processing apparatus according to claim 1, further comprising a control unit that controls a vehicle based on the distance to the target object acquired by the distance acquisition unit.

17. a target detection step of detecting a target to be measured that appears in an image acquired by an imaging device; a measuring step of measuring the number of pixels in a width direction of a road shown in the image acquired by the imaging device; an actual width acquisition process for generating a plurality of width information items from a plurality of distances to a plurality of positions on the road corresponding to the coordinates of the image and the number of pixels in the width direction corresponding to each of the plurality of distances, and acquiring an actual width of the road based on the plurality of distances and the width information items; a distance acquisition step of acquiring a distance from the imaging device to the distance measurement target on the road based on the actual width and the number of pixels in the width direction of the road; 13. An information processing method comprising:

18. Computer, An object detection means for detecting an object to be measured that appears in an image acquired by an imaging device; A measuring means for measuring the number of pixels in a width direction of a road shown in the image acquired by the imaging device; an actual width acquisition means for generating a plurality of width information items from a plurality of distances to a plurality of positions on the road corresponding to the coordinates of the image and the number of pixels in the width direction corresponding to each of the plurality of distances, and acquiring an actual width of the road based on the plurality of distances and the width information items; a distance acquisition means for acquiring a distance from the imaging device to the distance measurement target on the road based on the actual width and the number of pixels in the width direction of the road; A program that causes the device to function as an information processing device having the above-mentioned configuration.

Citation Information

Patent Citations

  • Distance image generator, model generator, inter-vehicle distance calculation device, distance image generation method, and program therefor

    JP2021081368A

Cited By

  • Semiconductor device

    CN121693141A