Image processing device
The image processing device optimizes neural network selection based on environmental conditions to enhance accuracy under disturbances like brightness or rainfall, addressing the accuracy issues in existing systems by dynamically switching between CNN and Transformer models.
Patent Information
- Application Number
- JP2023050747
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-28
- Publication Date
- 2024-10-10
- Estimated Expiration
- 2043-03-28
AI Technical Summary
Image processing using neural networks is affected by disturbances such as rain or changes in brightness, leading to decreased accuracy, and existing systems place a heavy burden on machine learning to accumulate data for improved accuracy.
An image processing device that selects between a first neural network model (CNN) and a second neural network model (Transformer) based on environmental conditions, such as brightness or rainfall, to optimize accuracy by using an illuminance sensor or rain sensor to determine which model to use for arithmetic processing.
The device achieves highly accurate image processing by dynamically selecting the most suitable neural network model based on environmental conditions, enhancing detection accuracy under varying weather conditions.
Smart Images

Figure 2024139833000001_ABST
Abstract
Description
[Technical field]
[0001] The present disclosure relates to an image processing device. [Background technology]
[0002] Patent Document 1 discloses an image recording device that automatically switches to a frame rate higher than the frame rate set when the weather is not stormy and records the captured image when the weather is stormy. The image recording device is a drive recorder that is mounted on a vehicle. In this image recording device, a stormy weather determination processing unit determines whether the weather is stormy or not based on a captured image captured by an imaging unit. Specifically, a rectangular area surrounding a wiper is extracted from the captured image by a wire detection unit. Extraction of the rectangular area is achieved using an object detection algorithm such as SSD or YOLO.
[0003] The wiper operation cycle estimation unit estimates the wiper operation cycle by referring to the wiper area data supplied from the wiper detection unit and multiple pieces of past wiper area data.The bad weather determination unit determines that the weather is bad if the wiper operation cycle is less than a threshold.Then, the frame rate switching unit changes the frame rate.This makes it possible to prevent a lack of information on dangerous scenes while minimizing the recording capacity of the image recording device. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] Patent Publication No. 2021-52350 Summary of the Invention [Problem to be solved by the invention]
[0005] Generally, for advanced driving assistance systems, a technology for detecting objects around a vehicle using a neural network is sometimes used. However, it is known that in image processing using a neural network, the accuracy of the processing decreases due to disturbances such as rain and changes in brightness. In order to realize high-precision image processing, it is necessary to accumulate image data when a disturbance occurs and to take time for machine learning, which is a heavy burden on the person performing the work. Here, it is known that the way in which the accuracy of a neural network decreases when it is subjected to various disturbances varies depending on the type of the neural network. Therefore, the inventor of the present application thought of realizing high-precision image processing by selecting a neural network according to the type of disturbance that occurs in the image. [Means for solving the problem]
[0006] The present disclosure can be realized in the following forms.
[0007] According to one embodiment of the present disclosure, there is provided an image processing device (1) mounted on a vehicle (VW). The image processing device includes an imaging unit (10) that captures an image of an object and generates an image including the object, one or more element acquisition units (20) that acquire numerical values representing the respective intensities of one or more elements of the environment surrounding the vehicle, a first image processing unit (30) that can perform arithmetic processing on the image using a first neural network model, a second image processing unit (40) that can perform arithmetic processing on the image using a second neural network model, and a processing selection unit (50) that selects an image processing unit to execute arithmetic processing on the image from among the first image processing unit and the second image processing unit, in which, for some of the elements, the accuracy of the first image processing unit is higher than that of the second image processing unit in a first range of intensity, and the accuracy of the second image processing unit is higher than that of the first image processing unit in a second range lower than the first range, and the processing selection unit selects the image processing unit to execute arithmetic processing based on the numerical values representing the intensities of the elements acquired by the one or more element acquisition units (10).
[0008] According to the image processing device of this aspect, the processing selection unit causes either the first image processing unit or the second image processing unit to execute arithmetic processing based on the numerical values of the elements acquired by the element acquisition unit, thereby realizing highly accurate image processing. [Brief description of the drawings]
[0009] [Figure 1] FIG. 1 is a diagram illustrating a configuration of a vehicle according to an embodiment of the present invention. [Diagram 2] 2 is a block diagram showing configurations of a first image processing unit, a second image processing unit, a processing selection unit, and a vehicle control unit. [Diagram 3] 6 is a graph showing the detection accuracy with respect to brightness of each of the first image processing unit and the second image processing unit. [Figure 4] FIG. 11 is a process diagram showing an example of selection of an image processing unit by the image processing apparatus. [Diagram 5] FIG. 13 is a diagram showing a vehicle according to a second embodiment. [Figure 6] FIG. 13 is a graph showing the accuracy of the image processing unit with respect to the amount of rainfall. [Figure 7] FIG. 11 is a process diagram showing an example of selection of an image processing unit by the image processing apparatus according to the second embodiment. [Figure 8] FIG. 13 is a process diagram showing an example of selection of an image processing unit by the image processing device according to the third embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0010] A. First embodiment: A1. Configuration of the first embodiment: FIG. 1 is a diagram illustrating the configuration of a vehicle VW according to this embodiment. The vehicle VW is capable of traveling using an ADAS (Advanced Driving Assistant System). As shown in FIG. 1, the vehicle VW is equipped with an image processing device 1. The image processing device 1 detects objects around the vehicle VW, and controls the vehicle VW based on the detection results. In this embodiment, the image processing device 1 includes an imaging unit 10, a first element acquisition unit 20, a first image processing unit 30, a second image processing unit 40, a processing selection unit 50, and a vehicle control unit 60.
[0011] The imaging unit 10 captures an image of an object around the vehicle VW and generates an image including the object. The object refers to another vehicle, a person, an animal, a traffic light, a building, etc. The imaging unit 10 is electrically connected to the first image processing unit 30 and the second image processing unit 40, and transmits data of the generated image to the first image processing unit 30 and the second image processing unit 40. In this embodiment, the imaging unit 10 is a camera. Note that, as the imaging unit 10, a configuration other than a camera can be adopted as long as it captures an object around the vehicle VW and generates an image.
[0012] The first element acquisition unit 20 acquires a numerical value representing the intensity of an element of the environment surrounding the vehicle VW. In this embodiment, the element of the environment surrounding the vehicle VW is brightness, and the first element acquisition unit 20 is an illuminance sensor. The illuminance sensor is disposed on the vehicle VW so as to receive external light from the front of the vehicle VW. The illuminance sensor acquires a numerical value representing the intensity of the received light. In this embodiment, the unit of the numerical value is lux (lx). Note that the numerical value acquired by the element acquisition unit in this specification includes the element acquisition unit detecting the degree of intensity of the element and outputting a value according to that degree. The first element acquisition unit 20 transmits a signal indicating the acquired numerical value to the processing selection unit 50.
[0013] FIG. 2 is a block diagram showing the configuration of the first image processing unit 30, the second image processing unit 40, the processing selection unit 50, and the vehicle control unit 60. The first image processing unit 30 can perform arithmetic processing on the image generated by the imaging unit 10 using a first neural network model. The first image processing unit 30 transmits data obtained by the arithmetic processing to the processing selection unit 50. In this embodiment, the first neural network model is a CNN (Convolutional neural network). The first image processing unit 30 includes an NPU (Neural Processing Unit) 31, a processor 32, and a memory 33. The NPU 31 executes arithmetic processing using the CNN. The processor 32 performs overall control of the NPU 31. The memory 33 stores the results obtained by the arithmetic processing.
[0014] The second image processing unit 40 can perform arithmetic processing on the image generated by the imaging unit 10 using the second neural network model. The second image processing unit 40 transmits data obtained by the arithmetic processing to the processing selection unit 50. In this embodiment, the second neural network model is a Transformer. The second image processing unit 40 includes an NPU 41, a processor 42, and a memory 43. The NPU 41 executes arithmetic processing using the Transformer. The processor 42 performs overall control of the NPU 41. The memory 43 stores the results obtained by the arithmetic processing.
[0015] The processing selection unit 50 selects an image processing unit that performs arithmetic processing on an image from among the two image processing units, the first image processing unit 30 and the second image processing unit 40. Specifically, the processing selection unit 50 selects an image processing unit that performs arithmetic processing on an image based on a numerical value representing the intensity of an element acquired by the first element acquisition unit 20. The processing selection unit 50 also transmits data of the result of the arithmetic processing of the selected image processing unit to the vehicle control unit 60. In this embodiment, the processing selection unit 50 selects an image processing unit based on a numerical value representing the intensity of light received by the illuminance sensor. In this embodiment, the processing selection unit 50 includes a processor 51 and a memory 52. The processor 51 selects an image processing unit. The memory 52 stores the image processing unit selected by the processing selection unit 50 and the data of the result of the arithmetic processing by the selected image processing unit in chronological order.
[0016] The vehicle control unit 60 controls the vehicle VW based on the data obtained by the arithmetic processing of the image processing unit selected by the processing selection unit 50. For example, when the data indicates that another vehicle is included in the image, the vehicle control unit 60 can activate a brake (not shown) of the vehicle VW to stop the vehicle VW. The vehicle control unit 60 can transmit and receive signals to and from the processing selection unit 50. The vehicle control unit 60 includes a processor 61, a ROM 62, and a RAM 63. The processor 61 loads various programs stored in the ROM 62 onto the RAM 63, thereby executing various programs.
[0017] In this embodiment, the vehicle control unit 60 has a first mode MD1 and a second mode MD2. The first mode MD1 is a mode in which control is performed based on an image processing unit selected by the process selection unit 50. The second mode MD2 is a mode in which control of the vehicle VW is performed based on the data of the arithmetic processing output by the first image processing unit 30, not based on the image processing unit selected by the process selection unit 50. The vehicle control unit 60 executes control of the vehicle VW in the second mode MD2 while no image processing unit is selected by the process selection unit 50.
[0018] In this embodiment, while the second mode MD2 is being executed by the vehicle control unit 60, arithmetic processing is executed by both the first image processing unit 30 and the second image processing unit 40. Then, in the first mode MD1, the vehicle control unit 60 controls the vehicle VW based on data resulting from the arithmetic processing output by the image processing unit selected by the processing selection unit 50 out of the first image processing unit 30 and the second image processing unit 40.
[0019] A2. Characteristics of the first image processing unit 30 and the second image processing unit 40: FIG. 3 is a diagram showing the detection accuracy with respect to brightness of each of the first image processing unit 30 and the second image processing unit 40. In FIG. 3, the horizontal axis indicates the intensity of brightness, and the vertical axis indicates the detection accuracy of the image processing unit. In this specification, the detection accuracy refers to the percentage of correct answers when the image processing unit performs arithmetic processing on a previously prepared image. The detection accuracy is tested in advance by an operator for each element. In this embodiment, the detection accuracy is shown when the image processing unit performs arithmetic processing on a plurality of images with different brightness. Hereinafter, the detection accuracy of the image processing unit will be referred to as "accuracy".
[0020] As shown in FIG. 3, in the first range FR1, the accuracy of the first image processing unit 30 using CNN is higher than that of the second image processing unit 40 using Transformer. Also, in the second range SR1 of intensity, the accuracy of the second image processing unit 40 is higher than that of the first image processing unit 30. In FIG. 3, the line representing the accuracy of the first image processing unit 30 is represented by a solid line, and the line representing the accuracy of the second image processing unit 40 is represented by a dashed line. This is also true in FIG. 6, which will be described later. In this embodiment, the smallest numerical value in the first range FR1 is larger than the first threshold value T1. Also, the largest numerical value in the second range SR1 is smaller than the first threshold value T1.
[0021] The first threshold value T1 in this embodiment is the brightness intensity of image data at which the accuracy of the first image processing unit 30 becomes equal to the accuracy of the second image processing unit 40 when the first image processing unit 30 and the second image processing unit 40 each perform calculation processing on multiple images of different brightness prepared by an operator.
[0022] The first threshold T1 can be determined by a method other than the above. For example, the maximum intensity of the brightness at the entrances of any of a plurality of tunnels measured by an operator may be set as the first threshold T1. The brightness at the entrances of any of a plurality of tunnels is measured by an operator at a distance of 1 m inside the tunnel from the entrance of each of the tunnels. The brightness may be measured at multiple points in each of a plurality of tunnels, and the maximum intensity among the measured brightness may be set as the first threshold T1.
[0023] In addition, it is generally known that CNN has a property that the change in accuracy with respect to the change in brightness over time during the day on a clear sunny day is smaller than that of Transformer. The brightness during the day on a clear sunny day belongs to the first range FR1 in FIG. 3. On the other hand, it is known that CNN has lower accuracy than Transformer in situations where the brightness intensity of the outside world of the vehicle VW is smaller than that during the day on a clear sunny day, such as inside a tunnel or on a rainy day. The brightness in situations where the intensity is smaller than that during a clear sunny day belongs to the second range SR1 in FIG. 3.
[0024] A3. Selection of the first image processing unit 30 or the second image processing unit 40 by the processing selection unit 50: Fig. 4 is a process diagram showing an example of the selection of an image processing unit by the image processing device 1. In step S10 of Fig. 4, after the user turns on the power of the vehicle VW, the vehicle control unit 60 starts executing control of the vehicle VW in the second mode MD2. After the start of the second mode MD2, the process proceeds to step S20 after a predetermined time has elapsed. The predetermined time can be set arbitrarily, such as 5 seconds, 10 seconds, or 1 minute.
[0025] In step S20, the data of the image generated by the imaging unit 10 is transmitted to the first image processing unit 30 and the second image processing unit 40. In step S30, the first image processing unit 30 and the second image processing unit 40 execute arithmetic processing on the image data. Then, the first image processing unit 30 and the second image processing unit 40 transmit the data of the result of the arithmetic processing to the processing selection unit 50. The processing selection unit 50 transmits the data of the result of the arithmetic processing by the first image processing unit 30 to the vehicle control unit 60. Then, the vehicle control unit 60 controls the vehicle VW based on the result of the arithmetic processing output by the first image processing unit 30. Note that, from this point on, the generation of the image by the imaging unit 10 and the arithmetic processing and output of the result by the first image processing unit 30 and the second image processing unit 40 are executed every second until the processing is completed.
[0026] In step S40, the illuminance sensor acquires a numerical value corresponding to the intensity of the received light, and transmits the numerical value data to the processing selection unit 50. The processing of step S40 may be executed before the processing of step S20. In step S50, the processing selection unit 50 selects an image processing unit based on the numerical value representing the intensity of the light received by the illuminance sensor. Specifically, if the numerical value is equal to or greater than the first threshold value T1, the processing selection unit 50 selects the first image processing unit 30. If the numerical value is smaller than the first threshold value T1, the processing selection unit 50 selects the second image processing unit 40. In this embodiment, the processing selection unit 50 selects the first image processing unit 30, and transmits the data of the result of the arithmetic processing received from the first image processing unit 30 in step S30 to the vehicle control unit 60.
[0027] In step S60, the vehicle control unit 60 controls the vehicle VW in the first mode MD1. In this embodiment, the vehicle control unit 60 controls the vehicle VW based on the data of the arithmetic processing by the first image processing unit 30. In step S70, the vehicle control unit 60 determines whether or not to end the process. If the user stops the vehicle VW and turns off the power supply of the vehicle VW within a predetermined time from the execution of the process of step S60, the process ends. If the user continues to drive the vehicle VW after a predetermined time has elapsed from the execution of the process of step S60, the vehicle control unit 60 determines not to end the process, and the process proceeds to step S40 again with the first mode MD1 being executed.
[0028] In this embodiment, the processing selection unit 50 causes either the first image processing unit 30 or the second image processing unit 40 to execute calculation processing based on the numerical values of the elements acquired by the first element acquisition unit 20. This makes it possible to realize highly accurate image processing.
[0029] In this embodiment, an image processing section is selected by the processing selection section 50 based on a numerical value indicating the intensity of light received by the illuminance sensor. By selecting an image processing section based on brightness that is considered to have a high frequency of affecting the accuracy of calculation processing by the image processing section, it is possible to realize highly accurate image processing.
[0030] It is considered that the vehicle VW is most often driven during the day on a clear day. In this embodiment, as shown in FIG. 3, in the first range FR1 of the brightness intensity, the accuracy of the first image processing unit 30 using CNN is higher than the accuracy of the second image processing unit 40 using Transformer. Then, while the second mode MD2 is being executed in which the image processing unit is not selected by the processing selection unit 50, the vehicle VW is controlled based on the data obtained by the arithmetic processing of the first image processing unit 30. As a result, during the day on a clear day, which is a high probability as a driving environment, while the image processing unit is not selected by the processing selection unit 50, it is possible to suppress the decrease in accuracy of the arithmetic processing that occurs in response to the brightness intensity.
[0031] Furthermore, in the second mode MD2, since the calculation processing is performed by both the first image processing unit 30 and the second image processing unit 40, when the control is switched from the second mode MD2 to the first mode MD1, data of the result of the calculation processing is prepared. Therefore, the vehicle control unit 60 can quickly control the vehicle VW based on the data.
[0032] In addition, it is generally known that CNN is affected by noise and its accuracy decreases when noise increases during A / D conversion, which digitizes an input analog signal. When the vehicle VW enters a tunnel or a building, or in other situations where it is dark around the vehicle VW, noise is likely to increase during A / D conversion. Therefore, when the numerical value acquired by the first element acquisition unit 20 belongs to a second range SR1 that is smaller than the first threshold T1, the second image processing unit 40 using a Transformer is selected by the processing selection unit 50, and highly accurate calculation processing is performed.
[0033] B. Second embodiment: The image processing device 1B of the second embodiment differs from the first embodiment in that the first image processing unit 30B is an image processing unit using Transformer, the second image processing unit 40B is an image processing unit using CNN, the processing selection unit 50 selects an image processing unit based on the intensity of rain instead of brightness, and the element acquisition unit and the processing of step S30 in Fig. 4. The other configurations are the same as those of the first embodiment, so the same reference numerals are used and detailed explanations are omitted.
[0034] 5 is a diagram showing a vehicle VW according to the second embodiment. First, in the second embodiment, as described above, the first image processing unit 30B using a Transformer and the second image processing unit 40B using a CNN perform arithmetic processing on an image.
[0035] The second element acquisition unit 20B of the second embodiment acquires a numerical value representing the intensity of rain in the environment around the vehicle VW. The second element acquisition unit 20B includes a net information unit 210B and a rainfall detection unit 220B. The net information unit 210B acquires the current location using a signal from a GPS satellite. Then, the net information unit 210B acquires the amount of precipitation at the current location through a network. Specifically, the net information unit 210B acquires the amount of precipitation that has reached the horizontal plane of the earth's surface at the current time within a certain period of time. The net information unit 210B converts the acquired amount of precipitation into the amount of rainfall that fell per square meter in one second, and acquires it as a numerical value representing the intensity of rain. The numerical value acquired by the net information unit 210B is denoted as a first numerical value FN. The first numerical value FN is output to the processing selection unit 50.
[0036] The rainfall detection unit 220B directly detects rain around the vehicle VW. The rainfall detection unit 220B is installed on the windshield FR of the vehicle VW. In this embodiment, the rainfall detection unit 220B includes a rain sensor. The rain sensor detects rain that contacts the windshield FR by a combination of an infrared LED and a Si photodiode. Specifically, infrared light is irradiated from the infrared LED toward the windshield FR. When there are no water droplets on the windshield FR, the infrared LED is reflected by the windshield FR and enters the Si photodiode. On the other hand, when there are water droplets on the windshield FR, the infrared LED is not reflected by the windshield FR and passes through the water droplets. The amount of rainfall is measured by the amount of reflected light entering the Si photodiode. The rainfall detection unit 220B converts the amount of rainfall measured by the rain sensor into the amount of rainfall that fell per square meter in one second and outputs it as a numerical value representing the intensity of the rain. The numerical value acquired by the rainfall detection unit 220B is denoted as a second numerical value SN. The second numerical value SN is output to the process selection unit 50.
[0037] The process selection unit 50 uses the larger of the first numerical value FN and the second numerical value SN as the numerical value representing the intensity of rain acquired by the second element acquisition unit 20B, and selects an image processing unit.
[0038] FIG. 6 is a diagram showing the accuracy of the image processing unit with respect to the amount of rain. The horizontal axis represents the amount of rainfall that fell per square meter in one second, and the vertical axis represents the accuracy of the image processing unit. In general, it is known that the accuracy of the arithmetic processing of CNN decreases due to rain, snow, dust, etc. transferred to the image data. As shown in FIG. 6, in the first range FR2, the accuracy of the first image processing unit 30B using Transformer is higher than the accuracy of the second image processing unit 40B using CNN. Also, in the second range SR2, the accuracy of the second image processing unit 40B using CNN is higher than the accuracy of the first image processing unit 30B using Transformer. In the second embodiment, the smallest numerical value in the first range FR2 is larger than the second threshold value T2. Also, the largest numerical value in the second range SR2 is smaller than the second threshold value T2.
[0039] In the second embodiment, the second threshold T2 is a rainfall amount at which the accuracy of the first image processing unit 30B and the second image processing unit 40B matches, as examined using a plurality of rainy weather images with different rainfall amounts per square meter per second. The images are arbitrary images prepared by an operator. The second threshold T2 may be an arbitrary value determined by an operator. For example, the second threshold T2 may be determined as the rainfall amount at which the area occupied by raindrops in an image of one square meter is equal to or greater than a predetermined area.
[0040] Fig. 7 is a process diagram showing an example of the selection of an image processing unit by the image processing device 1B of the second embodiment. The processes of steps S10 and S20 are similar to those of Fig. 4, and therefore the details are omitted. In step S30B of Fig. 7, the vehicle control unit 60 controls the vehicle VW based on the data resulting from the arithmetic processing by the second image processing unit 40. That is, the vehicle VW is controlled based on the data resulting from the arithmetic processing using CNN.
[0041] In step S40B, the rain sensor outputs a first numerical value FN, and the rainfall detection unit 220B outputs a second numerical value SN. In step S50B, the process selection unit 50 uses the larger of the first numerical value FN and the second numerical value SN to select an image processing unit. Specifically, when the numerical value to be used is equal to or greater than the second threshold value T2, the process selection unit 50 selects the first image processing unit 30B. On the other hand, when the numerical value to be used is smaller than the second threshold value T2, the process selection unit 50 selects the second image processing unit 40B. The process from step S60 onwards is the same as that in FIG. 4.
[0042] In the second embodiment, the processing selection unit 50 selects the image processing unit using the larger value of the first numerical value FN and the second numerical value SN. This enables highly accurate calculation processing according to the intensity of the rain.
[0043] C. Third embodiment: The image processing device 1C of the third embodiment differs from the above embodiments in that the image processing device 1C includes a first element acquisition unit 20 and a second element acquisition unit 20B, and in the selection of an image processing unit by a processing selection unit 50. The other configurations are the same as those of the first embodiment, so the same reference numerals are used and detailed descriptions are omitted.
[0044] In the third embodiment, the image processing device 1C includes a first element acquisition unit 20 and a second element acquisition unit 20B. The first element acquisition unit 20 acquires a numerical value representing the intensity of the brightness of the environment around the vehicle VW. The second element acquisition unit 20B acquires a numerical value representing the intensity of rain. The first element acquisition unit 20 is an illuminance sensor and has the same configuration as the first embodiment. The second element acquisition unit 20B includes a net information unit 210B and a rainfall detection unit 220B. The net information unit 210B and the rainfall detection unit 220B have the same configuration as the second embodiment.
[0045] In the third embodiment, the first image processing unit 30 is an image processing unit using CNN, and the second image processing unit 40 is an image processing unit using Transformer. In the third embodiment, in the first range FR1 of brightness intensity shown in FIG. 3, the accuracy of the first image processing unit 30 is higher than that of the second image processing unit 40. Also, in the second range SR1, the accuracy of the second image processing unit 40 is higher than that of the first image processing unit 30. On the other hand, in the first range FR2 of rain intensity shown in FIG. 6, the accuracy of the second image processing unit 40 is higher than that of the first image processing unit 30. Also, in the second range SR2, the accuracy of the first image processing unit 30 is higher than that of the second image processing unit 40.
[0046] Fig. 8 is a process diagram showing an example of the selection of an image processing unit by the image processing device 1C of the third embodiment. The processes from step S10 to step S30 are the same as those in Fig. 3, and therefore will not be described. In step S40C, the first element acquisition unit 20 and the second element acquisition unit 20B each output a numerical value representing the strength of the element. In the third embodiment, the net information unit 210B and the rainfall detection unit 220B are electrically connected, and the larger of the first numerical value FN and the second numerical value SN is output from the second element acquisition unit 20B.
[0047] In step S50C, the process selection unit 50 selects an image processing unit based on the numerical values representing the intensities of the elements acquired by the first element acquisition unit 20 and the second element acquisition unit 20B. The selection of an image processing unit based on the numerical values acquired by the first element acquisition unit 20 is performed by the same process as in Fig. 4. The selection of an image processing unit based on the numerical values acquired by the second element acquisition unit 20B is performed by the same process as in Fig. 7.
[0048] In step S60C, the process selection unit 50 judges whether the second image processing unit 40 has been selected a predetermined number of times or more. In step S50C, if the second image processing unit 40 is selected based on the numerical value acquired by the first element acquisition unit 20, it is expressed as the second image processing unit 40 being selected once. In step S50C, if the second image processing unit 40 is selected based on the numerical value acquired by the second element acquisition unit 20B, it is expressed as the second image processing unit 40 being selected once. In the third embodiment, the predetermined number of times is one time. If the second image processing unit 40 has been selected once or more by the process selection unit 50, the process proceeds to step S70C. If the second image processing unit 40 has not been selected even once by the process selection unit 50 and only the first image processing unit 30 has been selected, the process proceeds to step S80C. The predetermined number of times is determined by an operator and input to the process selection unit 50 in advance.
[0049] In step S70C, the first mode MD1 is executed by the vehicle control unit 60. In step S70C, the second image processing unit 40 executes arithmetic processing. In step S80C, the first mode MD1 is executed by the vehicle control unit 60. In step 80C, the first image processing unit 30 executes arithmetic processing. Thereafter, the process proceeds to step S90C. The process of step S90C is similar to the process of step S70 in FIG. 4.
[0050] In the third embodiment, the image processing device 1C can select an image processing unit based on a numerical value representing the intensity of one or more elements.
[0051] D. Fourth embodiment: The fourth embodiment differs from the first embodiment in that the image processing device 1D includes a third element acquisition unit 20D (not shown), which acquires a numerical value representing the intensity of an element of the environment around the vehicle VW based on an image acquired by the imaging unit 10, and in that the image processing device 1D does not include an illuminance sensor. The other configurations are the same as those of the first embodiment, so the same reference numerals are used and detailed descriptions are omitted.
[0052] In the fourth embodiment, the imaging unit 10 transmits data of the generated image to a third element acquisition unit 20D. The third element acquisition unit 20D detects the brightness per unit pixel of the image data. Then, it calculates the average brightness of the image, obtains a numerical value representing the intensity, and outputs the numerical value to a processing selection unit 50. The processing selection unit 50 selects an image processing unit based on the numerical value obtained by the third element acquisition unit 20D in the same manner as in the first embodiment.
[0053] In the fourth embodiment, it is possible to obtain numerical values representing the intensities of elements of the environment around the vehicle VW from the images acquired by the imaging unit 10 without using a device for acquiring numerical values representing the intensities of the elements.
[0054] E. Other embodiments: E1: Other embodiment 1: (1) In the first embodiment, the first element acquisition unit 20 acquires a numerical value representing the intensity of brightness. In the second embodiment, the second element acquisition unit 20B acquires a numerical value representing the intensity of rain. For example, the element acquisition unit may acquire a numerical value representing the degree of dust or snow on the windshield.
[0055] (2) In the above embodiment, the smallest value in the first range FR1 is greater than the first threshold T1. The largest value in the second range SR1 is smaller than the first threshold T1. The smallest value in the first range FR2 is greater than the second threshold T2. The largest value in the second range SR2 is smaller than the second threshold T2. Depending on the method of determining the first threshold, the first threshold may belong to either the first range or the second range. For example, when the largest intensity of the brightness of each of any plurality of tunnels measured by the worker is set as the first threshold, the first threshold may belong to either the first range or the second range. Similarly, depending on the method of determining the second threshold, the second threshold may belong to either the first range or the second range.
[0056] (3) In the above embodiment, the process selection unit 50 selects an image processing unit based on whether the numerical value acquired by the element acquisition unit is equal to or greater than the first threshold T1 or the second threshold. Note that the process selection unit may select an image processing unit not based on the threshold, for example, in an aspect where the threshold value belongs to either the first range or the second range. In this aspect, the process selection unit may select the first image processing unit when the numerical value acquired by the element acquisition unit belongs to the first range, select the second image processing unit when the numerical value belongs to the second range, and select the first image processing unit or the second image processing unit, whichever is predetermined by the operator, when the numerical value does not belong to either the first range or the second range.
[0057] (4) In the above-described first embodiment, after the user turns on the power of the vehicle VW in the process of step S10 in Fig. 4, the vehicle control unit 60 executes control of the vehicle VW in the second mode MD2. Note that the second mode may be executed at a time other than when the vehicle is turned on. For example, the vehicle control unit may execute control of the vehicle in the second mode after autonomous driving is started, or the vehicle control unit may execute control of the vehicle in the second mode after a predetermined time has elapsed since the vehicle started traveling.
[0058] (5) For example, the image processing device may include a control unit that functions as a first image processing unit, a second image processing unit, and a processing selection unit. In this aspect, the control unit includes an NPU, a processor, and a memory, and the NPU executes arithmetic processing using CNN and Transformer, and the processing selection unit executes arithmetic processing in either the first image processing unit or the second image processing unit. The processor performs overall control of the NPU. According to this aspect of the image processing device, the first image processing unit, the second image processing unit, and the processing selection unit are controlled by the same control unit, so that the processing selection unit can quickly switch between the first image processing unit and the second image processing unit.
[0059] (6) In the above embodiment, when a value indicating the intensity of light received by the illuminance sensor is equal to or greater than a first threshold, the process selection unit 50 selects the first image processing unit 30. Note that when the value is greater than the first threshold, the process selection unit may select the first image processing unit, and when the value is equal to or less than the first threshold, the process selection unit may select the second image processing unit.
[0060] (7) In the above embodiment, the vehicle VW can be driven by an Advanced Driving Assistant System (ADAS). Note that the vehicle may be driven by Autonomous Driving (AD), for example.
[0061] (8) In the above first embodiment, if the vehicle control unit 60 determines not to end the process, the process proceeds again to step S40 in FIG. 4. Note that the process may also be ended when the vehicle control unit determines that the autonomous driving is to end. Also, the process may proceed to step S40 after the process of step S60 in FIG. 4. In this aspect, if the user ends the driving, the process ends regardless of which step has been executed.
[0062] (9) In the first embodiment, after the start of the second mode MD2, the process proceeds to step S20 after a predetermined time has elapsed. Note that, for example, the process may proceed to step S20 immediately after the start of the second mode, and then, after a predetermined time has elapsed, the process may proceed to step S60.
[0063] E2: Alternative embodiment 2: (1) In the above third embodiment, the image processing device 1B includes two element acquisition units, a first element acquisition unit 20 and a second element acquisition unit 20B. Note that the image processing device may include a number of element acquisition units other than two, such as three or five. In this aspect, each of the element acquisition units acquires a numerical value representing the intensity of one of one or more elements such as rain, brightness, dust, etc. Then, the processing selection unit selects an image processing unit based on the numerical value of the element acquired by the multiple element acquisition units.
[0064] (2) In the third embodiment, the predetermined number of times is one. The operator can determine the predetermined number of times depending on the environment in which the vehicle is traveling and the type and number of elements. For example, in an aspect in which the image processing device has two element acquisition units, the second image processing unit may execute the arithmetic processing in the first mode only when the second image processing unit is selected twice by the processing selection unit. Also, in an aspect in which the image processing device has five element acquisition units, the second image processing unit may execute the arithmetic processing in the first mode only when the second image processing unit is selected once or more by the processing selection unit, or the second image processing unit may execute the arithmetic processing in the first mode only when the second image processing unit is selected five times.
[0065] E3: Alternative embodiment 3: In the third embodiment, when the second image processing unit 40 has been selected a predetermined number of times or more, the second image processing unit 40 is selected by the processing selection unit 50. Note that, for example, in a mode in which the image processing device includes a plurality of element acquisition units, one of which is an illuminance sensor, the processing selection unit may select the image processing unit based only on the numerical value acquired by the illuminance sensor.
[0066] E4: Alternative embodiment 4: (1) In the above embodiment, the image processing device 1 includes a vehicle control unit 60. Note that, for example, in a mode in which the processing selection unit controls the vehicle, the image processing device does not need to include a vehicle control unit.
[0067] (2) In the above embodiment, the vehicle control unit 60 has a first mode MD1 and a second mode MD2. For example, in a mode in which the vehicle is driven by the user until a numerical value is acquired by the element acquisition unit, the vehicle control unit may not have the second mode and may have only the first mode, and control by the vehicle control unit may not be performed while the image processing unit is not selected by the processing selection unit. Also, in a mode in which the image processing unit is selected by the processing selection unit immediately after the vehicle is turned on, the second mode may not be executed.
[0068] E5: Alternative embodiment 5: (1) In the above embodiment, while the second mode MD2 is being executed, the first image processing unit 30 and the second image processing unit 40 execute arithmetic processing, and in the first mode MD1, the vehicle VW is controlled based on the arithmetic processing data output by one of the first image processing unit 30 and the second image processing unit 40. Note that, for example, in a mode in which the vehicle control unit does not have the second mode, while the image processing unit is not selected by the processing selection unit, for example, only the arithmetic processing by the first image processing unit may be executed, and arithmetic processing may not be executed by both the first image processing unit and the second image processing unit. Also, for example, in a mode in which the vehicle control unit does not have the second mode, the processing selection unit that receives a signal indicating the numerical value acquired by the element acquisition unit may select an image processing unit, and then the selected image processing unit may receive image data from the imaging unit and execute arithmetic processing.
[0069] E6: Other embodiment 6: (1) In the above fourth embodiment, the third element acquisition unit 20D acquires a numerical value representing the intensity of the element based on the image generated by the imaging unit 10. For example, the element acquisition unit may include an illuminance sensor and an illuminance processing unit that acquires a numerical value representing the intensity of the element based on the image generated by the imaging unit, and may acquire the numerical value representing the intensity of the element by using the illuminance processing unit and the illuminance sensor in combination. In this aspect, the image processing unit may be selected by the processing selection unit based on the smaller numerical value of the numerical values acquired by the illuminance processing unit and the illuminance sensor. Also, in this aspect, when an abnormality occurs in the illuminance sensor, the processing selection unit may select the image processing unit as a substitute for the illuminance sensor, using the numerical value acquired by the illuminance processing unit.
[0070] (2) The element acquisition unit may acquire a numerical value representing the intensity of rain by using the net information unit, the rainfall detection unit, and the imaging unit in combination.
[0071] E7: Other embodiment 7: (1) In the second embodiment, the second element acquisition unit 20B includes a net information unit 210B and a rainfall detection unit 220B. Note that, for example, the element acquisition unit may include only one of the net information unit and the rainfall detection unit.
[0072] (2) In the second embodiment, the net information unit 210B and the rainfall detection unit 220B output the amount of rainfall that falls per square meter in one second. For example, the net information unit and the rainfall detection unit may output the amount of rainfall that falls per square meter in one minute.
[0073] (3) In the second embodiment, the process selection unit 50 selects an image processing unit by using the larger of the first numerical value FN and the second numerical value SN as the numerical value representing the intensity of rain acquired by the second element acquisition unit 20B. Note that, for example, the second element acquisition unit may transmit a signal indicating the larger of the first numerical value and the second numerical value to the process selection unit.
[0074] Also, for example, when the net information unit and the rainfall detection unit each acquire a value equal to or greater than a predetermined threshold, they may transmit a signal indicating that rain has been detected and a signal indicating the value to the processing selection unit, and the processing selection unit may select an image processing unit based on the received value. In this embodiment, when either the net information unit or the rainfall detection unit detects rain, the processing selection unit may select an image processing unit. When it is raining in the environment in which the vehicle is traveling, the image processing unit is quickly selected, enabling highly accurate calculation processing.
[0075] E8: Other embodiment 8: In the first embodiment, the first threshold T1 is the brightness intensity of the image data when the accuracy of the first image processing unit 30 is equal to the accuracy of the second image processing unit 40 when the first image processing unit 30 and the second image processing unit 40 each perform arithmetic processing on a plurality of images with different brightness prepared by an operator, and the first range FR1 is a range of values larger than the first threshold T1. For example, the first range of brightness may refer to a range larger than the brightness intensity inside a tunnel. In this specification, the brightness intensity inside a tunnel is either the average road surface luminance of the basic lighting of the tunnel as defined in the Road Lighting Facility Installation Standards of the Ministry of Land, Infrastructure, Transport and Tourism, or a range larger than the road surface luminance of each part of the entrance lighting as defined in the Road Lighting Facility Installation Standards of the Ministry of Land, Infrastructure, Transport and Tourism.
[0076] The present disclosure is not limited to the above-mentioned embodiments and modifications, and can be realized in various configurations without departing from the spirit of the present disclosure. For example, the technical features in the embodiments and modifications corresponding to the technical features in each aspect described in the Summary of the Invention column can be appropriately replaced or combined in order to solve some or all of the above-mentioned problems or to achieve some or all of the above-mentioned effects. Furthermore, if a technical feature is not described as essential in this specification, it can be appropriately deleted. [Explanation of symbols]
[0077] 1, 1B, 1C, 1D...image processing device, 10...imaging section, 20...first element acquisition section, 20B...second element acquisition section, 20D...third element acquisition section, 30, 30B...first image processing section, 31...NPU of first image processing section, 32...processor of first image processing section, 33...memory of first image processing section, 40, 40B...second image processing section, 41...NPU of second image processing section, 42...processor of second image processing section, 43...memory of second image processing section, 50...processing Selection unit, 51...processor of processing selection unit, 52...memory of processing selection unit, 60...vehicle control unit, 61...processor of vehicle control unit, 62...ROM, 63...RAM, 210B...net information unit, 220B...rainfall detection unit, FN...first numerical value, FR...windshield, FR1, FR2...first range, MD1...first mode, MD2...second mode, SN...second numerical value, SR1, SR2...second range, T1...first threshold, T2...second threshold, VW...vehicle
Claims
1. An image processing device (1) mounted on a vehicle (VW), An imaging unit (10) that captures an image of an object and generates an image including the object; one or more element acquisition units (20) for acquiring numerical values representing respective intensities of one or more elements of the environment surrounding the vehicle; a first image processing unit (30) capable of performing arithmetic processing on the image using a first neural network model; a second image processing unit (40) capable of performing computations on the image using a second neural network model; a processing selection unit (50) that selects an image processing unit to execute a calculation process on the image from among the first image processing unit and the second image processing unit; Equipped with For some of the elements, in a first range of intensity, the accuracy of the first image processing unit is higher than the accuracy of the second image processing unit, and in a second range lower than the first range, the accuracy of the second image processing unit is higher than the accuracy of the first image processing unit; The processing selection unit An image processing device that selects an image processing unit to execute arithmetic processing based on a numerical value representing the intensity of the element acquired by the one or more element acquisition units (10).
2. 2. The image processing device according to claim 1, An image processing device wherein, for the other elements, in a first range of intensity, the accuracy of the second image processing unit is higher than the accuracy of the first image processing unit, and in a second range lower than the first range, the accuracy of the first image processing unit is higher than the accuracy of the second image processing unit.
3. 2. The image processing device according to claim 1, An image processing device, wherein, for brightness among the one or more elements, in the first range, the accuracy of the calculation processing of the first image processing unit is higher than the accuracy of the calculation processing of the second image processing unit, and in the second range, the accuracy of the calculation processing of the second image processing unit is higher than the accuracy of the calculation processing of the first image processing unit.
4. 4. The image processing device according to claim 1, Further, a vehicle control unit (60) is provided for controlling the vehicle based on data obtained by the arithmetic processing, The vehicle control unit includes: a first mode (MD1) in which control is performed based on the image processing unit selected by the processing selection unit; a second mode (MD2) in which the vehicle is controlled based on the data of the arithmetic processing output by the first image processing unit, not based on the image processing unit selected by the processing selection unit; Equipped with The image processing device controls the vehicle in the second mode while the processing selection unit is not selecting the image processing unit.
5. 5. The image processing device according to claim 4, While the second mode is being executed by the vehicle control unit, the first image processing unit and the second image processing unit perform arithmetic processing; The vehicle control unit includes: an image processing device that, in the first mode, controls the vehicle based on data of arithmetic processing output by the image processing unit selected by the processing selection unit out of the first image processing unit and the second image processing unit.
6. 2. The image processing device according to claim 1, The element acquisition unit (20D) is an image processing device that acquires a numerical value representing an intensity of an element of the environment around the vehicle based on the image generated by the imaging unit.
7. 2. The image processing device according to claim 1, Among the one or more element acquisition units, one of the element acquisition units is a network information unit (210B) for acquiring a first numerical value (FN) representing the intensity of rain through a network; A detection unit (220B) that directly detects rain around the vehicle to obtain a second numerical value (SN) representing the intensity of the rain, outputting the first numerical value and the second numerical value; The processing selection unit uses the larger of the first and second numerical values as a numerical value representing the intensity of the rain acquired by the element acquisition unit, and selects the image processing unit.
8. 2. The image processing device according to claim 1, The first range of brightness of the one or more elements is: An image processing device, which is a range greater than the numerical value that represents the intensity of light inside the tunnel.
Citation Information
Patent Citations
Object recognition device, model information generation device, object recognition method, and object recognition program
JP2018041209A
Object recognition device, object recognition method, and object recognition program
WO2020090251A1
Image recording device, image recording method, and image recording program
JP2021052350A
