Angle detection device, computer program for angle detection, and angle detection method

The angle detection device simplifies the determination of the towed vehicle's angle with respect to the towing vehicle by projecting and calculating specific points from a single image, improving control during travel and parking.

JP2024114280AActive Publication Date: 2024-08-23TOYOTA JIDOSHA KK +1
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
JP2023019945
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-02-13
Publication Date
2024-08-23
Estimated Expiration
2043-02-13

AI Technical Summary

Technical Problem

Existing methods for determining the angle of a towed vehicle with respect to a towing vehicle using stereo cameras complicate the process.

Method used

An angle detection device that projects specific points from the rear and front of the towed vehicle onto a projection plane to calculate the relative angle using a single image, employing a detection unit, projection unit, and angle calculation unit.

Benefits of technology

Facilitates easy determination of the relative angle between the towed and towing vehicles based on a single image, enhancing the control of towing vehicles during curved road travel and parking.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024114280000001_ABST
    Figure 2024114280000001_ABST
Patent Text Reader

Abstract

To provide an angle detection device that easily determines an angle of a towed vehicle with respect to a towing vehicle.SOLUTION: An angle detection device detects a first point indicating a portion of the rear of a towing vehicle that is in a first plane perpendicular to the front / rear direction of the towing vehicle from an image that includes the rear of the towing vehicle and the front of the towed vehicle, a second point indicating another portion of the rear of the towing vehicle existing in the first plane and having the same height from the ground as the first point, a third point indicating a portion of the front of the towed vehicle present in a second plane perpendicular to the longitudinal direction of the coupling portion, and a fourth point indicating another portion of the front of the towed vehicle that is in the second plane and whose height above the ground is the same as the third point. The angle detection device projects the first to fourth points onto a projection plane parallel to the ground to obtain the fifth to eighth points corresponding to the first to fourth points and obtains the angle formed by a first straight line connecting the fifth and sixth points and a second straight line connecting the seventh and eighth points in the projection plane as the angle of the towed vehicle relative to the towing vehicle.SELECTED DRAWING: Figure 3
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates to an angle detection device, an angle detection computer program, and an angle detection method. [Background technology]

[0002] The automatic control system may be installed in a towing vehicle (passenger car) that is coupled to a towing vehicle (trailer) and travels while towing the towed vehicle.

[0003] An automatic control system mounted on the towing vehicle detects the positional relationship of the towed vehicle to the towing vehicle, and controls the towing vehicle based on the positional relationship of the towed vehicle.

[0004] The information indicating the positional relationship of the towed vehicle to the towing vehicle includes the angle of the towed vehicle relative to the towing vehicle. The automatic control system controls the operation of the towing vehicle when traveling on a curved road based on the angle of the towed vehicle relative to the towing vehicle. The automatic control system also controls the operation of the towing vehicle when backing up and parking based on the angle of the towed vehicle relative to the towing vehicle.

[0005] For example, Patent Document 1 proposes determining the angle of a towed vehicle relative to a towing vehicle based on two images captured by a stereo camera. [Prior art documents] [Patent documents]

[0006] [Patent Document 1] JP 2013-256156 A Summary of the Invention [Problem to be solved by the invention]

[0007] In the technology described in Patent Document 1, the angle of the towed vehicle relative to the towing vehicle is determined using two images, which causes a problem in that the process of determining this angle is complicated.

[0008] Therefore, an object of the present disclosure is to provide an angle detection device that can easily determine the angle of a towed vehicle relative to a towing vehicle. [Means for solving the problem]

[0009] (1) According to one embodiment, there is provided an angle detection device that determines the relative angle between the towing vehicle and a towed vehicle that is rotatably connected via a coupling section arranged on the towing vehicle, and detects, from an image including the rear of the towing vehicle and the front of the towed vehicle, a first point indicating a part of the rear of the towing vehicle that is located in a first plane perpendicular to the longitudinal direction of the towing vehicle, a second point indicating another part of the rear of the towing vehicle that is located in the first plane and has the same height from the ground as the first point, a third point indicating a part of the front of the towed vehicle that is located in a second plane perpendicular to the longitudinal direction of the coupling section, and a third point indicating a part of the front of the towed vehicle that is located in the second plane. The towed vehicle is characterized by having a detection unit that detects a fourth point that indicates another part of the front of the vehicle and is at the same height from the ground as the third point; a projection unit that projects the first, second, third, and fourth points detected by the detection unit onto a projection plane parallel to the ground to obtain a fifth, sixth, seventh, and eighth point corresponding to the first, second, third, and fourth points; and an angle calculation unit that calculates the angle between a first line connecting the fifth and sixth points and a second line connecting the seventh and eighth points within the projection plane as the relative angle of the towed vehicle to the towing vehicle.

