Image processing device, image processing method, and program
The image processing device improves traffic light color identification accuracy by using a positional filter to assign higher weights to pixels at corresponding positions, mitigating the impact of background colors and enhancing the reliability of traffic light state determination.
Patent Information
- Application Number
- JP2023138349
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-15
- Filing Date
- 2023-08-28
- Publication Date
- 2024-10-01
AI Technical Summary
Conventional image processing methods for identifying traffic light colors are prone to errors due to surrounding background colors, particularly when objects with similar colors to the traffic light are present, leading to incorrect identification.
An image processing device that uses a controller to detect blue, yellow, and red pixels within a traffic light area, applying a positional filter to assign higher weighting values to pixels at corresponding positions, thereby improving color identification accuracy by reducing the influence of background colors.
Enhances the accuracy of traffic light color identification by distinguishing between light colors and background colors, even when objects with similar hues are present, ensuring correct determination of traffic light states.
Smart Images

Figure 2024132799000001_ABST
Abstract
Description
[Technical field]
[0001] The disclosed embodiments relate to an image processing device, an image processing method, and a program. [Background technology]
[0002] Conventionally, a technology is known for identifying the color of traffic lights by analyzing a camera image acquired from a vehicle. For example, Patent Document 1 discloses a method for calculating a prior probability distribution indicating the probability of the presence of a traffic light at each position in a region of interest including the traffic light from a camera image, updating the contrast of pixels in the region of interest according to the prior probability distribution, and identifying the color of a lighted region specified from feature points of the image as the marking color of the traffic light. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2018-063680 A Summary of the Invention [Problem to be solved by the invention]
[0004] However, in the above-mentioned conventional technology, the rectangular region of interest includes not only the traffic light but also the surrounding background, so when the above-mentioned conventional technology is used, there is a risk that the light color of the traffic light will be erroneously identified due to pixels of a color other than the light color of the actual traffic light.
[0005] Specifically, when a traffic light is on green or red, for example, if there are yellow leaves growing behind the traffic light and the leaves of those trees are captured in the camera image as the background of the traffic light, more yellow pixels will be extracted from the area of interest in the camera image than the blue or red pixels of the light, which may result in the light being mistakenly identified as being on yellow.
[0006] The present invention has been made in consideration of the above problems, and has an object to provide an image processing device, an image processing method, and a program that can improve the accuracy of identifying the color of traffic light. [Means for solving the problem]
[0007] The image processing device according to the present invention includes a controller for identifying the light color of a traffic light having green, yellow, and red lights, which detects blue, yellow, and red pixels in a traffic light area of an image, assigns high weighting values to the numbers of blue, yellow, and red pixels at positions corresponding to the green, yellow, and red lights of the traffic light, respectively, and determines the light color of the traffic light based on a comparison of the total numbers of the blue, yellow, and red pixels after applying the weighting values. Effect of the Invention
[0008] According to the present invention, even if an object having a color other than the color of the actual light emitted by a traffic light is captured in a camera image in the background of the traffic light, by assigning high weighting values to the blue, yellow, and red pixels in positions corresponding to the blue, yellow, and red lights, respectively, the number of color pixels detected due to the object having a color other than the light color can be relatively reduced, thereby improving the accuracy of identifying the traffic light color. [Brief description of the drawings]
[0009] [Figure 1] FIG. 1 is a schematic explanatory diagram (part 1) of an image processing method according to an embodiment. [Diagram 2] FIG. 2 is an explanatory diagram of a case where a light color is correctly determined by applying a color extraction filter. [Diagram 3] FIG. 3 is an explanatory diagram of a case where a light color is erroneously determined by applying a color extraction filter. [Figure 4] FIG. 4 is a schematic explanatory diagram (part 2) of the image processing method according to the embodiment. [Diagram 5] FIG. 5 is a diagram showing an example of the configuration of a blue positional filter. [Figure 6] FIG. 6 is a diagram showing an example of the configuration of the yellow positional filter. [Figure 7] FIG. 7 is a diagram showing an example of the configuration of a red positional filter. [Figure 8] FIG. 8 is a diagram illustrating an example of the configuration of an image processing device according to an embodiment. [Figure 9] FIG. 9 is a diagram illustrating an example of the configuration of an image processing device according to a modified example. [Figure 10] FIG. 10 is a flowchart (part 1) showing the processing procedure executed by the image processing device according to the embodiment. [Figure 11] FIG. 11 is a flowchart (part 2) illustrating the processing procedure executed by the image processing device according to the embodiment. [Figure 12] FIG. 12 is a diagram illustrating an example of the configuration of a position filter according to a modified example. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0010] Hereinafter, embodiments of an image processing device, an image processing method, and a program disclosed in the present application will be described in detail with reference to the accompanying drawings. Note that the present invention is not limited to the embodiments described below.
[0011] In the following description, the image processing device 10 according to the embodiment is an on-board device mounted on a vehicle. The image processing device 10 is a device that is provided so as to be able to detect an object or the state of the object in an image consisting of a plurality of pixels by image recognition of a camera image. In the present embodiment, the object to be detected is a traffic light 300. Also, the state of the object to be detected is the lighting state of the traffic light 300. The lighting state refers to any one of the following states: blue lighting due to the blue light of the traffic light 300, yellow lighting due to the yellow light, and red lighting due to the red light. Furthermore, the lighting state may include an arrow lighting state and an unlit state.
[0012] In the following description, the term "predetermined" may be read as "predetermined."
[0013] First, an overview of an image processing method according to an embodiment will be described with reference to Figs. 1 to 4. Fig. 1 is a schematic explanatory diagram (part 1) of an image processing method according to an embodiment. Fig. 2 is an explanatory diagram of a case where a color extraction filter CF is applied and a light color is correctly determined. Fig. 3 is an explanatory diagram of a case where a color extraction filter CF is applied and a light color is erroneously determined. Fig. 4 is a schematic explanatory diagram (part 2) of an image processing method according to an embodiment.
[0014] The image processing device 10 detects the lighting state of the traffic light 300, and performs, for example, a determination as to whether a vehicle has ignored the traffic light based on the detection result. Such information processing is executed by a controller 12 (see FIG. 8) included in the image processing device 10.
[0015] As shown in FIG. 1, the controller 12 receives a camera image as an input, and identifies a rectangular area in the image in which the traffic light 300 exists (step S1). Existing image processing technology can be applied to step S1. In step S1, the controller 12 identifies a rectangular area in the image in which the traffic light 300 exists, using a DNN (Deep Neural Network) model trained using a machine learning algorithm or the like. In the following, such a rectangular area is referred to as a "signal area SR."
[0016] Next, the controller 12 uses the signal area SR as an input to determine the light state of the traffic light 300 (step S2). In step S2, the controller 12 performs image analysis of the signal area SR to determine whether the traffic light 300 is in a green light, yellow light, or red light state. Specifically, the controller 12 detects blue pixels, yellow pixels, and red pixels from the multiple pixels in the signal area SR, and determines the light color based on the total value. Furthermore, when the traffic light 300 is in a red light state, the controller 12 determines whether the traffic light 300 is also in an arrow light state.
[0017] Next, the controller 12 performs motion estimation to estimate how the traffic light 300 moves relative to the traveling vehicle based on the difference between frames of the camera images (step S3). Then, the controller 12 determines whether or not the traffic light ignoring occurs based on the light state determination result in step S2 and the motion estimation result in step S3 (step S4), and outputs the determination result.
[0018] The image processing method according to this embodiment is applied in step S2 enclosed by a dashed rectangle. In the conventional technology, when determining the light color of the traffic light 300 in step S2, the controller 12 uses a color extraction filter CF to detect pixels having each color component corresponding to each light color of the traffic light 300 from multiple pixels in the signal region SR, and determines the light color based on the sum of the detected pixels. The color extraction filter CF is, for example, configured by a program, and is configured with a blue extraction filter CF1, a yellow extraction filter CF2, and a red extraction filter CF3 corresponding to the light colors of the traffic light 300.
[0019] 2, the controller 12 applies a blue extraction filter CF1 to the signal region SR to detect blue pixels having blue components from the multiple pixels in the signal region SR. The controller 12 also applies a yellow extraction filter CF2 to the signal region SR to detect yellow pixels having yellow components from the multiple pixels in the signal region SR. The controller 12 also applies a red extraction filter CF3 to the signal region SR to detect red pixels having red components from the multiple pixels in the signal region SR.
[0020] Here, it is assumed that the traffic light 300 is in a green light state. The controller 12 compares the total values of the pixels having each detected color component, and determines the color component of the pixel with the largest total value as the light color, as shown in Fig. 2. As in the example shown in Fig. 2, if the amount of pixels having a detected blue component is greater than the amount of pixels having a yellow component and the amount of pixels having a red component, the controller 12 can correctly determine that the traffic light 300 is in a green light state.
[0021] However, the conventional technology does not fully consider color components other than the light colors of each colored light of the traffic light 300. Therefore, there is a risk that the light color of the traffic light 300 will be erroneously determined due to color components other than the light colors.
[0022] As shown in Fig. 3, in a signal area SR where the traffic light 300 is in a green light state, yellow leaves of a tree T are growing in the background of the traffic light 300. In this case, when the controller 12 applies a color extraction filter CF to the signal area SR to detect pixels having each color component, the amount of pixels having a detected yellow component may be greater than the amount of pixels having a blue component and the amount of pixels having a red component. In this case, in the conventional technology, the controller 12 may erroneously determine that the traffic light 300 is in a yellow light state.
[0023] Therefore, in the image processing method according to the embodiment, when determining the light color of the traffic light 300 in step S2, a position filter PF (see FIG. 4) is applied to pixels having color components corresponding to the light colors of the traffic light 300 detected using the color extraction filter CF. The position filter PF is a filter that assigns weighting values according to the light colors to pixels at positions corresponding to the color lights of the traffic light 300. The position filter PF is configured, for example, by a program, and is configured with a blue positional filter PF1, a yellow positional filter PF2, and a red positional filter PF3 corresponding to the positions of the color lights of the traffic light 300. Then, the controller 12 determines the light color of the traffic light 300 based on the total value of the pixels having the color components to which the weighting values are assigned by the position filter PF.
[0024] Specifically, as shown in FIG. 4, in the image processing method according to the embodiment, the controller 12 applies a color extraction filter CF to the signal region SR in a conventional manner to detect pixels having each color component corresponding to each light color of the traffic light 300.
[0025] However, in the image processing method according to the embodiment, the controller 12 further applies a positional filter PF to pixels having each detected color component, that is, maps the pixels having each detected color component to the positional filter PF, thereby assigning weighting values according to each color component to pixels at positions corresponding to each color light of the traffic light 300. The controller 12 applies a blue positional filter PF1 to pixels having a blue component. The controller 12 also applies a yellow positional filter PF2 to pixels having a yellow component. The controller 12 also applies a red positional filter PF3 to pixels having a red component.
[0026] Here, examples of the configuration of each of the blue positional filter PF1, the yellow positional filter PF2, and the red positional filter PF3 will be described. Fig. 5 is a diagram showing an example of the configuration of the blue positional filter PF1. Fig. 6 is a diagram showing an example of the configuration of the yellow positional filter PF2. Fig. 7 is a diagram showing an example of the configuration of the red positional filter PF3.
[0027] Next, a method of applying the position filter PF will be described in which the value of a pixel having each color component corresponding to each light color detected using the color extraction filter CF is set to 1, and the value of a pixel having a color component not corresponding to each light color is set to 0. As shown in FIG. 5, the blue position filter PF1 assigns a weighting value of 10 to a pixel having a blue component in the partial region PR corresponding to the position of the blue light 301 of the traffic light 300, which is a value of 1. A weighting value is not assigned to a pixel having no blue component in the partial region PR. Note that a weighting value may be set to a different value within a range of 1 to 10 according to the shade of the blue component, that is, the gradation. In this case, a weighting value of 10 is assigned to the pixel having the darkest blue component, and a weighting value of 1 is assigned to the pixel having the lightest blue component. As a result of applying the blue position filter PF1, the value of a pixel having a blue component in the partial region PR is set to be larger than the value of a pixel having a blue component outside the partial region PR. The position where the blue light 301 exists will naturally be darker blue than other positions when the blue light is on. Therefore, by increasing the weighting of the values of pixels having blue components in the partial region PR corresponding to the position of the blue light 301 compared to those outside the partial region PR, it is possible to separate the blue components caused by the illumination of the blue light 301 from the blue components of the background, etc.
[0028] As a common configuration to the position filter PF, not only for blue, the position filter PF is set to have the same shape and size as the signal region SR. When extracting the signal region SR from the camera image, the controller 12 samples the traffic lights 300, which appear in the camera image in various sizes, so that they always have the same shape and size (e.g., 25×25 pixels) and extracts them as the signal region SR.
[0029] For this reason, the controller 12 sets the positional filter PF to be, for example, a filter of 25×25 pixels according to the signal region SR. In accordance with the example given here, each of the positional filters PF1 to PF3 shown in FIGS. 5 to 7 is expressed by 25×25 pixels. The numerical values set at the positions corresponding to each pixel are weighting coefficients for each pixel detected as each color component from the signal region SR. The minimum value of the weighting coefficient is, for example, 1, and the maximum value is, for example, 10. The minimum value of the weighting coefficient may be 0, and the maximum value may be greater than 10.
[0030] The controller 12 sets the value of each pixel detected by the color extraction filter CF as having each color component to 1, and then multiplies each value by a weighting coefficient (weighting value) on the position filter PF corresponding to each detected pixel. The sum of the values obtained by this multiplication for each color component becomes the weighted total value for each color component.
[0031] Furthermore, in the case of blue positional filter PF1, controller 12 sets partial region PR to be circular with its center at the center of blue light 301. This is because blue light 301 is circular in shape. Therefore, if blue light 301 is not circular, controller 12 sets partial region PR with its center at the center of the non-circular shape. In this way, by setting partial region PR according to the shape of blue light 301, it is possible to weight the blue component when blue light is on according to the shape of blue light 301.
[0032] In addition, taking into consideration the characteristic of the emitted light that spreads radially, it is preferable that the partial region PR is provided in a circular shape larger than the outer edge of the blue light 301. This makes it possible to weight the blue component of the portion beyond the outer edge of the blue light 301 when the blue light is on.
[0033] Furthermore, when the partial region PR is set to be circular, the controller 12 sets the blue position filter PF1 so that the weight of the blue component increases closer to the center of the circle. If the blue light 301 is circular, the blue color normally becomes darker closer to the center of the circle when the blue light is on (see the gradation in the figure), so it is possible to weight the blue component closer to the actual state of the blue light 301 when the blue light is on.
[0034] 6, the yellow position filter PF2 is set so that the weighting value of the yellow component in the partial region PR corresponding to the position of the yellow light 302 of the traffic light 300 is larger than the weighting value of the yellow component outside the partial region PR. The rest of the configuration of the yellow position filter PF2 is the same as that of the blue position filter PF1 except for the difference between blue and yellow, and therefore a description thereof will be omitted.
[0035] 7, the red positional filter PF3 is set so that the weighting value of the red component in the partial region PR corresponding to the position of the red light 303 of the traffic light 300 is larger than the weighting value of the red component outside the partial region PR. The rest of the configuration of the red positional filter PF3 is the same as that of the blue positional filter PF1 and the yellow positional filter PF2, except for the difference between blue and red and yellow and red, and therefore a description thereof will be omitted.
[0036] Returning to the explanation of Fig. 4, the controller 12 then determines that the color component with the largest total value after the weighting values are assigned by the position filter PF is the light color, as shown in Fig. 4. In the example of Fig. 4, since the relationship of the total values after weighting is "400 (green)>200 (yellow)>20 (red)", the controller 12 correctly determines that the traffic light 300 is in a green light state. In other words, the controller 12 can suppress erroneous determinations for the signal region SR where the leaves of the tree T are growing in the background and where the light color was erroneously determined in the example of Fig. 3.
[0037] An example of the configuration of the image processing device 10 to which the image processing method according to the above-described embodiment is applied will be described in more detail below.
[0038] Fig. 8 is a diagram showing an example of the configuration of an image processing device 10 according to an embodiment. As shown in Fig. 8, the image processing device 10 includes a storage unit 11 and a controller 12. In addition, a camera 3 and an output unit 5 are connected to the image processing device 10.
[0039] The camera 3 is mounted on the vehicle and is provided so as to be able to capture an image of the area in front of the vehicle. Note that the camera 3 is not limited to capturing an image of the area in front of the vehicle, and may be a 360-degree camera capable of capturing an image of the entire periphery of the vehicle.
[0040] The output unit 5 is an output device that presents output information from the image processing device 10. The output unit 5 is realized by a display, a speaker, or the like.
[0041] The image processing device 10 is, for example, a computer mounted on a vehicle. The image processing device 10 executes at least the information processing of steps S1 to S4 described with reference to FIG.
[0042] The storage unit 11 is realized by a storage device such as a RAM (Random Access Memory), a flash memory, etc. The storage unit 11 stores a program according to the embodiment executed by the controller 12. The storage unit 11 also stores various types of information used in the information processing executed by the controller 12.
[0043] The storage unit 11 stores, for example, an AI (Artificial Intelligence) model for image recognition. The storage unit 11 also stores setting information of a color extraction filter CF and setting information of a position filter PF.
[0044] The controller 12 corresponds to a so-called processor. The controller 12 is realized by a CPU (Central Processing Unit), an MPU (Micro Processing Unit), a GPU (Graphics Processing Unit), or the like. The controller 12 reads a program according to the embodiment stored in the storage unit 11 and executes the program using the RAM as a working area. The controller 12 can also be realized by an integrated circuit such as an ASIC (Application Specific Integrated Circuit) or an FPGA (Field Programmable Gate Array).
[0045] The controller 12 executes information processing according to the processing procedures shown in the respective flow charts of Figures 10 and 11. The explanation using Figures 10 and 11 will be given later.
[0046] 8, the camera 3, the output unit 5, and the image processing device 10 can be realized as a drive recorder 1. In this case, the camera 3 is realized by a camera unit mounted on the drive recorder 1. The output unit 5 is realized by a display and a speaker mounted on the drive recorder 1. The image processing device 10 is realized by a microcomputer mounted on the drive recorder 1.
[0047] The configuration example shown in Fig. 8 is just one example, and other modified examples are possible. Fig. 9 is a diagram showing a configuration example of an image processing device 10 according to a modified example. As shown in Fig. 9, the image processing device 10 can be realized as an image processing ECU (Electronic Control Unit) 9. In this case, the camera 3 is realized by, for example, a camera unit mounted on the drive recorder 1. The camera 3 may be realized by an in-vehicle camera unit other than the drive recorder 1. The output unit 5 is realized by an in-vehicle display or an in-vehicle speaker, which is an in-vehicle output device 7 mounted on the vehicle.
[0048] 9, the camera 3 and the output unit 5 are connected to the image processing device 10 via an in-vehicle network such as a Controller Area Network (CAN). The camera 3 and the output unit 5 may be connected to the image processing device 10 wirelessly via Bluetooth (registered trademark), Wi-Fi (registered trademark), UWB (Ultra Wide Band), or the like.
[0049] Next, the information processing procedure executed by the controller 12 of the image processing device 10 will be described with reference to Fig. 10 and Fig. 11. Fig. 10 is a flowchart (part 1) showing the processing procedure executed by the image processing device 10 according to the embodiment. Fig. 11 is a flowchart (part 2) showing the processing procedure executed by the image processing device 10 according to the embodiment.
[0050] 1, the controller 12 acquires a camera image from the camera 3 (step S101) as shown in Fig. 10. Next, the controller 12 identifies a signal area SR in which the traffic light 300 exists from the acquired camera image (step S102).
[0051] Next, the controller 12 executes a "light state determination process" for determining the light state of the traffic light 300 based on the extracted signal area SR (step S103).
[0052] In this "light state determination process", as shown in FIG. 11, the controller 12 applies a blue extraction filter CF1 to the extracted signal region SR, and detects pixels having blue components from the signal region SR using the blue extraction filter CF1 (step S201).
[0053] Furthermore, the controller 12 applies a yellow extraction filter CF2 to the signal region SR, and detects pixels having a yellow component from the signal region SR by the yellow extraction filter CF2 (step S202).
[0054] Furthermore, the controller 12 applies a red extraction filter CF3 to the signal region SR, and detects pixels having red components from the signal region SR by the red extraction filter CF3 (step S203). The order of steps S201 to S203 may be arbitrary. Furthermore, steps S201 to S203 may be executed in parallel.
[0055] Next, the controller 12 weights the sum of the blue components detected in step S201 by the blue position filter PF1 (step S204), and weights the sum of the yellow components detected in step S202 by the yellow position filter PF2 (step S205).
[0056] Furthermore, the controller 12 weights the total value of the red component detected in step S203 using the red position filter PF3 (step S206). The order of steps S204 to S206 may be arbitrary. Furthermore, steps S204 to S206 may be executed in parallel.
[0057] Then, the controller 12 determines the color component with the largest total value after weighting by the position filter PF (step S207). If the color component is the blue color component (step S207, green), the controller 12 determines that the traffic light 300 is in a blue light state (step S208).
[0058] If the light is a yellow component (step S207, yellow), the controller 12 determines that the traffic light 300 is in a yellow light state (step S209). If the light is a red component (step S207, red), the controller 12 determines that the traffic light 300 is in a red light state (step S210).
[0059] Next, the controller 12 returns the result of the light state determination process (step S211), and then ends the light state determination process.
[0060] Returning to the description of Fig. 10, after completing step S103, the controller 12 estimates the movement of the traffic light 300 relative to the vehicle (step S104). As described above, the controller 12 estimates how the traffic light 300 moves relative to the traveling vehicle based on, for example, the difference between frames of the camera images.
[0061] Next, the controller 12 determines whether the vehicle has ignored a traffic signal based on the result of the light state determination process in step 103 and the movement estimation result in step 104 (step S105). Then, the controller 12 outputs the determination result to the output unit 5 (step S106) and ends the process.
[0062] Although not shown in the figure, the controller 12 may output to the output unit 5 based on the stability of the determination result between frames of the camera image. As an example, the controller 12 may output to the output unit 5 when the stability is deemed high, such as when the same determination result appears consecutively between frames. This makes it possible to output a stable determination result that is less susceptible to the effects of disturbances, etc.
[0063] Incidentally, in the above description of the position filter PF, an example was given in which the partial region PR is set to have a circular shape centered on the center of each of the lamps 301 to 303, but the shape is not limited to a perfect circle and may be an ellipse.
[0064] Alternatively, the partial region PR may be set to have a circular ring shape centered on the center of each of the lamps 301 to 303. This modified example will be described using the yellow positional filter PF2a as an example. Fig. 12 is a diagram showing an example of the configuration of the yellow positional filter PF2a according to the modified example.
[0065] As shown in Fig. 12, the partial region PR may be set to have a circular shape centered on the center of the yellow light 302. In this case, it is preferable to set the weight of the color components in the partial region PR surrounded by the inner and outer edges of the circle to be greater than the weight of the color components outside the partial region PR. This allows the controller 12 to suppress a decrease in the accuracy of determining the lighting color when the center of the yellow light 302 is blown out and captured in a camera image due to halation at night or the like. Note that the partial regions PR may also be set to have a circular shape for blue and red colors.
[0066] Also, different position filters PF in which circular and annular partial regions PR are respectively set may be prepared in advance, and the controller 12 may switch the position filter PF as appropriate, for example, depending on the time of day. In this case, the controller 12 may switch to the annular filter at night when halation is likely to occur due to the difference in brightness, and switch to the circular filter during the day. Also, the controller 12 may switch to the annular filter when it detects a situation in which a difference in brightness is likely to occur based on illuminance, etc.
[0067] In addition, a positional filter PF in which the inner diameter of the annular partial region PR is larger than the outer diameter of the lamp and a positional filter PF in which the inner diameter is smaller than the outer diameter of the lamp may be prepared in advance, and the controller 12 may appropriately switch the positional filter PF to the one that provides greater stability, for example, depending on the aforementioned stability.
[0068] As described above, the image processing device 10 according to the embodiment includes the controller 12. The controller 12 extracts the signal area SR in which the traffic light 300 exists by image recognition of the camera image. The controller 12 detects each color component corresponding to each light color of the traffic light 300 from the signal area SR. The controller 12 also applies a position filter PF (corresponding to an example of a "filter") that weights each color component according to each light position of the traffic light 300. The controller 12 also determines the light color of the traffic light 300 based on each weighted color component. This makes it possible to emphasize the color component at the light position, so that the light color can be determined even with a small number of color components. In addition, since color components at positions other than the light position can be suppressed, it is possible to suppress erroneous detection of the light color of the traffic light 300 due to color components other than the traffic light 300 due to the background of the traffic light 300, etc. That is, according to the image processing device 10 according to the embodiment, it is possible to improve the identification accuracy of the light color of the traffic light 300.
[0069] In the above embodiment, the lighting state, movement, and signal violation of the traffic light 300 are determined based on image recognition, but sensor data from various sensors mounted on the vehicle may be appropriately combined. For example, the behavior of the vehicle may be estimated using sensor values from a steering sensor or an acceleration sensor. The vehicle speed may be obtained using a sensor value from a speed sensor.
[0070] In the above embodiment, the signal region SR is a rectangular region, but the signal region SR is not limited to a rectangular region.
[0071] Further advantages and modifications may readily occur to those skilled in the art. Thus, the invention in its broader aspects is not limited to the specific details and representative embodiments shown and described above. Accordingly, various modifications may be made without departing from the spirit or scope of the general inventive concept as defined by the appended claims and equivalents thereof. [Explanation of symbols]
[0072] 1. Drive recorder 3. Camera 5 Output section 7. Vehicle output device 9 Image Processing ECU 10 Image processing device 11 Storage section 12 Controller CF Color Extraction Filter CF1 Blue Extraction Filter CF2 Yellow Extraction Filter CF3 Red Extraction Filter PF Positional Filter PF1 Blue Positional Filter PF2 Yellow Positional Filter PF3 Red Positional Filter
Claims
1. An image processing device having a controller that identifies a light color of a traffic light having a green light, a yellow light, and a red light, The controller: Identifying a traffic light area in an image obtained from an on-board camera; Detecting blue pixels, yellow pixels, and red pixels in the traffic light area, assigning high weighting values to the blue pixels, yellow pixels, and red pixels at positions corresponding to the blue light, yellow light, and red light, respectively; determining a light color of the traffic light based on a comparison of the total number of blue pixels, yellow pixels, and red pixels after applying the weighting values; Image processing device.
2. A partial region is set so as to be a circle having a center at the center of the blue light, the yellow light, and the red light. The image processing device according to claim 1 .
3. The weighting value is larger the closer to the center of the partial region. The image processing device according to claim 2 .
4. The partial region is set so as to have a circular shape centered on a central portion of the blue light, the yellow light, and the red light. The image processing device according to claim 2 .
5. The shape of the partial region is set to a circular or annular shape depending on the time period. The image processing device according to claim 4.
6. estimating a motion of the traffic light relative to the vehicle from differences between frames of the images; determining whether or not a traffic signal has been violated based on the color of the traffic signal and the estimated movement of the traffic signal; The image processing device according to claim 1 .
7. An image processing method for identifying the light color of a traffic signal having a green light, a yellow light, and a red light, comprising: (a) identifying a traffic light area in an image obtained from an in-vehicle camera; (b) detecting blue pixels, yellow pixels, and red pixels in the traffic light area; (c) assigning high weighting values to the blue pixels, yellow pixels, and red pixels at positions corresponding to the blue light, yellow light, and red light, respectively; (d) determining a light color of the traffic light based on a comparison of the total number of blue pixels, yellow pixels, and red pixels after applying the weighting values; An image processing method comprising:
8. Setting a partial region so as to be circular with the center of the center of the blue light, the yellow light, and the red light as a center; The image processing method according to claim 7 , comprising:
9. The weighting value is increased as the partial region approaches the center; The image processing method according to claim 8 , comprising:
10. Setting the partial area so as to form a ring shape centered on a central portion of the blue light, the yellow light, and the red light; The image processing method according to claim 8 , comprising:
11. Setting the shape of the partial region to a circular or annular shape depending on the time period; The image processing method according to claim 10 , comprising:
12. estimating a motion of the traffic light relative to the vehicle from differences between frames of the images; determining whether or not a traffic signal has been violated based on the color of the traffic signal and the estimated movement of the traffic signal; The image processing method according to claim 7 , comprising:
13. Acquiring images from an on-board camera; identifying a traffic light region in the image; Detecting blue pixels, yellow pixels, and red pixels in the traffic light area; assigning high weighting values to the blue pixels, yellow pixels, and red pixels at positions corresponding to the green, yellow, and red lights of a traffic light, respectively; determining a light color of the traffic light based on a comparison of the total number of blue pixels, yellow pixels, and red pixels after applying the weighting values; A program that causes a computer to execute the following.
14. Setting a partial region so as to be circular with the center of the center of the blue light, the yellow light, and the red light as a center; The program according to claim 13 , further causing the computer to execute the steps of:
15. The weighting value is increased as the partial region approaches the center; The program according to claim 14 , further causing the computer to execute the steps:
16. Setting the partial area so as to form a ring shape centered on a central portion of the blue light, the yellow light, and the red light; The program according to claim 14 , further causing the computer to execute the steps:
17. Setting the shape of the partial region to a circular or annular shape depending on the time period; The program according to claim 16, further comprising:
18. estimating a motion of the traffic light relative to the vehicle from differences between frames of the images; determining whether or not a traffic signal has been violated based on the color of the traffic signal and the estimated movement of the traffic signal; The program according to claim 13, further causing the computer to execute the steps of:
Citation Information
Patent Citations
Traffic signal recognition method and traffic signal recognition device
JP2018063680A
