Image processing device

By performing moving object recognition and masking processing on images captured by cameras inside and outside the vehicle, it solves the problem of determining the vehicle's behavior when installed on the vehicle later, and achieves high-precision vehicle motion estimation and driving assistance functions.

CN115131976BActive Publication Date: 2024-09-10HONDA MOTOR CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210256571.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2021-03-24
Filing Date
2022-03-16
Publication Date
2024-09-10
Estimated Expiration
2042-03-16

AI Technical Summary

Technical Problem

The existing technology is difficult to determine the behavior of the vehicle with high accuracy when installed on an existing vehicle at a later stage, especially when the wheel speed and steering angle are not provided.

Method used

An image processing device is provided. An image is acquired through an image acquisition unit. The processing unit performs identification and masking processing on a moving object, and estimates the spatial motion of the vehicle, including speed and turning direction, based on the masked image.

Benefits of technology

It realizes the high-precision determination of the vehicle when installed on the vehicle at a later stage, provides accurate estimation of vehicle motion, and supports driving assistance functions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115131976B_ABST
    Figure CN115131976B_ABST
Patent Text Reader

Abstract

The present invention provides an image processing device that improves the accuracy of estimation when estimating the behavior of a vehicle based on an image captured from a moving object. The vehicle-mounted image processing device includes an image acquisition unit including a camera, and a processing unit that processes the image acquired by the image acquisition unit. The processing unit identifies the moving object from the image acquired by the image acquisition unit, performs masking processing on the moving object identified in the image, and estimates the spatial motion represented by the speed of the vehicle based on the masked image.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to an image processing device, and in particular to a vehicle-mounted image processing device. Background Art

[0002] Vehicles with driving assistance functions assembled during production are becoming more common. Such driving assistance functions include the following functions: detecting the direction of travel of the vehicle and objects around the vehicle through cameras and radars, and prompting the driver to pay attention, or to perform steering and braking. As a device for realizing such a driving assistance function, a device for detecting a moving object and outputting an alarm has been proposed (for example, see Patent Document 1, etc.).

[0003] The device described in Patent Document 1 captures images with a vehicle-mounted camera, calculates optical flow based on the captured images, and detects moving objects from the optical flow. Furthermore, the apparent motion caused by water vapor or light source changes is detected from the optical flow, and the area containing the brightness change caused by the water vapor or light source changes is set as an alarm suppression area. Then, the moving objects included in the alarm suppression area among the detected moving objects are regarded as invalid moving objects and excluded from the objects of the alarm.

[0004] In order to realize such a function, the device described in Patent Document 1 provides not only images but also signals from sensors such as wheel speed from a wheel speed sensor and steering angle from a steering angle sensor, and further, the function is realized by an ECU mounted on the vehicle. In this way, since the wheel speed and steering angle are obtained from the vehicle's sensors, the moving body can be determined based on the moving vehicle, and the objects excluded from the alarm are only the changes in light sources and water vapor that appear to be moving bodies but are not real moving bodies.

[0005] Prior art literature

[0006] Patent Literature

[0007] Patent Document 1: Japanese Patent Application Publication No. 2013-186668 ( Figure 1 , Figure 14, paragraphs 0032-0054, etc.) Summary of the invention

[0008] Problems to be solved by the invention

[0009] The device described in Patent Document 1 is presupposed to be assembled in the vehicle during production, and is difficult to be installed in an existing vehicle later. In particular, if the wheel speed and steering angle are not provided from the vehicle, the vehicle behavior such as vehicle speed and turning must be determined based on the information obtained independently by the driving assistance device installed later.

[0010] The present invention has been made in view of the above-mentioned conventional examples, and an object of the present invention is to provide an image processing device that can be later mounted on a vehicle and can identify the behavior of the vehicle with high accuracy.

[0011] Means used to solve problems

[0012] In order to achieve the above-mentioned object, the present invention has the following structure. That is, an image processing device is provided, wherein:

[0013] The image processing device comprises:

[0014] an image acquisition unit; and

[0015] a processing unit that processes the image acquired by the image acquisition unit,

[0016] The processing unit recognizes a moving object from the image acquired by the image acquisition unit, and performs masking processing on the moving object recognized in the image.

[0017] The processing unit estimates the spatial motion of the image processing device based on the image after the occlusion processing.

[0018] Effects of the Invention

[0019] According to the present invention, it is possible to provide an image processing device that can be later mounted on a vehicle and that can identify the behavior of the vehicle with high accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 It is a diagram of a vehicle on which a camera of a drive recorder according to an embodiment is mounted.

[0021] Figure 2 It is a block diagram of a control structure of the drive recorder according to the embodiment.

[0022] Figure 3 This is a flowchart of the speed estimation process performed by the drive recorder according to the first embodiment.

[0023] Figure 4 This is a diagram showing a configuration for estimating the speed of a vehicle.

[0024] Figure 5 This is a diagram showing a configuration for estimating the amount of displacement in the horizontal direction of the velocity.

[0025] Figure 6 This is a flowchart of an example of a driving assistance process performed by the drive recorder according to the embodiment.

[0026] Figure 7 This is a diagram showing an example of detection and shielding of a moving object in an image.

[0027] Figure 8 This is a flowchart of the speed estimation process performed by the drive recorder according to the second embodiment.

[0028] Fig. 9 This is a diagram showing the principle of estimating the distance to an object.

[0029] Fig.10 It is a diagram showing the principle of speed estimation.

[0030] Fig.11 This is a flowchart of another example of the driving assistance process performed by the drive recorder according to the embodiment.

[0031] Description of Reference Numerals