[0010] (2) In the angle detection device of (1), it is preferable that the detection unit detects the first, second, third, and fourth points from the image using a classifier trained to identify from the image: a first point indicating a portion of the rear of the towing vehicle that is located in a first plane perpendicular to the fore-and-aft direction of the towing vehicle; a second point indicating another portion of the rear of the towing vehicle that is located in the first plane and has the same height from the ground as the first point; a third point indicating a portion of the front of the towed vehicle that is located in a second plane perpendicular to the longitudinal direction of the coupling portion; and a fourth point indicating another portion of the front of the towed vehicle that is located in the second plane and has the same height from the ground as the third point.

[0011] (3) In the angle detection device of (1) or (2), the first point and the second point represent the position of the rear lower end of the towing vehicle; It is preferable that the projection unit converts the first, second, third, and fourth points represented in the image coordinate system into the first, second, third, and fourth points represented in the camera coordinate system using the height of the rear bottom position of the towed vehicle, converts the first, second, third, and fourth points represented in the camera coordinate system into the first, second, third, and fourth points represented in the world coordinate system, and then projects the first, second, third, and fourth points represented in the world coordinate system onto a projection plane to obtain the fifth, sixth, seventh, and eighth points.

[0012] (4) According to another embodiment, there is provided an angle detection computer program for determining a relative angle between the towing vehicle and a towed vehicle rotatably connected via a coupling section arranged on the towing vehicle, and the angle detection computer program determines, from an image including the rear of the towing vehicle and the front of the towed vehicle, a first point indicating a part of the rear of the towing vehicle that is located in a first plane perpendicular to the longitudinal direction of the towing vehicle, a second point indicating another part of the rear of the towing vehicle that is located in the first plane and has the same height from the ground as the first point, a third point indicating a part of the front of the towed vehicle that is located in a second plane perpendicular to the longitudinal direction of the coupling section, and detecting a fourth point which indicates another part of the front of the towed vehicle which is present in the second plane and which is at the same height from the ground as the third point; projecting the first, second, third, and fourth points onto a projection plane parallel to the ground to determine a fifth, sixth, seventh, and eighth point which correspond to the first, second, third, and fourth points; and determining an angle between a first line connecting the fifth and sixth points and a second line connecting the seventh and eighth points within the projection plane as the relative angle of the towed vehicle to the towing vehicle.

[0013] (5) According to still another embodiment, there is provided an angle detection method for determining a relative angle between a towed vehicle and a towed vehicle rotatably connected via a coupling part arranged on the towed vehicle, in which an angle detection device detects from an image including the rear of the towed vehicle and the front of the towed vehicle a first point indicating a part of the rear of the towed vehicle that is located in a first plane perpendicular to the longitudinal direction of the towed vehicle, a second point indicating another part of the rear of the towed vehicle that is located in the first plane and has the same height from the ground as the first point, a third point indicating a part of the front of the towed vehicle that is located in a second plane perpendicular to the longitudinal direction of the coupling part, and detecting a fourth point which indicates another part of the front of the towed vehicle which is present within the second plane and which is at the same height from the ground as the third point; projecting the first, second, third, and fourth points onto a projection plane parallel to the ground to determine a fifth, sixth, seventh, and eighth point which correspond to the first, second, third, and fourth points; and determining the angle between a first line connecting the fifth and sixth points and a second line connecting the seventh and eighth points within the projection plane as the relative angle of the towed vehicle to the towing vehicle. Effect of the Invention

[0014] The angle detection device according to the present disclosure can easily determine the relative angle of the towed vehicle with respect to the towing vehicle based on a single image that includes the rear of the towing vehicle and the front of the towed vehicle. [Brief description of the drawings]

[0015] [Figure 1] 1A is a plan view of a towing vehicle and a towed vehicle, and FIG. 1B is a diagram showing an example of a rear image. [Diagram 2] 1A to 1C are diagrams illustrating an overview of the operation of the angle detection device of the present embodiment, and are diagrams illustrating how an angle is obtained. [Diagram 3] FIG. 2 is a hardware configuration diagram of a vehicle in which the angle detection device of the present embodiment is implemented. [Figure 4]4 is an example of an operational flowchart relating to an angle detection process of the angle detection device of the present embodiment. [Diagram 5] 5 is an example of an operational flowchart relating to a coordinate conversion process of the angle detection device of the present embodiment. [Figure 6] 5A to 5C are diagrams illustrating a projection process of the angle detection device according to the embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0016] Figures 1(A), 1(B) and 2 are diagrams for explaining an overview of the operation of the angle detection device of this embodiment. Figure 1(A) is a plan view of a vehicle 10 and a towed vehicle 30, and Figure 1(B) is a diagram showing an example of a rear image. Figure 2 is a diagram for explaining the determination of an angle. Below, an overview of the operation related to the angle detection process of the angle detection device 12 disclosed in this specification will be described with reference to Figures 1(A), 1(B) and 2.

[0017] A towing vehicle 10 (hereinafter also simply referred to as vehicle 10) tows a towed vehicle 30. The towed vehicle 30 is rotatably connected to the vehicle 10 via a connecting part 40 that extends in a predetermined direction.

