IMAGING SYSTEM AND IMAGE PROCESSING APPARATUS
20220014674 · 2022-01-13
Assignee
Inventors
Cpc classification
H04N23/81
ELECTRICITY
B60R11/04
PERFORMING OPERATIONS; TRANSPORTING
B60R2300/10
PERFORMING OPERATIONS; TRANSPORTING
H04N7/18
ELECTRICITY
B60R2300/30
PERFORMING OPERATIONS; TRANSPORTING
International classification
Abstract
An imaging system includes a camera and an image processing apparatus. The image processing apparatus tracks an object image included in an output image by the camera, and generates information for correcting distortion of the output image based on a change in shape accompanying movement of the object image. Then, the image processing apparatus corrects the output image using the generated information.
Claims
1. An imaging system for a vehicle, comprising: a camera; and an image processing apparatus structured to process an output image by the camera, wherein the image processing apparatus is structured to track an object image included in the output image, to generate information for correcting distortion of the output image based on a change in shape accompanying movement of the object image, and to correct the output image using the information.
2. The imaging system according to claim 1, wherein a reference region with small distortion is defined in the output image, and a shape where the object image is included in the reference region is set to a true shape of the object image.
3. The imaging system according to claim 2, wherein the camera is disposed such that a vanishing point is included in the reference region.
4. The imaging system according to claim 1, wherein the image processing apparatus is structured to detect an image of a reference object whose true shape is known from the output image, and to generate information for correcting distortion of the output image based on the true shape and a shape of the image of the reference object in the output image.
5. The imaging system according to claim 4, wherein the object image whose true shape is known includes a traffic sign.
6. An imaging system for a vehicle, comprising: a camera; and an image processing apparatus structured to process an output image by the camera, wherein the image processing apparatus is structured to detect an image of a reference object whose true shape is known from the output image, to generate information for correcting distortion of the output image based on the true shape and a shape of the image of the reference object in the output image, and to correct the output image using the information.
7. The imaging system according to claim 1, wherein the camera is built in a lamp and performs imaging via an outer lens.
8. An image processing apparatus used with a camera and included in an imaging system for a vehicle, the image processing apparatus structured to track an object image included in the output image by the camera, to generate information for correcting distortion of the output image based on a change in shape accompanying movement of the object image, and to correct the output image using the information.
9. An image processing apparatus used with a camera and included in an imaging system for a vehicle, the image processing apparatus structured to detect an image of an object whose true shape is known from the output image by the camera, to generate information for correcting distortion of the output image based on the true shape and a shape of the image of the object in the output image, and to correct the output image using the information.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Embodiments will now be described, by way of example only, with reference to the accompanying drawings which are meant to be exemplary, not limiting, and wherein like elements are numbered alike in several Figures, in which:
[0027]
[0028]
[0029]
[0030]
[0031]
[0032]
[0033]
[0034]
[0035]
[0036]
[0037]
[0038]
[0039]
[0040]
[0041]
[0042]
[0043]
[0044]
[0045]
[0046]
[0047]
[0048]
[0049]
[0050]
[0051]
[0052]
[0053]
[0054]
[0055]
DETAILED DESCRIPTION
Embodiment 1.1
[0056]
[0057] The camera 110 images the front of the camera via an outer lens 14. The outer lens 14 provides additional distortion in addition to the distortion inherent to the camera 110. The type of the camera 110 is not limited, and various cameras such as a visible light camera, an infrared camera, and a TOF camera can be used.
[0058] The image processing apparatus 120 generates information (parameters and functions) necessary for correcting distortion including the influence of the camera 110 and the outer lens 14 on the basis of an output image IMG1 of the camera 110. Then, the camera image IMG1 is corrected on the basis of the generated information, and a corrected image IMG2 is output.
[0059] In
[0060]
[0061] The image processing apparatus 120 includes a distortion correction execution unit 122 and a correction characteristic acquisition unit 130. The correction characteristic acquisition unit 130 generates information necessary for distortion correction on the basis of the image (camera image) IMG1 from the camera 110. The distortion correction execution unit 122 performs correction processing on the basis of the information generated by the correction characteristic acquisition unit 130.
[0062] The correction characteristic acquisition unit 130 of the image processing apparatus 120 tracks an object image included in the output image IMG1 of the camera 110, and generates information for correcting distortion of the output image IMG1 on the basis of a change in shape accompanying movement of the object image.
[0063] The correction characteristic acquisition unit 130 includes an object detection unit 132, a tracking unit 134, a memory 136, and a correction characteristic operation unit 138. The object detection unit 132 detects an object included in the camera image (frame) IMG1. The tracking unit 134 monitors the movement of the same object included in a plurality of consecutive frames, and defines the position and the shape of the object in the memory 136 in association with each other.
[0064] The correction characteristic operation unit 138 generates information (for example, parameters and correction functions) necessary for distortion correction on the basis of the data stored in the memory 136.
[0065] The camera image IMG1 captured by the camera 110 includes a region (hereinafter, referred to as a reference region) in which distortion is negligibly small. Typically, the distortion decreases toward the center of the camera image, and the distortion increases toward the outer periphery. In this case, it is sufficient that a reference region REF is provided at the center of the camera image.
[0066] When the object being tracked is included in the reference region REF, the correction characteristic operation unit 138 sets the shape of the object at that time as a true shape. Then, the correction characteristic operation unit 138 generates information for distortion correction on the basis of the relationship between the shape of the same object at an arbitrary position outside the reference region and the true shape.
[0067] The above is the configuration of the imaging system 100. Next, the operation thereof will be described.
[0068] The shape of the object OBJ in each frame is sequentially stored in the memory 136 in association with the positions P.sub.1 to P.sub.5. In the frame F.sub.3 the object OBJ is included in the reference region REF. Therefore, the shape of the object OBJ in the frame F.sub.3 is set to a true shape S.sub.REF.
[0069]
[0070] By repeating tracking for various objects, it is possible to generate correction characteristics for many points.
[0071] According to the imaging system 100 of the Embodiment 1.1, calibration for distortion correction is unnecessary at the design stage. Therefore, the shape (that is, optical characteristics) of the outer lens 14 can be freely designed.
[0072] In addition, there is an advantage that, in a case where the positional displacement of the camera 110 occurs after the automobile on which the imaging system 100 is mounted is shipped, the correction characteristic corresponding to the distortion due to the optical characteristic after the positional displacement is automatically generated.
[0073] The correction characteristic acquisition unit 130 may always operate during traveling. Alternatively, the correction characteristic acquisition unit 130 may operate every time until the learning of the correction characteristic is completed after the ignition is turned on, and may stop the operation after the learning is completed. After the ignition is turned off, the already learned correction characteristic may be discarded, or may be held until the next ignition is turned on.
[0074] In the above description, a region having small distortion is set as the reference region REF, but the present invention is not limited thereto, and a region having a known distortion characteristic (correction characteristic that is an inverse characteristic thereof) may be set as the reference region REF. In this case, the shape of the object included in the reference region REF can be corrected on the basis of the correction characteristic, and the corrected shape can be set to a true shape. According to this idea, the range in which the correction characteristic is once obtained can be treated as the reference region REF thereafter.
[0075] When an object approaching from a distance is captured by a camera, an image of the object appears from a vanishing point and moves from the vanishing point to the surroundings. The camera 110 may be arranged such that the vanishing point is included in the reference region REF.
Embodiment 1.2
[0076]
[0077] The image processing apparatus 220 includes a distortion correction execution unit 222 and a correction characteristic acquisition unit 230. The correction characteristic acquisition unit 230 detects an image of a reference object OBJ.sub.REF whose true shape is known from the camera image IMG1. Then, the correction characteristic acquisition unit 230 generates information for correcting the distortion of the camera image IMG1 on the basis of the true shape S.sub.REF of the image of the reference object OBJ and the shape S.sub.# of the object image in the output image IMG1. The distortion correction execution unit 222 corrects the camera image IMG1 using the information generated by the correction characteristic acquisition unit 230.
[0078] The correction characteristic acquisition unit 230 includes a reference object detection unit 232, a memory 236, and a correction characteristic operation unit 238. The reference object detection unit 232 detects an image of the reference object OBJ.sub.REF whose true shape S.sub.REF is known from the camera image IMG1. As the reference object OBJ, a traffic sign, a utility pole, a road surface sign, or the like can be used.
[0079] The reference object detection unit 232 stores the shape S.sub.# of the image of the detected reference object OBJ.sub.REF in the memory 236 in association with the position P.sub.#. As in Embodiment 1.1, the reference object OBJ.sub.REF once detected may be tracked to continuously acquire the relationship between the position and the shape.
[0080] The correction characteristic operation unit 238 performs operation of a correction characteristic for each position P.sub.# on the basis of the relationship between the shape S.sub.# of the reference object image OBJ.sub.REF and the true shape S.sub.REF.
[0081] The above is the configuration of the imaging system 200. Next, the operation thereof will be described.
[0082] Embodiment 1.2 is effective in a case where the reference region REF with small distortion cannot be defined in an image.
[0083]
Outline of Embodiment 2
[0084] An embodiment disclosed in the present specification relates to an imaging system for a vehicle. The imaging system includes a camera and an image processing apparatus that processes an output image by the camera. When a foreign object is included in a current frame of the output image, the image processing apparatus searches the past frame for a background image shielded by the foreign object, and attaches the background image on the foreign object region where the foreign object exists in the current frame.
[0085] In an in-vehicle imaging system, since a camera moves as a vehicle moves, an object image included in a camera image continues to move. On the other hand, when a foreign object adheres, the foreign object tends to remain at the same position or move slower than the object image. That is, there is a high possibility that the object image existing in the foreign object region currently shielded by the foreign object has existed in a region different from the foreign object region in the past, and thus has not been shielded by the foreign object. Therefore, the missing of the image can be recovered by detecting the background image from the past frame and attaching the background image as a patch to the foreign object region.
[0086] The image processing apparatus may detect an edge for each frame of the output image and set a region surrounded by the edge as a candidate for the foreign object region. When the foreign object is a raindrop, the raindrop shines due to reflection of the lamp at night, and thus appears as a bright spot in the camera image. On the other hand, in the daytime (when the lamp is turned off), a raindrop shields light, and the portion appears as a dark spot. Therefore, by detecting the edge, a foreign object such as a raindrop can be detected.
[0087] However, by only the processing, there is a possibility that an object having an edge other than a raindrop is erroneously determined as a foreign object. Therefore, the image processing apparatus may determine a candidate for the foreign object region as the foreign object region when the candidate remains at substantially the same position over a predetermined number of frames. Since a foreign object can be regarded as being stationary on a time scale of about several frames to several tens of frames, by incorporating this property into the foreign object determination condition, erroneous determination can be prevented.
[0088] As another method, a foreign object may be detected by pattern matching, and in this case, detection for each frame is possible. However, it is necessary to increase the variation of the pattern according to the type of the foreign object, the traveling environment (daytime or night, weather, turning on/off of head lamp of own or other vehicle), and the like, and the processing becomes complicated. In this respect, the edge-based foreign object detection is advantageous because the processing can be simplified.
[0089] The image processing apparatus may detect an edge for each frame of the output image, and when edges having the same shape exist at the same place of two frames separated by N frames (N≥2), the image processing apparatus may determine a range surrounded by the edges as a foreign object region. In this case, it is not necessary to determine the frame interposed therebetween, so that the load on the image processing apparatus can be reduced.
[0090] The image processing apparatus may define the current reference region in the vicinity of the foreign object region in the current frame, detect the past reference region corresponding to the current reference region in the past frame, detect the offset amounts of the current reference region and the past reference region, and set the region obtained by shifting the foreign object region based on the offset amount in the past frame as the background image. As a result, it is possible to efficiently search for a background image to be used as a patch.
[0091] The detection of the past reference region may be based on pattern matching. In a case where a raindrop or the like adheres as a foreign object, there is a high possibility that there is no feature point available for optical flow operation around the foreign object region. In addition, the optical flow is originally a technique of tracking the movement of light (object) from the past toward the future. However, since the background image search is a process going back from the present to the past, it is necessary to buffer a plurality of consecutive frames and invert the time axis to apply the optical flow, and enormous operation processing is required. Alternatively, in the past frame, it is also conceivable to monitor all portions that can become the reference region in the future and apply the optical flow, but this also requires enormous operation processing. By using pattern matching, the past reference region can be efficiently searched for.
[0092] The detection of the past reference region may be based on an optical flow. In a case where a feature point usable in the optical flow operation exists in the current reference region, the past reference region can be searched for by tracing back the movement of the feature point on the time axis.
[0093] The image processing apparatus may detect an edge for each frame of the output image, when edges having the same shape exist at the same position of two frames separated by N frames, determine a range surrounded by the edges as a foreign object region, define a current reference region in the vicinity of the foreign object region in the current frame of the two frames, detect a past reference region corresponding to the current reference region in the past frame of the two frames, detect offset amounts of the current reference region and the past reference region, and set a region obtained by shifting the foreign object region on the basis of the offset amount in the past frame as the background image.
[0094] The image processing apparatus may detect the foreign object region by pattern matching.
[0095] The camera may be built in the lamp and capture an image through the outer lens.
[0096] Embodiment 2 will be described below with reference to the drawings.
[0097]
[0098] The camera 110 generates the camera image IMG1 at a predetermined frame rate. The camera 110 images the front of the camera via the outer lens 14, and a foreign object such as a raindrop RD, snow particle, or mud adhere to the outer lens 14. The foreign object is reflected in the camera image IMG1 and causes missing of an image. In the description below, a raindrop RD is assumed as a foreign object, but the present disclosure is also effective for a snow particle, mud, or the like.
[0099] When a foreign object is included in a current frame F.sub.i of the camera image IMG1, the image processing apparatus 120 searches the past frame F.sub.j (j<i) for a background image shielded by the foreign object, and attaches the background image to the foreign object region in the current frame. Then, the image processing apparatus 120 outputs the corrected image (hereinafter, referred to as a corrected image) IMG2.
[0100] The above is the basic configuration of the imaging system 100. Next, the operation thereof will be described.
[0101]
[0102] The image processing apparatus 120 searches the past frame F.sub.j (j<i) for the background image 34 shielded by the foreign object RD, and attaches the background image 34 to the foreign object region 32 of the current frame F.sub.i.
[0103] The above is the operation of the imaging system 100. In an in-vehicle imaging system, since the camera 110 moves as a vehicle moves, an object image (background) included in the camera image IMG1 continues to move. On the other hand, when the foreign object 32 adheres, the foreign object tends to remain at the same position or move slower than the object image. That is, there is a high possibility that the object image (oncoming vehicle 30) existing in the foreign object region shielded by the foreign object 32 in the current frame F.sub.i has existed in a region different from the foreign object region in the past frame F.sub.j, and thus has not been shielded by the foreign object. Therefore, the missing of the image can be recovered by detecting the background image from the past frame F.sub.j and attaching the background image as a patch to the foreign object region.
[0104] Next, specific processing will be described.
Foreign Object Detection
[0105] The image processing apparatus 120 detects edges for each frame of the camera image IMG1 and determines a region surrounded by the edge as a candidate for the foreign object region.
[0106] As illustrated in
[0107] In this case, the image processing apparatus 120 may compare two frames separated by N frames, and when edges having the same shape exist at the same position, the image processing apparatus 120 may consider that the edges exist at the same position also in the frames therebetween, and determine the range surrounded by the edges as the foreign object region. As a result, the operation processing amount of the image processing apparatus 120 can be reduced.
[0108] As another method, a foreign object may be detected by pattern matching, and in this case, detection for each frame is possible. However, it is necessary to increase the variation of the pattern according to the type of the foreign object, the traveling environment (daytime or night, weather, turning on/off of head lamp of own or other vehicle), and the like. Therefore, there is an advantage in the foreign object detection based on the edge. In the present disclosure, in a case where the operation processing capability of the image processing apparatus has a margin, pattern matching may be used for foreign object detection.
[0109]
[0110] When F.sub.i is the current frame, comparison is made with F.sub.i-N that is N frames earlier. Since the edges A and B exist at the same position, it is finally determined that the edges A and B are foreign objects. On the other hand, since the positions of the edge C are different between the two frames F.sub.i and F.sub.i-N, the edge C is excluded from the foreign object.
[0111] By repeating this process, the foreign object region can be efficiently detected. It is also conceivable to use pattern matching as a foreign object detection method. While pattern matching has an advantage that detection can be performed for each frame, there is a problem that it is necessary to increase a variation of a matching pattern according to a type of a foreign object, a traveling environment (daytime or night, weather, turning on/off of head lamp of own or other vehicle), and the like, and an operation processing amount increases. According to the foreign object determination based on the edge detection, such a problem can be solved.
Search for Background Image
[0112]
[0113] Pattern matching or an optical flow can be used to detect the past reference region 44, but pattern matching may be used for the following reasons. In a case where a raindrop or the like adheres as a foreign object, there is a high possibility that there is no feature point available for optical flow operation around the foreign object region. In addition, the optical flow is originally a technique of tracking the movement of light (object) from the past toward the future. However, since the background image search is a process going back from the present to the past, it is necessary to buffer a plurality of consecutive frames and invert the time axis to apply the optical flow, and enormous operation processing is required. Alternatively, in the past frame, it is also conceivable to monitor all portions that can become the reference region in the future and apply the optical flow, but this also requires enormous operation processing. On the other hand, by using pattern matching, it is possible to search for the past reference region efficiently with a small number of operations.
[0114] Then, offset amounts Δx (=x′−x) and Δy (=y′−y) of the position (x, y) of the current reference region 42 and the position (x′, y′) of the past reference region 44 are detected. Here, the reference region is rectangular, but its shape is not limited thereto.
[0115] In the past frame F.sub.j, a region obtained by shifting the foreign object region 40 on the basis of the offset amounts Δx and Δy is defined as a background image 46. The following relationship holds between the position (u′, v′) of the background image 46 and the position (u, v) of the foreign object region.
u′=u+Δx
v′=v+Δy
[0116] The above is the background image search method. According to this method, it is possible to efficiently search for a background image to be used as a patch.
[0117]
[0118] The image processing apparatus 120 includes an edge detection unit 122, a foreign object region determination unit 124, a background image search unit 126, and an attaching unit 128. The edge detection unit 122 detects edges for the current frame F.sub.i and generates edge data E.sub.i including information on the detected edge.
[0119] The foreign object region determination unit 124 refers to the edge data E.sub.i of the current frame F.sub.i and edge data E.sub.i-N of the past frame F.sub.j (=F.sub.i-N) determines a region surrounded by stationary edges as a foreign object region, and generates foreign object region data G.sub.i.
[0120] The background image search unit 126 searches for a background image available as a patch on the basis of the foreign object region data G.sub.i, the current frame F.sub.i, and the past frame F.sub.i-N. The processing is as described with reference to
[0121] A modification related to Embodiment 2 will be described.
Modification 2.1
[0122] In the embodiments, when the foreign object region is detected, the past frame N frames earlier than the current frame is referred to, and when the background image used as the patch is searched for, the past frame N frames earlier than the current frame is referred to, but the present invention is not limited thereto. The search for the background image may use a past frame M frames (N≠M) earlier than the current frame. In a case where an appropriate background image cannot be detected in a certain past frame, the background image may be further searched for from the past frame.
Modification 2.2
[0123] In the embodiments, the candidate of the foreign object region is searched for on the basis of the edge. At this time, the shape and size of the edge may be given as a constraint. For example, since the shape of raindrops is often circular or elliptical, figures having corners can be excluded. Accordingly, it is possible to prevent a signboard or the like from being extracted as a candidate for a foreign object.
Outline of Embodiment 3
[0124] Embodiment 3 relates to an imaging system for a vehicle. An imaging system includes a camera that generates a camera image, and an image processing apparatus that processes the camera image. When a water droplet is shown in a camera image, the image processing apparatus performs operation of a lens characteristic of the water droplet and corrects an image in a region of the water droplet on the basis of the lens characteristic.
[0125] According to this configuration, it is possible to correct the distortion due to the water droplet by calculating the distortion (lens characteristic) of the optical path due to the lens action of the water droplet and calculating the optical path when the lens action of the water droplet does not exist.
[0126] The image processing apparatus may set a predetermined region of the camera image as an image correction target. When the entire range of the camera image is to be subjected to the distortion correction, the operation amount of the image processing apparatus increases, and a high-speed processor is required. Therefore, by setting only an important region of the camera image as a correction target, the amount of operation required for the image processing apparatus can be reduced. The “important region” may be fixed or dynamically set.
[0127] The image processing apparatus may detect an edge for each frame of the camera image and set a region surrounded by edges as a candidate for the water droplet. At night, a water droplet shines due to reflection of the lamp, and thus appears as a bright spot in the camera image. On the other hand, in the daytime (when the lamp is turned off), a water droplet shields light, and the portion appears as a dark spot. Therefore, by detecting the edge, a water droplet can be detected.
[0128] However, by only the processing, there is a possibility that an object having an edge other than a water droplet is erroneously determined as a water droplet. Therefore, the image processing apparatus may determine a candidate for the water droplet as the water droplet when the candidate remains at substantially the same position over a predetermined number of frames. Since a water droplet can be regarded as being stationary on a time scale of about several frames to several tens of frames, by incorporating this property into the water droplet determination condition, erroneous determination can be prevented.
[0129] The image processing apparatus may determine a candidate for the water droplet as the water droplet when the candidate remains at substantially the same position over a predetermined number of frames.
[0130] As another method, a water droplet may be detected by pattern matching, and in this case, detection for each frame is possible. However, it is necessary to increase the variation of the pattern according to the traveling environment (daytime or night, weather, turning on/off of head lamp of own or other vehicle), and the like, and the processing becomes complicated. In this respect, the edge-based water droplet detection is advantageous because the processing can be simplified.
[0131] The image processing apparatus may detect an edge for each frame of the camera image, and when edges having the same shape exist at the same place of two frames separated by N frames, the image processing apparatus may determine a range surrounded by the edges as a water droplet.
[0132] The camera may be built in the lamp and capture an image through the outer lens.
[0133] Embodiment 3 discloses an image processing apparatus that is used with a camera and included in an imaging system for a vehicle. When a water droplet is shown in a camera image generated by the camera, the image processing apparatus operates a lens characteristic of the water droplet and corrects an image in a region of the water droplet on the basis of the lens characteristic.
[0134] Embodiment 3 will be described below in detail with reference to the drawings.
[0135]
[0136] The camera 110 generates the camera image IMG1 at a predetermined frame rate. The camera 110 images the front of the camera via the outer lens 14, and a water droplet WD such as a raindrop may adhere to the outer lens 14. Since the water droplet WD acts as a lens, the path of the light beam passing through the water droplet WD is refracted and distorts the image.
[0137] When the water droplet WD is included in the camera image IMG1, the image processing apparatus 120 performs operation of a lens characteristic of the water droplet WD and corrects an image in a region of the water droplet WD on the basis of the lens characteristic.
[0138] Details of processing of the image processing apparatus 120 will be described.
[0139] The image processing apparatus 120 includes a water droplet detection unit 122, a lens characteristic acquisition unit 124, and a correction processing unit 126. The water droplet detection unit 122 detects one or a plurality of water droplets WD from the camera image IMG1. The lens characteristic acquisition unit 124 calculates the lens characteristic of each water droplet WD on the basis of the shape and position thereof.
[0140] The correction processing unit 126 corrects the image in the region of each water droplet on the basis of the lens characteristic obtained by the lens characteristic acquisition unit 124.
[0141] The above is the configuration of the imaging system 100. Next, the operation thereof will be described.
[0142]
[0143]
[0144] The image processing apparatus 120 calculates an optical path of a light beam (ii) when it is assumed that there is no water droplet WD, and estimates an image formed on the imaging surface of the image sensor IS by the light beam (ii) as illustrated in
[0145] The above is the operation of the image processing apparatus 120. According to the imaging system 100, it is possible to correct the distortion due to the water droplet WD by calculating the distortion (lens characteristic) of the optical path due to the lens action of the water droplet WD and calculating the optical path when the lens action of the water droplet WD does not exist.
[0146] As illustrated in
[0147] In order to solve this problem, the image processing apparatus 120 may set only a water droplet in a predetermined region in the camera image IMG1 as a correction target. The predetermined region is, for example, a region of interest (ROI), and may be the center of the image or a region including an object to be noted. Therefore, the position and shape of the predetermined region may be fixed or may dynamically change.
[0148] The image processing apparatus 120 may set only a water droplet including an image in a region inside the water droplet as a correction target. As a result, the operation processing amount can be reduced.
Water droplet detection
[0149] Next, detection of a water droplet will be described. The image processing apparatus 120 detects edges for each frame of the camera image IMG1 and determines a region surrounded by edges as a candidate for a region where a water droplet exists (referred to as a water droplet region).
[0150] As illustrated in
[0151] In this case, the image processing apparatus 120 may compare two frames separated by N frames, and when edges having the same shape exist at the same position, the image processing apparatus 120 may consider that the edges exist at the same position also in the frames therebetween, and determine the range surrounded by the edges as the water droplet region. As a result, the operation processing amount of the image processing apparatus 120 can be reduced.
[0152] As another method, a water droplet may be detected by pattern matching, and in this case, detection for each frame is possible. However, it is necessary to increase the variation of the pattern according to the type of the water droplet, the traveling environment (daytime or night, weather, turning on/off of head lamp of own or other vehicle), and the like. Therefore, there is an advantage in the water droplet detection based on the edge. In the present disclosure, in a case where the operation processing capability of the image processing apparatus has a margin, pattern matching may be used for water droplet detection.
[0153]
[0154] When F.sub.i is the current frame, comparison is made with F.sub.1-N that is N frames earlier. Since the edges A and B exist at the same position, it is finally determined that the edges A and B are water droplets. On the other hand, since the positions of the edge C are different between the two frames F.sub.i and F.sub.i-N, the edge C is excluded from the water droplet.
[0155] By repeating this process, the water droplet region can be efficiently detected. It is also conceivable to use pattern matching as a water droplet detection method. While pattern matching has an advantage that detection can be performed for each frame, there is a problem that it is necessary to increase a variation of a matching pattern according to a type of a water droplet, a traveling environment (daytime or night, weather, turning on/off of head lamp of own or other vehicle), and the like, and an operation processing amount increases. According to the water droplet determination based on the edge detection, such a problem can be solved.
[0156] A modification related to the Embodiment 3 will be described.
Modification 3.1
[0157] In the embodiments, the candidate of the water droplet region is searched for on the basis of the edge. At this time, the shape and size of the edge may be given as a constraint. For example, since the shape of raindrops is often circular or elliptical, figures having corners can be excluded. Accordingly, it is possible to prevent a signboard or the like from being extracted as a candidate for a water droplet.
Outline of Embodiment 4
[0158] Embodiment 4 relates to an imaging system for a vehicle. An imaging system includes a camera that is built in a vehicle lamp together with a lamp light source and generates a camera image at a predetermined frame rate, and an image processing apparatus that processes the camera image. The image processing apparatus extracts a reflection component of the emitted light of the lamp light source on the basis of a plurality of frames, and removes the reflection component from a current frame.
[0159] The reflected image to be removed is generated by reflection of a lamp as a fixed light source on an outer lens as a fixed medium, so that the reflected image can be regarded as unchanged for a long time. Therefore, a bright portion commonly included in the plurality of frames can be extracted as the reflection component. This method can be performed only by simple difference extraction or logical operation, and thus has an advantage that the amount of operation is small.
[0160] The image processing apparatus may generate the reflection component by taking a logical product for each pixel of a plurality of frames. The logical product operation may be generated by developing a pixel value (or a luminance value) of a pixel into binary and performing a logical product operation between corresponding digits of the corresponding pixel.
[0161] The plurality of frames may be separated by at least three seconds or more. As a result, an object other than reflected images is more likely to appear at different positions in a plurality of frames, and can be prevented from being erroneously extracted as reflected images.
[0162] The image processing apparatus may exclude a predetermined exclusion region determined from the positional relationship between the lamp light source and the camera from the reflection component extraction processing. In a case where an object (light source) to be captured by the camera is located far away, there is a possibility that the object is captured at the same position of two frames sufficiently separated in time and is erroneously extracted as reflection of the lamp light source. Therefore, erroneous extraction can be prevented by determining in advance a region where reflection of the lamp light source cannot occur.
[0163] The plurality of frames may be two frames. Even in the processing of only two frames, reflection can be detected with accuracy comparable to the processing of three or more frames.
[0164] The plurality of frames may be captured in a dark scene. As a result, the accuracy of the reflection extraction can be further improved.
[0165] Another aspect of the present disclosure relates to a vehicle lamp. The vehicle lamp includes a lamp light source and any of the imaging systems described above.
[0166] Embodiment 4 discloses an image processing apparatus that is used with a camera and included in an imaging system for a vehicle. The camera is built in a vehicle lamp together with a lamp light source. The image processing apparatus extracts a reflection component of emitted light of the lamp light source on the basis of a plurality of frames of a camera image generated by the camera, and removes the reflection component from a current frame.
[0167] Embodiment 4 will be described below in detail with reference to the drawings.
[0168]
[0169] The camera 110 generates the camera image IMG1 at a predetermined frame rate. The camera 110 images the front of the camera via an outer lens 14. When the lamp light source such as the high beam 16 or the low beam 18 is turned on, the beam emitted from the lamp light source is reflected or scattered by the outer lens 14, and part of the beam is incident on the camera 110. As a result, the lamp light source is captured in the camera image IMG1. Although a simplified optical path is illustrated in
[0170] The image processing apparatus 120 extracts a reflection component of emitted light of the lamp light source on the basis of a plurality of frames of the camera image IMG1, and removes the reflection component from a current frame.
[0171] Details of processing of the image processing apparatus 120 will be described.
[0172] The image processing apparatus 120 includes a reflection extraction unit 122 and a reflection removal unit 124. The reflection extraction unit 122 generates a reflection image IMG3 including a reflection component on the basis of a set (in this example, two frames Fa, Fb) of two or three or more frames separated in time among a plurality of frames captured by the camera 110. A method of selecting the plurality of frames Fa and Fb for reflection extraction will be described later.
[0173] The reflection extraction unit 122 extracts a bright portion commonly reflected in the plurality of frames Fa and Fb as a reflection component. Specifically, the reflection extraction unit 122 can generate a reflection component (reflection image IMG3) by taking a logical product (AND) of each pixel of the plurality of frames Fa and Fb. The reflection extraction unit 122 obtains a logical product of corresponding digits (bits) when the pixel value (RGB) is developed into binary for all the pixels of the frames Fa and Fb. For the sake of simplicity, it is assumed that the red pixel value Ra of a certain pixel of the frame Fa is 8 and the pixel value Rb of the same pixel of the frame Fb is 11. It is expressed in 5 bits for simplicity as
[0174] Ra=[01000]
[0175] Rb=[01011]
[0176] and their logical product can be obtained by multiplying bits by each other, and expressed as
[0177] Ra×Rb=[01000]. By performing the logical product operation on all the pixels, the image IMG3 including the reflection component is generated. The reflection image IMG3 may be generated only once after the start of traveling, or may be updated at an appropriate frequency during traveling. Alternatively, the reflection image IMG3 may be generated at a frequency of several days or once every several months.
[0178] Instead of the RGB pixel values, the RGB pixel values may be converted into luminance values, and logical product operation may be performed on the luminance values to extract the reflection components.
[0179] The reflection removal unit 124 corrects each frame Fi of the camera image using the reflection image IMG3 to remove the reflection component.
[0180] The reflection removal unit 124 may multiply the pixel value of the reflection image IMG3 by a predetermined coefficient and subtract the pixel value from the original frame Fi. Fi (x, y) represents a pixel at a horizontal position x and a vertical position y in the frame Fi.
Fi′(x,y)=Fi(x,y)−β×IMG3(x,y)
[0181] β can be optimized by experiment so that the effect of reflection removal is the highest.
[0182] The above is the configuration of the imaging system 100. Next, the operation thereof will be described.
[0183] On the right side of each of the two frames Fa and Fb, a street lamp or a road sign as a distant view component is shown. Since these are distant views, the position hardly moves in traveling for 3.3 seconds, and thus the components are mixed in the reflection image IMG3.
[0184] In order to solve this problem, an exclusion region may be defined in a frame. The position where the reflection occurs is geometrically determined from the positional relationship between the lamp light source and the camera, and thus does not change greatly. In other words, a region where reflection cannot occur is determined in advance as an excluded region, and can be excluded from the reflection component extraction processing. In the example of
[0185]
[0186] In the example of
[0187]
[0188]
[0189] As can be seen from the comparison of
[0190] Ideally, it is desirable to generate the reflection image IMG3 using a frame captured in a state where the headlamp is covered with a blackout curtain. For example, a maintenance mode is performed on the imaging system 100, an instruction is given to a user or a work vehicle to cover a headlamp with a blackout curtain at the time of maintenance of the vehicle, and imaging is performed by the camera 110 to generate the reflection image IMG3.
[0191]
[0192] As another approach for extracting the reflection, a method of turning on and off the lamp in the same scene to take a difference is also conceivable. However, in this different approach, since the presence or absence of light projection with respect to the entire video background changes, the brightness of the entire screen changes. Therefore, it is difficult to distinguish between the presence or absence of reflection and the brightness difference of the background only by taking the difference. On the other hand, according to the method of the present embodiment, it is possible to reliably detect the presence or absence of reflection.
[0193] Any combination of the techniques described in Embodiments 1.1 to 1.3, Embodiment 2, Embodiment 3, and Embodiment 4 is effective.
Application
[0194]
[0195] Alternatively, the imaging system 410 is the imaging system 100 described in Embodiment 2, and generates the image IMG2 in which missing of information due to a foreign object is recovered.
[0196] Alternatively, the imaging system 410 is the imaging system 100 described in Embodiment 3, and generates the image IMG2 in which missing of information due to a water droplet is recovered.
[0197] Alternatively, the imaging system 410 is the imaging system 100 described in Embodiment 4, and generates the image IMG2 in which reflection is removed.
[0198] The operation processing apparatus 420 is structured to identify the position and the type (category, class) of the object on the basis of the image IMG2. The operation processing apparatus 420 may include a classifier 422. The operation processing apparatus 420 can be implemented by a combination of a processor (hardware) such as a central processing unit (CPU), a micro processing unit (MPU), or a microcomputer, and a software program executed by the processor (hardware). The operation processing apparatus 420 may be a combination of a plurality of processors. The operation processing apparatus 420 may be configured only by hardware.
[0199] The classifier 422 is implemented on the basis of a prediction model generated by machine learning, and determines a type (category, class) of an object included in an input image. An algorithm of the classifier 422 is not limited, but You Only Look Once (YOLO), Single Shot MultiBox Detector (SSD), Region-based Convolutional Neural Network (R-CNN), Spatial Pyramid Pooling (SPPnet), Faster R-CNN, Deconvolution-SSD (DSSD), Mask R-CNN, or the like can be adopted, or an algorithm developed in the future can be adopted. The operation processing apparatus 420 and the image processing apparatus 120 (220, 320) of the imaging system 410 may be implemented in the same processor.
[0200] In the object identification system 400 including the imaging system according to the Embodiments 1.1 to 1.3, the image IMG2 in which the distortion is corrected is input to the classifier 422. Therefore, when learning the classifier 422, an image without distortion can be used as training data. In other words, there is an advantage that it is not necessary to perform learning again even when the distortion characteristic of the imaging system 410 changes.
[0201] In the object identification system 400 including the imaging system according to Embodiment 2, the image IMG2 after missing of information due to a foreign object is recovered is input to the classifier 422. Therefore, the identification rate of the object can be increased.
[0202] In the object identification system 400 including the imaging system according to Embodiment 3, the image IMG2 after missing of information due to a water droplet is recovered is input to the classifier 422. Therefore, the identification rate of the object can be increased.
[0203] In the object identification system 400 including the imaging system according to the Embodiment 4, the image IMG2 in which the reflection is removed is input to the classifier 422. Therefore, the identification rate of the object can be increased.
[0204] The output of the object identification system 400 may be used for light distribution control of the vehicle lamp, or may be transmitted to a vehicle-side ECU and used for automatic driving control.
[0205]
[0206] Alternatively, the imaging system 510 is the imaging system 100 according to Embodiment 2, and generates the image IMG2 in which missing of information due to a foreign object is recovered.
[0207] Alternatively, the imaging system 510 is the imaging system 100 according to Embodiment 3, and generates the image IMG2 in which missing of information due to a water droplet is recovered.
[0208] Alternatively, the imaging system 510 is the imaging system 100 according to Embodiment 4, and generates the image IMG2 in which reflection is removed.
[0209] The display 520 displays the image IMG2. The display system 500 may be a digital mirror, or may be a front view monitor or a rear view monitor for covering a blind spot.
[0210] While the preferred embodiments of the present disclosure have been described using specific terms, such description is for illustrative purposes only, and it is to be understood that changes and variations may be made without departing from the spirit or scope of the appended claims.
CLAUSES DESCRIBING FEATURES OF THE DISCLOSURE
[0211] Clause 10. An imaging system for a vehicle, comprising:
[0212] a camera structured to generate a camera image at a predetermined frame rate; and
[0213] an image processing apparatus structured to process the camera image,
[0214] wherein, when a foreign object is included in a current frame of the camera image, the image processing apparatus searches a past frame for a background image shielded by the foreign object, and attaches the background image to a foreign object region where the foreign object exists in the current frame.
[0215] Clause 11. The imaging system according to Clause 10, wherein the image processing apparatus is structured to detect edges for each frame of the camera image, and to set a region surrounded by the edges as a candidate for the foreign object region.
[0216] Clause 12. The imaging system according to Clause 11, wherein the image processing apparatus is structured to determine a candidate for the foreign object region as the foreign object region when the candidate remains at substantially an identical position over a predetermined number of frames.
[0217] Clause 13. The imaging system according to Clause 10, wherein the image processing apparatus is structured to detect edges for each frame of the camera image, and when edges having an identical shape exist at an identical place of two frames separated by N frames, the image processing apparatus is structured to determine a range surrounded by the edges as the foreign object region.
[0218] Clause 14. The imaging system according to Clause 10,
[0219] wherein the image processing apparatus is structured:
[0220] to define a current reference region in a vicinity of the foreign object region in the current frame;
[0221] to detect a past reference region corresponding to the current reference region in the past frame;
[0222] to detect offset amounts of the current reference region and the past reference region; and
[0223] to set a region obtained by shifting the foreign object region based on the offset amounts in the past frame as the background image.
[0224] Clause 15. The imaging system according to Clause 14, wherein detection of the past reference region is based on pattern matching.
[0225] Clause 16. The imaging system according to Clause 14, wherein detection of the past reference region is based on an optical flow.
[0226] Clause 17. The imaging system according to Clause 10,
[0227] wherein the image processing apparatus is structured:
[0228] to detect edges for each frame of the camera image, and when edges having an identical shape exist at an identical position of two frames separated by N frames, determines a range surrounded by the edges as the foreign object region;
[0229] to define a current reference region in a vicinity of the foreign object region in the current frame of the two frames;
[0230] to detect a past reference region corresponding to the current reference region in the past frame of the two frames;
[0231] to detect offset amounts of the current reference region and the past reference region; and
[0232] to set a region obtained by shifting the foreign object region based on the offset amounts in the past frame as the background image.
[0233] Clause 18. The imaging system according to Clause 10, wherein the image processing apparatus is structured to detect the foreign object region by pattern matching.
[0234] Clause 19. The imaging system according to Clause 10, wherein the foreign object is a raindrop.
[0235] Clause 20. The imaging system according to Clause 10, wherein the camera is built in a lamp and performs imaging via an outer lens.
[0236] Clause 21. An image processing apparatus used with a camera and included in an imaging system for a vehicle,
[0237] the image processing apparatus structured to, when a foreign object is included in a current frame of a camera image, search a past frame for a background image shielded by the foreign object, and replace a foreign object region where the foreign object exists with the background image.
[0238] Clause 22. An imaging system for a vehicle, comprising:
[0239] a camera structured to generate a camera image; and
[0240] an image processing apparatus structured to process the camera image,
[0241] wherein, when a water droplet is shown in the camera image, the image processing apparatus is structured to perform operation of a lens characteristic of the water droplet and to correct an image in a region of the water droplet based on the lens characteristic.
[0242] Clause 23. The imaging system according to Clause 22, wherein the image processing apparatus is structured to set a predetermined region of the camera image as an image correction target.
[0243] Clause 24. The imaging system according to Clause 22, wherein the image processing apparatus is structured to detect edges for each frame of the camera image, and to set a region surrounded by the edges as a candidate for the water droplet.
[0244] Clause 25. The imaging system according to Clause 24, wherein the image processing apparatus is structured to determine a candidate for the water droplet as the water droplet when the candidate remains at substantially an identical position over a predetermined number of frames.
[0245] Clause 26. The imaging system according to Clause 22, wherein the image processing apparatus is structured to detect edges for each frame of the camera image, and when edges having an identical shape exist at an identical place of two frames separated by N frames, the image processing apparatus is structured to determine a range surrounded by the edges as the water droplet.
[0246] Clause 27. The imaging system according to Clause 22, wherein the image processing apparatus is structured to detect the water droplet by pattern matching.
[0247] Clause 28. The imaging system according to Clause 22, wherein the camera is built in a lamp and performs imaging via an outer lens.
[0248] Clause 29. An image processing apparatus used with a camera and included in an imaging system for a vehicle,
[0249] wherein the image processing apparatus is structured, when a water droplet is shown in a camera image generated by the camera, to perform operation of a lens characteristic of the water droplet and to correct an image in a region of the water droplet based on the lens characteristic.
[0250] Clause 30. An imaging system for a vehicle, comprising:
[0251] a camera that is built in a vehicle lamp together with a lamp light source and generates a camera image at a predetermined frame rate; and
[0252] an image processing apparatus structured to process the camera image,
[0253] wherein the image processing apparatus is structured to extract a reflection component of emitted light of the lamp light source based on a plurality of frames, and to remove the reflection component from a current frame.
[0254] Clause 31. The imaging system according to Clause 30, wherein the image processing apparatus is structured to extract a bright portion commonly appearing in the plurality of frames as the reflection component.
[0255] Clause 32. The imaging system according to Clause 30, wherein the image processing apparatus is structured to generate the reflection component by taking a logical product of each pixel of the plurality of frames.
[0256] Clause 33. The imaging system according to Clause 30, wherein the plurality of frames are separated by at least three seconds or more.
[0257] Clause 34. The imaging system according to Clause 30, wherein the image processing apparatus is structured to exclude a predetermined exclusion region determined from a positional relationship between the lamp light source and the camera from reflection component extraction processing.
[0258] Clause 35. The imaging system according to Clause 30, wherein the plurality of frames are two frames.
[0259] Clause 36. The imaging system according to Clause 30, wherein the plurality of frames are imaged in a dark scene.
[0260] Clause 37. A vehicle lamp comprising: a lamp; and
[0261] the imaging system according to Clause 30.
[0262] Clause 38. An image processing apparatus used with a camera and included in an imaging system for a vehicle,
[0263] wherein the camera is built in a vehicle lamp together with a lamp light source, and
[0264] the image processing apparatus is structured to extract a reflection component of emitted light of the lamp light source based on a plurality of frames of a camera image generated by the camera, and to remove the reflection component from a current frame.