Image adjustment device, image adjustment method, and program
The image adjustment device dynamically adjusts the gain or offset of far-infrared cameras to prevent saturation, ensuring high temperature resolution and accurate object recognition in far-infrared images, addressing the challenges of pixel output variations and temperature differences.
Patent Information
- Application Number
- PCT/JP2024/003061
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-02-21
- Filing Date
- 2024-01-31
- Publication Date
- 2024-08-29
AI Technical Summary
Far-infrared cameras face challenges in capturing images with high temperature resolution without saturation, as variations in pixel output values lead to signal processing limitations and abnormal image output, especially when imaging objects with different temperatures.
An image adjustment device and method that acquires and processes far-infrared images by detecting saturated pixels, selecting target objects, and dynamically adjusting the gain or offset of the image sensor to prevent saturation, ensuring high temperature resolution and accurate object recognition.
Enables the capture of far-infrared images with high temperature resolution and prevents pixel saturation, allowing for clear identification of objects, even in environments with varying temperatures, thereby improving image quality and object recognition.
Smart Images

Figure JP2024003061_29082024_PF_FP_ABST
Abstract
Description
Image adjustment device, image adjustment method, and program
[0001] The present disclosure relates to an image adjustment device, an image adjustment method, and a program.
[0002] Patent Literature 1 discloses a vehicle display control device mounted on a vehicle. This vehicle display control device acquires a visible light image and an infrared image. The vehicle display control device detects an object outside the vehicle based on the infrared image. The control device detects an overlapping area from the infrared image based on the range of the visible light image outside the vehicle. When the object is present within the overlapping area, the control device superimposes information about the object on the visible light image and transmits it as a display image.
[0003] JP 2014-191668 A
[0004] Some far-infrared camera image sensors use bolometers that generate heat upon receiving far-infrared rays. With far-infrared cameras using bolometers, even when capturing an image of a uniform temperature surface such as a blackbody furnace, the output values of each pixel are not uniform and vary from pixel to pixel. Furthermore, as the ambient temperature increases, the variation in output values from each pixel tends to increase.
[0005] In far-infrared cameras, the temperature resolution is determined by setting the gain. However, if the temperature resolution is set high (to enable the capture of minute temperature differences), the effect of variations in the output value of each pixel becomes greater. Therefore, when the temperature of the imaging environment is high or when imaging a high-temperature object, the signal processing range of the far-infrared camera may be exceeded, and the pixel output value may become saturated. On the other hand, if the temperature resolution is lowered to prevent saturation, different objects with different temperatures may appear to be the same object. On the other hand, the temperature measurement range can be adjusted by offsetting. When the pixel output value becomes saturated, it can be adjusted to a non-saturated output value by offsetting.
[0006] In view of the above-mentioned problems, the present disclosure aims to provide an image adjustment device and an image adjustment method that can acquire far-infrared images with high temperature resolution and no saturation of a target object that is the subject of imaging by a far-infrared camera.
[0007] An image adjustment device according to one aspect of this embodiment includes a first image acquisition unit that acquires a first image captured by a first imaging element, a second image acquisition unit that acquires a second image captured by a second imaging element that detects far-infrared light, an object detection unit that detects an object included in the first image, a selection unit that selects a target object from the objects included in the first image by referring to priority information assigned according to the temperature of the object, an area identification unit that identifies a judgment area in the second image that includes the target object, a counting unit that counts saturated pixels in the judgment area, a judgment unit that judges whether the ratio of saturated pixels in the judgment area is equal to or greater than a threshold, and a modification unit that modifies a gain or offset value in the second imaging element if the ratio is equal to or greater than the threshold.
[0008] An image adjustment method according to one aspect of this embodiment includes the steps of acquiring a first image captured by a first imaging element, acquiring a second image captured by a second imaging element that detects far-infrared light, detecting an object included in the first image, selecting a target object from the objects included in the first image by referring to priority information assigned according to the temperature of the object, identifying a judgment area in the second image that includes the target object, counting saturated pixels in the judgment area, determining whether the ratio of saturated pixels in the judgment area is equal to or greater than a threshold, and, if the ratio is equal to or greater than the threshold, changing a gain or offset value in the second imaging element.
[0009] A program according to one aspect of this embodiment causes a processor that controls an image adjustment device to execute the following steps: acquiring a first image captured by a first imaging element; acquiring a second image captured by a second imaging element that detects far-infrared light; detecting an object included in the first image; selecting a target object from among the objects included in the first image by referring to priority information given according to the temperature of the object; identifying a judgment area in the second image that includes the target object; counting saturated pixels in the judgment area; determining whether the ratio of saturated pixels in the judgment area is equal to or greater than a threshold; and, if the ratio is equal to or greater than the threshold, changing a gain or offset value in the second imaging element.
[0010] According to the present embodiment, it is possible to provide an image adjustment device, an image adjustment method, and a program that can acquire a far-infrared image with high temperature resolution and no saturation of a target object that is the image capture target.
[0011] 1 is a diagram schematically showing the configuration of an imaging system; FIG. 2 is a diagram showing far-infrared images before and after correction; FIG. 3 is a diagram for explaining pixel data when there is little variation in output characteristics; FIG. 4 is a diagram for explaining pixel data when there is large variation in output characteristics; FIG. 5 is a block diagram showing the configuration of a far-infrared camera of the imaging system; FIG. 6 is a block diagram showing the configuration of a control device of the imaging system; FIG. 7 is a diagram showing an example of an object detected by an object detection unit; FIG. 8 is a diagram showing an example of a target object selected by a selection unit; FIG. 9 is a diagram showing an example of a determination area specified by a region specification unit; FIG. 10 is a diagram showing an example of a determination area specified by the region specification unit based on environmental information; FIG. 11 is a diagram showing an example of a target object selected by a selection unit based on environmental information; and FIG. 12 is a flowchart showing an image adjustment method.
[0012] Hereinafter, specific embodiments to which the present invention is applied will be described in detail with reference to the drawings. However, the present invention is not limited to the following embodiments. In addition, the following description and drawings have been simplified as appropriate for clarity of explanation.
[0013] The imaging system according to this embodiment can be mounted on a moving object such as a vehicle. For example, the imaging system can be used as an in-vehicle device such as a drive recorder. The imaging system can also be used as a surveillance camera or a security camera.
[0014] Fig. 1 is a block diagram showing a schematic system configuration of an imaging system according to this embodiment. The imaging system 1 according to this embodiment includes a visible light camera 2, a far-infrared camera 3, and a control device 4. Note that although the example of the imaging system 1 shown in Fig. 1 further includes a display 7, the imaging system 1 does not necessarily have to include the display 7.
[0015] The visible light camera 2 detects visible light and captures an image of a subject. The visible light camera 2 may capture moving images or a series of still images. The image captured by the visible light camera 2 is referred to as a visible light image or a first image. The visible light camera 2 is connected to the control device 4 via wireless or wired communication. The visible light camera 2 captures an image of a subject at a predetermined angle of view.
[0016] Specifically, the visible light camera 2 includes a lens unit 21 and an image sensor 22. The image sensor 22 is a photodetector such as a charge-coupled device (CCD) sensor or a complementary metal-oxide-semiconductor (CMOS) sensor. The image sensor 22 includes a plurality of pixels (light-receiving elements) arranged in horizontal and vertical directions. The lens unit 21 is disposed on the incident side of the image sensor 22. The lens unit 21 forms an image of a subject on the image sensor 22. The image sensor 22 detects visible light refracted by the lens unit 21. The lens unit 21 includes at least one lens. For example, the lens unit 21 may include multiple lenses, such as a zoom lens and a focus lens. The image sensor 22 is also referred to as a first image sensor.
[0017] The far-infrared camera 3 detects far-infrared light (also called far-infrared rays) and captures an image of a subject. The far-infrared camera 3 captures moving images. Alternatively, the far-infrared camera 3 captures a series of still images. The images captured by the far-infrared camera 3 are defined as far-infrared images, thermal images, or second images. The far-infrared camera 3 is connected to the control device 4 via wireless or wired communication. The far-infrared camera 3 captures an image of a subject at a predetermined angle of view.
[0018] The far-infrared camera 3 includes a lens unit 31 and an image sensor 32. The image sensor 32 is a photodetector such as a microbolometer. The image sensor 32 may be a thermal (uncooled) element or a quantum (cooled) element. The image sensor 32 includes a plurality of pixels arranged in horizontal and vertical directions. The lens unit 31 is disposed on the incident side of the image sensor 32. The lens unit 31 forms an image of the subject on the image sensor 32. The image sensor 32 detects far-infrared light refracted by the lens unit 31. The lens unit 31 may include a plurality of lenses, such as a zoom lens and a focus lens. The image sensor 32 is also referred to as a second image sensor. The output bit width of the far-infrared camera 3 is, for example, 10 to 14 bits.
[0019] The far-infrared camera 3 and the visible light camera 2 may be installed separately as long as they can capture images in the same direction and have the same capture range or one captures the other's range. The relative mounting position and mounting direction of the visible light camera 2 with respect to the far-infrared camera 3 are known.
[0020] The far-infrared camera 3 and the visible light camera 2 may be arranged coaxially. In this case, a beam splitter or the like that splits the far-infrared light and the visible light may be provided in front of the far-infrared camera 3 and the visible light camera 2.
[0021] The control device 4 has a hardware configuration of a typical computer, including, for example, a processor 4a such as a CPU (Central Processing Unit) or a GPU (Graphics Processing Unit), an internal memory 4b such as a RAM (Random Access Memory) or a ROM (Read Only Memory), a storage device 4c such as an HDD (Hard Disk Drive) or an SSD (Solid State Drive), an input / output I / F 4d for connecting peripheral devices such as the display 7, and a communication I / F 4e for communicating with devices outside the device. The control device 4 can perform image processing and control, which will be described later, by executing a computer program stored in the storage device 4c.
[0022] The control device 4 is communicably connected to the display 7. The control device 4 may be connected to the display 7 by wire or wirelessly. The control device 4 performs image processing on the far-infrared image data. The control device 4 may then cause the display 7 to display the far-infrared image. The control device 4 may also cause the display 7 to display the visible light image.
[0023] The display 7 is a display device including, for example, a liquid crystal panel or an organic electroluminescence panel, and is provided in a position where it can be viewed by a user. The display 7 displays the image captured by the far-infrared camera 3 via the control device 4.
[0024] With the above-described configuration, the control device 4 displays the far-infrared image captured by the far-infrared camera 3 on the display 7 in a manner that is visible to the user. This allows the control device 4 to make the user aware of surrounding objects. If the imaging system 1 does not include the display 7, the control device 4 may be able to store the far-infrared image captured by the far-infrared camera 3 in an external storage device (not shown). Furthermore, the control device 4, the far-infrared camera 3, and the display 7 may be configured as an integrated imaging device.
[0025] Below, we will explain the issues that arise when using a far-infrared camera 3 that captures far-infrared images. The control device 4 performs NUC (Non-Uniformity Correction) on the far-infrared image data. NUC corrects variations in pixel output. Figure 2 shows an image before correction (before NUC) and an image after correction (after NUC). Figure 2 is a far-infrared image captured of a uniform surface (blackbody furnace) with a uniform temperature.
[0026] The image before correction shows unevenness, which means that there is variation in pixel output. In other words, even when capturing an image of a subject with a uniform temperature, there is variation in the output characteristics of the bolometers of each pixel.
[0027] The output variation tends to increase as the ambient temperature of the image sensor 32 rises, even after correction. Furthermore, the output of the bolometer is an AD-converted digital signal, and the bit width of its output range is limited. For example, the output bit width of a bolometer is often 10 to 14 bits. Therefore, if the pixel output value exceeds this range, saturation occurs, preventing normal signal processing and resulting in the output of an abnormal image.
[0028] The output characteristics when the gain of the image sensor 32 is low and when it is high will be explained using FIGS. 3 and 4. FIGS. 3 and 4 show pixel output value data of the image sensor 32 in a far-infrared image of a subject at a uniform temperature. The horizontal axis represents the ambient temperature, and the vertical axis represents the pixel output value of the image sensor 32. Here, the signal processing range of the pixel output value is 14 bits wide. Furthermore, the two lines in each diagram represent the maximum output value and the minimum output value that occur due to variations in the pixel output value. FIG. 3 shows the output characteristics when the gain is low, and FIG. 4 shows the output characteristics when the gain is high.
[0029] As the ambient temperature rises, the output value also increases. Furthermore, as the ambient temperature rises, the variation between the two pixels also increases. In Figure 3, because the gain is low, the variation is not that great and is within the signal processing range, so there is no problem.
[0030] In Fig. 4, the gain is set higher than in Fig. 3. Therefore, the variation in output value in response to an increase in the environmental temperature becomes larger than in Fig. 3.
[0031] Graph A shown by the dotted line in Figure 4 is an example of characteristics when the gain is high. As the ambient temperature rises, the output value rises rapidly. Therefore, when the ambient temperature becomes high, the 14-bit signal processing range is exceeded, causing saturation (area C). When this phenomenon occurs, signal processing breaks down and normal images cannot be output. To avoid this state, it is necessary to lower the offset of the sensor output to become like graph B shown by the solid line in Figure 4. In graph B shown by the solid line in Figure 4, the output value is kept within the signal processing range. In other words, even in high ambient temperatures, the far-infrared camera 3 can output normal images.
[0032] In this embodiment, the control device 4 detects an object and sets the gain and offset of the image sensor 32. This prevents the object from appearing abnormally in the image due to saturation. The control device 4 can always output a normal image.
[0033] Next, the configuration of the far-infrared camera 3 will be described. Fig. 5 is a block diagram showing a schematic detailed configuration of the far-infrared camera 3. The far-infrared camera 3 includes a lens unit 31, an image sensor 32, a data storage unit 33, an adjustment unit 34, a temperature sensor 35, and a transmission device 36. The data storage unit 33, the adjustment unit 34, etc. may be mounted on a control circuit including an MCU (Micro Controller Unit), or may be mounted on the control device 4. The far-infrared camera 3 may also include a shutter (not shown), etc.
[0034] The lens unit 31 forms an image of far-infrared light from a subject on the light receiving surface of the image sensor 32. The lens unit 31 has at least one lens. For example, the lens unit 31 may have multiple lenses such as a zoom lens and a focus lens.
[0035] The imaging element 32 has a plurality of pixels. Each pixel of the imaging element 32 receives infrared light from the subject. This allows a far-infrared image of the subject to be captured. For example, the imaging element 32 has a microbolometer for detecting far-infrared light. The imaging element 32 has a plurality of pixels arranged in a two-dimensional array. The detection values (detection signals) of each pixel form a far-infrared image of the subject.
[0036] The transmission device 36 serves as an interface for transmitting various signals and data to the control device 4. The transmission device 36 transmits far-infrared image data to the control device 4. The transmission device 36 also receives control signals from the control device 4. For example, the transmission device 36 receives control signals for correcting offset or gain, which will be described later. Furthermore, the transmission device 36 may transmit lens information related to the zoom and focus of the lens unit 31. The transmission device 36 or the adjustment unit 34 may have an A / D converter that converts analog signals into digital signals.
[0037] The temperature sensor 35 measures the temperature in the environment in which the far-infrared camera 3 is used. Since the temperature sensor 35 is mounted inside the far-infrared camera 3, the temperature measured by the temperature sensor 35 is regarded as the internal temperature (also referred to as the environmental temperature). The internal temperature is used for adjustment by the adjustment unit 34. Specifically, the adjustment unit 34 uses different tables depending on the internal temperature.
[0038] The data storage unit 33 stores adjustment data for adjusting the detection value of each pixel of the image sensor 32. The adjustment data includes gain and offset values and is in, for example, a table format. The gain table is a table that indicates the gain value set for each pixel. The offset table is a table that indicates the offset value set for each pixel.
[0039] The adjustment unit 34 adjusts the output value of the imaging element 32. Specifically, the adjustment unit 34 reads out the offset and gain for adjustment stored in the data storage unit 33 and adjusts the output value of the imaging element 32. Then, the adjustment unit 34 outputs the adjusted output value to the transmission device 36. In other words, a collection of the output values adjusted by the adjustment unit 34 forms far-infrared image data.
[0040] Here, gain is a value that adjusts the temperature resolution that can be captured, and offset is a value that adjusts the temperature measurement range. If the adjusted output value is higher than the signal processing range, saturation occurs. If there are many saturated pixels in the far-infrared image data, the image will be abnormal, making it difficult to recognize objects. For this reason, far-infrared cameras are usually set up with a table of gain and offset values that correspond to the environmental temperature.
[0041] The data storage unit 33 stores, for example, a table for low temperatures, a table for room temperatures, and a table for high temperatures. When the internal temperature is below the first threshold temperature, the table for low temperatures is used. When the internal temperature is equal to or higher than the second threshold temperature, the table for high temperatures is used. The first threshold temperature is a temperature lower than the second threshold temperature. The table for room temperatures is used in the range equal to or higher than the first threshold temperature and lower than the second threshold temperature. A gain table and an offset table are set for each temperature range. Of course, the temperature setting range for switching tables is not limited to three stages. For example, tables may be switched within a two-stage setting range. The adjustment unit 34 switches and uses tables depending on the internal temperature. In other words, the adjustment unit 34 reads out a table corresponding to the internal temperature.
[0042] In this way, the gain and offset are changed depending on the internal temperature. However, if a high-temperature object is captured in the far-infrared image, saturation may occur even if the gain and offset are adjusted according to the internal temperature. The control device 4 changes the setting of at least one of the gain and offset based on the results of image processing, which will be described later. This prevents the far-infrared image from becoming an abnormal image as described above.
[0043] The occurrence of abnormal images can be avoided by changing the gain and offset settings. Therefore, the control device 4 determines whether or not the gain and offset settings should be changed. Then, based on the determination result, the gain and offset values are changed. In this way, it is possible to prevent the generation of abnormal images. Whether saturation of pixel output values has occurred is determined by determining within the range of one object.
[0044] The imaging system 1 is used, for example, as an in-vehicle device. In midsummer, the road surface is heated by sunlight during the day and the temperature does not drop even at night. At night, backlight from other vehicles can make objects invisible to the naked eye or the visible light camera 2, but the far-infrared camera 3 can capture images of pedestrians and other objects. Under these circumstances, the far-infrared camera 3 requires an appropriate temperature resolution. Setting the output value of the far-infrared camera 3 to include high-temperature objects can result in the pixel output values of objects approaching each other, potentially causing one object to appear similar in color to another object with a similar temperature, making it difficult to recognize them as separate objects. This could result in the road surface and pedestrian temperatures approaching each other, resulting in an image in which the road surface and pedestrians are indistinguishable. Therefore, the control device 4 allows output values to saturate for high-temperature objects that do not affect driving. On the other hand, the control device 4 can adjust the image so that objects that affect driving can be distinguished by increasing the temperature resolution of the far-infrared camera.
[0045] 6 is a control block diagram showing the configuration of the control device 4. The control device 4 includes a visible light image acquisition unit 41, a far-infrared image acquisition unit 42, an object detection unit 43, a selection unit 44, an area identification unit 51, a counting unit 52, a determination unit 53, and a change unit 54. The control device 4 may further include an environmental information acquisition unit 56, a NUC unit 61, an AGC (Auto Gain Control) unit 62, and a video output unit 63.
[0046] The visible light camera 2 is connected to the visible light image acquisition unit 41. The visible light image acquisition unit 41 acquires visible light images captured by the visible light camera 2. The visible light image acquisition unit 41 is also referred to as a first image acquisition unit. The visible light image acquired by the visible light image acquisition unit 41 is also referred to as a first image.
[0047] The far-infrared camera 3 is connected to the far-infrared image acquisition unit 42. The far-infrared image acquisition unit 42 acquires a far-infrared image taken by the far-infrared camera 3. The far-infrared image acquisition unit 42 is also referred to as a second image acquisition unit. The far-infrared image acquired by the far-infrared image acquisition unit 42 is also referred to as a second image.
[0048] The object detection unit 43 detects objects included in the visible light image. For example, the object detection unit 43 detects objects captured in the visible light image by performing image processing on the visible light image. For example, the object detection unit 43 detects humans (pedestrians), bicycles, motorcycles, automobiles, animals such as dogs, buildings, streetlights, the sun, roads, etc. Note that the objects here include humans and animals. The object detection unit 43 can identify objects by image processing such as edge detection and pattern matching. The object detection unit 43 may detect objects using a machine learning model such as a CNN (Convolutional Neural Network).
[0049] FIG. 7 is a diagram showing an example of objects detected by the object detection unit 43. The visible light image P1 includes vehicles V1 to V4, streetlights L1 to L2, the sun S, buildings B1 to B6, and roads R1 to R2. The object detection unit 43 detects each of these objects through image processing. The object detection unit 43 detects pixel addresses corresponding to the position and size of each object. This identifies the area in the visible light image in which each object appears. Attribute information indicating the type and name of each object is then attached to each object. The object detection unit 43 stores data indicating the detection results in a memory or the like.
[0050] The selection unit 44 selects target objects that affect driving from among the objects included in the visible light image. For example, the selection unit 44 stores priority information indicating the priority of each object for selection as a target object. The priority information is given according to the type of object. Here, the selection unit 44 does not select objects with extremely high temperatures as target objects.
[0051] Objects that affect driving are, for example, objects that require attention for safe driving. Specifically, these include vehicles, motorcycles, pedestrians, and bicycles, with priority set in the following order: vehicles, motorcycles, pedestrians, and bicycles. On the other hand, objects with temperatures above a predetermined temperature are not selected as target objects. Examples of high-temperature objects above a predetermined temperature include the sun, streetlights, lava, and hot springs that are too hot for humans to enter. In midsummer, asphalt roads and black buildings may be considered high-temperature objects. Furthermore, when a vehicle is captured in a visible light image, parts of the vehicle may be identified and identified as objects. For example, in a vehicle image, high-temperature parts such as the muffler or hood may be identified. Using gains and offsets set for extremely high-temperature objects may result in inappropriate imaging of objects at normal temperatures. In other words, other vehicles and pedestrians may not be imaged with appropriate temperature resolution. Therefore, such high-temperature objects are excluded from candidate target objects and are not selected as target objects. However, even high-temperature objects may be prioritized as necessary.
[0052] The priority of objects may be set in order of expected temperature, excluding extremely hot objects. For example, it is expected that a vehicle will be hotter than a motorcycle, a person, a bicycle, etc. Therefore, a vehicle has a higher priority than a motorcycle, a person, or a bicycle. For example, priority information indicating the priority according to the temperature of an object is stored in a memory or the like. The selection unit 44 then selects a target object by referring to the priority information data. In other words, the selection unit 44 selects the object with the highest priority among the objects detected from the visible light image as the target object. Of course, the number of target objects is not limited to one, and two or more target objects may be selected. When selecting two or more target objects, the selection unit 44 sets the number of priorities to be selected as target objects.
[0053] In far-infrared images, objects that need to be captured properly without saturation may be assigned a higher priority. For example, if the imaging system 1 is a security system, it is desirable to capture properly images of people, robots in the building, devices installed in the building, etc. that appear on the camera. Therefore, objects that require special attention may be assigned a higher priority in order to prevent pixel saturation. Therefore, proper imaging can be achieved by adjusting the gain and offset settings to those objects with higher priorities.
[0054] FIG. 8 is a diagram illustrating an example of selecting a target object with reference to priority. The visible light image P2 shown in FIG. 8 includes a vehicle V1, people H1 to H3, the sun S, and streetlights L1 to L2. That is, the object detection unit 43 detects the vehicle V1, people H1 to H3, the sun S, and streetlights L1 to L2. Here, the sun S and streetlights L1 to L2 are high-temperature objects, and therefore are not target objects (no priority is assigned to them). Furthermore, vehicles have a higher priority than people. Therefore, the selection unit 44 selects the vehicle V1 as the target object.
[0055] The region identification unit 51 identifies a determination region including the target object in the far-infrared image. The region identification unit 51 converts pixel addresses in the visible light image into pixel addresses in the far-infrared image based on the relative position and direction of the far-infrared camera 3 with respect to the visible light camera 2. In this way, the region identification unit 51 can identify a determination region corresponding to the target object. As shown in FIG. 8 , the region identification unit 51 sets a rectangular region including the vehicle V1 as a determination region RV1. Of course, the shape of the determination region identified by the region identification unit 51 is not limited to a rectangular frame. For example, the determination region may have a shape corresponding to the outline of the object. Furthermore, the determination region does not have to include the entire target object. In other words, it is sufficient that the determination region includes at least a part of the target object.
[0056] The relative mounting position and mounting direction of the visible light camera 2 with respect to the far-infrared camera 3 are known. The area specifying unit 51 stores data relating to the relative mounting position and mounting direction. The area specifying unit 51 has a conversion formula and a conversion table for converting pixel addresses of the visible light image into pixel addresses of the image sensor 32. The conversion formula and the conversion table can be created based on design data for the mounting position and mounting direction.
[0057] Furthermore, if the target object includes a high-temperature part that is equal to or higher than a predetermined temperature, the high-temperature part may be excluded from the determination region. For example, the hood or muffler of the vehicle V1 may become extremely hot. The high-temperature part, such as the hood or muffler, may be excluded from the determination region RV1. In other words, the region identification unit 51 may identify, as the determination region, the part of the range in which the target object is captured, excluding the high-temperature object.
[0058] The counting unit 52 counts the number of saturated pixels in the determination area. For example, if the brightness level of each pixel in the image data is expressed in 8 bits ranging from 0 to 255, a pixel at a coordinate having a brightness level of 255 is called a saturated pixel. Alternatively, the counting unit 52 may also count a pixel at a coordinate having a pixel output value equal to or greater than a predetermined value as a saturated pixel.
[0059] The determination unit 53 determines whether the ratio of saturated pixels in the determination region is equal to or greater than a threshold. For example, the determination unit 53 calculates the ratio of saturated pixels by dividing the number of saturated pixels in the determination region by the total number of pixels in the determination region. The determination unit 53 compares the ratio of saturated pixels in the determination region with a threshold. If the ratio of saturated pixels in the determination region corresponding to the target object is equal to or greater than the threshold, the determination unit 53 determines that the target object is not being imaged with an appropriate temperature resolution or measurement range. The determination unit 53 determines that gain or offset correction is necessary. The threshold for determining whether correction is necessary may be set in advance. For example, the threshold may be set according to the type of target object, or a constant threshold may be set regardless of the type of target object. The determination unit 53 may change the threshold according to the type of target object or its area on the image.
[0060] When the ratio of saturated pixels is equal to or greater than a threshold, the change unit 54 changes at least one of the gain and offset of the far-infrared camera 3. For example, the change unit 54 outputs a control signal to the far-infrared camera 3 to lower the offset. This corrects the offset value stored in the data storage unit 33. For example, the adjustment unit 34 adjusts the pixel output value using a value obtained by correcting the offset table value so that it is reduced by a certain value. In other words, the adjustment unit 34 adjusts the pixel output value using the correction table in which the offset value has been corrected.
[0061] The correction amount of the offset value may be a preset fixed value. Alternatively, the correction amount of the offset value may be set according to the saturation ratio or may be set according to the type of object. Furthermore, the change unit 54 may change both the gain and the offset, or may correct only the offset. Furthermore, the change unit 54 may correct only the gain. When correcting the gain, the correction amount of the gain may be a preset fixed value, similar to the correction amount of the offset value, or may be set according to the saturation ratio.
[0062] Graph B in Fig. 4 shows an example of changing the offset to prevent pixel saturation. The change unit 54 changes the offset so that the saturated pixel output falls within the signal processing range (14 bits in Fig. 4). Therefore, even if there is variation in the output value, it is possible to prevent the pixels in the determination region corresponding to the target object from becoming saturated, and an appropriate far-infrared image can be captured.
[0063] As described above, the NUC unit 61 performs NUC processing on the far-infrared image. The AGC unit 62 performs auto gain control processing on the far-infrared image that has been subjected to NUC processing. This makes it possible to adjust the brightness of the far-infrared image. The video output unit 63 outputs the far-infrared image that has been subjected to AGC processing to the display 7. Therefore, the display 7 can display an appropriately captured far-infrared image.
[0064] In other words, an object that requires caution when driving is selected as the target object. If pixel saturation is observed in the determination area corresponding to the target object, the change unit 54 changes the gain or offset value. This allows far-infrared images to be captured with appropriate temperature resolution and measurement range.
[0065] Furthermore, the selection unit 44 assigns a low priority to objects that are unlikely to affect driving. Alternatively, objects that are unlikely to affect driving may not be selected as target objects. For example, distant objects such as the sun, street lights, and lava are not selected as target objects. These objects do not affect driving, so pixel saturation is allowed. In other words, even if these objects are hot, the driver does not need to pay attention to them, so the objects may be saturated in the far-infrared image. In other words, by excluding objects that do not affect driving, the gain and offset are appropriately set.
[0066] In this embodiment, the settings of the far-infrared camera 3 can be optimized while taking into consideration variations in pixel output values, thereby improving the temperature resolution of the subject and enabling the acquisition of far-infrared images without saturation.
[0067] Next, processing when there are multiple objects with the highest priority will be described with reference to FIG. 9 . Image P3 shown in FIG. 9 includes multiple vehicles V1 to V4. That is, the object detection unit 43 detects multiple vehicles V1 to V4. Here, vehicles V1 to V4 have the same attributes, and therefore have the same highest priority. In this case, the selection unit 44 selects, as the target object, vehicle V1, which occupies the largest area in the image P3, from among vehicles V1 to V4. Of vehicles V1 to V4, vehicle V1 occupies the largest area in the image. Therefore, the selection unit 44 selects vehicle V1, which occupies the largest area in the image, as the target object. Then, the region identification unit 51 identifies a determination region RV1 corresponding to vehicle V1. Note that, although the vehicle with the largest area in the image is defined as the target object here, any object with an image size equal to or larger than a predetermined size may also be defined as the target object.
[0068] In this way, the determination unit 53 can make a determination with high accuracy. For example, since the target object is captured over a larger range, the region specification unit 51 can specify a wider determination region RV1. This allows the determination unit 53 to increase the number of pixels used for determination, thereby enabling more accurate determination.
[0069] Furthermore, priorities may be set according to the color or material of the object. For example, even if the vehicles are the same, a black vehicle is more likely to become hotter due to light absorption than a white vehicle. Therefore, the priority of the black vehicle is set higher and the priority of the white vehicle is set lower. In this way, the selection unit 44 can select an object with a high temperature as the target object. Therefore, by prioritizing objects that are easily saturated, it is possible to prevent abnormal images from being generated.
[0070] The control device 4 may include an environmental information acquisition unit 56 that acquires environmental information. The environmental information is information including the position of the sun or weather conditions. The environmental information may include weather, wind direction, wind speed, temperature, etc. The environmental information may include information regarding the position and direction of the sun relative to the vehicle. The environmental information may include information regarding the season. Furthermore, if the imaging system 1 is an on-board device mounted on a vehicle equipped with a GPS or the like, the environmental information acquisition unit 56 may also acquire weather information at the position of the vehicle as environmental information.
[0071] The region identification unit 51 can identify the determination region based on environmental information. An example of the region identification unit 51 identifying the determination region based on environmental information will be described with reference to FIG. 10 . In FIG. 10 , a vehicle V1 is selected as the target object. In the far-infrared image P4, it is assumed that direct sunlight is shining on the right half of the vehicle V1. Therefore, it is assumed that the right half of the vehicle V1 absorbs more sunlight than the left half and is therefore at a higher temperature. In this case, the region identification unit 51 identifies the right half of the vehicle V1 as the determination region RV1.
[0072] Alternatively, the region identification unit 51 may identify the judgment region based on information such as wind direction. For example, the environmental information acquisition unit 56 may include an anemometer that measures wind direction and wind speed. Alternatively, the environmental information acquisition unit 56 may acquire information indicating wind direction and wind speed from an anemometer mounted on the vehicle. The region identification unit 51 identifies the judgment region excluding the portion receiving the cold wind. For example, if the vehicle V1 is receiving the cold wind from the left side, the region identification unit 51 identifies the right half of the vehicle V1, which is likely to be saturated, as the judgment region RV1.
[0073] Furthermore, the selection unit 44 may select a target object based on environmental information. An example of the selection unit 44 selecting a target object based on environmental information will be described with reference to FIG. 11 . In FIG. 11 , a vehicle V4 is selected as the target object. In the far-infrared image P4, assume that a road R1 on the left side is shaded by buildings B2 and B3. A road R2 on the right side is in the sun. On the sunny road R2, the temperature of objects rises due to sunlight. That is, the temperature of the vehicle V4 traveling on road R2 is high due to sunlight. Conversely, the vehicles V1 to V3 traveling on road R1 are not irradiated with sunlight and are therefore relatively cool. Therefore, the selection unit 44 selects the vehicle V4 as the target object. That is, the vehicle V4 with the highest temperature is the target object, rather than the vehicle V1, which occupies the largest area in the image. The region identification unit 51 identifies a determination region RV4 including the vehicle V4.
[0074] When information regarding sunshine or shade is known from the environmental information, the priority may be changed depending on whether the object is in the sun or shade. That is, the selection unit 44 assigns a higher priority to an object in the sun and a lower priority to an object in the shade. This allows the selection unit 44 to appropriately select a target object. Alternatively, when information such as wind direction and wind speed is known from the environmental information, the selection unit 44 may change the priority in accordance with these. For example, an object that is being cooled by cold wind may be assigned a lower priority.
[0075] The image adjustment method will be described with reference to Fig. 12. Fig. 12 is a flowchart showing the image adjustment method. The visible light image acquisition unit 41 acquires a visible light image from the visible light camera 2 (S101). The far-infrared image acquisition unit 42 acquires a far-infrared image from the far-infrared camera 3 (S102). The object detection unit 43 detects an object included in the visible light image (S103). The object detection unit 43 recognizes an object captured in the visible light image by a known image recognition process.
[0076] The selection unit 44 selects a target object from among the objects included in the visible light image (S104). The selection unit 44 selects the target object by referring to priority order information indicating the priority order set for each object. Here, one object is selected as the target object from among the objects included in the visible light image.
[0077] The region identification unit 51 identifies a determination region corresponding to the target object in the far-infrared image (S105). That is, the pixel address of the location where the target object is captured in the visible light image is converted into a pixel address in the far-infrared image. The installation angle and angle of view of the visible light camera 2 and the far-infrared camera 3 are known. Therefore, the region identification unit 51 can identify a determination region where the target object is captured in the far-infrared image using a pixel address conversion formula or conversion table.
[0078] The counting unit 52 counts the number of saturated pixels in the judgment region (S106). The counting unit 52 determines the number of saturated pixels in the judgment region. The judgment unit 53 determines whether the ratio of saturated pixels in the judgment region is equal to or greater than a threshold (S107). That is, the judgment unit 53 divides the number of saturated pixels by the total number of pixels included in the judgment region to determine the ratio of saturated pixels in the judgment region. The judgment unit 53 compares the ratio of saturated pixels with the threshold.
[0079] If the ratio of saturated pixels is not equal to or greater than the threshold (NO in S107), the processing ends. That is, the gain or offset of the far-infrared camera 3 is not changed. If the ratio of saturated pixels is equal to or greater than the threshold (YES in S107), the change unit 54 changes the gain or offset of the far-infrared camera 3 (S108). That is, the change unit 54 outputs a control signal to the far-infrared camera 3 to change the gain or offset value. The correction amount of the gain or offset value may be a predetermined value set in advance, or may be set according to the ratio of saturated pixels, etc. Then, the processing ends.
[0080] The imaging system 1 repeatedly performs the above process. For example, the imaging system 1 performs the above process for each one or more frames. This allows the control device 4 to adjust the image so that it has an appropriate temperature resolution.
[0081] Furthermore, if the visible light image contains multiple objects with the same priority, the selection unit 44 may select the target object in S104 based on the area of the object on the image. That is, among multiple objects with the same priority, the selection unit 44 selects the object with the largest area on the image as the target object. As a result, the vehicle V1 is selected as the target object, as shown in FIG. 9 .
[0082] Furthermore, in S104, the selection unit 44 may select the target object based on the environmental information acquired by the environmental information acquisition unit 56. For example, if the environmental information includes information indicating shade or sunshine, the selection unit 44 may assign a higher priority to an object in sunshine. As a result, as shown in FIG. 11 , the vehicle V4 is selected as the target object. Alternatively, if the environmental information includes information indicating wind speed or wind direction, the selection unit 44 may assign a lower priority to an object that is being cooled.
[0083] In addition, in S105, the region identification unit 51 may identify the determination region based on the environmental information acquired by the environmental information acquisition unit 56. For example, if the environmental information includes information indicating shade or sunshine, a portion of the vehicle V1 is selected as the determination region RV1, as shown in FIG.
[0084] The control device 4 functions as an image adjustment device that adjusts the far-infrared image of the far-infrared camera 3. The control device 4 is not limited to being a single physical device, but may be distributed and arranged in multiple devices. For example, some of the functions of the control device 4 may be installed in the visible light camera 2 or the far-infrared camera 3. An object detection function may be installed in the visible light camera 2. A processing function such as a determination unit may be installed in the far-infrared camera 3.
[0085] The programs of the control device 4 and the imaging system 1 described above include a set of instructions (or software code) that, when loaded into a computer, causes the computer to perform one or more functions described in the embodiments. The programs may be stored on a non-transitory computer-readable medium or a tangible storage medium. By way of example and not limitation, computer-readable media or tangible storage media include random-access memory (RAM), read-only memory (ROM), flash memory, solid-state drive (SSD) or other memory technology, CD-ROM, digital versatile disc (DVD), Blu-ray (registered trademark) disc or other optical disc storage, and magnetic storage devices. The programs may also be transmitted on a transitory computer-readable medium or communication medium. By way of example and not limitation, transitory computer-readable media or communication media include electrical, optical, acoustic, or other forms of propagated signals.
[0086] The present invention is not limited to the above-described embodiment, and can be modified as appropriate within the scope of the invention.
[0087] This application claims priority based on Japanese Patent Application No. 2023-24839, filed February 21, 2023, the disclosure of which is incorporated herein by reference in its entirety.
[0088] REFERENCE SIGNS LIST 1 Imaging system 2 Visible light camera 3 Far-infrared camera 4 Control device 7 Display 21 Lens unit 22 Imaging element 31 Lens unit 32 Imaging element 33 Data storage unit 34 Adjustment unit 35 Temperature sensor 36 Transmission device 41 Visible light image acquisition unit 42 Far-infrared image acquisition unit 43 Object detection unit 44 Selection unit 51 Area identification unit 52 Counting unit 53 Determination unit 54 Change unit 56 Environmental information acquisition unit 61 NUC unit 62 AGC unit 63 Video output unit
Claims
1. An image adjustment device comprising: a first image acquisition unit that acquires a first image captured by a first imaging element; a second image acquisition unit that acquires a second image captured by a second imaging element that detects far-infrared light; an object detection unit that detects an object included in the first image; a selection unit that selects a target object from the objects included in the first image by referring to priority order information provided according to the temperature of the objects; an area identification unit that identifies a judgment area in the second image in which the target object is included; a counting unit that counts saturated pixels that are saturated in the judgment area; a judgment unit that judges whether the ratio of the saturated pixels in the judgment area is equal to or greater than a threshold value; and a modification unit that changes a gain or offset value of the second imaging element if the ratio is equal to or greater than the threshold value.
2. The image adjustment device of claim 1, wherein when the first image contains multiple objects with the highest priority, the object captured with the largest area in the first image is selected as the target object from among the multiple objects with the highest priority.
3. An image adjustment device as described in claim 1 or 2, further comprising an environmental information acquisition unit that acquires environmental information including the position of the sun or weather conditions, and the area identification unit identifies the judgment area in accordance with the environmental information.
4. An image adjustment device as described in claim 1 or 2, further comprising an environmental information acquisition unit that acquires environmental information including the position of the sun or weather conditions, and the selection unit changes the priority information in accordance with the environmental information to select the target object.
5. The image adjustment device according to claim 1, wherein the image adjustment device is mounted on a moving body such as a vehicle, and the selection unit selects an object that affects the traveling of the moving body as the target object from among objects included in the first image.
6. An image adjustment method comprising the steps of: acquiring a first image captured by a first imaging element; acquiring a second image captured by a second imaging element that detects far-infrared light; detecting an object included in the first image; selecting a target object from among the objects included in the first image by referring to priority information given according to the temperature of the object; identifying a judgment area in the second image in which the target object is included; counting saturated pixels in the judgment area; determining whether the ratio of the saturated pixels in the judgment area is equal to or greater than a threshold; and if the ratio is equal to or greater than the threshold, changing a gain or offset value in the second imaging element.
7. A program causing a processor controlling an image adjustment device to execute the following steps: acquiring a first image captured by a first imaging element; acquiring a second image captured by a second imaging element that detects far-infrared light; detecting an object included in the first image; selecting a target object from among the objects included in the first image by referring to priority information given according to the temperature of the object; identifying a judgment area in the second image in which the target object is included; counting saturated pixels in the judgment area; determining whether the ratio of the saturated pixels in the judgment area is equal to or greater than a threshold; and changing a gain or offset value in the second imaging element if the ratio is equal to or greater than the threshold.
Citation Information
Patent Citations
Object detecting device
JP2009100256A
Combining visible light camera and thermal camera information
WO2022158039A1