[0018] The vehicle 10 has an automatic control device 11 and an angle detection device 12. The angle detection device 12 detects the relative angle of the towed vehicle 30 with respect to the vehicle 10. The automatic control device 11 controls the operation of the vehicle 10 based on the relative angle so that the vehicle 10 travels while towing the towed vehicle 30. The vehicle 10 may be an autonomous vehicle.

[0019] The connecting portion 40 has a rod-like shape overall. The connecting portion 40 connects the center of the width direction at the lower end of the rear surface 10a of the vehicle 10 to the center of the width direction at the lower end of the front surface 30a of the towed vehicle 30. The width direction is perpendicular to the front-rear direction of each vehicle. When the vehicle 10 is towing the towed vehicle 30 and traveling straight, the front-rear direction of the vehicle 10 and the front-rear direction of the towed vehicle 30 coincide. Furthermore, when the vehicle 10 is towing the towed vehicle 30 and traveling straight, the longitudinal direction of the connecting portion 40 coincides with the front-rear direction of the vehicle 10 and the towed vehicle 30.

[0020] One end of the coupling part 40 is, for example, a hollow hemisphere, and rotatably fits into a spherical fitting part (not shown) of the vehicle 10. The other end of the coupling part 40 is fixed to the towed vehicle 30. The coupling part 40 extends perpendicular to the front surface 30a of the towed vehicle 30. Note that the coupling part 40 does not have to be rod-shaped as long as it has an anisotropic shape extending in a specified direction.

[0021] In a plane parallel to the ground, the angle θ that the coupling part 40 makes with respect to a direction perpendicular to the rear surface 10a of the towing vehicle 10 is the relative angle of the towed vehicle 30 with respect to the vehicle 10. When the vehicle 10 is traveling straight, the relative angle is approximately zero. Hereinafter, this relative angle will also be referred to simply as the relative angle of the towed vehicle 30 with respect to the towing vehicle 10.

[0022] 1A, the vehicle 10 is turning to the left. As the vehicle 10 turns, the towed vehicle 30 is towed at an angle θ relative to the vehicle 10.

[0023] The automatic control device 11 controls the operation of the vehicle 10 so that the towed vehicle 30 is safely towed when traveling on a curved road, based on the relative angle of the towed vehicle 30 to the towing vehicle 10. In addition, when parking in a parking space while backing up, the automatic control device 11 controls the operation of the vehicle 10 so that the towed vehicle 30 fits into the parking space, based on the relative angle of the towed vehicle 30 to the towing vehicle 10.

[0024] The camera 3 captures a rear image including the rear of the vehicle 10 and the front of the towed vehicle 30. For example, as shown in FIG. 1(B), the rear image 100 is captured so as to include the bottom end of the rear surface 10a of the vehicle 10 and the bottom end of the front surface 30a of the towed vehicle 30.

[0025] The angle detection device 12 detects from the rear image 100 a first point P1 indicating a part of the rear of the towing vehicle 10 that exists within a first plane perpendicular to the fore-and-aft direction of the towing vehicle 10, and a second point P2 indicating another part of the rear of the towing vehicle 10 that exists within the first plane and has the same height from the ground as the first point P1.

[0026] In addition, the angle detection device 12 detects from the rear image 100 a third point P3 indicating a portion of the front of the towed vehicle 30 that is located within a second plane perpendicular to the longitudinal direction of the coupling portion 40, and a fourth point P4 indicating another portion of the front of the towed vehicle 30 that is located within the second plane and has the same height from the ground as the third point P3.

[0027] In the example shown in Fig. 1(B), the first plane corresponds to the rear surface 10a of the vehicle 10. The first point P1 and the second point P2 correspond to the left and right end positions of the lower end of the rear surface 10a. The second plane corresponds to the front surface 30a of the towed vehicle 30. The third point P3 and the fourth point P4 correspond to the left and right end positions of the front surface 30a. The first point P1, the second point P2, the third point P3, and the fourth point P4 are expressed, for example, in a camera coordinate system having an origin on the imaging plane of the camera 3.

[0028] 2, the angle detection device 12 projects the first point P1, the second point P2, the third point P3, and the fourth point P4 onto a projection plane W parallel to the ground, and obtains a fifth point P5, a sixth point P6, a seventh point P7, and an eighth point P8 corresponding to the first point P1, the second point P2, the third point P3, and the fourth point P4. The fifth point P5, the sixth point P6, the seventh point P7, and the eighth point P8 are expressed in a world coordinate system having a predetermined reference position in real space as the origin, for example.

[0029] The angle detection device 12 determines the angle θ between a first line L1 connecting the fifth point P5 and the sixth point P6 and a second line L2 connecting the seventh point P7 and the eighth point P8 on the projection plane W as the relative angle of the towed vehicle 30 with respect to the vehicle 10. The relative angle θ coincides with the direction in which the coupling part 40 extends from the rear surface 10a of the vehicle 10.