[0032] 101: In-vehicle camera; 102: Out-vehicle camera; 110: Camera unit; 200: Control unit. DETAILED DESCRIPTION

[0033] Hereinafter, the embodiments are described in detail with reference to the accompanying drawings. It should be noted that the following embodiments do not limit the invention involved in the technical solution. In addition, the combination of features described in the embodiments may not all be necessary for the invention. It is also possible to arbitrarily combine two or more of the multiple features described in the embodiments. In addition, the same or identical configurations are marked with the same reference numerals, and repeated descriptions are omitted.

[0034] [First embodiment]

[0035] · Composition of vehicles equipped with driving recorders

[0036] Figure 1 1 is a diagram showing a state in which the drive recorder according to the present embodiment is installed in a vehicle 100 . Figure 1 (A) in the figure shows the situation when observing the upper part of the front window of the vehicle from the vicinity of the left side of the front seat, and an interior rearview mirror 111 is provided at the upper center of the front window. In addition, a camera unit 110 of a driving recorder is provided on its left side. The camera unit 110 is provided with an interior camera 101 facing the rear of the vehicle and shooting the interior of the vehicle, and an exterior camera 102 facing the front of the vehicle and shooting the front of the vehicle through the front window. In this example, both the interior camera and the exterior camera are equipped with a monocular lens. The interior camera 101 and the exterior camera 102 can adjust their shooting ranges independently. However, since the interior camera 101 adopts a wide-angle lens or a fisheye lens, the shooting range can also be fixed.

[0037] The main body including the control unit may be assembled to the camera unit 110 , or may be disposed at a location away from the camera unit 110 and connected to the camera unit 110 via a cable.

