On-vehicle imaging apparatus
The in-vehicle imaging device automatically sets a cutout area by detecting and avoiding reflections, addressing the inefficiencies of manual input in conventional systems and enhancing image processing efficiency.
Patent Information
- Application Number
- JP2023032516
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-03
- Publication Date
- 2024-09-13
AI Technical Summary
Conventional vehicle-mounted imaging devices require manual input to set a desired range in the captured image, which is time-consuming and inefficient, and often necessitate additional buttons for setting the cutout area.
An in-vehicle imaging device that automatically sets an appropriate cutout area by detecting and avoiding reflection areas using an image detection section and a crop area determination section, determining the crop area based on the presence and position of reflections in the captured image.
Automatically sets an appropriate cutout area in the captured image, reducing user effort and eliminating the need for manual input, while accurately avoiding reflections and minimizing the occupied area by obstructions.
Smart Images

Figure 2024124676000001
Abstract
Description
[Technical field]
[0001] The present invention relates to an in-vehicle imaging device. [Background technology]
[0002] Known as a conventional in-vehicle imaging device is, for example, the technology described in Patent Document 1. The in-vehicle imaging device described in Patent Document 1 includes a camera that captures images of the rear side of the vehicle, an input unit that can switch a desired range that the driver wishes to view in a camera image captured by the camera through an input operation by the driver, and a control unit that changes the desired range set in the camera image based on an input signal input from the input unit and cuts out the changed desired range from the camera image to create a cut-out image. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] Patent Publication No. 2014-27353 Summary of the Invention [Problem to be solved by the invention]
[0004] In the above-mentioned conventional technology, the driver selects a desired range (cropped image) from the captured image of the camera by inputting the input unit, and the captured image is cropped. In this case, it is time-consuming to set the crop area of the captured image, and a button for setting the crop area or the like must be prepared. Therefore, it is required to automatically set an appropriate crop area in the captured image of the camera (imaging unit).
[0005] An object of the present invention is to provide an in-vehicle imaging device that can automatically set an appropriate crop area in an image captured by an imaging unit. [Means for solving the problem]
[0006] One aspect of the present invention is an in-vehicle imaging device that captures images of the surroundings of a vehicle using an imaging unit and cuts out and outputs the image captured by the imaging unit, and is equipped with a reflection detection unit that detects whether the captured image contains an imaged area in which a vehicle part arranged around the imaging unit is reflected, and a cut-out area determination unit that determines a cut-out area for the captured image in accordance with a detection result from the reflection detection unit, and when the reflection detection unit detects that an imaged area exists in the captured image, the cut-out area determination unit sets the cut-out area in the captured image in a position in a direction that avoids the reflected area.
[0007] The cropping area determination section may set the cropping area to a position that does not include the captured area when the captured image is detected by the captured image detection section.
[0008] The reflection detection unit may determine that a reflection area exists in the captured image when a reflection candidate region having a concave shape with respect to the center side of the captured image exists.
[0009] The reflection detection unit may determine that a reflection area exists in the captured image when a reflection candidate region that is concave toward the center of the captured image exists and a specified ratio or more of the reflection candidate region is of a similar color.
[0010] The vehicle part may be a part that covers the imaging unit, and the reflection detection unit may detect whether a reflection area exists in any of the lower part, upper part, left part, or right part of the captured image. Effect of the Invention
[0011] According to the present invention, an appropriate cropping area can be automatically set in an image captured by an imaging section. [Brief description of the drawings]
[0012] [Figure 1] 1 is a cross-sectional view showing a state in which an in-vehicle camera, which is an in-vehicle imaging device according to an embodiment of the present invention, is mounted on a vehicle. [Diagram 2] FIG. 2 is a block diagram showing a configuration of the vehicle-mounted camera shown in FIG. [Diagram 3] FIG. 4 is a diagram showing an example of an image captured by an imaging section; [Figure 4] 11 is a diagram showing a captured image when a lattice-shaped component is captured by an imaging unit; FIG. [Diagram 5] 3 is a flowchart showing a procedure of a reflection detection process executed by a reflection detection unit shown in FIG. 2. [Figure 6] 11A to 11C are diagrams showing some examples of crop areas set in an image captured by an imaging unit. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0013] Hereinafter, an embodiment of the present invention will be described in detail with reference to the drawings.
[0014] Fig. 1 is a cross-sectional view showing a state in which an in-vehicle imaging device according to an embodiment of the present invention is mounted on a vehicle. In Fig. 1, an in-vehicle camera 1, which is an in-vehicle imaging device of this embodiment, is mounted on a vehicle 2 such as an automobile. The in-vehicle camera 1 is attached, for example, to a roof 3 of the vehicle 2 via a bracket 4. The in-vehicle camera 1 may also be attached to an upper portion of a windshield 8 of the vehicle 2 via the bracket 4.
[0015] A camera cover 10, which is a part that covers the vehicle-mounted camera 1, is attached to the bracket 4. The camera cover 10 is a vehicle part that is arranged around the vehicle-mounted camera 1. The color of the camera cover 10 is, for example, a black color. Note that a camera hood may be used as a part that covers the vehicle-mounted camera 1 instead of the camera cover 10.
[0016] Fig. 2 is a block diagram showing the configuration of the vehicle-mounted camera 1 shown in Fig. 1. In Fig. 2, the vehicle-mounted camera 1 includes an imaging section 5 that captures an image ahead of the vehicle 2, and an image processing unit 6 connected to the imaging section 5. An ECU (Electronic Control Unit) 7 is connected to the image processing unit 6.
[0017] As shown in Fig. 1, the imaging unit 5 captures an image of the area ahead of the vehicle 2 through the windshield 8 of the vehicle 2. A wide-angle lens 9 is disposed at the front end of the vehicle-mounted camera 1. The wide-angle lens 9 provides the vehicle-mounted camera 1 with an angle of view θ in the vertical direction. For this reason, if a part of the camera cover 10 is disposed within the angle of view θ of the vehicle-mounted camera 1, a part of the camera cover 10 may be reflected in the image captured by the imaging unit 5 (see A in Fig. 1). When using the image captured by the imaging unit 5, the reflected part is unnecessary.
[0018] The image processing unit 6 performs image processing to reduce or eliminate the reflected portion of the camera cover 10 in the image captured by the imaging unit 5. The image processing unit 6 cuts out the image captured by the imaging unit 5 and outputs it to the ECU 7. The image processing unit 6 is composed of a CPU, a RAM, a ROM, an input / output interface, etc.
[0019] The image processing unit 6 has a captured image acquisition section 11, a reflection detection section 12, a cut-out area determination section 13, an image cut-out section 14, and an image data output section 15. The functions of the captured image acquisition section 11, the reflection detection section 12, the cut-out area determination section 13, the image cut-out section 14, and the image data output section 15 are configured by software, for example.
[0020] The captured image acquisition unit 11 acquires the captured image G of the imaging unit 5. The captured image G has a rectangular shape as shown in FIG. 3. The outer frame of the captured image G is a full-angle area A0 in which the entire imaging range of the imaging unit 5 is captured. The captured image G also has a rectangular image recognition area Ag. The image recognition area Ag is an area in which the captured image G is recognized as an image. The outer dimensions of the image recognition area Ag are smaller than the outer dimensions of the full-angle area A0. Note that the image recognition area Ag may be equal to the full-angle area A0.
[0021] 3, the reflection detection unit 12 detects whether or not a reflection area Ac in which the camera cover 10 is reflected is present in the captured image G of the imaging unit 5 acquired by the captured image acquisition unit 11. The reflection detection unit 12 determines that a reflection area Ac is present in the captured image G when a concave reflection candidate area R exists toward the center O side (inside) of the captured image G and a prescribed ratio or more of the reflection candidate area R is of a similar color. The reflection candidate area R is a concave colored area that is a candidate for the reflection area Ac in which the camera cover 10 is reflected.
[0022] The wide-angle lens 9 of the vehicle-mounted camera 1 has a characteristic that the distortion increases with distance from the center of the lens. Therefore, when an image of a lattice-shaped object is captured by the imaging unit 5, the captured image G of the imaging unit 5 obtained through the wide-angle lens 9 will show a distorted lattice as shown in Fig. 4. In other words, even if the object is actually flat, when the object is viewed through the wide-angle lens 9, it will appear rounded. Therefore, even if the surface of the camera cover 10 is flat, the shape of the camera cover 10 reflected in the lower part of the captured image G will be concave as shown in Fig. 3.
[0023] 5 is a flowchart showing the procedure of the reflection detection process executed by the reflection detection unit 12. This process may be executed, for example, every time the vehicle 2 is started, or may be executed periodically.
[0024] 5, the reflection detection unit 12 first inputs the captured image G of the imaging unit 5 acquired by the captured image acquisition unit 11 (step S101). Next, the reflection detection unit 12 determines whether or not a reflection candidate region R exists in the lower part of the image recognition area Ag of the captured image G (step S102). The reflection candidate region R is a region in which some colored object that may be a candidate for the reflection area Ac is reflected.
[0025] When the reflection detection unit 12 determines that a reflection candidate area R exists in the lower part of the image recognition area Ag of the captured image G, it determines whether there is an intersection with the reflection candidate area R at both the left and right ends of the image recognition area Ag (step S103).
[0026] In the captured image G shown in FIG. 3, there are vertices P1 and P2 which are the intersections between the image recognition area Ag and the candidate region R. The vertices P1 and P2 are below the vertical center line Ly of the captured image G. The vertex P1 is to the left of the horizontal center line Lx of the captured image G. The vertex P2 is to the right of the horizontal center line Lx of the captured image G. The horizontal center line Lx is a center line extending in the up-down direction (Y direction) of the captured image G. The vertical center line Ly is a center line extending in the left-right direction (X direction) of the captured image G. The center O of the captured image G is the intersection of the horizontal center line Lx and the vertical center line Ly.
[0027] When the reflection detection unit 12 determines that there is an intersection with the reflection candidate area R at both the left and right ends of the image recognition area Ag, it determines whether there is a concave bottom at the horizontal center of the reflection candidate area R toward the center O of the captured image G (here, the upper side) (step S104).
[0028] 3, vertex P3, which is the bottom of the concave shape, exists on the horizontal center line Lx of the image candidate region R. Vertex P3 is located lower than vertices P1 and P2 in the image G. Note that vertex P3 may be slightly shifted to the left or right from the horizontal center line Lx of the image candidate region R.
[0029] When the image capture detection unit 12 determines that a concave bottom exists in the horizontal center of the image capture candidate area R, it determines whether or not a specified ratio or more of the image capture candidate area R is of a similar color (step S105). The specified ratio is determined in advance, and is, for example, 90%. The image capture candidate area R depends on the color of the camera cover 10 (here, a blackish color).
[0030] When the reflection detection unit 12 determines that a specified ratio or more of the reflection candidate region R is of a similar color, it determines that the reflection candidate region R is a reflection of the camera cover 10 (step S106). As a result, the reflection detection unit 12 determines that there is a reflection area Ac in which the camera cover 10 is reflected in the lower part of the captured image G.
[0031] When it is determined that the conditions in steps S102 to S105 are not satisfied, the reflection detection unit 12 determines that there is no reflection of the camera cover 10 (step S107). As a result, the reflection detection unit 12 determines that there is no reflection area Ac in which the camera cover 10 is reflected in the lower part of the captured image G.
[0032] After executing step S106 or step S107, reflection detection unit 12 outputs the reflection detection data to cut-out area determination unit 13 (step S108). The reflection detection data includes information on the presence or absence of reflection area Ac in which camera cover 10 is reflected, and position information of reflection area Ac on image recognition area Ag when reflection area Ac in which camera cover 10 is reflected exists.
[0033] 2, as shown in Fig. 3, the cut-out area determination unit 13 determines a cut-out area At of the captured image G in accordance with the detection result of the reflection detection unit 12. When the reflection detection unit 12 detects that a reflected area Ac exists in the captured image G, the cut-out area determination unit 13 sets the cut-out area At in the captured image G at a position in a direction that avoids the reflected area Ac.
[0034] The cut-out area At is an area to be cut out as an image to be used in the captured image G. The cut-out area At is set within the image recognition area Ag of the captured image G. The shape of the cut-out area At is, for example, rectangular. The outer dimensions of the cut-out area At are smaller than the outer dimensions of the image recognition area Ag. The position in the direction to avoid the reflected area Ac is a position in the direction in which the reflected area Ac occupies less of the cut-out area At. The position in the direction to avoid the reflected area Ac may be not only a position that does not include the reflected area Ac at all, but also a position that includes a small amount of the reflected area Ac.
[0035] In the default state of the vehicle-mounted camera 1, the cut-out area At is set to a position such as that shown in Fig. 6(a) for example. The default position of the cut-out area At is set to a position toward the lower side of the captured image G that includes the vertical center of the captured image G. In this state, the cut-out area At includes the captured area Ac in which the camera cover 10 is reflected.
[0036] When the cut-out area determination unit 13 detects that the reflected area Ac exists in the lower portion of the captured image G, it sets the cut-out area At in the captured image G so as to avoid the reflected area Ac. Specifically, as shown in Fig. 6(b), the cut-out area determination unit 13 sets the cut-out area At to a position moved from the default position to the upper part of the captured image G so that the cut-out area At does not include the reflected area Ac. As a result, the camera cover 10 is no longer reflected in the cut-out area At. In this case, the area S inside the recess of the reflected area Ac in the captured image G is not used.
[0037] 6(c), the cut-out area determination unit 13 may set the cut-out area At to a position moved from the default position upward in the captured image G so that the bottom end of the cut-out area At overlaps with the bottom of the recess of the captured area Ac. In this case, it is possible to minimize unnecessary reflection of the camera cover 10 while making the area S inside the recess of the captured area Ac in the captured image G usable.
[0038] 6(d), when the captured area Ac in the lower part of the captured image G is large, if the cut-out area At is set in a position that does not include the captured area Ac, the upper end of the cut-out area At may extend beyond the image recognition area Ag. In this case, the part of the cut-out area At that extends beyond the image recognition area Ag is wasted.
[0039] 6(e), the cut-out area determination unit 13 may set the cut-out area At to a position that is moved from the default position upward in the captured image G within a range in which the upper end of the cut-out area At does not extend beyond the image recognition area Ag. In this case, the upper end position of the cut-out area At coincides with the upper end position of the image recognition area Ag, for example. In this case, it is possible to minimize the wasted portion of the cut-out area At.
[0040] Returning to FIG. 2, the image cropping unit 14 crops out the crop area At determined by the cropping area determination unit 13 from the captured image G of the imaging unit 5 acquired by the captured image acquisition unit 11.
[0041] The image data output unit 15 outputs the captured image cut out by the image cutout unit 14 as image data to the ECU 7. Then, the ECU 7, for example, stores and saves the image data in a memory, or detects the surrounding environment of the vehicle 2 based on the image data, and executes necessary control processing.
[0042] As described above, in this embodiment, it is detected whether or not there is an image capture area Ac in which the camera cover 10 is reflected in the captured image G of the imaging unit 5, and the cut-out area At of the captured image G is determined according to the detection result. Here, when it is detected that there is an image capture area Ac in the captured image G, the cut-out area At is set in the captured image G at a position in a direction that avoids the image capture area Ac. Therefore, the portion of the image capture area Ac in the cut-out area At is reduced. As a result, an appropriate cut-out area At is automatically set in the captured image G of the imaging unit 5. As a result, the user does not need to set the cut-out area At of the captured image G, which saves the user's effort and eliminates the need for a button for setting the cut-out area.
[0043] Furthermore, in this embodiment, when it is detected that the captured image G of the imaging unit 5 includes the reflected area Ac, the cut-out area At is set to a position that does not include the reflected area Ac. Therefore, since the reflected area Ac does not occupy any part of the cut-out area At, a more appropriate cut-out area At is set in the captured image G of the imaging unit 5.
[0044] In addition, in this embodiment, when a concave candidate region R exists toward the center O of the captured image G of the imaging unit 5, it is determined that the captured area Ac exists in the captured image G. The wide-angle lens 9 used in the vehicle-mounted camera 1 has a characteristic that the distortion increases as the distance from the lens center increases. Therefore, even if the surface of the camera cover 10 is actually flat, the camera cover 10 appears concave in the captured image G acquired through the wide-angle lens 9. Therefore, by determining whether a concave candidate region R exists in the captured image G, it is possible to suppress erroneous determination that an obstruction such as a leaf is the camera cover 10. Therefore, whether the captured area Ac exists in the captured image G is detected with high accuracy.
[0045] In addition, in this embodiment, when a concave-shaped candidate region R exists toward the center O of the captured image G of the imaging unit 5 and a prescribed ratio or more of the candidate region R is of a similar color, it is determined that the captured area Ac exists in the captured image G. The camera cover 10 is often of a similar color overall. Therefore, by determining whether a concave candidate region R exists in the captured image G and whether a prescribed ratio or more of the concave candidate region R is of a similar color, it is possible to further suppress erroneous determination that the obstruction is the camera cover 10. Therefore, it is possible to more accurately detect whether the captured area Ac exists in the captured image G.
[0046] Moreover, in this embodiment, it is detected whether or not a reflection area Ac exists in the lower part of the captured image G of the imaging unit 5. The camera cover 10 covering the imaging unit 5 is likely to be reflected in the lower part of the captured image G. Therefore, by detecting whether or not a reflection area Ac exists in the lower part of the captured image G, an appropriate cut-out area At in which the camera cover 10 is less reflected is set.
[0047] The present invention is not limited to the above embodiment. For example, in the above embodiment, the cut-out area At is set within the image recognition area Ag of the captured image G, but the present invention is not limited to this form, and when there is no image recognition area Ag, the cut-out area At may be set within the full-angle area A0 of the captured image G.
[0048] Furthermore, in the above embodiment, the size of the cut-out area At is fixed, but this is not particularly limited, and the size of the cut-out area At may be changed from the default state of the vehicle-mounted camera 1.
[0049] In the above embodiment, when a concave bottom portion is present in the horizontal center portion of the candidate region R, it is determined that the captured area Ac in which the camera cover 10 is captured is present in the lower portion of the captured image G, but this is not particularly limited to such a form. For example, if a concave candidate region R is present toward the center O of the captured image G, it may be determined that the captured area Ac is present in the lower portion of the captured image G even when the concave bottom portion is present in a position displaced from the horizontal center portion of the candidate region R.
[0050] In the above embodiment, the vehicle-mounted camera 1 is attached to the roof 3 or the upper part of the windshield 8 of the vehicle 2, so that the reflected area Ac where the camera cover 10 is reflected exists in the lower part of the captured image G of the imaging unit 5, but the present invention is not limited to such a form. For example, when the vehicle-mounted camera 1 is attached to the instrument panel of the vehicle 2, the camera cover 10 is also attached to the instrument panel, so that the reflected area Ac where the camera cover 10 is reflected exists in the upper part of the captured image G of the imaging unit 5. In this case, in the captured image G, the vertices P1 and P2 are located above the vertical center line Ly, and the vertex P3 is located above the vertices P1 and P2. Also, the reflected area Ac where the camera cover 10 is reflected may exist in the left part or right part of the captured image G of the imaging unit 5.
[0051] In the above embodiment, the camera cover 10, which is a part that covers the in-vehicle camera 1, is reflected in the captured image G of the imaging unit 5, but the vehicle parts arranged around the in-vehicle camera 1 are not particularly limited to parts that cover the in-vehicle camera 1, and may be an ECU, a mirror, etc. In this case, there may be an area in which the vehicle part is reflected in the lower or upper part of the captured image G of the imaging unit 5, or there may be an area in which the vehicle part is reflected in the left or right part of the captured image G of the imaging unit 5.
[0052] In addition, in the above embodiment, the vehicle-mounted camera 1 itself is provided with the image processing unit 6, but this is not particularly limited, and the function of the image processing unit may be included in the ECU 7. In this case, the vehicle-mounted imaging device is composed of the vehicle-mounted camera and the image processing unit of the ECU 7.
[0053] Furthermore, the above embodiment is an in-vehicle camera 1 that captures images of the area in front of the vehicle 2 using the imaging unit 5, but the present invention is not limited to this particular form and can also be applied to an in-vehicle camera that captures images of the surroundings of the vehicle 2 (e.g., the rear or sides) using the imaging unit 5. [Explanation of symbols]
[0054] 1...vehicle-mounted camera (vehicle-mounted imaging device), 2...vehicle, 5...imaging unit, 10...camera cover (vehicle part), 12...image detection unit, 13...cut-out area determination unit, Ac...image area, At...cut-out area, G...captured image, O...center, R...image candidate area.
Claims
1. An in-vehicle imaging device that captures an image of a vehicle's surroundings using an imaging unit, and cuts out and outputs the captured image of the imaging unit, an image capture detection unit that detects whether or not an image capture area in which a vehicle part disposed around the imaging unit is captured is present in the captured image; a cut-out area determination unit that determines a cut-out area of the captured image in accordance with a detection result of the reflection detection unit; The cut-out area determination unit sets the cut-out area in a position in the captured image in a direction that avoids the captured area when the captured area is detected by the capture detection unit.
2. The vehicle-mounted imaging device according to claim 1 , wherein the cut-out area determination unit sets the cut-out area to a position that does not include the reflected area when the reflected area is detected by the reflection detection unit to be present in the captured image.
3. The vehicle-mounted image capture device according to claim 1 , wherein the image capture detection unit determines that the image capture area exists in the captured image when a concave image capture candidate area exists with respect to a center side of the captured image.
4. 4. The in-vehicle imaging device according to claim 3, wherein the reflection detection unit determines that the reflection area is present in the captured image when the concave-shaped reflection candidate area is present toward the center of the captured image and a specified ratio or more of the reflection candidate area is of the same color.
5. the vehicle part is a part that covers the imaging unit, The vehicle-mounted imaging device according to claim 4 , wherein the reflection detection unit detects whether the reflected area is present in any one of a lower portion, an upper portion, a left portion, and a right portion of the captured image.
Citation Information
Patent Citations
Obstacle detection device
JP2009126493A
Image processing system and image processing method
JP2015035145A
Object detection apparatus, object detection method, and object detection program
JP2016224649A
Visual field support device for vehicle
JP2014027353A