[0030] The angle detection device 12 notifies the automatic control device 11 of the relative angle θ. The automatic control device 11 controls the operation of the vehicle 10 based on this relative angle θ so that the vehicle 10 travels while towing the towed vehicle 30.

[0031] As described above in detail, the angle detection device 12 can easily determine the relative angle of the towed vehicle 30 with respect to the vehicle 10 based on a single rear image 100 that includes the rear of the vehicle 10 and the front of the towed vehicle 30.

[0032] 3 is a hardware configuration diagram of a vehicle 10 in which the angle detection device 12 of this embodiment is implemented. The vehicle 10 has a front camera 2, a rear camera 3, an automatic control device 11, an angle detection device 12, and the like. Furthermore, the vehicle 10 may have other distance measuring sensors (not shown) such as a LiDAR sensor for measuring distances to objects around the vehicle 10, and the like.

[0033] The front camera 2, rear camera 3, automatic control device 11, and angle detection device 12 are communicatively connected via an in-vehicle network 13 that complies with a standard such as a controller area network.

[0034] The front camera 2 is attached to the vehicle 10 so as to face the front of the vehicle 10. The front camera 2 captures a front image showing the environment of a predetermined area in front of the vehicle 10, for example, at a predetermined cycle. The front image may show the road included in the predetermined area in front of the vehicle 10 and road features such as lane markings on the road surface. The front image captured by the front camera 2 may show other vehicles located in front of the vehicle 10. The front camera 2 has a two-dimensional detector composed of an array of photoelectric conversion elements sensitive to visible light, such as a CCD or C-MOS, and an imaging optical system that forms an image of the area to be captured on the two-dimensional detector.

[0035] Every time the front camera 2 captures a front image, it outputs the front image and the camera image capture time when the front image was captured to the automatic control device 11 via the in-vehicle network 13. The camera image is used by the automatic control device 11 in a process of detecting objects around the vehicle 10.

[0036] The rear camera 3 is attached to the vehicle 10 so as to face the rear of the vehicle 10. The rear camera 3 captures rear images showing the environment of a predetermined area in front of the vehicle 10, for example at a predetermined period. The rear images show the environment included in the predetermined area behind the vehicle 10.

[0037] The rear camera 3 is preferably attached to the vehicle 10 at the upper end of the rear surface 10a of the vehicle 10 so as to face the front surface 30a of the towed vehicle 30. In addition, the rear camera 3 is preferably attached to the vehicle 10 so that the lower end of the rear surface 10a of the vehicle 10 and the lower end of the front surface 30a of the towed vehicle 30 are included in its field of view.

[0038] The rear camera 3 has a two-dimensional detector composed of an array of photoelectric conversion elements sensitive to visible light, such as a CCD or C-MOS, and an imaging optical system that forms an image of the area to be photographed on the two-dimensional detector. From the viewpoint of photographing a rear image with a wide field of view, it is preferable that the rear camera 3 is a fisheye camera capable of photographing a fisheye image.

[0039] Every time the rear camera 3 captures a rear image, it outputs the rear image and the rear image capture time at which the rear image was captured to the angle detection device 12 and the like via the in-vehicle network 13. The rear image is used in the angle detection device 12 to determine the relative angle of the towed vehicle 30 with respect to the vehicle 10.

[0040] The automatic control device 11 controls the operation of the vehicle 10, including the traveling of the vehicle 10. The automatic control device 11 recognizes the environment around the vehicle 10 based on the forward image captured by the forward camera 2. The automatic control device 11 also generates a driving plan for controlling the operations such as steering, driving, and braking based on the recognized environment around the vehicle 10 and the relative angle of the towed vehicle 30 with respect to the vehicle 10. Here, the automatic control device 11 generates a driving plan within the range of restrictions on the state that occurs in the towed vehicle 30 as the vehicle 10 travels, based on the relative angle of the towed vehicle 30 with respect to the vehicle 10 output from the angle detection device 12. Examples of restrictions on the state that occurs in the towed vehicle 30 as the vehicle 10 travels include acceleration, deceleration, yaw rate, and angular acceleration. The automatic control device 11 outputs an automatic control signal based on this driving plan to an actuator (not shown) that controls the steering wheel, a drive device (not shown), or a brake (not shown) via the in-vehicle network 13.

[0041] The angle detection device 12 executes detection processing, conversion processing, projection processing, and calculation processing. To this end, the angle detection device 12 has a communication interface (IF) 21, a memory 22, and a processor 23. The communication interface 21, the memory 22, and the processor 23 are connected via a signal line 24. The communication interface 21 has an interface circuit for connecting the angle detection device 12 to the in-vehicle network 13.

[0042] The memory 22 is an example of a storage unit, and includes, for example, a volatile semiconductor memory and a non-volatile semiconductor memory. The memory 22 stores computer programs and various data of applications used in information processing executed by the processor 23. The memory 22 also stores internal parameters such as the optical axis direction of the rear camera 3, the focal length and angle of view of the imaging optical system, and external parameters such as the mounting position and attitude of the rear camera 3.

