Dimension estimation device, dimension estimation method, and dimension estimation program
The dimension estimation device accurately estimates vehicle dimensions using image analysis, addressing the need for frequent updates in existing systems and enhancing applications like lane management and automatic driving.
Patent Information
- Application Number
- JP2023537874
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-07-29
- Publication Date
- 2024-10-23
- Estimated Expiration
- 2041-07-29
AI Technical Summary
Existing vehicle detection systems require frequent updates for new vehicle models, increasing running costs and lacking versatility in identifying vehicle dimensions beyond general classifications.
A dimension estimation device and method that utilizes image analysis to calculate a vanishing point and determination line, detecting objects and estimating dimensions based on the ratio between surfaces in an image, allowing accurate estimation of vehicle dimensions without model-specific updates.
Enables high-accuracy estimation of vehicle dimensions on the road, improving versatility and reducing the need for frequent system updates, facilitating applications such as lane management and automatic driving operations.
Smart Images

Figure 0007571886000003 
Figure 0007571886000004 
Figure 0007571886000005
Abstract
Description
[Technical field]
[0001] The disclosed technology relates to a dimension estimation device, a dimension estimation method, and a dimension estimation program. [Background technology]
[0002] There are technologies that detect other objects captured in images captured by in-vehicle cameras such as dashcams. For example, object detection systems such as YOLO are known.
[0003] In the field of autonomous driving, it is necessary to measure, for example, the timing of lane changes based on the dimensions of other vehicles around the observed vehicle. As a method for determining the dimensions, there is a method of identifying the name of the vehicle captured in the image and referring to its catalog specifications (see Non-Patent Document 1).
[0004] Fig. 1 is a schematic diagram showing a case where another vehicle is observed from an observation vehicle. As shown in Fig. 1, it is assumed that another vehicle (A2) is observed from an observation vehicle (A1) to estimate the overall length of the other vehicle. [Prior art documents] [Non-patent literature]
[0005] [Non-Patent Document 1] "Vehicle name recognition system powered by Zinrai", URL: "https: / / www.fujitsu.com / jp / products / network / managed-services-network / transport / name-recognition / " Summary of the Invention [Problem to be solved by the invention]
[0006] However, vehicles with unique dimensions for each new model are frequently introduced, and it is necessary to update the learning content of the representative object detection system every time a new model is introduced, which increases running costs. In addition, object detection systems generally identify the vehicle model, and dedicated systems like the one in the above Non-Patent Document 1 are not common. Note that the vehicle model here refers to a rough classification such as passenger car / truck / bus, and for example, even the same truck can include a variety of types such as light trucks with a total length of 3.4 m or less and large trucks with a total length of 12 m or less. Therefore, if the dimensions can be obtained within the same classification, it will contribute to improving versatility.
[0007] The disclosed technology has been made in consideration of the above points, and aims to provide a dimension estimation device, a dimension estimation method, and a dimension estimation program that can accurately estimate the dimensions of other objects on a road. [Means for solving the problem]
[0008] A first aspect of the present disclosure is a dimension estimation device that includes an acquisition unit that acquires an image captured on a moving body, an image information calculation unit that calculates a vanishing point and a predetermined judgment line in the image, a detection unit that detects an object in the image and detects a detection rectangle, which is a rectangle including a first face that is a face closer to a shooting position and close to the judgment line, and a dimension estimation unit that estimates the dimensions of the object based on the ratio between the height of the first face determined from the relationship between the detection rectangle and the vanishing point and the height of a second face that is the face farther from the shooting position.
[0009] A second aspect of the present disclosure is a dimension estimation method that causes a computer to execute a process of acquiring an image captured on a moving body, calculating a vanishing point and a predetermined judgment line in the image, detecting an object in the image, detecting a detection rectangle for the object, the detection rectangle being a rectangle that includes a first face that is the face closer to the shooting position and that is close to the judgment line, and estimating the dimensions of the object based on the ratio between the height of the first face determined from the relationship between the detection rectangle and the vanishing point and the height of a second face that is the face farther from the shooting position.
[0010] A third aspect of the present disclosure is a dimension estimation program that causes a computer to execute a process of acquiring an image captured on a moving body, calculating a vanishing point and a predetermined judgment line in the image, detecting an object in the image, detecting a detection rectangle for the object, the detection rectangle being a rectangle that includes a first face that is the face closer to the shooting position and that is close to the judgment line, and estimating the dimensions of the object based on the ratio between the height of the first face determined from the relationship between the detection rectangle and the vanishing point and the height of a second face that is the face farther from the shooting position. Effect of the Invention
[0011] According to the disclosed technique, it is possible to estimate the dimensions of other objects on the road with high accuracy. [Brief description of the drawings]
[0012] [Figure 1] FIG. 2 is a diagram showing a schematic diagram of a case where another vehicle is observed from an observation vehicle. [Diagram 2] This is an example of footage observing a light truck and a large truck. [Diagram 3] FIG. 2 is a diagram for explaining the relationship between the camera and how an object is captured; [Figure 4] 1A and 1B are diagrams illustrating the relationship between how an object is captured by multiple cameras that slide laterally. [Diagram 5] FIG. 1 is a diagram showing an example of a feature photographed by a camera that is a rectangular parallelepiped, or a case where the feature is captured as a rectangular parallelepiped. [Figure 6] This figure shows an example of a case where a vehicle is captured as a target feature in an image captured by an onboard camera installed to capture the area ahead of the observation vehicle, and a circumscribed rectangular solid corresponding to the vehicle is drawn. [Figure 7] FIG. 13 is a diagram showing an example of a comparison of images of different vehicle models; [Figure 8] FIG. 2 is a block diagram showing a hardware configuration of the dimension estimation device. [Figure 9] 1 is a block diagram showing a functional configuration of a dimension estimation device according to an embodiment of the present invention; [Figure 10] FIG. 2 is a diagram illustrating camera information of an in-vehicle camera. [Figure 11] FIG. 1 is a diagram illustrating an example of a vanishing point in an image. [Figure 12] FIG. 13 is a diagram showing an example of a judgment line provided at an arbitrary coordinate on an image. [Figure 13] 11A and 11B are diagrams illustrating the relationship of the angle of view in calculation of a photographable range. [Figure 14] FIG. 11 is a diagram showing an example of a calculated photographable range. [Figure 15] FIG. 13 is a diagram showing an example of an assumed judgment line in an image. [Figure 16] FIG. 13 is a diagram illustrating a relationship between a detected rectangle and a vanishing point. [Figure 17] FIG. 10 is a diagram illustrating a relationship between a detected rectangle and a vanishing point. [Figure 18] 1 is a flowchart showing a flow of dimension estimation by the dimension estimation device. [Figure 19] 13 is a flowchart for calculating a vanishing point. [Figure 20] 13 is a flowchart for calculating a judgment line. [Figure 21] FIG. 13 is a diagram illustrating an application example of the method of the present embodiment. [Figure 22] FIG. 13 is a diagram showing an evaluation of the method of the present embodiment. [Figure 23] FIG. 13 is a diagram showing an example of drawing a line segment on a side surface of an object. [Figure 24] FIG. 13 is a diagram showing an example of a taxi evaluation. [Diagram 25]FIG. 13 is a diagram showing an example of a taxi evaluation. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0013] Hereinafter, an example of an embodiment of the disclosed technology will be described with reference to the drawings. In each drawing, the same or equivalent components and parts are given the same reference numerals. In addition, the dimensional ratios of the drawings are exaggerated for the convenience of explanation and may differ from the actual ratios.
[0014] First, an overview of the present disclosure will be described. In the example described in this embodiment, a case will be described in which the overall length of another vehicle captured from an observation vehicle, which is a moving body, is estimated. It is assumed that the overall length of the other vehicle is not captured in the image, such as when the shape of the other vehicle is rounded, but even in that case, the method of this embodiment can be applied in the same way. The estimation result obtained by the method of this embodiment can be evaluated, for example, as a distribution of the dimensions of other vehicles that existed on the road on which the observation vehicle traveled. In the evaluation, if it is determined that trucks and buses with a long overall length frequently pass through, it is assumed that the result can be used as a reference for road or intersection expansion plans. For example, if an intersection is one where large trucks of about 12 m frequently turn right / left, it can be used to consider increasing the number of lanes and changing the period of traffic lights.
[0015] Also, congestion and traffic jams on a lane basis (traffic jams by lane) can be detected from the number of cars / trucks / buses overtaken per unit time. Figure 2 is an example of a video observing light trucks and large trucks. The time and distance required to overtake a light truck of about 3 or 4 meters is different from that to overtake a large truck of about 12 meters. For this reason, it becomes necessary to estimate from the video "what meter class of vehicle has been overtaken."
[0016] In addition, the estimation results obtained by the method of this embodiment can recognize the density of the road or the presence or absence of blank areas by, for example, recognizing the dimensions of a parked vehicle that the observation vehicle is about to overtake while traveling or of a surrounding vehicle that is traveling. Such recognition can be used to assist autonomous driving in determining whether the observation vehicle may perform an autonomous driving operation such as parking on the road or changing lanes.
[0017] The following describes the existing technology used in this embodiment. This embodiment utilizes the camera principle described in Reference 1. [Reference 1] "Perspective", URL:" http: / / www.persfreaks.jp / main / intro / pers / "
[0018] When using a monocular camera such as a typical in-vehicle camera, other vehicles or buildings are drawn so that they converge to the vanishing point. Also, when using a non-wide-angle lens, or when cutting out an area with little distortion from a wide-angle lens, if an image that is not affected by lens distortion is used, the size of the object in the image can be approximated like a perspective drawing, and changes according to a law with respect to the distance from a reference point. The size of an object in the image is expressed by the "length of its sides," and if it is a square, the area changes as the square of the length of its sides.
[0019] FIG. 3 is a diagram explaining the relationship between the camera and how an object is captured. Assuming there is no lens distortion, in the area captured by the camera, a surface parallel to the projection surface will be captured in the same size if the distance in the depth direction is the same. This is because the camera and the projection surface can be expressed as a similar triangle, and the length of the base and the height are the same value. FIG. 4 is a diagram explaining the relationship between the capture of an object and multiple cameras slid horizontally. The side will appear larger as the distance between the object and the camera increases in the horizontal direction of the image. The height of the triangle will be doubled or tripled with the side as the base, and the distance to the projection surface will also be doubled or tripled. In this way, the surface of the object parallel to the projection surface (for example, the width of another vehicle) will be captured in the same size regardless of the direction in which the object is captured if the distance from the camera to the parallel surface of the object is the same. In addition, the surface of the object parallel to the projection surface (for example, the length of another vehicle) has the characteristic that it will be captured larger the more the object is captured at the edge rather than in front of the camera.
[0020] FIG. 5 is a diagram showing an example of a feature photographed by a camera as a rectangular parallelepiped, or when the feature is captured as a rectangular parallelepiped. In this case, the following characteristics are present. For features that exist at the same distance D from the camera in the depth direction, the length of the sides and the area of the back surface of the rectangular parallelepiped (1) and the back surface of the rectangular parallelepiped (2) are constant regardless of the horizontal movement of the image. On the left and right of FIG. 5, the sizes of (1) and (2), that is, the length of the sides and the area, are the same. Similarly, the ratio of the size of the back surface to the back surface, that is, the reduction ratio, depends on the change in the distance D1 and the distance D2. Therefore, for example, if the rectangle has the same overall length, the size of (1) and (2) is constant regardless of the position in the horizontal axis direction of the image. Also, like a division line, the line segments that make up the side of the rectangular parallelepiped converge to a vanishing point.
[0021] FIG. 6 is a diagram showing an example of a case where a vehicle is captured as a target feature in an image captured by an on-board camera installed to capture the view ahead of the observation vehicle, and a circumscribed rectangular parallelepiped corresponding to the vehicle is drawn. In this case, the circumscribed rectangular parallelepiped of the vehicle has the following characteristics when it is drawn. Assume that there is a surface (1) corresponding to the "rear of the vehicle (hereafter referred to as rear)" at a location on the vehicle that has the same distance D from the camera in the depth direction, and there is a corresponding surface (2) corresponding to the "front of the vehicle (hereafter referred to as front)". In this case, the reduction ratio based on the ratio of the sizes of the surfaces (1) and (2) is determined by the difference between the distance D2 and the distance D1, that is, the total length of the vehicle. The circumscribed rectangular parallelepiped has the same total length, and if the total length is uniform, for example 4.8 m, the reduction ratio will be the same even if the vehicle has a different name or model, or if the vehicle is traveling one or two lanes next to each other.
[0022] FIG. 7 is a diagram showing an example of comparing images of different vehicle types. As shown in FIG. 7, even if the lanes are different and the vehicle is traveling on the edge of the lane rather than in the center, and even if the vehicle types are different, that is, the width of the vehicle is different and the side view is different, the overall length can be calculated using the same calculation formula. Even if the vehicle is a medium-sized truck one lane away on the left side of FIG. 7 and a passenger car two lanes away on the right side of FIG. 7, as described above, if the distance D is the same, the reduction ratio of surface (1) and surface (2) depends only on the overall length. The technology of this embodiment utilizes the characteristics of such a principle.
[0023] The configuration of this embodiment will be described below.
[0024] FIG. 8 is a block diagram showing the hardware configuration of the dimension estimation device 100. As shown in FIG.
[0025] 8, the dimension estimation device 100 includes a CPU (Central Processing Unit) 11, a ROM (Read Only Memory) 12, a RAM (Random Access Memory) 13, a storage 14, an input unit 15, a display unit 16, and a communication interface (I / F) 17. Each component is connected to each other via a bus 19 so as to be able to communicate with each other.
[0026] The CPU 11 is a central processing unit, and executes various programs and controls each part. That is, the CPU 11 reads a program from the ROM 12 or the storage 14, and executes the program using the RAM 13 as a working area. The CPU 11 controls each of the above components and performs various calculation processes according to the program stored in the ROM 12 or the storage 14. In this embodiment, a dimension estimation program is stored in the ROM 12 or the storage 14.
[0027] The ROM 12 stores various programs and various data. The RAM 13 temporarily stores programs or data as a working area. The storage 14 is configured with a storage device such as an HDD (Hard Disk Drive) or an SSD (Solid State Drive), and stores various programs including an operating system, and various data.
[0028] The input unit 15 includes a pointing device such as a mouse, and a keyboard, and is used to perform various input operations.
[0029] The display unit 16 is, for example, a liquid crystal display, and displays various information. The display unit 16 may function as the input unit 15 by adopting a touch panel system.
[0030] The communication interface 17 is an interface for communicating with other devices such as terminals. For this communication, for example, a wired communication standard such as Ethernet (registered trademark) or FDDI, or a wireless communication standard such as 4G, 5G, or Wi-Fi (registered trademark) is used.
[0031] Next, each functional configuration of the dimension estimation device 100 will be described. Fig. 9 is a block diagram showing the configuration of the dimension estimation device of this embodiment. Each functional configuration is realized by the CPU 11 reading out a dimension estimation program stored in the ROM 12 or storage 14, expanding it in the RAM 13, and executing it.
[0032] 9, the size estimation device 100 includes an acquisition unit 110, an image information calculation unit 112, a detection unit 114, a size estimation unit 116, and a storage unit 118. The image information calculation unit 112 includes a vanishing point calculation unit 120 and a judgment line calculation unit 122.
[0033] The acquisition unit 110 acquires time-series images from video captured by the on-board camera of the observation vehicle. Time-series images are images for each frame. In addition, camera information of the on-board camera that captured the video is acquired. The camera information includes coordinate information of the installation position of the on-board camera. FIG. 10 is a diagram showing a schematic diagram of camera information of the on-board camera. As an example, it is assumed that the on-board camera is installed in the foreground, facing the back, 1.32 m above the road surface, and horizontal. It is also assumed that the vertical angle of view is 47° and the horizontal angle of view is 75°.
[0034] The image information calculation unit 112 calculates the vanishing point and the judgment line of the image through the processing of each unit.
[0035] The vanishing point calculation unit 120 calculates a vanishing point from the image acquired by the acquisition unit 110. The vanishing point calculation unit 120 uses a Hough transform or a probabilistic Hough transform or the like to detect straight lines in the image, extracts straight line components, and performs extension processing as necessary to find intersections between the straight lines and calculates the vanishing point. For the calculation of the vanishing point, for example, if it is known that the road on which the vehicle is traveling curves to the left and right, the range may be limited to use only straight line components detected in the lower area of the image where the influence of the curve is small. FIG. 11 is a diagram showing an example of a vanishing point in an image. First, (1) multiple straight lines due to division lines and structures such as buildings in the image are detected. (2) Multiple straight lines are extended, and their intersections are found, and the points where the straight lines intersect are the vanishing point (V1). In reality, straight lines that do not point to the vanishing point, such as zebra zones and vertical straight lines on the rear of a light truck, are also detected. Therefore, processing is performed so that the intersections where the lines extended from each straight line intersect the most are set as the vanishing point. In addition, it is necessary to add auxiliary processing such as carefully selecting straight lines to be used as intersection points based on information such as the inclination of the straight line in the image. Note that the vehicle-mounted camera is assumed to be installed horizontally and facing directly ahead, and the vanishing point is in the center when driving in a straight line, so the vanishing point can be substituted with the center coordinate of the image.
[0036] The judgment line calculation unit 122 calculates the imageable range from the camera position and angle of view of the camera information acquired by the acquisition unit 110, and calculates the judgment line by drawing a line at a position half the distance from the bottom of the imageable range in the image. FIG. 12 is a diagram showing an example of a judgment line set at any coordinate on the image. In this example, the judgment line is close to a feature, and the distance to the judgment line corresponds to distance D. Distance D may be set to any coordinate. Other setting methods will be described later. FIG. 13 is a diagram showing the relationship of the angle of view in the calculation of the imageable range. In an image taken by an on-board camera, the downward direction is visible at an angle of 1 / 2 of the vertical angle of view of 47° as in FIG. 13(A). The bottom edge of the image can be calculated to be 3.035...m forward from the camera. Also, as in FIG. 13(B), by calculating the height at an angle of 1 / 2 of the horizontal angle of view of 75° and multiplying it by two, it can be calculated that the width of 4.65...m is visible in the lateral direction of the on-board camera. FIG. 14 is a diagram showing an example of a calculated imageable range. FIG. 15 is a diagram showing an example of an assumed judgment line in an image. If lines are drawn from the left and right corners of the bottom of the image toward the vanishing point, the position where the lines are half the length of the bottom of the image is twice the distance from the camera to the bottom of the image, which is 6.07...m in this example. The judgment line calculation unit 122 draws a judgment line (L1) at this position.
[0037] In addition, the calculation of the judgment line may take into consideration, for example, when the road surface is not flat and has an incline. Conversely, if the distance is about 10 m ahead, the change in height may be considered minor and the effect may not be considered. In addition, instead of calculating the judgment line based on the height of the vehicle-mounted camera from the road surface, markings may be made at regular distances on the road surface in front of the vehicle-mounted camera, and the judgment line may be set to the coordinates on the image at a constant distance from the vehicle-mounted camera, regardless of the height of the vehicle-mounted camera. In addition, the calculation of the vanishing point and the calculation of the judgment line may be performed by extracting a part of the image from the entire image, and in the case of an image of the same vehicle, the coordinate information calculated once may be reused.
[0038] Next, an overview of the following processing related to the detection unit 114 and the dimension estimation unit 116 will be described with reference to Figures 16 and 17. Figures 16 and 17 are diagrams that diagrammatically show the relationship between a detected rectangle and a vanishing point.
[0039] The detection unit 114 detects an object in an image, and detects a detection rectangle that is a rectangle including a first surface close to the judgment line. The first surface is the surface closer to the shooting position, and conversely, the surface farther from the vanishing point. In this example, it is the rear side. The second surface is the surface farther from the shooting position, and conversely, the surface closer to the vanishing point. In this example, it is the front side. In the subsequent processing, as shown in FIG. 12, a process is performed to estimate the dimensions using an extracted image in which the judgment line and the bottom coordinates of the detection rectangle in which the object is detected match. The inputs to the detection unit 114 are time-series images, the vanishing point, and the judgment line.
[0040] The size estimation unit 116 estimates the size of the other object based on a reduction ratio determined by the ratio of the height of the first surface to the height of the second surface, which is determined from the relationship between the detected rectangle and the vanishing point. The inputs to the size estimation unit 116 are the extracted image, the vanishing point, the judgment line, and the coordinate information of the detected rectangle.
[0041] The storage unit 118 stores an equation of linear proportion according to the distance D.
[0042] The detection unit 114 detects other vehicles as objects using an object detection technique, and detects a detection rectangle. In this embodiment, the detection rectangle of the vehicle is calculated on the image, so the coordinate information of the rectangular shape (K1) on the plane of FIG. 16 is detected.
[0043] The detection unit 114 further performs object detection on the "rear" of the vehicle. As shown in FIG. 16, the "rear" is superimposed on the detected rectangle of another vehicle. Note that the second face (F1) of the front shown in FIG. 16 is not detected by the detection unit 114, but is assumed for convenience of explanation. In reality, the rectangle of the "front" is obtained from the reduction ratio of the rear and front by the dimension estimation unit 116 described later. It is also possible to express the circumscribed rectangular parallelepiped of the object, and it is also possible to clarify all line segments and recalculate the reduction ratio using the line segments on the back side that are not shown in the image.
[0044] The positional relationship between R1 and F1 exists on a straight line facing the vanishing point. Here, an example is shown in which the image of the front in-vehicle camera is used to determine the total length of the vehicle ahead traveling in the same direction as the observation vehicle. However, in reality, an oncoming vehicle may also be present in the image, and the front may be captured as the first surface. In addition, when a rear camera is used, the front of a vehicle behind traveling in the same direction as the observation vehicle is also captured as the first surface. For this reason, the detection unit 114 may detect not only the rear but also the front.
[0045] The dimension estimation unit 116 estimates the dimensions using the detected rectangle. As shown in FIG. 17, line segments connecting the four corners of the detected rectangle of the rear (R1) and the vanishing point are calculated. These straight lines become the side components of the circumscribed rectangular parallelepiped. In reality, it is not necessary to find all four corners. The line segments used change between the left and right depending on whether the vehicle is to the right or left of the vanishing point, so all four can be found and used as needed. Intersections of these straight line components and the detected rectangle as the object of the vehicle found initially are obtained on the left and right, and the line connecting these intersections corresponds to one side of the circumscribed rectangular parallelepiped F1.
[0046] The height (H1) of the detected rectangle of R1 and the length (H2) of the line segment corresponding to the height of F1 of the circumscribed rectangular parallelepiped are calculated. Then, the ratio of these is calculated as the reduction ratio = H2 / H1. Here, as described above, the height of the circumscribed rectangular parallelepiped changes depending on the distance D, but the change is inversely proportional. The dimension estimation unit 116 calculates the total length of the target circumscribed rectangular parallelepiped from the formula stored in the memory unit 118 and the calculated reduction ratio. The greater the reduction, that is, the smaller the value of H2 / H1, the longer the total length.
[0047] The method for estimating the overall length will now be described. As shown in Figure 5 above, when the distance from the bottom of the image to the judgment line is D1 and the distance to the circumscribed rectangular solid F1 is D2, the reduction ratio is expressed by the following formula (1).
number
number
[0048] Next, the operation of the dimension estimation device 100 will be described.
[0049] 18 is a flowchart showing the flow of dimension estimation by the dimension estimation device 100. The CPU 11 reads out a dimension estimation program from the ROM 12 or the storage 14, loads it into the RAM 13, and executes it to perform the dimension estimation process.
[0050] In step S100, the CPU 11 functions as the acquisition unit 110 to acquire time-series images from the video captured by the on-board camera of the observation vehicle, and camera information of the on-board camera.
[0051] In step S102, the CPU 11 calculates the vanishing point of the image as the image information calculation section 112. The operation of calculating the vanishing point by the vanishing point calculation section 120 will be described later in detail.
[0052] In step S104, the CPU 11 calculates a judgment line of the image as the image information calculation unit 112. The calculation of the judgment line by the judgment line calculation unit 122 will be described in detail later.
[0053] In step S106, the CPU 11, functioning as the detection unit 114, detects an object in the image using an object detection technique.
[0054] In step S108, CPU 11 detects a detection rectangle, which is a rectangle including a first surface close to the judgment line, for the object from each image as detection unit 114. Note that, as a result, an extracted image including the first surface close to the judgment line is obtained, and this extracted image is used in the subsequent processing.
[0055] In step S110, the CPU 11, functioning as the dimension estimation unit 116, obtains line segments connecting the four corners of the first face of the detected rectangle to the vanishing point, and calculates the height of the first face.
[0056] In step S112, the CPU 11, functioning as the dimension estimation unit 116, calculates the intersection point between the line segment and the second face of the detected rectangle, and calculates the line connecting the intersection points as the height of the second face, which corresponds to the height of the front.
[0057] In step S114, the CPU 11, functioning as the dimension estimation unit 116, compares the height of the first surface with the height of the second surface and calculates the reduction ratio.
[0058] In step S116, the CPU 11 functions as the dimension estimation unit 116 to obtain a judgment formula from the storage unit 118 according to the distance to the judgment line, estimate a total length according to the reduction ratio, and output the estimation result.
[0059] The calculation of the vanishing point will be described with reference to Fig. 19. The input for the calculation of the vanishing point by vanishing point calculation section 120 is an image.
[0060] In step S200, the CPU 11 functions as the vanishing point calculation unit 120 and detects a plurality of straight lines due to division lines and structures such as buildings in the image using a Hough transform or a probabilistic Hough transform.
[0061] In step S202, the CPU 11 performs correction processing on the straight line as necessary and extends the straight line.
[0062] In step S204, the CPU 11 calculates the points where the straight lines intersect as vanishing points.
[0063] The calculation of the judgment line will be described with reference to Fig. 20. The input for the judgment line calculation in the judgment line calculation unit 122 is camera information.
[0064] In step S300, the CPU 11, functioning as the judgment line calculation unit 122, calculates the photographable range from the camera position and angle of view of the camera information.
[0065] In step S302, the CPU 11, functioning as the judgment line calculation unit 122, calculates a judgment line by drawing a line in the lower half of the imageable range.
[0066] As described above, the size estimation device 100 of this embodiment can accurately estimate the size of another object on the road.
[0067] When this embodiment is applied, as shown in the example of FIG. 21, the reduction ratio differs between the circumscribed rectangular parallelepiped of a light truck of about 3.4 m and that of a bus of about 10 m.
[0068] With reference to FIG. 22, an evaluation of the method of this embodiment will be described. In this embodiment, the dimensions (total length) are obtained, but in reality, the shape of the object is not necessarily detected as ideal. Therefore, it is acceptable to only roughly classify the object into "less than 5m, 5-10m, and 10m or more". In addition, the processing and formulas are described on the premise that the distance to the judgment line is known or obtained by another means, but this is not limited to this. It is acceptable to substitute by accumulating data on the reduction rate of other vehicles captured in the video and determining from the distribution what the graph shows when the distance to the judgment line is close to the graph, or it is acceptable to obtain the judgment line by the same method and use it.
[0069] For convenience of explanation, the above example describes that the feature is regarded as a circumscribed rectangular parallelepiped, but this is not limited to this. As shown in FIG. 23, the same processing is possible even if only the "side" of the feature is detected. For example, the detection unit 114 may detect a detection rectangle including the side of the object, and the dimension estimation unit 116 may draw lines connecting the vanishing point and the four corners farther from the vanishing point of the detection rectangle, and calculate the height of the first surface and the height of the second surface of the side. In this case, even if the rear is cut off, it is sufficient that the side is captured, so the distance to the target that can be handled is increased.
[0070] In addition, for the target, for example, a taxi or the like whose rear and front are not as high as the center of the vehicle, the height of the detection rectangle for the rear may be smaller than the detection rectangle for the vehicle, as shown in Figure 24. In this case, it is possible to add a measure to expand the determined rear surface in the vertical direction of the image and adjust it so that it is the same height as the detection rectangle for the vehicle.
[0071] Also, although the method using the circumscribed rectangular parallelepiped of the target has been exemplified, other rectangular parallelepipeds may be used. For example, as in the case of a taxi, if the rear and front are not as high as the center of the vehicle, the height of the detection rectangle of the rear may be smaller than the detection rectangle of the vehicle. Even in this case, by drawing a straight line toward the vanishing point, an inscribed rectangular parallelepiped is constructed with the detection rectangle of the rear of the vehicle as the first face, and the reduction ratio between the first face and the second face can be obtained.
[0072] Although the above description is directed to passenger cars, trucks, and buses, the present invention is not limited to these. For example, if the object can be expressed as a cube or a rectangular parallelepiped toward the vanishing point in the image of the on-board camera, it can also be used for motorcycles and bicycles. Similarly, when using an on-board camera, it is also possible to obtain the dimensions of buildings or structures such as roadside transformers that are built parallel to the road. For objects that are not on the road, for example, an automatic delivery robot can be used to calculate the optimal route by obtaining the total length of a cardboard box in front of it while moving along the corridor of a building.
[0073] In addition, the installation direction of the on-board camera is assumed to be the front of the observation vehicle and facing forward, but is not limited to this. For example, a rear camera that is installed at the rear and facing backward may be used. Similarly, if a side camera is used, the same method can be used to obtain the "width" dimensions of surrounding objects such as vehicles traveling nearby.
[0074] In addition, by applying the method of determining the judgment line, a line is drawn horizontally from each intersection coordinate, and the number of meters ahead of the line from the on-board camera is calculated, so that the overall length of the object can be calculated. The overall length can also be calculated from the difference in the width of the side. However, the appearance of the side changes depending on the lateral distance in real space between the camera and other vehicles. Therefore, it is necessary to estimate the lane of each vehicle from the inclination of the line segment connecting the obtained detection rectangle (front or rear) and the vanishing point, obtain width information of each lane from map data, etc., and evaluate it for each condition. In addition, dimensions other than the overall length of the vehicle can be calculated. This allows, for example, width and height to be estimated. In this way, by utilizing the method of calculating the judgment line, dimensions other than the overall length of the vehicle can be calculated.
[0075] Furthermore, the judgment line calculation unit 122 may calculate a plurality of judgment lines. In this case, for example, if two judgment lines with different distances, D1 and D2, are calculated, the judgment formula according to the distance to the judgment line acquired from the storage unit 118 will be different. Furthermore, the detection unit 114 may detect a detection rectangle including the adjacent first surface for each of the plurality of judgment lines.
[0076] In the above embodiment, the dimension estimation process executed by the CPU by reading the software (program) may be executed by various processors other than the CPU. In this case, examples of the processor include a PLD (Programmable Logic Device) such as an FPGA (Field-Programmable Gate Array) whose circuit configuration can be changed after manufacture, and a dedicated electric circuit such as an ASIC (Application Specific Integrated Circuit) which is a processor having a circuit configuration designed exclusively for executing a specific process. The dimension estimation process may be executed by one of these various processors, or may be executed by a combination of two or more processors of the same or different types (for example, a plurality of FPGAs, and a combination of a CPU and an FPGA). More specifically, the hardware structure of these various processors is an electric circuit that combines circuit elements such as semiconductor elements.
[0077] In the above embodiment, the dimension estimation program is stored (installed) in advance in the storage 14, but the present invention is not limited to this. The program may be provided in a form stored in a non-transitory storage medium such as a CD-ROM (Compact Disk Read Only Memory), a DVD-ROM (Digital Versatile Disk Read Only Memory), or a USB (Universal Serial Bus) memory. The program may also be downloaded from an external device via a network.
[0078] The following supplementary notes are further disclosed regarding the above embodiment.
[0079] (Additional note 1) Memory, at least one processor coupled to the memory; Including, The processor, Acquire an image captured at a moving object; Calculating a vanishing point and a predetermined judgment line in the image; Detecting an object in the image, and detecting a detection rectangle that includes a first surface of the object that is a surface closer to a photographing position and that is adjacent to the determination line; estimating a dimension of the object based on a ratio between a height of the first surface, which is determined from a relationship between the detected rectangle and the vanishing point, and a height of a second surface, which is a surface farther from a shooting position; The dimension estimation device is configured as follows.
[0080] (Additional note 2) A non-transitory storage medium storing a program executable by a computer to execute a dimension estimation process, Acquire an image captured at a moving object; Calculating a vanishing point and a predetermined judgment line in the image; Detecting an object in the image, and detecting a detection rectangle that includes a first surface of the object that is a surface closer to a photographing position and that is adjacent to the determination line; estimating a dimension of the object based on a ratio between a height of the first surface, which is determined from a relationship between the detected rectangle and the vanishing point, and a height of a second surface, which is a surface farther from a shooting position; Non-transitory storage medium. [Explanation of symbols]
[0081] 100 Dimension Estimation Device 110 Acquisition Department 112 Image information calculation unit 114 Detection unit 116 Dimension Estimation Section 118 Storage section 120 Vanishing point calculation section 122 Judgment line calculation section
Claims
1. An acquisition unit that acquires an image captured in a moving object; an image information calculation unit that calculates a vanishing point and a predetermined judgment line in the image; a detection unit that detects an object in the image and detects a detection rectangle that is a rectangle including a first surface of the object that is closer to a shooting position and is close to the determination line; a size estimation unit that estimates a size of the object based on a ratio between a height of the first surface, which is determined from a relationship between the detected rectangle and the vanishing point, and a height of a second surface, which is a surface farther from a shooting position; A size estimation device comprising:
2. The size estimation device according to claim 1 , wherein the size estimation unit calculates a line segment from the vanishing point to the first face of the detected rectangle, and calculates a height of the first face as a side surface component of a circumscribed rectangular parallelepiped.
3. 3. The dimension estimation device according to claim 1, wherein the image information calculation unit, in calculating the judgment line, calculates a photographable range based on a camera position and an angle of view obtained from camera information of the camera, and calculates the judgment line by drawing a line at a predetermined distance from the bottom of the image.
4. the detection unit detects a side surface of the object, and obtains a line segment connecting the side surface of the object farther from the vanishing point of the detected rectangle and the vanishing point; 4. The size estimation device according to claim 1, wherein the size estimation unit calculates heights of the first surface and the second surface for the side surface.
5. The image information calculation unit calculates a plurality of judgment lines, 5. The dimension estimation device according to claim 1, wherein the detection unit detects the detection rectangle for each of a plurality of determination lines.
6. 6. The size estimation device according to claim 1, wherein the size of the object is estimated using a predetermined equation according to the distance to the judgment line and the ratio of heights.
7. Acquire an image captured at a moving object; Calculating a vanishing point and a predetermined judgment line in the image; Detecting an object in the image, and detecting a detection rectangle that includes a first surface of the object that is a surface closer to a shooting position and that is adjacent to the determination line; a size of the object is estimated based on a ratio between a height of the first surface, which is determined from a relationship between the detected rectangle and the vanishing point, and a height of a second surface, which is a surface farther from a shooting position; A dimension estimation method in which processing is performed by a computer.
8. Acquire an image captured at a moving object; Calculating a vanishing point and a predetermined judgment line in the image; Detecting an object in the image, and detecting a detection rectangle that includes a first surface of the object that is a surface closer to a shooting position and that is adjacent to the determination line; a size of the object is estimated based on a ratio between a height of the first surface, which is determined from a relationship between the detected rectangle and the vanishing point, and a height of a second surface, which is a surface farther from a shooting position; A dimension estimation program that causes a computer to carry out processing.
Citation Information
Patent Citations
Collision detector
JP2013114585A
Recognition device
JP2015215661A
Vehicle detection system, vehicle detection device, vehicle detection method and vehicle detection program
JP2016192177A