[0038] Figure 1 (B) in the figure is a view of the vehicle 100 when viewed from above through the roof. In this example, the front of the vehicle 100 (the front of the vehicle) is the left side of the figure, and the camera unit 110 is arranged on the left side of the interior rearview mirror 111 facing forward. The right front seat (also referred to as the driver's seat in a right-hand-drive vehicle) 104R, the left front seat (also referred to as the passenger seat in a right-hand-drive vehicle) 104L and the rear seat 105 are arranged in the interior of the vehicle 100. There is a window on the side of the vehicle 100 as a transparent part, and the outside can be observed from the inside of the vehicle through the window. It should be noted that the window is made of glass and functions as a transparent part regardless of whether it is opened or closed. In addition, the in-vehicle camera 101 of the camera unit 110 can not only shoot the passengers sitting in the front seat 104R, the front seat 104L and the rear seat 105, but also shoot the scenery outside the vehicle through the window. That is, the captured image includes an image of the interior and exterior of the vehicle 100 , and also captures a moving object such as a vehicle located outside.

[0039] It should be noted that the camera unit 110 may also be arranged on the right side of the interior rearview mirror 111. However, it is preferred to adjust the shooting range of the interior camera 101 so that the optical axis of the lens of the interior camera 101 is along the symmetry plane of the window arranged symmetrically, that is, parallel to the symmetry plane. In addition, the camera unit 110 is preferably arranged as close to the interior rearview mirror 111 as possible. These are all for reducing the left and right differences in speed estimated from the external images photographed through the left and right windows caused by the deviation of the direction of the camera relative to the symmetry plane. In this way, the camera unit 110 is arranged inside the space of the vehicle 100 separated from the outside.

[0040] · Example of the structure of a driving recorder

[0041] Figure 2 An example of the control structure of the driving recorder of the embodiment is shown. The driving recorder is installed in the vehicle at a later stage, and there may be no input signal from the outside. However, the power supply of the driving recorder depends on the vehicle 100, and the device mounted on the vehicle 100 can also be used for the user interface. In this embodiment, the structure and process of realizing driving assistance by image processing by the driving recorder are described, so sometimes the driving recorder is called an image processing device or a driving assistance device with a focus on this point.

[0042] exist Figure 2In the driving recorder, the driving recorder includes a control unit 200, an in-vehicle camera 101, and an out-vehicle camera 102. Sometimes these cameras, especially the in-vehicle camera 101, are also referred to as image acquisition units. The camera interface (IF) 201 and the camera interface (IF) 202 are interfaces for signals with the in-vehicle camera 101 and the out-vehicle camera 102, respectively. Each camera shoots images (animations) at a predetermined frame rate, such as 29fps (frames per second). The image processing unit 203 performs image processing on the captured image, and the CPU 204 further performs necessary processing and saves it as an image file in the erasable ROM 209. The image file contains an image of a predetermined time, such as a length of about 30 seconds to 60 seconds. When the recording of the predetermined time ends, a new image file is recorded. There are at least two image files. When there is no free space in the erasable ROM 209, the oldest image file is erased to ensure free space, and a new image file is recorded in it.

[0043] In order to realize the function as a driving recorder, the driving recorder also includes an acceleration sensor, etc., and when an acceleration exceeding a predetermined value is detected, control such as stopping the recording of the image file is performed. However, in this embodiment, in order to focus on the driving assistance function of the driving recorder, the description of the functions and equipment of the driving recorder is omitted.

[0044] The communication unit 208 provides a wired or wireless communication function. For example, in order to output a warning described later, it is also possible to connect to a smartphone or the like via the communication unit 208 and output a warning to it. In addition, it is of course possible to perform communication for other purposes.

[0045] The input unit 206 and the output unit 207 include an input-output unit as a user interface, and the input-output unit can be realized by, for example, a touch panel constituting an operation unit. Alternatively, an interface for connecting to a display audio device provided by the vehicle 100 can also be provided. The RAM 205 is used as a data storage device required for the operation of the CPU 204 and the image processing unit 203, and a memory for storing programs executed by the CPU 204. The power supply unit 210 is connected to a power supply provided from the vehicle 100, and provides power suitable for the driving recorder.

[0046] Reference Figure 3 The processing described in the following figures is executed by the CPU 204, but may be executed by the image processing unit 203. In short, the main body of the processing is sometimes referred to as a processing unit. In addition, the control unit 200 may also be referred to as a processing unit.

[0047] · Speed ​​estimation processing of images

[0048] exist Figure 31 shows the process of estimating the speed of the vehicle 100 based on the image captured by the in-vehicle camera 101. The captured image is a dynamic image, which is composed of frames (or image frames) captured at predetermined intervals, and is sometimes also called animation or video. Figure 3 In the process of obtaining a frame (frame k) captured by the in-vehicle camera 101, the frame k and the frame k-1 immediately before the frame k are taken as objects for speed estimation processing. Therefore, in this speed estimation processing, the captured frame is saved at least until the next frame is captured and the speed estimation processing is performed. The frame k that will be the object of processing is also called the object frame. It should be noted that Figure 3 The processing is performed in real time in parallel with the shooting.

[0049] exist Figure 3 In the process, the object frame is read into RAM 205, for example, and the Figure 3 Processing. The processing subject may be, for example, the CPU 204. First, image recognition is performed within the frame (S301). The object of recognition in step S301 is a moving body, and the result of the recognition is that the moving body is detected (S303). The moving body includes objects (objects and living things such as humans) that can move autonomously or by force from the outside. Specifically, the moving body includes vehicles such as cars and bicycles, humans, animals such as dogs and cats, and objects that are easy to move such as handkerchiefs. In order to recognize these moving bodies, for example, a learned model that has been pre-learned about the appearance of the moving body through machine learning can be stored in, for example, an erasable ROM 209, and the object frame can be used as input to obtain the recognition result. The output can be information indicating the area equivalent to the moving body contained in the object frame. Alternatively, the feature information of various moving bodies observed from various viewpoints can be pre-stored in, for example, an erasable ROM 209, and compared with the feature points extracted from the object frame. If there is a correlation above a predetermined degree, the area corresponding to the feature is determined as a moving body.

[0050] Next, the area containing the detected moving object is masked (S305). The masking process can, for example, uniformly fill the area of ​​the moving object with a specific color such as black or white. The captured frame includes the interior scene of the vehicle and the exterior scene seen through the window. The image of the exterior of the vehicle may include other vehicles, people and other moving objects. In addition, the interior of the vehicle may also include movable objects, such as passengers, easily movable objects such as handkerchiefs placed in the vehicle, hanging decorations, amulets and other moving objects. Therefore, in step S305, the area of ​​the moving object detected from the frame is masked. In the masking process, the moving object detected from the image is covered by a black area, for example, and masked. As a result, non-moving objects remain in the image.

[0051] Back to Figure 3After the moving object is shielded, the target frame is saved in RAM 205 or the like. Then, the speed of the vehicle 100 is estimated based on the target frame and the frame captured in the past (S307). By shielding the moving object from the image in the frame through the shielding process in S305, the movement of the target is the apparent movement caused by the movement of the vehicle 100. Figure 4 , Figure 5 This shows an example of speed estimation.

[0052] Next, refer to Figure 4 , Figure 5 , the process of estimating the movement amount (speed level) of the vehicle is described. It should be noted that the speed level refers to the moving speed of the vehicle. However, it may also represent the degree of speed that has been pre-established to correspond to the moving speed (for example, high speed, medium speed, low speed, etc.). The driving recorder acquires captured images through the in-vehicle camera 101, for example, at predetermined time intervals. The control unit 200, for example, acquires a captured image (frame) 401 captured at a certain moment (for example, k) and a captured image captured at a moment before moment k (for example, k-1). In the present embodiment, these captured images may be images captured through the front window or rear window of the vehicle, but here an image captured through the rear window is taken as an example. When an image through the front window is used, the judgment of moving forward and backward is opposite. In addition, in Figure 4 , Figure 5 In the example, since the image does not contain a moving object, it is not explicitly shown, but Figure 3 The step S305 is masked.

[0053] The control unit 200 generates a zoomed image that is enlarged or reduced at a plurality of different magnifications for the captured image captured at time k-1. For example, a zoomed image is generated at a zoom ratio {E n 、E m ,……,1,……,R m , R n}(where E n >E m >……>1>……>R m >R n >0) A scaled image (e.g., scaled image 411 to scaled image 415) obtained by scaling the image captured at time k-1. Then, the control unit 200 cuts out the predetermined area 421 of each of the generated scaled images 411 to scaled image 415 and the captured image 401. At this time, the cutout predetermined areas are of the same size and have the same center as the center of the captured images captured at time k and time k-1. The scaling ratio {E n 、E m ,……,1,……,R m , R n} are respectively associated with the speed level at which the vehicle is moving forward or backward. Therefore, the image zoomed at a certain zoom rate is similar to the image captured at the next time (ie, time k) when the vehicle is traveling at the associated speed.

[0054] The control unit 200 calculates the difference between the pixel value of the predetermined area cut out from the captured image 401 at time k and the pixel value of the predetermined area 421 of each of the scaled images 411 to 415 obtained by scaling the captured image at time k-1, and generates a plurality of difference images. The difference may be the difference between corresponding pixels.

[0055] The control unit 200 generates a binarized image obtained by binarizing the obtained plurality of differential images, and calculates the sum of the pixel values ​​of the binarized image. Binarization can be performed, for example, by comparing a predetermined binarization threshold with each pixel value, setting the difference to 1 if it is greater than the predetermined threshold, and setting the difference to 0 if it is less than the threshold. The sum of the pixel values ​​of the binary image represents the number of pixels whose pixel value is "1". The control unit 200 selects a zoom ratio with the smallest sum of the pixel values ​​of the binarized differential images corresponding to each zoom ratio. For example, with E n 、E m , 1, R m , R n The captured image at time k-1 is scaled, wherein when E is used m When the sum of the pixel values ​​of the scaled image after scaling is the smallest, the control unit 200 selects the scaling factor E m The sum of the binarized pixel values ​​represents the number of pixels whose pixel value is 1. That is, the pixel values ​​whose differences between corresponding pixels are greater than the threshold value are represented by the sum of the pixel values. In addition, since the image acquisition rate (frame rate) is constant, the selected zoom rate is a value corresponding to the speed of the vehicle. Therefore, by pre-associating each zoom rate with the speed level of the vehicle, the zoom rate E is associated with the speed level of the vehicle. m The associated speed level is estimated as the speed level (movement amount) of the vehicle 100. It should be noted that the in-vehicle camera 101 is fixed, so the position of the front window or rear window in the captured image is, for example, within a certain width from the center of the image. Figure 4 When the speed is estimated by processing, only the area of ​​the window can be used.

[0056] It should be noted that, in the present embodiment, the case of binarizing the difference image is described as an example, but other image processing may be performed instead of binarizing the difference image. In addition, the control unit 200 may also perform predetermined image processing such as converting each image into a brightness image or emphasizing edges before calculating the difference.

[0057] Further, refer to Figure 5 , the process of estimating the movement amount of the vehicle (the movement amount in the horizontal direction) is explained. The movement amount in the horizontal direction mentioned here is the movement amount in the left and right direction. Based on the movement amount in the horizontal direction, the turning direction (or the traveling direction) of the vehicle can be estimated, and the turning amount can also be estimated. As described above, the driving recorder obtains captured images through the in-vehicle camera 101, for example, at predetermined time intervals. The control unit 200, for example, obtains a captured image 501 captured at a certain moment (for example, k) and a captured image captured at a moment before the moment k (for example, k-1). The control unit 200 cuts out a predetermined area that is shifted in the horizontal direction from the center of the image by multiple different shift amounts from each other from the captured image captured at the moment k-1. For example, a predetermined area with phased different shift amounts {-S n , -S m ,……,0,……,S m , S n}(where S n >S m > ... > 0) after the predetermined area (e.g., predetermined area 521 to predetermined area 525) is shifted. In addition, the control unit 200 cuts out the predetermined area 520 of the captured image 501. The shift amount {-S n , -S m ,……,0,……,S m , S n Therefore, the region cut out at a certain displacement amount is similar to the predetermined region cut out of the center of the image captured when the vehicle moves at the associated displacement amount.

[0058] The control unit 200 calculates the difference between the pixel value of the predetermined region 520 cut out from the captured image 501 at time k and the pixel value of each of the predetermined regions 521 to 525 cut out from the captured image 511 , and generates a plurality of difference images.

[0059] The control unit 200 generates a binary image by binarizing the plurality of differential images obtained, and calculates the sum of the pixel values ​​of the binary image. The control unit 200 selects the shift amount with the smallest sum of the pixel values ​​among the sums of the pixel values ​​corresponding to the respective shift amounts. For example, in the captured image at time k-1, when the shift amount with the value of -S is used, n , -S m ,0,S m , S n The predetermined area after the shift amount is moved by S m When the sum of the pixel values ​​in the predetermined area after the shift is the smallest, the control unit 200 selects the shift amount Sm As described above, since each displacement amount is associated with the movement amount of the vehicle, the displacement amount S m The associated movement amount is estimated as the movement amount of the vehicle 100 in the horizontal direction.

[0060] It should be noted that in Figure 5 In the process of shifting image k-1 in the horizontal direction, it is also possible to Figure 4 The image is scaled by the scaling factor selected in the process and shifted by each predetermined pixel. Thus, the distances in the images to be compared are made consistent, so that the shift amount can be estimated with higher accuracy. Figure 4 The zoom ratio and Figure 5 The driving trajectory of the vehicle 100 is estimated by associating the shift amount selected according to the essentials. For example, the curvature, radius, etc. when driving on a curve can be registered in advance in correspondence with the zoom rate and the shift amount, and the corresponding value is determined as the value representing the current driving trajectory based on the registered value. For example, if the area of ​​the rear window is pre-selected as the object image, the movement amount in the vehicle width direction can be estimated based on the shift amount, which corresponds to the rotation amount around the yaw axis generated in the time between frames of the vehicle 100. On the other hand, since the speed can be estimated based on the zoom rate, the curvature, radius, etc. when driving on a curve can be associated with the zoom rate and the shift amount in advance as described above. In addition, when it is determined that the vehicle has temporarily moved to either the left or right direction, the intercepted areas 521 to 525 can also be offset in the direction of the vehicle turning. That is, the two images are moved in the associated direction. In this case, the position of the intercepted area is offset in the direction opposite to the turning direction of the vehicle. In this way, the correlation between images can be more reliably obtained. The cut area is sometimes called the conversion area, and its center is called the image conversion center.

[0061] Driving assistance process

[0062] To return to the topic, the vehicle speed estimated as above can be used, for example, Figure 6 In the driving assistance process shown in FIG. 1 , in this example, the speed is used as the spatial motion of the vehicle 100 to perform driving assistance. Figure 6 , a process of predicting the possibility of contact with a target object and outputting a warning is shown. Figure 6 The process is based on the image captured by the vehicle exterior camera 102 and is executed in real time by, for example, the CPU 204 .

[0063] First, the image frame captured by the vehicle exterior camera 102 is acquired, image recognition is performed (S601), and the target object, especially the speed limit sign, is detected (S603). Figure 3The speed of the vehicle 100 obtained in the process is compared with the speed limit identified from the sign (S605). If the estimated speed exceeds the speed limit, a warning to that effect is output (S607). The warning can be given by display or sound from the output unit 207, or by notifying a smartphone, or by a connected display audio device. In this way, the possibility of speeding can be predicted, and if there is a possibility of speeding, a warning is issued to the driver.

[0064] As described above, according to the present embodiment, the target of the moving object included in the image is shielded so that the speed is estimated based on the fixed object, thereby further improving the estimation accuracy.

[0065] [Second embodiment]

[0066] · Speed ​​estimation processing of images

[0067] In this embodiment, the same as in the first embodiment Figure 1 , Figure 2 The composition shown, instead of Figure 3 The process is executed Figure 8 The speed is estimated by the process of Figure 8 Steps S801 to S805 are Figure 3 Here, the masking process in step S301 is described.

[0068] exist Figure 7 2 shows an example in which a moving object is detected from a part of a target frame and masked. Figure 7 The frame shown is obtained by cutting out the right half of the frame captured by the in-vehicle camera 101, and omitting the left half of the frame whose window arrangement is roughly symmetrical to the right half. As for the left half, even if the image content is different from that of the right half, the processing content is the same.

[0069] Figure 7 (A) in the figure is a diagram showing a situation where a moving object is detected from frame 700 which is an object frame. Frame 700 includes the scene inside the vehicle and the scene outside the vehicle as seen through the window. The image outside the vehicle may include moving objects such as other vehicles and people. In addition, the interior of the vehicle may also include movable objects, such as passengers, easily movable objects such as handkerchiefs placed in the vehicle, hanging decorations, amulets, and other moving objects. Figure 7 (A) in FIG. 1 shows the areas where these moving objects are detected. Here, as moving objects outside the vehicle, area 701 (vehicle) and area 702 (person) are detected, and as a moving object inside the vehicle, area 703 (hand towel) is detected. In the detection process, there is no need to distinguish between the outside and inside of the vehicle.

[0070] Figure 7 (B) in FIG. 7 is a diagram showing a case where a region of a moving object detected from frame 700 is masked. Masks 711 and 713 are used to mask the detected moving object. In order to facilitate viewing of the drawings, the masks are shown with hatched lines, but they can also be uniformly filled with pixels of the same color, such as black pixels and white pixels. In addition, as a filling range, Figure 7 In (B), the region of the detected moving object is used, but it may be a region including a blank space of a predetermined width.

[0071] If in Figure 8 If the moving object is shielded in step S805, the target object is detected from the object frame (S807). The processing of step S807 can be the same as step S803, but the detection object is different. Here, the target object that is presumed to be visible outside the vehicle is used as the object for image recognition. The target object of the detection object may include, for example, buildings such as buildings, facilities such as utility poles and billboards, trees, etc. If the target object is detected, the direction and distance of the target are estimated based on the target object (S809). Therefore, for example, when installing the camera unit 110, the direction of the optical axis of the in-vehicle camera 101, especially the direction with respect to the horizontal direction, can be input from the input unit 206 and used as a reference. Alternatively, it is also possible to install the camera unit 110 in such a way that the optical axis of the in-vehicle camera 101 is along the front and rear direction of the vehicle 100. If the direction that serves as the reference is predetermined in this way, the direction can be estimated in the frame image based on the distance that deviates from the position of the center, i.e., the optical axis, in the horizontal direction.

[0072] Here, refer to Fig. 9An example of the distance estimation method executed in step S809 is described. In order to implement this method, after the camera unit 110 is installed, the relationship between the target object and the distance in the frame is calibrated in advance. In the method of this example, the boundary between the target object and the road surface is detected from the frame image, and the distance to the boundary is estimated. Therefore, the boundary (i.e., the ground contact position) between the target object and the road surface contained in the frame captured by the in-vehicle camera 101 is determined, and the distance from the camera unit 110 to the ground contact position is actually measured, and the height of the ground contact position of the determined boundary in the frame is associated with the actual distance to the ground contact position. This association is stored in the erasable ROM 209 or the like. Since the camera unit 110 is fixed to the vehicle 100, the distance can be estimated for the position determined in the frame image by taking the situation that it is located on the road surface as a condition based on this association. It should be noted that in this embodiment, instead of the height of the determined grounding position in the frame, the height from the grounding position to the horizontal line including the optical axis, i.e., the center of the image, is associated with the distance from the camera unit 110 to the grounding position, but the height from the bottom of the frame to the horizontal line including the optical axis is constant, so the two have the same meaning. The height of the grounding position in the image stored as a pre-associated height and the actual distance to the grounding position are set to h0 and L0, respectively.

[0073] exist Fig. 9 In FIG. 1 , the camera unit 110 is installed in the vehicle 100 such that the optical axis 902 of the in-vehicle camera 101 forms a depression angle ω with respect to the horizontal direction 903. The in-vehicle camera 101 captures a scene including a target object 905 through the window of the vehicle 100, and the image is projected onto an image 910. The image 910 shows the correspondence between the captured target object and the image. The ground contact position 901 where the target object 905 contacts the road surface (even if it is not a road, a surface that is substantially coplanar with the road is referred to as a road surface) corresponds to a position 911 in the image 910. The height in the frame from the position 912 (referred to as the center position) projected on the image 910 by the optical axis 902 to the position 911 is set to h1, and the distance to the obtained ground contact position 901 is set to L. In this case, since L0:h0=L:h1, L=h1·L0 / h0 is given.

[0074] It should be noted that if the boundary between the target object and the road surface cannot be determined, for example, the correspondence between the size (angle of view) and the distance of the target object in the image, whose size can be easily estimated, can be pre-stored, and used as a reference to estimate the distance. For example, for telephone poles, their standard thickness is predetermined, and the thickness angle of view and distance are pre-stored in correspondence. If a telephone pole is detected from a frame, the distance is estimated by multiplying the ratio of its thickness angle of view to the pre-stored thickness angle of view by the distance associated with the predetermined thickness. This is similar to Fig. 9 The contents described in are the same.

[0075] As described above, the direction and distance of the target object are estimated in step S809. It should be noted that the estimation is performed for the right half and the left half of the frame captured by the in-vehicle camera 101. Figure 8 , save the estimated direction and distance (S811). Next, read out the Figure 8 The direction and distance of the target object saved in step S811 are obtained based on the result of the processing (S813). Then, the speed of the vehicle 100 is estimated based on the estimated value obtained in step S809 and the estimated value read in step S813 (S815). The estimated speed is saved. In the estimation of the speed, the left and right sides of the frame are estimated based on the estimated value using the right half of the frame and the estimated value using the left half. It should be noted that in order to estimate the speed, it is necessary to ensure the identity of the target object between frames. For this purpose, the image of the target object detected in the previous frame can also be stored in correspondence with its position, and the correlation between the image of the target object detected in each object frame can be obtained. If the correlation value is above a certain value, it is determined to be the same target object. In this case, the speed is estimated based on the direction and distance of the target object determined to be the same between the frames. Furthermore, based on the estimated speeds of the left and right sides, the slower side can be determined as the turning direction (or the direction of travel). Furthermore, the radius of the turn can be estimated based on the average speed of the left and right speeds and the speed difference between the left and right speeds.

[0076] exist Fig.10An example of a method for speed estimation is shown in . The image in frame 1010 corresponding to the target object 1001 detected from the previous frame is target image 1011. On the other hand, the image in the frame corresponding to the target object 1002 detected from the object frame is target image 1012. The position of the target moves as the vehicle 100 moves, but the target 1001 and the target 1002 are the same target. The distance estimated from the target image 1011 is L1, and the direction is θ1. On the other hand, the distance estimated from the target image 1012 is L2, and the direction is θ2. It should be noted that the direction of the target is expressed with reference to the direction of the optical axis of the in-vehicle camera 101 along the center line of the front-to-back direction of the vehicle.

[0077] At this time, the traveling direction component of the vehicle 100 at a distance L1 is L1·cos(θ1), and the traveling direction component of the vehicle 100 at a distance L2 is L2·cos(θ2), so the difference L is L2·cos(θ2)-L1·cos(θ1). The speed can be estimated by dividing the distance by the time of 1 frame interval. If the frame rate is F (fps), if the unit of length is meter, the speed is L·F (m / s). As above, the speed is estimated based on the captured image. Of course, this is just an example, and the estimation can be performed by other methods, or this method can be used.

[0078] Through the above process, the speed of the vehicle 100 can be estimated. The estimated speed can be Figure 6 In addition, by masking the moving object from the captured image, high-precision speed estimation can be achieved.

[0079] Other driving assistance processes

[0080] By using the same configuration as in the present embodiment, it is possible to Fig.11 The estimated speed is used in the driving assistance process shown. Fig.11 , the process of predicting the possibility of contact with the target object and outputting a warning is shown. In this example, the speed including the traveling direction is obtained as the spatial motion of the vehicle 100, and the driving assistance is performed using the speed. Fig.11 The process is based on the image captured by the vehicle exterior camera 102 and is executed in real time by, for example, the CPU 204 .

[0081] First, the frame of the image captured by the vehicle's external camera 102 is acquired, and image recognition is performed (S1101), and the target object is detected (S1103). The target object to be detected is a target object that may become an obstacle while driving on the road, and can be a vehicle, a person, a facility installed beside the road, etc. In addition, it can also be a target object other than the road instead of a specific target object. Next, the distance and direction (or position) of the target object are estimated (S1105). This can be, for example, Figure 3 The method is the same as the method described in step S307.

[0082] Next, based on Figure 3 The speed of the left and right wheels of the vehicle 100 obtained in the process is used to estimate the speed vector of the vehicle 100 including the traveling direction (S1107). Since the width between the left and right wheels of the vehicle (tread width) is a fixed value, it is assumed that the speed vectors of the left and right wheels are each based on the two ends of the tread width as the starting point. In the case where the tread widths of the front and rear wheels are different, their average value can be used, for example. As each speed vector, Figure 3 The respective speeds of the left and right sides estimated in the process are taken as the magnitude, and are set as a vector pointing to the front of the vehicle 100. Then, a vector whose magnitude is the average value of the respective speeds of the left and right sides in the normal direction of the line segment connecting the end points of each speed vector is set as the speed vector of the vehicle 100. That is, the difference in magnitude of the vectors obtained with either of the left and right speed vectors as a reference is set as Vf, and the tread width of the vehicle 100 is set as Tw. In this case, with the direction of the speed vector determined as a reference as a reference, a vector with a direction inclined by Vf / Tw from the reference and a magnitude of Vf is estimated to be the speed vector of the vehicle 100. Of course, this is an example, and the speed may be estimated by other methods.

[0083] Based on the speed of the vehicle estimated in S1107, the possibility of the vehicle 100 approaching the target object whose distance and direction are estimated in S1105 to within a predetermined distance is determined, and if there is such a possibility, the time until the contact is close is estimated (S1109). For example, if the detected target object exists on the line extending the speed vector estimated from the current position of the vehicle or within a predetermined distance from the line, it can be determined that there is a possibility of approaching within the predetermined distance. In addition, by dividing the distance from the position of the target object to the vehicle 100 by the estimated speed, the time to reach the place can be estimated.

[0084] Next, if there is a possibility of contact and the time until contact is estimated, the time is compared with a predetermined threshold, and if it is below the threshold, a warning is output (S1111). The warning can be performed from the output unit 207 through display or sound, or by notifying a smartphone, or through a connected display audio device. In this way, contact with the target object can be predicted, and if there is a possibility of contact, a warning is issued to the driver. In this way, the possibility of excessive proximity to the target object can be predicted, and if there is a possibility of excessive proximity, a warning is issued to the driver.

[0085] As described above, according to the present embodiment, by shielding the moving object included in the captured image, the absolute speed of the vehicle, that is, the speed relative to the ground, rather than the relative speed relative to the moving object can be estimated. In addition, the moving objects that become the shielded object include not only the moving objects outside the vehicle but also the moving objects inside the vehicle, so that the speed can be predicted without distinguishing between the inside and outside of the vehicle from the image. Furthermore, by estimating the speed for each side through the left and right windows of the vehicle, the direction of travel of the vehicle can be estimated from the image.

[0086] Modification 1

[0087] In the first embodiment, an image is captured in the front or rear, and the speed is estimated based on the difference between the images. In the second embodiment, the same process is performed on the side image. In this regard, as in the second embodiment, the turning of the vehicle can be determined based on the image of the outside of the vehicle captured from the left and right windows using a wide-angle camera from near the center of the front seat in the direction of the vehicle cabin (i.e., the rear). In the images from the left and right windows, the objects in the image move forward and backward (i.e., the horizontal direction of the image). Therefore, in the present embodiment, for each of the left and right images, as shown in FIG. Figure 7 The masking process is performed as shown in Figure 5 The correlation between frames is detected according to the method described in the above to determine the horizontal difference. Thus, the difference between the left and right images (frames) taken with a time difference is detected. The side with the larger difference can be determined as the outside of the turn.

[0088] In this case, regarding the difference, the sign is determined according to the direction, and the difference between the left and right sides is evaluated including the sign. However, the signs are opposite on the left and right. For example, in the image taken from the right side window, if it is going straight forward, the newer the image, the more the target moves to the right. Therefore, in the case where the target associated between frames moves to the right over time, its difference is set to positive and the left side is set to negative. For the image taken from the left side window, it is the opposite. Based on this decision, the size of the difference between the left and right images is determined. If the difference on the right side is smaller, it can be determined that the turning direction is right, and if the difference on the left side is smaller, it can be determined that the turning direction is left. The reason for determining the sign is that in the image on the side of the center of the turn, the direction of the offset of the target associated between the images (frames) may also be the opposite to the offset direction when going straight.

[0089] Alternatively, in an image from the outside window of a car that is turning, the amount of movement of the target is large, and the frame rate, Figure 5 The offset of the image shown may also result in a situation where the correlation between the images cannot be obtained. On the contrary, in the image of the car window from the inner side of the turn, the movement of the target is small. Therefore, when the correlation is obtained only for the image of the car window from one side, it can be determined that the vehicle has turned with the side where the correlation is obtained as the center of the turn. In this way, it is also possible to determine whether the vehicle is going straight or turning based on the image of the side of the vehicle.

[0090] Modification 2

[0091] A monocular camera is used as the in-vehicle camera 101, but if a binocular stereo camera is used, the distance and direction of the target object can be determined based on the parallax of the images captured by each camera. In this case, there is no need to pre-register the relationship between the size and distance of the target object, the relationship between the grounding position and the distance, etc. In addition, in the above embodiment, the moving object is shielded, but it is also possible not to process the image itself, but just exclude the target object from the recognition range.

[0092] Summary of implementation methods

[0093] The present embodiment described above is summarized as follows.

[0094] According to a first aspect of the present invention, there is provided an image processing device,

[0095] The image processing device comprises:

[0096] an image acquisition unit; and

[0097] a processing unit that processes the image acquired by the image acquisition unit,

[0098] The processing unit recognizes a moving object from the image acquired by the image acquisition unit, and performs masking processing on the moving object recognized in the image.

[0099] The processing unit estimates the spatial motion of the image processing device based on the image after the occlusion processing.

[0100] According to this configuration, by performing masking processing on the moving object, it is possible to estimate the motion with high accuracy without including the influence of the motion of the moving object.

[0101] According to a second aspect of the present invention, there is provided an image processing device, characterized in that, in addition to the first aspect,

[0102] The image acquisition unit is provided inside a space isolated from the outside, the image includes an image inside the space and an image outside the space, and the moving object includes a moving object estimated to be outside the space.

[0103] According to this configuration, it is possible to estimate a highly accurate motion without including the influence of a moving object in the external space.

[0104] According to a third aspect of the present invention, there is provided an image processing device, characterized in that, in addition to the second aspect,

[0105] The moving object further includes a moving object estimated to be located inside the space.

[0106] According to this configuration, it is possible to estimate the motion with high accuracy without including the influence of the moving object in the internal space.

[0107] According to a fourth aspect of the present invention, there is provided an image processing device, characterized in that, in addition to the first to third aspects,

[0108] The image acquisition unit acquires an image of the outside world through a transmission unit provided on a partition between the inside and the outside of a space isolated from the outside world.

[0109] According to this configuration, even in an internal space separated from the outside, motion can be estimated based on an external image.

[0110] According to a fifth aspect of the present invention, there is provided an image processing device, characterized in that, based on the fourth aspect,

[0111] The permeable parts are arranged at multiple locations in a plane-symmetrical manner.

[0112] The image acquisition unit includes a camera, and the camera is arranged with an optical axis along a symmetric plane symmetrical to the surface.

[0113] According to this configuration, it is possible to acquire an image that is transmitted through the outside of the transmission portion that is arranged symmetrically with respect to one image, and to estimate the motion based on each image.

[0114] According to a sixth aspect of the present invention, there is provided an image processing device, characterized in that, based on the fifth aspect,

[0115] The image processing device is mounted on a vehicle, the interior of the space is the interior of a vehicle cabin, and the camera is provided in the vehicle cabin so as to face the rear of the vehicle.

[0116] According to this configuration, the in-vehicle camera of the vehicle can acquire images through the transmission portions provided on the left and right sides of the vehicle, and the movement of the vehicle can be estimated based on each image.

[0117] According to a seventh aspect of the present invention, there is provided an image processing device, characterized in that, in addition to the first to sixth aspects,

[0118] The processing unit performs mask processing on at least two images acquired at a predetermined time interval, and estimates the moving speed of the vehicle based on a difference between the at least two images after the mask processing.

[0119] According to this configuration, by performing masking processing between at least two images acquired at a time difference, it is possible to estimate the motion with high accuracy without the influence of the motion of the moving object. Furthermore, it is possible to realize velocity estimation by simple processing.

[0120] According to an eighth aspect of the present invention, there is provided an image processing device, characterized in that, in addition to the first to sixth aspects,

[0121] The processing unit performs masking processing on at least two images acquired at a certain time interval, estimates the position of the same target object contained in each of the at least two images after the masking processing, and estimates the moving speed of the vehicle as the spatial motion based on the difference between the estimated positions.

[0122] According to this configuration, by performing masking processing on the moving object included in at least two images acquired with a time difference, it is possible to estimate the motion with high accuracy without the influence of the motion of the moving object.

[0123] According to a ninth aspect of the present invention, there is provided an image processing device, characterized in that, in addition to the first to eighth aspects,

[0124] The processing unit performs mask processing on at least two images acquired at a predetermined time interval, and estimates a turning direction of the vehicle based on a difference between the at least two images after the mask processing.

[0125] According to this configuration, by performing masking processing on the moving object included in at least two images acquired with a time difference, the turning direction can be estimated with high accuracy without the influence of the movement of the moving object.

[0126] According to a tenth aspect of the present invention, there is provided an image processing device, characterized in that, in addition to the ninth aspect,

[0127] The processing unit moves the at least two images in associated directions according to the turning direction.

[0128] According to this configuration, the correlation between images can be acquired more reliably.

[0129] According to an eleventh aspect of the present invention, there is provided an image processing device, characterized in that, in addition to the fifth aspect or the sixth aspect,

[0130] The processing unit estimates the traveling direction of the vehicle based on a difference between images captured through the respective transmissive units that are plane-symmetrical.

[0131] According to this configuration, the turning direction of a vehicle or the like can be estimated based only on an image.

[0132] The present invention is not limited to the above-described embodiments, and various modifications and changes can be made within the scope of the gist of the present invention.

Claims

1. An image processing device mounted on a vehicle, It is characterized in that The image processing device comprises: an image acquisition unit; and a processing unit that processes the image acquired by the image acquisition unit, The processing unit recognizes a moving object from the image acquired by the image acquisition unit, and performs masking processing on the moving object recognized in the image. The processing unit estimates the spatial motion of the image processing device based on the image after the masking process. The image acquisition unit acquires an image of the outside world through a transmission unit provided on a partition between the inside and the outside of the space separated from the outside world. The processing unit estimates the traveling direction of the vehicle by determining the magnitude of the difference between the left image and the right image based on the difference between the left and right images of the vehicle acquired through the transmission unit.

2. The image processing device according to claim 1, It is characterized in that The image acquisition unit is provided inside a space isolated from the outside, the image includes an image inside the space and an image outside the space, and the moving object includes a moving object estimated to be outside the space.

3. The image processing device according to claim 2, It is characterized in that The moving object further includes a moving object estimated to be located inside the space.

4. The image processing device according to claim 1, It is characterized in that The permeable parts are arranged at multiple locations in a plane-symmetrical manner. The image acquisition unit includes a camera, and the camera is arranged with an optical axis along a symmetric plane symmetrical to the surface.

5. The image processing device according to claim 4, It is characterized in that The interior of the space is the interior of a vehicle compartment, and the camera is arranged in the vehicle compartment to face the rear of the vehicle.

6. The image processing device according to claim 1, It is characterized in that The processing unit performs mask processing on at least two images acquired at a predetermined time interval, and estimates the moving speed of the vehicle based on a difference between the at least two images after the mask processing.

7. The image processing device according to claim 1, It is characterized in that The processing unit performs masking processing on at least two images acquired at a certain time interval, estimates the position of the same target object contained in each of the at least two images after the masking processing, and estimates the moving speed of the vehicle as the spatial motion based on the difference between the estimated positions.

8. The image processing device according to claim 1, It is characterized in that The processing unit performs mask processing on at least two images acquired at a predetermined time interval, and estimates a turning direction of the vehicle based on a difference between the at least two images after the mask processing.

9. The image processing device according to claim 8, It is characterized in that The processing unit moves the at least two images in associated directions according to the turning direction.

10. The image processing device according to claim 4, It is characterized in that The processing unit estimates the traveling direction of the vehicle based on a difference between images acquired through the respective transmissive units that are plane-symmetrical.