[0043] All or part of the functions of the angle detection device 12 are functional modules realized by a computer program running on the processor 23, for example. The processor 23 has a detection unit 231, a conversion unit 232, a projection unit 233, and a calculation unit 234. Alternatively, the functional modules of the processor 23 may be dedicated arithmetic circuits provided in the processor 23. The processor 23 has one or more central processing units (CPUs) and their peripheral circuits. The processor 23 may further have other arithmetic circuits such as a logic arithmetic unit, a numerical arithmetic unit, or a graphic processing unit. The angle detection device 12 is, for example, an electronic control unit (ECU). Details of the operation of the angle detection device 12 will be described later.

[0044] In FIG. 3, the automatic control device 11 and the angle detection device 12 are illustrated as separate devices, but all or part of these devices may be configured as a single device.

[0045] Fig. 4 is an example of an operation flowchart related to the angle detection process of the angle detection device 12 of this embodiment. Hereinafter, the angle detection process of the angle detection device 12 will be described with reference to Fig. 4. The angle detection device 12 executes the angle detection process according to the operation flowchart shown in Fig. 4 at the angle detection time set at a predetermined cycle.

[0046] First, the detection unit 231 acquires a rear image captured by the rear camera 3 (step S101). The rear image preferably includes the bottom end of the rear surface 10a of the vehicle 10 and the bottom end of the front surface 30a of the towed vehicle 30.

[0047] Next, the detection unit 231 detects from the rear image a first point P1 indicating a portion of the rear of the vehicle 10 located within a first plane perpendicular to the fore-and-aft direction of the vehicle 10, a second point P2 indicating another portion of the rear of the vehicle 10 located within the first plane and having the same height from the ground as the first point P1, a third point P3 indicating a portion of the front of the towed vehicle 30 located within a second plane perpendicular to the longitudinal direction of the coupling portion 40, and a fourth point P4 indicating another portion of the front of the towed vehicle 30 located within the second plane and having the same height from the ground as the third point P3 (step S102).

[0048] The first, second, third, and fourth points are expressed in an image coordinate system that represents positions in the rear image. This image coordinate system is expressed by coordinates that represent positions on two orthogonal axes with the upper left corner of the rear image as the origin.

[0049] The detection unit 231 has a classifier that has been trained to identify from the rear image: a first point indicating a portion of the rear of the vehicle 10 that is located in a first plane perpendicular to the fore-and-aft direction of the towing vehicle 10; a second point indicating another portion of the rear of the vehicle 10 that is located in the first plane and has the same height from the ground as the first point; a third point indicating a portion of the front of the towed vehicle 30 that is located in a second plane perpendicular to the longitudinal direction of the coupling portion 40; and a fourth point indicating another portion of the front of the towed vehicle 30 that is located in the second plane and has the same height from the ground as the third point.

[0050] The detection unit 231 detects a first point P1, a second point P2, a third point P3, and a fourth point P4 by inputting the rear image to this classifier.

[0051] As this classifier, for example, a deep neural network (DNN) that has been trained in advance to detect a first point, a second point, a third point, and a fourth point represented in an input image can be used.

[0052] As a teacher image for training the classifier, an image including the left end position of the lower rear end of the towing vehicle, the right end position of the lower rear end of the towing vehicle, or the center position of the lower rear end of the towing vehicle as the first and second points, and the left end position of the lower front end of the towed vehicle, the right end position of the lower front end of the towed vehicle, or the center position of the lower front end of the towed vehicle as the third and fourth points can be used. Also, as a teacher image, an image including the left end position of the upper front end of the towed vehicle, the right end position of the upper front end of the towed vehicle, or the center position of the upper front end of the towed vehicle as the third and fourth points can be used. Note that the first and second points do not have to be symmetrical with respect to the center in the width direction as long as they have the same height from the ground. Similarly, the third and fourth points do not have to be symmetrical with respect to the center in the width direction as long as they have the same height from the ground.

[0053] Furthermore, the method in which the detection unit 231 detects the first, second, third, and fourth points is not limited to this. For example, the rear image is divided into upper, middle, and lower regions in the height direction, and the first and second points are included in the lower region, and the third and fourth points are included in the middle region.

[0054] The detection unit 231 extracts edges from the lower region of the rear image and detects straight lines formed by the edges. The detection unit 231 detects an intersection position where two straight lines formed by the edges intersect at an angle of 90 degrees. The detection unit 231 may detect a pair of intersection positions that share one of the two straight lines forming the intersection position as the first point and the second point.

[0055] In the same manner, the detection unit 231 extracts edges from the center region of the rear image and detects straight lines formed by the edges. The detection unit 231 detects an intersection position where two straight lines formed by the edges intersect at an angle of 90 degrees. The detection unit 231 may then detect a pair of intersection positions that share one of the two straight lines forming the intersection position as the third and fourth points.

[0056] Next, the conversion unit 232 converts the positions of the first, second, third, and fourth points expressed in the image coordinate system into positions in a world coordinate system whose origin is a predetermined reference position in real space (step S103). This coordinate conversion process will be described later with reference to FIG.

