Image processing device, image processing method, and program
The image processing device enhances parking space detection by combining and accumulating hue and brightness values to overcome environmental limitations, ensuring accurate parking area recognition.
Patent Information
- Application Number
- JP2021009829
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-01-25
- Publication Date
- 2024-08-15
- Estimated Expiration
- 2041-01-25
AI Technical Summary
Existing image processing techniques for detecting parking spaces struggle in environments with low brightness differences, such as cloudy days, night, and indoors, and are limited to recognizing general yellow (orange) parking lines.
An image processing device that combines captured images, calculates hue and brightness values, and accumulates these values over time to create a composite map, allowing for accurate detection of parking areas using hue and brightness information, regardless of environmental conditions.
Enables precise detection of parking areas with high accuracy across various environments by utilizing hue and brightness values, even in low contrast conditions, and supports detection of diverse parking space types.
Smart Images

Figure 0007534973000009 
Figure 0007534973000008 
Figure 0007534973000004
Abstract
Description
[Technical field]
[0001] The present invention relates to an image processing technique for processing color images. [Background technology]
[0002] There is a technology that detects white lines in a parking lot using images captured by an in-vehicle camera. For example, Patent Document 1 discloses a technology that "detects parking spaces in a front-view image by a first parking space detection unit based on the detection result of a first white space detection unit, and detects parking space lines from a side-view image by a second white space detection unit with reference to the detection result of the first parking space detection unit. Then, based on the detection results of the first white space detection unit and the second white space detection unit, detects parking spaces that exist across the front-view image and the side-view image by a second parking space detection unit (abstract excerpt)."
[0003] There is also an image processing technology that detects yellow lines. For example, Patent Document 2 discloses a technology in which "in an image processing device, a line segment extraction unit includes a calculation unit, a correction unit, and an extraction unit. The calculation unit calculates saturation based on the difference between the R value or G value and the B value for pixels of image data obtained by an imaging device. The correction unit corrects the luminance value of pixels that satisfy a predetermined yellow condition using the calculated saturation as an emphasis amount. The extraction unit detects marking lines displayed on the road surface based on the luminance value after correction (summary excerpt)." [Prior art documents] [Patent documents]
[0004] [Patent Document 1] JP 2014-106738 A [Patent Document 2] JP 2020-095621 A Summary of the Invention [Problem to be solved by the invention]
[0005] The technology described in Patent Document 1 recognizes parking spaces based on the luminance difference between the road surface and the parking frame lines. For this reason, recognition is difficult in environments with little luminance difference, such as on cloudy days, at night, indoors, etc.
[0006] The technology described in Patent Document 2 recognizes parking frames by considering color information. However, this technology adds the strength of the yellow component to the basic luminance, and the recognition target is limited to general yellow (orange) parking frame lines.
[0007] The present invention has been made in consideration of the above circumstances, and has an object to provide a technology for detecting a parking area with high accuracy regardless of the environment. [Means for solving the problem]
[0008] The image processing device of the present invention is characterized by comprising an image synthesis unit that synthesizes photographed images acquired by a camera to generate a synthetic image, a map creation unit that calculates the hue value of the synthetic image and creates a hue map, an accumulation map creation unit that accumulates the hue values of the hue map for each predetermined area within a predetermined range for a predetermined period of time and creates an accumulation map, a parking area extraction unit that extracts a parking area from the accumulation map, and an output processing unit that outputs the parking area. Effect of the Invention
[0009] According to the present invention, it is possible to detect a parking area with high accuracy regardless of the environment. Problems, configurations, and effects other than those described above will become apparent from the following description of the embodiments. [Brief description of the drawings]
[0010] [Figure 1] FIG. 1 is an explanatory diagram for explaining an overview of an embodiment of the present invention. [Diagram 2] 1A and 1B are a hardware configuration diagram and a functional block diagram, respectively, of an image processing apparatus according to an embodiment of the present invention. [Diagram 3] 4 is a flowchart of a parking area identification process according to an embodiment of the present invention. [Figure 4] FIG. 4 is an explanatory diagram for explaining a map creation process according to the embodiment of the present invention. [Diagram 5] 1A and 1B are explanatory diagrams for explaining an accumulation map and data registered in association with each grid of the accumulation map according to an embodiment of the present invention, respectively. [Figure 6] FIG. 4 is an explanatory diagram for explaining an accumulation map creation process according to the embodiment of the present invention. [Figure 7] FIG. 1A is a flowchart of a certainty calculation process according to an embodiment of the present invention, and FIG. 1B and FIG. 1C are explanatory diagrams for explaining an example of a lightness increase / decrease value table and a hue increase / decrease value table, respectively, according to an embodiment of the present invention. [Figure 8] 4 is a flowchart of a parking area extraction process according to an embodiment of the present invention. [Figure 9] 1A and 1B are flowcharts showing a process for extracting a chromatic portion and a process for extracting an achromatic portion, respectively, according to an embodiment of the present invention. [Figure 10] 13 is an explanatory diagram for explaining an accumulation map creation process according to a modified example of the present invention. FIG. [Figure 11] 13(a) and 13(b) are explanatory diagrams for explaining a parking area extraction method according to a modified example of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0011] Hereinafter, an embodiment of the present invention will be described with reference to the drawings. Note that the present invention is not limited to the present embodiment, and any application example that meets the concept of the present invention is included in its technical scope. In addition, unless otherwise specified, each component may be plural or singular.
[0012] First, an overview of this embodiment will be described. Fig. 1 is a diagram for explaining the overview of this embodiment. In this embodiment, every time an image (photographed image) is acquired by a camera mounted on a vehicle 910, the photographed image is synthesized and converted to generate an overhead image 210. The overhead image 210 is an image that overlooks the surroundings of the vehicle from above the vehicle 910. Then, the hue value and brightness value of each pixel 211, 212 of the overhead image 210 are calculated.
[0013] After that, the hue values and brightness values in a predetermined range for a predetermined period are accumulated for each predetermined area (grid 222) to generate an accumulation map 220 of the predetermined range. At this time, the confidence level of the accumulated value of each grid 222 may be calculated. Then, using these accumulated values, a parking area 300 within the predetermined range is extracted. In this embodiment, the parking area 300 includes an area surrounded by a parking frame line 310 and a parking space 320.
[0014] In this embodiment, the above processing is realized by an on-vehicle image processing device 100. First, the image processing device 100 of this embodiment will be described.
[0015] [Hardware configuration] 2(a) is a hardware configuration diagram of the image processing device of this embodiment. As shown in this diagram, the image processing device 100 of this embodiment includes a CPU (Central Processing Unit) 111, a memory 112, a storage device 113, an input device 114, an output device 115, and a data I / F 116. It may further include a communication I / F, etc. The image processing device 100 is realized, for example, by a general-purpose information processing device (computer).
[0016] The CPU 111 is a main control unit (main processor) that controls the entire image processing device 100 in accordance with a predetermined program, and may be realized by a microprocessor unit (MPU).
[0017] The memory 112 is a temporary storage area and a work area. For example, a RAM (Random Access Memory) is used. The RAM may be integrated with the CPU 111.
[0018] The storage device 113 stores data used in processing by the CPU 111, data generated by processing, etc. A ROM (Read Only Memory), a flash memory, a hard disk, etc. may be used.
[0019] The input device 114 accepts input of operation instructions. It may include operation keys such as a power key, a volume key, and a home key, a touch sensor, etc. The touch sensor is disposed as a touch panel over a display described below. In addition, in the case of accepting voice input, a microphone may be used.
[0020] The output device 115 outputs the processing result and may include, for example, a display, a speaker, a lamp, etc.
[0021] The data I / F 116 is an interface for transmitting and receiving data to and from, for example, an ECU (Electronic Control Unit) in the vehicle, and for receiving data from an in-vehicle camera 191 (see FIG. 2(b)).
[0022] The vehicle-mounted camera 191 includes an imaging element such as a charge coupled device (CCD) or a complementary metal oxide semiconductor (CMOS), and captures an image of the surroundings of the vehicle 910 on which the camera is mounted.
[0023] The number of vehicle-mounted cameras 191 is not limited as long as they can capture 360 degrees around the vehicle. For example, four cameras with a horizontal angle of view of 90 degrees or more may be provided to capture the front, rear, left side, and right side of the vehicle, respectively. Alternatively, one 360-degree camera (spherical camera) may be provided. In the following, this embodiment will be described taking as an example a case where a plurality of vehicle-mounted cameras 191 are provided.
[0024] [Function block] In this embodiment, the image processing device 100, as described above, identifies the parking area 300 around the vehicle 910 using the captured image acquired by the vehicle-mounted camera 191. The functional configuration of the image processing device 100 of this embodiment that realizes this will be described below. Fig. 2(b) is a functional block diagram of the image processing device 100 of this embodiment.
[0025] The image processing device 100 includes an image synthesis unit 120, a calculation processing unit 130, and an output processing unit 140. The calculation processing unit 130 includes a map creation unit 131, an accumulation map creation unit 132, and a parking area extraction unit 134. In addition, the accumulation map creation unit 132 includes a confidence factor calculation unit 133.
[0026] The image synthesis unit 120 performs image synthesis processing to synthesize the captured images acquired by the multiple vehicle-mounted cameras 191 and generate a composite image (overhead image 210). The overhead image 210 is synthesized by connecting the captured images after performing coordinate conversion according to the capture direction. This processing can use various well-known processing. The image synthesis processing is performed at a predetermined interval, for example, every time a captured image is input from each vehicle-mounted camera 191.
[0027] The composite image generated here is not limited to the overhead image 210. It is sufficient if the image allows the surroundings of the vehicle 910 to be understood.
[0028] The overhead image 210 has RGB color information (hereinafter referred to as RGB value) for each pixel. The format of the color information depends on the image output format of the camera, but here it is assumed that each vehicle-mounted camera 191 outputs color information in RGB format.
[0029] The calculation processing unit 130 performs a predetermined calculation on the overhead image 210 to recognize the parking area 300 around the vehicle.
[0030] The map creation unit 131 creates a hue map and a brightness map from the overhead image 210 created by the image synthesis unit 120. The map creation unit 131 converts the RGB values of each pixel of the latest overhead image 210 into HSV format, and creates a hue map and a brightness map for the area corresponding to the overhead image 210.
[0031] HSV is a method of expressing color using three elements: hue (H), saturation, and value / brightness (V). In this embodiment, hue (H) and value (V) are used. Thus, the hue map is a mapping of color information in the range of overhead image 210 around vehicle 910, and the value map is a mapping of the value in the same range.
[0032] The accumulation map creating unit 132 accumulates the hue values of the hue map and the lightness values of the lightness map created by the map creating unit 131 in units of a predetermined region (grid) to create an accumulation map 220. The accumulation map 220 accumulates the hue values and lightness values of grids corresponding to the same positions in real space using a predetermined number of hue maps and lightness maps going back a predetermined period from the present time. The accumulation is performed for a predetermined range wider than the overhead image 210.
[0033] The confidence factor calculation unit 133 calculates the confidence factor of each grid in the accumulation map 220. Here, the confidence factor is a degree indicating the likelihood of the value of that grid.
[0034] The parking area extraction unit 134 extracts two types of parking areas 300 from the accumulation map 220 including the confidence levels created by the accumulation map creation unit 132. Here, the parking area 300 defined by a parking space 320, which is a predetermined surface area, and the parking area 300 defined by a pair of parking frame lines 310 are extracted.
[0035] The output processing unit 140 generates the parking area 300 extracted by the parking area extraction unit 134 as an output image, and outputs it from the output device 115. Alternatively, it outputs it to the ECU via the data I / F 116. For example, the ECU may use this information for automatic parking control or the like.
[0036] Each function of the image processing device 100 is realized, for example, by the CPU 111 loading a program stored in the storage device 113 into the memory 112 and executing it. Note that part of the image processing device 100 may be realized by an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or the like.
[0037] [Parking area identification processing] The flow of the parking area identification process by the arithmetic processing unit 130 of this embodiment is shown in Fig. 3. This process is executed every time the image synthesis unit 120 synthesizes images and generates the overhead image 210.
[0038] First, the map creation unit 131 executes a map creation process (step S1101). As a result, the map creation unit 131 creates a hue map in which the pixel values of each pixel position of the overhead image 210 are hue values, and a brightness map in which the pixel values are brightness values. The map creation process will be described in detail later.
[0039] Next, the accumulation map creating unit 132 executes an accumulation map creating process to create the accumulation map 220 (step S1102). The accumulation map creating process will be described in detail later. At this time, the confidence factor calculating unit 133 calculates the confidence factor of each grid.
[0040] Then, the parking area extraction unit 134 extracts the parking area 300 from the accumulated map (step S1103), and ends the process.
[0041] The output processing unit 140 outputs the parking area 300 extracted by the calculation processing unit 130 as an output image, and displays it on a display or the like. In this embodiment, for example, the parking area 300 is displayed by being superimposed on the original overhead image 210.
[0042] Each step of the above calculation process will now be described in detail.
[0043] [Map Creation] Map creation unit 131 generates a hue map, whose pixel values are (H) values, and a brightness map, whose pixel values are (V) values, from overhead image 210, whose pixel values are RGB values, created by image synthesis unit 120. The hue map and brightness map are obtained by mapping color information and brightness information of the surroundings of vehicle 910 onto overhead image 210, as shown in FIG.
[0044] As described above, each pixel in the overhead image 210 has an RGB value. The conversion formula for calculating the HV value from the RGB value is as shown in the following formula (1).
number
[0045] 4 has (R,G,B)=(128,128,128), the hue and brightness values of pixel 211 are (H,V)=(undefined,128). Similarly, when the pixel of overhead image 210 corresponding to pixel 212 has (R,G,B)=(140,170,220), the hue and brightness values of pixel 212 are (H,V)=(159.5,220).
[0046] Note that the points where the hue cannot be calculated (MIN=MAX) are recorded on the hue map as undefinable regions. Here, undefinable pixels are pixels where the RGB values of each pixel are all the same, that is, pixels of grayscale (achromatic color) such as white, gray, black, etc. Thus, in this embodiment, even if the hue (H) cannot be calculated, the information is stored in the hue map as H=undefinable.
[0047] [Creating accumulation maps] The accumulation map 220 is a map that accumulates and holds the hue values and brightness values of the hue map and brightness map created in the past. The accumulation map 220 is a map with a two-dimensional grid, and is a map larger in size than the hue map and brightness map as shown in FIG. 5(a). Each grid may correspond to a pixel of the overhead image 210 from which the hue map and brightness map are derived, or may include multiple pixels. Hereinafter, when there is no need to particularly distinguish between the hue map and the brightness map, they will be referred to as the hue map, etc.
[0048] In this embodiment, for example, the accumulation map 220 is twice as large vertically and horizontally as the hue map etc. (bird's-eye view image 210). For example, if the hue map etc. is a rectangle with one side measuring 8 m centered on the vehicle 910, the accumulation map 220 is a rectangle with one side measuring 16 m centered on the vehicle 910.
[0049] The size ratio between the accumulation map 220 and the hue map, etc. (overhead image 210) is not limited to this. The size of the accumulation map 220 may be larger than the hue map, etc. The size of the accumulation map 220 may be a fixed value, or may be changed according to the parking area 300 to be extracted.
[0050] As shown in Fig. 5(b), each grid 221 of the accumulation map 220 holds information on a hue accumulation value, a brightness accumulation value, and a confidence level. The hue accumulation value and the brightness accumulation value are respectively accumulated hue values and brightness values for a predetermined period of time in the past that correspond to the same position in real space, such as a hue map of a predetermined area. The number of accumulations is determined in advance.
[0051] The confidence level is calculated by determining the current state of the hue accumulation value or the brightness accumulation value based on past confidence level information.
[0052] The vehicle-mounted camera 191 is mounted on a vehicle 910. Therefore, as shown in Fig. 6, the area captured by the vehicle-mounted camera 191 changes as the vehicle 910 moves. That is, the capture range of the captured image changes, and the range of real space covered by the overhead image 210 generated from the captured image also changes. Therefore, the range of the hue map etc. corresponding to the overhead image 210 also changes.
[0053] 6 shows, as an example, map 210A and accumulated map 220A when vehicle 910 is at position A, and map 210B and accumulated map 220B when vehicle 910 is at position B. In this way, as vehicle 910 moves from position A to position B, the range of real space covered by overhead image 210 corresponding to the map and the accompanying range of real space covered by accumulated map 220 also change.
[0054] The pixel position of each pixel in the overhead image 210 on which the hue map and the brightness map are based is specified in a local coordinate system (hereinafter, vehicle coordinate system) fixed to the vehicle 910. The vehicle coordinate system is, for example, a coordinate system that has the center of gravity of the vehicle 910 as its origin.
[0055] The accumulation map creation unit 132 converts the coordinate values of the local coordinate system of each pixel of the hue map and the brightness map into coordinate values of a world coordinate system fixed in space. The world coordinate system is, for example, a coordinate system whose origin is a specific position on a predetermined road surface. The world coordinate system may be, for example, latitude and longitude.
[0056] The conversion is performed, for example, using vehicle information acquired via the ECU and information from the on-board camera 191. Specifically, the vehicle information, such as acceleration information and speed information, and the mounting position and field of view of the on-board camera 191 are used to calculate changes in the attitude of the vehicle 910, the amount of movement, the imaging range in real space, and the like. Then, using this, the coordinate position of each pixel in the latest overhead image 210 (i.e., the hue map and brightness map) is specified in a predetermined world coordinate system.
[0057] The hue value and the brightness value are stored as a hue accumulation value and a brightness accumulation value in a grid of the accumulation map that includes the same coordinate value in the world coordinate system. When storing, the hue value and the brightness value may be stored in association with time information.
[0058] The accumulation is performed in units of grids each including one or more predetermined pixels. When one grid includes multiple pixels, the statistical values of the values (hue value, brightness value) of the multiple pixels that make up each grid are used. The statistical value may be, for example, an average value.
[0059] 6, if only maps 210A and 210B have been calculated at that point in time, no value is registered in grid 225. The value of map 210A is registered in grid 226. The value of map 210A and the value of map 210B are registered in grid 227. And the value of map 210B is registered in grid 228.
[0060] [Certainty calculation process] A confidence factor is further accumulated in each grid of the accumulation map 220. The confidence factor calculation process performed by the confidence factor calculation unit 133 will be described below.
[0061] The flow of the certainty calculation process is shown in FIG. 7(a). In the certainty calculation process, the certainty of each grid is calculated. For example, the initial value of the certainty is set to 0, and the value is increased or decreased according to the variance value of the hue value or brightness value of the grid. The certainty calculation process is executed every time the accumulation map 220 is updated. The certainty may be calculated for all grids of the accumulation map 220 every time it is updated, or the certainty may be calculated only for grids whose values have been updated. The certainty calculation process for a specific grid (referred to as a target grid) will be described below.
[0062] First, the certainty factor calculation unit 133 judges the hue accumulation value of the target grid, that is, whether or not all of the hue accumulation values are undefinable (step S1201).
[0063] If all of the regions are undefinable, that is, if the regions are achromatic from the start of accumulation (S1201; Yes), the confidence level is increased or decreased using the brightness accumulation value. First, the variance of the brightness accumulation value (brightness variance value) is calculated (step S1202).
[0064] Then, a value for increasing or decreasing the confidence level according to the calculated brightness variance is determined (step S1203). The value for increasing or decreasing according to the brightness variance is determined in advance as a brightness increase or decrease table. An example of the brightness increase or decrease table 410 is shown in FIG. 7(b). For example, using a predetermined first threshold, if the brightness variance is less than the first threshold, the brightness variance is increased by a first fixed value, and if the brightness variance is equal to or greater than the first threshold, the brightness variance is decreased by the first fixed value. Thus, here, the increase or decrease value is determined as plus the first fixed value when the variance is less than the predetermined first threshold, and minus the first fixed value when the variance is equal to or greater than the first threshold.
[0065] That is, in this embodiment, when the brightness variance value is less than the first threshold, the brightness is determined to be stable, and the confidence level is increased accordingly. Conversely, when the brightness variance value is equal to or greater than the first threshold, the brightness is unstable, and the confidence level is decreased. The first threshold that determines whether to increase or decrease the brightness variance value is determined in advance.
[0066] Then, the determined increase / decrease value is used to determine the latest certainty factor (step S1204). Here, the increase / decrease value determined in step S1203 is applied to the current certainty factor. For example, if the brightness variance value is less than a predetermined first threshold value, a predetermined first fixed value is added to the current certainty factor value. On the other hand, if the variance value is equal to or greater than the first threshold value, the first fixed value is subtracted from the current certainty factor.
[0067] Also, if there is a value that is not undefinable even once in the past (S1201; No), the accumulated value of that hue is used to determine whether to increase or decrease the confidence. First, the variance of the hue accumulated value (hue variance value) is calculated (step S1205).
[0068] Then, the increase or decrease value is determined based on a combination of the calculated hue variance value and the number of undefined accumulated values (step S1206). These are determined in advance as a hue increase or decrease value table 420. For example, the number of undefined values is classified according to whether it is less than a predetermined threshold value, and the increase or decrease value is determined according to whether the hue variance value is less than a predetermined threshold value for each.
[0069] An example of the hue increase / decrease value table 420 is shown in Fig. 7(c). For example, if the number of undefinable accumulated values is less than the fourth threshold, the hue variance value is compared with the second threshold. If it is less than the second threshold, the hue variance value is increased by a predetermined second fixed value. On the other hand, if it is equal to or greater than the second threshold, the hue variance value is decreased by the second fixed value. If the number of undefinable accumulated values is equal to or greater than the fourth threshold, the hue variance value is compared with the third threshold. If it is less than the third threshold, the hue variance value is increased by a predetermined third fixed value. On the other hand, if it is equal to or greater than the third threshold, the hue variance value is decreased by the third fixed value.
[0070] Here, the second fixed value is set to be larger than the third fixed value. This is to make the influence on the certainty factor when the number of undefinables is small larger than the influence when the number of undefinables is large. The reason for the variance is the same as that for the brightness. The second threshold, the third threshold, and the fourth threshold are determined in advance.
[0071] Then, the process proceeds to step S1204, where the determined increase or decrease is reflected in the current certainty factor, and the process ends.
[0072] [Parking space extraction process] Next, a parking area extraction process by the parking area extraction unit 134 will be described. The parking area extraction unit 134 extracts the parking area 300 from the created accumulation map 220. In this embodiment, an area formed by combining two parking frame lines 310 and a parking space 320 shown in FIG. 5 is extracted as the parking area 300.
[0073] The flow of the parking area extraction process by the parking area extraction unit 134 is shown in Fig. 8. This process is performed, for example, every time the accumulation map 220 is updated.
[0074] The parking area extraction unit 134 first classifies each grid of the accumulation map 220 into a colored part or an achromatic part (step S1301). Here, the part where all the hue accumulation values are undefinable is classified as an achromatic part, and the other part, that is, the part where the hue accumulation value is other than undefinable, is classified as a colored part.
[0075] Next, a colored portion is extracted (step S1302), and then an achromatic portion is extracted (step S1303). The colored portion is extracted by identifying a parking area in the colored portion and acquiring its coordinates and type (shape). The achromatic portion is extracted by identifying a parking area in the achromatic portion and acquiring its coordinates and type (shape).
[0076] Here, the colored portion extraction process will be described. Fig. 9(a) shows a process flow of the colored portion extraction process performed by the parking area extraction unit 134 of this embodiment.
[0077] First, the parking area extraction unit 134 scans the latest accumulation map 220 (step S1401). Then, it extracts points where the tendency of the hue changes (hue change areas) (step S1402). The hue change areas are any of the following, among the grids arranged (adjacent) in the scanning direction: a point where achromatic color changes to chromatic color (boundary point; boundary area), a point where chromatic color changes to achromatic color (boundary point), and a point where the change in hue value is equal to or greater than a threshold value in the change from chromatic color to chromatic color (hue change point).
[0078] Here, the parking area extraction unit 134 identifies the boundary points according to the above classification. On the other hand, for the hue change points, for example, the parking area extraction unit 134 compares the average value of the accumulated values of a specific grid with the average value of the grid adjacent to the specific grid, determines whether the amount of change is equal to or greater than a threshold, and identifies the hue change point if it is equal to or greater than the threshold.
[0079] When such grids are extracted as hue change regions, the parking area extraction unit 134 identifies a predetermined pair of grids (step S1403). Here, among the extracted hue change regions, a pair that corresponds to a predetermined interval (the width of the parking frame line or the width of the parking space) is identified. The values of the width of the frame line and the width of the space are stored in advance within a predetermined range, for example, as the number of grids. When identifying, it is determined whether the pair corresponds to the width of the frame line or the width of the space, and identifiable information (identification information) is assigned. Note that the direction is not important when extracting.
[0080] Next, the parking area extraction unit 134 performs grouping on the extracted pairs, and then performs filtering (step S1404). Grouping is a process of associating pairs of the same type of hue change points that are arranged in a straight line as one group. A pair of the same type is a pair that is given the same identification information, and in this embodiment, is a pair of frame lines or a pair of spaces. Filtering is a process of deleting a group whose length is less than a threshold as an invalid group.
[0081] The parking area extraction unit 134 determines the groups remaining after filtering as parking frame line candidates or parking space candidates, and acquires and records the coordinate values and types (parking frame line candidates, parking space candidates) of each area in the world coordinate system (step S1405), and ends the process.
[0082] Next, the extraction process of the achromatic color portion will be described with reference to FIG.
[0083] This process is basically the same as the process for the coloring portion. That is, first, the accumulation map 220 is scanned (step S1501).
[0084] Next, in the extraction process of the achromatic portion, a brightness change area is extracted (step S1502). A brightness change area is any of the following between the grids arranged in the scanning direction: a point where achromatic color changes to chromatic color (boundary point), a point where chromatic color changes to achromatic color (boundary point), and a point where the amount of change in brightness value is equal to or exceeds a threshold value in the change from achromatic color to achromatic color (brightness change point). Note that the brightness change point is identified using the average value of multiple accumulated values, as in the above-mentioned extraction process of the chromatic portion.
[0085] Then, for the extracted brightness change area, similar to the processing of the colored portion, a pair of grids is identified (step S1503), and then grouping and filtering are performed (step S1504). The remaining groups are determined to be parking frame line candidates or parking space candidates, and the coordinate values and types (parking frame line candidates, parking space candidates) of each area are obtained (step S1405), recorded, and the processing is terminated.
[0086] Returning to FIG. 8, the parking area extraction unit 134 identifies the parking frame line and the parking space from the information of the parking frame line candidate and the parking space candidate identified by the colored part extraction process and the achromatic part extraction process (step S1304). Here, among the extracted parking frame candidates, a pair of adjacent two lines whose distance is within a predetermined threshold and whose angle difference is less than a threshold is extracted and regarded as a pair of parking frame lines constituting the parking area. Moreover, the parking space candidate is regarded as a parking space as it is.
[0087] Next, filtering is performed based on the certainty factor (step S1305). Here, the average value of the certainty factors of the grids included in the parking frame line and the parking space identified in step S1304 is calculated. An area where the calculated average value of the certainty factor is equal to or greater than a predetermined threshold is determined as the parking area 300 (step S1306), and the process ends.
[0088] The determined parking area 300 has its coordinate values in the world coordinate system output to the output unit.
[0089] As described above, the image processing device 100 of this embodiment includes an image synthesis unit 120 that synthesizes images captured by the vehicle-mounted camera 191 to generate a synthetic image (bird's-eye image 210), a map creation unit 131 that calculates a hue value of the synthetic image and creates a hue map, an accumulation map creation unit 132 that accumulates the hue values of the hue map for each predetermined area (grid) in a predetermined range for a predetermined period of time to create an accumulation map 220, a parking area extraction unit 134 that extracts parking spaces from the accumulation map 220, and an output processing unit that outputs the parking spaces.
[0090] In this way, according to this embodiment, the parking area is specified using the hue and brightness calculated from the overhead image 210. Specifically, first, the parking area candidate is detected using the hue, and for an area where the hue cannot be obtained, the parking area candidate is detected using the brightness. Since it is not a brightness value like RGB, it can be detected with high accuracy even in an environment with little brightness difference, such as on a cloudy day, at night, or indoors. In addition, since the detection is performed using the hue value, there is no color restriction.
[0091] In addition, for grayscale areas where the hue value, i.e. color information, cannot be obtained, the brightness value is used as a complement to detect the area, allowing for an even wider range of applications.
[0092] According to the image processing device of this embodiment, parking areas can be appropriately extracted from a variety of parking lots, such as those with grass, those painted in specific colors such as parking spaces for disabled people, and those color-coded by area such as shopping malls.
[0093] Furthermore, according to the present embodiment, the parking area candidate detected using the hue and brightness is filtered using the confidence factor, so that the parking area 300 can be identified with even higher accuracy.
[0094] As a result, according to this embodiment, the parking area can be detected with high accuracy regardless of the environment.
[0095] <Variation 1> In the above embodiment, the certainty factor is calculated, but the certainty factor does not have to be calculated. The parking frame line candidate and the parking space candidate calculated in step S1304 may be determined as the parking frame line and the parking space as they are.
[0096] The confidence level may be determined by a method other than the above-mentioned method, for example, the inverse of the variance value, the inverse of the standard deviation of the accumulated value, or the like.
[0097] Also, the parking frame line candidate and the parking space candidate calculated in step S1304 may be determined as the parking frame line and the parking space, and may be stored together with the confidence level. Then, for example, when performing the parking area extraction process in the same area on another day, the calculation processing unit 130 may perform the extraction process only when the confidence level is less than a predetermined level, and may use the stored parking area as it is when the confidence level is equal to or higher than the predetermined level.
[0098] <Variation 2> In the above embodiment, the range of the accumulation map 220 in real space (world coordinate system) changes with the movement of the vehicle 910, but is not limited to this. The range of the accumulation map 220 in real space may be fixed. For example, as shown in Fig. 10, the range of the accumulation map 220 is the same whether the vehicle 910 is at position A or at position B. The range of the accumulation map 220 to be created is specified in advance in a world coordinate system or the like.
[0099] By configuring in this manner, for example, when the area of the entire parking lot is known in advance, a large number of hue values and brightness values of the parking lot area can be stored, and the extraction accuracy can be increased accordingly.
[0100] <Variation 3> In the above embodiment, the parking area extraction unit 134 uses the average value of the accumulated values when identifying the hue change point in the extraction process of the chromatic part and the brightness change point in the extraction process of the achromatic part. However, this is not limited to this. For example, a weighted average may be used, in which the reciprocal of the distance between the vehicle (vehicle 910) and the point at the time of acquiring each value is used as a weight.
[0101] A distance value (distance from the vehicle 910 to a position in real space corresponding to the pixel) corresponding to each pixel of the overhead image 210 is calculated based on the captured image acquired by the camera 191. Then, as shown in FIG. 11(a) and FIG. 11(b), the accumulation map creation unit 132 calculates the distance value of each grid when creating the accumulation map 220, and accumulates it together with the hue value and the brightness value. In addition to the camera 191, the vehicle 910 may further be equipped with a separate distance sensor as necessary. In this case, the map creation unit 131 of the image processing device 100 calculates the distance value corresponding to each pixel of the overhead image 210 using the output of this distance sensor.
[0102] When calculating the hue change points and the brightness change points, the parking area extraction unit 134 uses this distance accumulation value as the hue value of the grid to calculate a weighted average with a higher weight for points closer to the vehicle (vehicle 910). That is, if the distance accumulation value registered in the i-th position is L_i, the weight Wi is calculated as 1 / Li. The weighted average value obtained by multiplying the hue value Hi registered in the i-th position by this weight is set as the value of the grid.
[0103] For example, in the example of FIG. 11(a), L2 is closest to the host vehicle (vehicle 910), so the weight W2=1 / L2 has the largest value, and the weight of the hue value H2 acquired at this time is the largest.
[0104] The parking area extraction unit 134 calculates this weighted average value for each grid, compares it with the weighted average value of the adjacent grids, and identifies the hue change points.
[0105] This allows the change in the hue value of each grid point to be determined using a value weighted according to the distance at which it was acquired, making it possible to identify hue change points and brightness change points with greater accuracy.
[0106] <Other Modifications> Each threshold value during processing can be set arbitrarily. The value by which the confidence level is increased or decreased may be freely input by the user via the input device 114, for example.
[0107] Furthermore, detection of the parking area based on brightness may also be combined.
[0108] Furthermore, the present embodiment is not limited to parking area detection, but may also be used to detect white lines on a road, for example.
[0109] The present invention is not limited to the above-described embodiment, but includes various modified examples. The above-described embodiment has been described in detail to clearly explain the present invention, and is not necessarily limited to the embodiment having all of the configurations described. It is possible to replace a part of the configuration of one embodiment with the configuration of another embodiment, and it is also possible to add, delete, or replace a part of the configuration of an embodiment with another configuration.
[0110] In addition, each of the above configurations, functions, processing units, processing means, etc. may be realized in hardware, for example, by designing a part or all of them in an integrated circuit. In addition, each of the above configurations, functions, etc. may be realized in software by a processor interpreting and executing a program that realizes each function. Information such as a program, table, file, etc. that realizes each function may be placed in a memory, a recording device such as a hard disk or SSD, or a recording medium such as an IC card, SD card, or optical disk. In addition, the control lines and information lines are shown as those considered necessary for explanation, and not all control lines and information lines are necessarily shown in the product. For example, it may be considered that almost all of the configurations are actually connected to each other. [Explanation of symbols]
[0111] 100: image processing device, 111: CPU, 112: memory, 113: storage device, 114: input device, 115: output device, 116: data I / F, 120: image synthesis unit, 130: calculation processing unit, 131: map creation unit, 132: accumulated map creation unit, 133: confidence factor calculation unit, 134: parking area extraction unit, 140: output processing unit, 191: vehicle-mounted camera, 210: bird's-eye view image, 210A: map, 210B: map, 211: pixel, 212: pixel, 220: accumulation map, 220A: accumulation map, 220B: accumulation map, 221: grid, 222: grid, 225: grid, 226: grid, 227: grid, 228: grid, 300: parking area, 310: parking frame line, 320: parking space, 410: brightness increase / decrease table, 420: hue increase / decrease table, 910: vehicle
Claims
1. an image synthesis unit that synthesizes images captured by the camera to generate a synthetic image; a map creation unit that calculates a hue value of the composite image and creates a hue map; an accumulation map creation unit that accumulates the hue values of the hue map for each predetermined region within a predetermined range for a predetermined period and creates an accumulation map; A parking area extraction unit that extracts a parking area from the accumulated map; An output processing unit that outputs the parking area. An image processing device comprising:
2. 2. The image processing device according to claim 1, the map creation unit calculates a brightness value for an area of the composite image where the hue value cannot be calculated, and creates a brightness map; The accumulation map creation unit accumulates the brightness values of the brightness map for each of the predetermined regions in the predetermined range for the predetermined period. An image processing device comprising:
3. 3. The image processing device according to claim 2, The parking area extraction unit identifies a hue change area in the accumulation map, which is the area where the hue value changes by a predetermined hue change threshold value or more, and a boundary area between the area where the hue value can be calculated and the area where the hue value cannot be calculated, and identifies parking frame line candidates and parking space candidates using the hue change area and the boundary area. An image processing device comprising:
4. 4. The image processing device according to claim 3, The parking area extraction unit identifies a brightness change area in the accumulation map, which is the area in which the brightness value changes by a predetermined brightness change threshold or more, and further uses the brightness change area to identify the parking frame line candidate and the parking space candidate. An image processing device comprising:
5. 5. The image processing device according to claim 3, the accumulation map creation unit includes a confidence factor calculation unit that calculates a confidence factor for each of the predetermined regions of the accumulation map by using the accumulated values; The parking area extraction unit extracts, as the parking area, a candidate whose certainty is equal to or greater than a predetermined threshold value from among the parking frame line candidates and the parking space candidates. An image processing device comprising:
6. 6. The image processing device according to claim 5, The confidence level is determined according to a hue variance value, which is a variance of the hue values, and a brightness variance value, which is a variance of the brightness values. An image processing device comprising:
7. 7. The image processing device according to claim 1, The captured image is an image of the surroundings of a vehicle equipped with the camera, The composite image is an overhead view image of the vehicle. An image processing device comprising:
8. an image synthesis step of synthesizing images captured by the camera to generate a synthetic image; a map creation step of calculating a hue value of the composite image and creating a hue map; an accumulation map creating step of accumulating the hue values of the hue map for each predetermined region within a predetermined range for a predetermined period of time to create an accumulation map; A parking area extraction step of extracting a parking area from the accumulated map; and an output step of outputting the parking area. An image processing method comprising:
9. Computer, an image synthesis means for synthesizing photographed images acquired by the camera to generate a synthetic image; a map creation means for calculating a hue value of the composite image and creating a hue map; an accumulation map creating means for accumulating the hue values of the hue map for each predetermined region within a predetermined range for a predetermined period of time, and creating an accumulation map; A parking area extraction means for extracting a parking area from the accumulated map; An output processing means for outputting the parking area; A program to function as a
Citation Information
Patent Citations
In-vehicle image processing device
JP2014106738A
Image processing device and image processing method
JP2020095621A