[0057] Next, the projection unit 233 projects the first, second, third, and fourth points expressed in the world coordinate system onto a projection plane parallel to the ground to obtain a fifth, sixth, seventh, and eighth point corresponding to the first, second, third, and fourth points (step S104). In the world coordinate system, a predetermined reference position in space is defined as the origin, a direction perpendicular to the ground is defined as the z-axis, and two directions perpendicular to the z-axis are defined as the x-axis and y-axis. For example, the position of the tip of the vehicle 10 may be used as the origin.

[0058] Here, the projection unit 233 may obtain the projection plane on the assumption that the vehicle 10 on which the rear camera 3 is attached is located on a horizontal ground. In this case, a plane perpendicular to the z-axis is selected as the projection plane parallel to the ground. In addition, if the vehicle 10 is equipped with a sensor that measures the horizontality, the projection unit 233 may obtain the projection plane based on the measured horizontality of the vehicle 10.

[0059] The projection plane may be perpendicular to a plane perpendicular to the front-rear direction of the vehicle 10 and perpendicular to a plane including the front-rear direction of the vehicle 10. Such a projection plane may be set based on external parameters of the rear camera 3, etc.

[0060] Next, the calculation unit 234 calculates the angle between a first line connecting the fifth and sixth points and a second line connecting the seventh and eighth points on the projection plane as the relative angle of the towed vehicle 30 with respect to the vehicle 10 (step S105), and ends the series of processes. The calculation unit 234 is an example of an angle calculation unit. The calculation unit 234 outputs the relative angle to the automatic control device 11. Based on this relative angle, the automatic control device 11 controls the operation of the vehicle 10 so that the vehicle 10 travels while towing the towed vehicle 30.

[0061] Next, the coordinate conversion process in step S103 will be described below with reference to Fig. 5. Fig. 5 is an example of an operational flowchart relating to the coordinate conversion process of the angle detection device 12 of this embodiment.

[0062] First, the conversion unit 232 converts the rear image, which is a fisheye image, into a planar image (step S201). A known technique can be used to convert a fisheye image into a planar image. Design information of the fisheye lens used in this conversion, etc., is stored in the memory 22. Note that if the rear camera 3 is not a fisheye camera, this process is omitted.

[0063] Next, the conversion unit 232 converts the positions of the first, second, third and fourth points on the planar image, which are expressed in the image coordinate system, into positions in the camera coordinate system (step S202). The camera coordinate system has the position of the rear camera 3 as its origin, and the optical axis direction of the rear camera 3 as one axis direction. The image coordinate system is arranged in a plane perpendicular to the optical axis direction of the rear camera 3. Such a conversion formula is obtained by the internal parameters of the rear camera 3 and a projection matrix representing the projection. In addition, since this conversion is a conversion from two dimensions to three dimensions, it is preferable to use the height of the lower end of the rear surface 10a of the vehicle 10 from the ground or the height of the lower end of the front surface 30a of the towed vehicle 30 from the ground as a coordinate representing the height in the camera coordinate system. These heights can be expressed in the camera coordinate system using the internal parameters and external parameters of the rear camera 3. In addition, in the conversion from the image coordinate system to the camera coordinate system, the positions on the planar image may be converted from the image coordinate system to a normalized image system and then converted to the camera coordinate system.

[0064] Next, the conversion unit 232 converts the positions of the first, second, third and fourth points expressed in the camera coordinate system into positions in the world coordinate system (step S203), and ends the series of processes. Such conversion is expressed by a combination of a rotation matrix that represents the rotation between the coordinate systems and a translation vector that represents the parallel translation between the coordinate systems. This conversion formula is obtained based on the current position of the vehicle 10, external parameters, etc. Note that in the conversion from the camera coordinate system to the world coordinate system, the positions in the camera coordinate system may be converted from the camera coordinate system to the vehicle coordinate system and then converted to the world coordinate system.

[0065] The above-mentioned angle detection process will be described below with reference to FIG. 1(B), FIG. 2 and FIG.

[0066] 1B shows an example of a rear image 100. The rear image 100 shows the lower end of the rear surface 10a of the vehicle 10 and the lower end of the front surface 30a of the towed vehicle 30.

[0067] The rear surface 10a of the vehicle 10 is an example of a first plane perpendicular to the front-to-rear direction of the towing vehicle 10. The first point P1 and the second point P2 are detected as the positions of the left and right ends of the lower end of the rear surface 10a. The left and right ends of the lower end of the rear surface 10a exist within the rear surface 10a. The left and right ends of the lower end of the rear surface 10a are at the same height from the ground.

[0068] The front surface 30a of the towed vehicle 30 is an example of a second plane perpendicular to the longitudinal direction of the coupling portion 40. The third point P3 and the fourth point P4 are detected as the positions of the left and right ends of the lower end of the front surface 30a. The left and right ends of the lower end of the front surface 30a are present within the front surface 30a. The left and right ends of the lower end of the front surface 30a are at the same height from the ground.

[0069] 6 is a diagram for explaining the projection process of the angle detection device 12 of this embodiment. The first point P1, the second point P2, the third point P3, and the fourth point P4 are expressed in the world coordinate system. The first point P1 and the second point P2 indicate the positions of the left and right ends of the lower end of the rear surface 10a of the vehicle 10. The third point P3 and the fourth point P4 indicate the positions of the left and right ends of the lower end of the front surface 30a of the towed vehicle 30.

[0070] 6, the fifth point P5, the sixth point P6, the seventh point P7, and the eighth point P8 indicate points obtained by projecting the first point P1, the second point P2, the third point P3, and the fourth point P4 expressed in the world coordinate system onto a projection plane W parallel to the ground. The fifth point P5, the sixth point P6, the seventh point P7, and the eighth point P8 correspond to the first point P1, the second point P2, the third point P3, and the fourth point P4.

[0071] 2, the calculation unit 234 obtains a first straight line L1 that connects the fifth point P5 and the sixth point P6 in the projection plane W. In addition, the calculation unit 234 obtains a second straight line L2 that connects the seventh point P7 and the eighth point P8 in the projection plane W.

[0072] The calculation unit 234 determines the interior angle θ formed by the first line L1 and the second line L2 at the intersection C of the first line L1 and the second line L2 as the relative angle of the towed vehicle 30 with respect to the vehicle 10.

[0073] The interior angle θ is the relative angle of the towed vehicle 30 with respect to the vehicle 10, as will be explained below. First, in Fig. 2, point Q is the midpoint of the line segment P5P6 connecting the fifth point P5 and the sixth point P6. Point S is the point where a straight line extending from point Q perpendicular to the line segment P5P6 intersects with a line segment P7P8 connecting the seventh point P7 and the eighth point P8. Point R is the foot of a perpendicular line drawn from point C to the line segment P7P8. Here, the direction of the line segment QR connecting points Q and R coincides with the longitudinal direction of the coupling part 40.

[0074] Triangles SCQ and SQR are right-angled triangles, and since ∠QSC of triangle SCQ is the same as ∠RSQ of triangle SQR, triangles SCQ and SQR are similar. Therefore, ∠SCQ of triangle SCQ is equal to ∠SQR of triangle SQR.

[0075] ∠SQR is the relative angle of the towed vehicle 30 with respect to the vehicle 10, and the above-mentioned ∠SCQ represents the interior angle θ. Therefore, the interior angle θ, which is ∠SCQ, is the relative angle of the towed vehicle 30 with respect to the vehicle 10.

[0076] As described above in detail, the angle detection device of this embodiment can easily determine the relative angle of the towed vehicle to the towing vehicle based on a single image that includes the rear of the towing vehicle and the front of the towed vehicle.

[0077] In the present disclosure, the angle detection device, the computer program for angle detection, and the angle detection method of the above-mentioned embodiments can be modified as appropriate without departing from the spirit of the present disclosure. Furthermore, the technical scope of the present disclosure is not limited to those embodiments, but extends to the inventions described in the claims and their equivalents.

[0078] For example, in the above-described embodiment, the first point P1 and the second point P2 were located at the left and right ends of the rear lower end of the towing vehicle, but the first point P1 and the second point P2 may be two of the left and right ends of the rear lower end of the towing vehicle, and a central position of the rear lower end of the towing vehicle (e.g., the position of the coupling part).

[0079] Furthermore, in the above-described embodiment, the third point P3 and the fourth point P4 were located at the left and right ends of the front lower end of the towed vehicle, but the third point P3 and the fourth point P4 may also be two of the left and right ends of the front lower end of the towed vehicle, and the center of the front lower end of the towed vehicle (e.g., the position of the coupling part).

[0080] The detection unit may detect three or more positions of the towing vehicle that are at the same height from the ground in a first plane and three or more positions of the towed vehicle that are at the same height from the ground in a second plane from an image including the rear of the towing vehicle and the front of the towed vehicle, and the calculation unit may determine the angle of the towed vehicle relative to the towing vehicle by a first line connecting the three or more positions and a second line connecting the three or more positions in the projection plane. This allows the angle detection device to accurately determine the relative angle. [Explanation of symbols]

[0081] 2. Front camera 3 Rear camera 10 Towing vehicle 11 Automatic control device 12 Angle detection device 21 Communication Interface 22 Memory 23 Processors 231 Detection unit 232 Conversion unit 233 Projection section 234 Calculation Section 13 In-vehicle network 30 Towed vehicle 40 Connection part

Claims

1. An angle detection device for determining a relative angle between a towed vehicle and the towing vehicle, the towed vehicle being rotatably connected via a connecting portion disposed on the towing vehicle, comprising: a detection unit that detects, from an image including the rear of the towing vehicle and the front of the towed vehicle, a first point that indicates a portion of the rear of the towing vehicle that is located in a first plane perpendicular to the longitudinal direction of the towing vehicle, a second point that indicates another portion of the rear of the towing vehicle that is located in the first plane and has the same height from the ground as the first point, a third point that indicates a portion of the front of the towed vehicle that is located in a second plane perpendicular to the longitudinal direction of the coupling portion, and a fourth point that indicates another portion of the front of the towed vehicle that is located in the second plane and has the same height from the ground as the third point; a projection unit that projects the first point, the second point, the third point, and the fourth point detected by the detection unit onto a projection plane parallel to a ground surface, and obtains a fifth point, a sixth point, a seventh point, and an eighth point corresponding to the first point, the second point, the third point, and the fourth point; an angle calculation unit that calculates an angle between a first line connecting the fifth point and the sixth point and a second line connecting the seventh point and the eighth point on the projection plane as a relative angle of the towed vehicle with respect to the towing vehicle; An angle detection device comprising:

2. 2. The angle detection device according to claim 1, wherein the detection unit detects the first point, the second point, the third point, and the fourth point from the image using a classifier trained to identify from the image the first point indicating a portion of the rear of the towing vehicle that is located in the first plane perpendicular to the front-to-rear direction of the towing vehicle, the second point indicating another portion of the rear of the towing vehicle that is located in the first plane and has the same height from the ground as the first point, the third point indicating a portion of the front of the towed vehicle that is located in a second plane perpendicular to the longitudinal direction of the coupling section, and the fourth point indicating another portion of the front of the towed vehicle that is located in the second plane and has the same height from the ground as the third point.

3. The first point and the second point represent the position of a rear lower end of a towing vehicle, 3. The angle detection device according to claim 1 or 2, wherein the projection unit converts the first point, the second point, the third point, and the fourth point represented in an image coordinate system into the first point, the second point, the third point, and the fourth point represented in a camera coordinate system using a height of a position of a rear bottom end of a towing vehicle, converts the first point, the second point, the third point, and the fourth point represented in the camera coordinate system into the first point, the second point, the third point, and the fourth point represented in a world coordinate system, and then projects the first point, the second point, the third point, and the fourth point represented in the world coordinate system onto the projection plane to determine the fifth point, the sixth point, the seventh point, and the eighth point.

4. A computer program for detecting an angle for determining a relative angle between a towed vehicle and a towing vehicle, the towed vehicle being rotatably connected via a connecting portion disposed on the towing vehicle, comprising: From an image including the rear of the towing vehicle and the front of the towed vehicle, a first point indicating a portion of the rear of the towing vehicle that is located in a first plane perpendicular to the longitudinal direction of the towing vehicle, a second point indicating another portion of the rear of the towing vehicle that is located in the first plane and has the same height from the ground as the first point, a third point indicating a portion of the front of the towed vehicle that is located in a second plane perpendicular to the longitudinal direction of the coupling portion, and a fourth point indicating another portion of the front of the towed vehicle that is located in the second plane and has the same height from the ground as the third point, projecting the first point, the second point, the third point, and the fourth point onto a projection plane parallel to the ground to obtain a fifth point, a sixth point, a seventh point, and an eighth point corresponding to the first point, the second point, the third point, and the fourth point; Calculating an angle between a first line connecting the fifth point and the sixth point and a second line connecting the seventh point and the eighth point within the projection plane as a relative angle of the towed vehicle with respect to the towing vehicle. A computer program for angle detection, comprising: a processor for executing a process including the steps of:

5. 1. An angle detection method for determining a relative angle between a towed vehicle and a towing vehicle, the towed vehicle being rotatably connected via a connecting portion disposed on the towing vehicle, comprising: The angle detection device is From an image including the rear of the towing vehicle and the front of the towed vehicle, a first point indicating a portion of the rear of the towing vehicle that is located in a first plane perpendicular to the longitudinal direction of the towing vehicle, a second point indicating another portion of the rear of the towing vehicle that is located in the first plane and has the same height from the ground as the first point, a third point indicating a portion of the front of the towed vehicle that is located in a second plane perpendicular to the longitudinal direction of the coupling portion, and a fourth point indicating another portion of the front of the towed vehicle that is located in the second plane and has the same height from the ground as the third point, projecting the first point, the second point, the third point, and the fourth point onto a projection plane parallel to the ground to obtain a fifth point, a sixth point, a seventh point, and an eighth point corresponding to the first point, the second point, the third point, and the fourth point; Calculating an angle between a first line connecting the fifth point and the sixth point and a second line connecting the seventh point and the eighth point within the projection plane as a relative angle of the towed vehicle with respect to the towing vehicle. The angle detection method according to claim 1,

Citation Information

Patent Citations

  • Panoramic image splicing method and device, storage medium and display method and system

    CN112348741A

  • Trailer connecting angle detector

    JP2001334966A

  • Detector for trailer connection angle

    JP2002068032A

  • Coupling angle detector

    JP2003148938A

  • Towed vehicle wheel base detection device and vehicle control device with the same

    JP2013256156A