Object detection apparatus, object detection method and program
The object detection device corrects camera images to match the learning environment, addressing performance deterioration caused by installation differences, ensuring consistent detection accuracy without re-learning efforts.
Patent Information
- Application Number
- JP2023055664
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-30
- Publication Date
- 2024-10-11
AI Technical Summary
Existing object detection systems suffer from deteriorating performance due to differences in camera installation states between training and operational environments, requiring re-learning and significant effort to maintain accuracy.
An object detection device that includes an environment estimation unit to correct camera images based on the difference between learning and imaging environments, using a correction unit to adjust camera images to match the learning environment, thereby enhancing detection performance.
The device effectively suppresses performance deterioration by aligning camera images with the learning environment, eliminating the need for re-learning and maintaining accurate object detection regardless of installation variations.
Smart Images

Figure 2024143142000001_ABST
Abstract
Description
[Technical field]
[0001] The present disclosure relates to an object detection device and the like. [Background technology]
[0002] Conventionally, an object detection system has been proposed that detects an object shown in an image obtained by capturing an image with a camera (see, for example, Patent Document 1). In this object detection system, an object is detected using a trained learning model. Here, in generating the trained learning model, preprocessing is performed on the image obtained by the camera, and the image after the preprocessing is used for machine learning of the learning model. In the preprocessing, image size adjustment, distortion adjustment, brightness conversion, rotation, horizontal flip, cropping, zooming, etc. are performed. This allows for effective learning and improves the accuracy of object detection. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2022-123903 A Summary of the Invention [Problem to be solved by the invention]
[0004] However, the object detection system of Patent Document 1 has a problem in that the object detection performance may be degraded.
[0005] In view of this, the present disclosure provides an object detection device and the like that can suppress deterioration of detection performance. [Means for solving the problem]
[0006] An object detection device according to one aspect of the present disclosure includes an environment estimation unit that estimates an environment captured by a camera as an imaging environment, a correction unit that generates a corrected camera image by correcting a camera image obtained by capturing an image in the imaging environment using the camera based on a difference between a learning environment and the imaging environment, and a detection unit that detects an object captured in the corrected camera image by inputting the corrected camera image into a trained learning model, wherein the learning environment is an environment in which a learning image used to input a learning model is obtained in order to generate the trained learning model by machine learning, and the machine learning is learning performed on the learning model such that information indicating the detection result of an object captured in the learning image is output in response to input of the learning image to the learning model, and the correction unit corrects the camera image so that the camera image approaches an image obtained by capturing an image using the camera in the learning environment.
[0007] These comprehensive or specific aspects may be realized by a system, a method, an integrated circuit, a computer program, or a computer-readable recording medium such as a CD-ROM, or may be realized by any combination of the system, the method, the integrated circuit, the computer program, and the recording medium. The recording medium may be a non-transitory recording medium. Effect of the Invention
[0008] The object detection device according to the present disclosure can suppress deterioration in detection performance.
[0009] Further advantages and effects of one aspect of the present disclosure will become apparent from the specification and drawings. Such advantages and / or effects are provided by some of the embodiments and configurations described in the specification and drawings, but not all of the configurations are necessarily required. [Brief description of the drawings]
[0010] [Figure 1]FIG. 1 is a diagram for explaining an overview of an object detection device according to an embodiment. [Diagram 2] FIG. 2 is a block diagram showing a functional configuration of a processing unit included in the object detection device according to the embodiment. [Diagram 3] FIG. 3 is a flowchart illustrating an example of a processing operation by the processing unit in the embodiment. [Figure 4] FIG. 4 is a diagram for explaining an example of correction performed when the height of the camera and the height of the learning camera differ in this embodiment. [Diagram 5] FIG. 5 is a diagram for explaining an example of correction performed when the state of the garnish region in the camera image differs from the state of the garnish region in the learning image in this embodiment. [Figure 6] FIG. 6 is a diagram for explaining an example of correction performed when the frequency characteristic value of the camera image and the frequency characteristic value of the learning image differ in this embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0011] (Findings on which this disclosure is based) The present inventors have found that the object detection system of Patent Document 1 described in the "Background Art" section has the following problems.
[0012] For example, the object detection system of Patent Document 1 is mounted on a vehicle to detect objects around the vehicle. At this time, the object detection performance is degraded depending on the state in which the camera used in the object detection system is installed on the vehicle. In other words, when the installation state of the camera when the image used for the machine learning of the learning model is obtained is different from the installation state of the camera used for detecting the object on the vehicle, the object detection performance is degraded. For example, the camera when the image used for the machine learning of the learning model is obtained is installed at a relatively high position from the ground. In this case, objects such as people are reflected downward in the image obtained by imaging with the camera. Machine learning is performed using such an image. On the other hand, the camera used to detect the object is installed at a relatively low position from the ground in the vehicle. In this case, the object to be detected such as a person is reflected upward in the image obtained by imaging with the camera. Therefore, the way in which the object is reflected is different between the image used for machine learning and the image obtained by the camera used for detecting the object.
[0013] Therefore, the object detection performance is degraded. Even if the preprocessing is performed, if the installation state of the camera for detecting the object on the vehicle is not taken into consideration, the object detection performance is degraded as described above. As a result, in the object detection system of the above Patent Document 1, in order to suppress the degradation of the object detection performance, it is necessary to recreate the learning model again using a machine learning camera installed in the same installation state as the camera used for detecting the object. In other words, re-learning is required, which requires labor or effort. In addition, the same problem as described above occurs when the image feature amount such as brightness is different between the image used for machine learning and the image obtained by the camera used for detecting the object.
[0014] In order to solve such problems, an object detection device according to a first aspect of the present disclosure includes an environment estimation unit that estimates an environment captured by a camera as an imaging environment, a correction unit that generates a corrected camera image by correcting a camera image obtained by capturing an image in the imaging environment with the camera based on a difference between a learning environment and the imaging environment, and a detection unit that detects an object captured in the corrected camera image by inputting the corrected camera image into a trained learning model, wherein the learning environment is an environment in which a learning image used for inputting a learning model is obtained in order to generate the trained learning model by machine learning, and the machine learning is learning performed on the learning model such that information indicating the detection result of an object captured in the learning image is output in response to the input of the learning image to the learning model, and the correction unit corrects the camera image so that the camera image approaches an image obtained by capturing an image with the camera in the learning environment.
[0015] As a result, a correction based on the difference between the learning environment and the imaging environment is performed on the camera image, thereby generating a corrected camera image. That is, the camera image is corrected so that the camera image approaches an image obtained by imaging with a camera in the learning environment. Therefore, the corrected camera image generated by such correction can be treated as an image obtained in the learning environment when machine learning is performed. As a result, no matter what the imaging environment is, for example, no matter what state the camera is installed in the vehicle, the difference between the learning environment and the imaging environment can be absorbed. In other words, the environment in which the corrected camera image is obtained can be made closer to and matched with the learning environment. As a result, no matter what the imaging environment is, the detection of an object shown in the corrected camera image can be performed using a learned learning model generated in the learning environment, thereby suppressing a decrease in the detection performance of the object. Therefore, the effort of recreating the learning model can be saved.
[0016] In addition, in an object detection device according to a second aspect which is dependent on the first aspect, the imaging environment may include an installation state of the camera, and the learning environment may include an installation state of a learning camera for obtaining the learning image.
[0017] This makes it possible to absorb the difference between the installation state of the camera and the installation state of the learning camera, and therefore, regardless of the installation state of the camera, it is possible to suppress deterioration of object detection performance.
[0018] In addition, in an object detection device according to a third aspect which is dependent on the second aspect, the installation state of the camera is at least one of the height of the installed camera from the ground, the angle of the installed camera, and the state of the garnish area in which a garnish, which is an object other than the detection target of the detection unit, is reflected in the camera image, and the installation state of the training camera may be at least one of the height of the installed training camera from the ground, the angle of the installed training camera, and the state of the garnish area in which the garnish is reflected in the training image.
[0019] This makes it possible to absorb any difference in at least one of the height, angle, and garnish area between the installation state of the camera and the installation state of the learning camera. Therefore, regardless of the state of at least one of the height, angle, and garnish area of the camera, it is possible to suppress deterioration of object detection performance.
[0020] In addition, in the object detection device according to a fourth aspect dependent on the first aspect, the imaging environment may include image features of the camera image, and the learning environment may include image features of the learning image.
[0021] This makes it possible to absorb the difference between the image feature amount of the camera image and the image feature amount of the learning image, and therefore, it is possible to suppress the deterioration of the object detection performance regardless of the amount of the image feature amount of the camera image.
[0022] In addition, in an object detection device according to a fifth aspect which is dependent on the fourth aspect, the image feature of the camera image may be at least one of brightness, contrast, frequency characteristic value, color information, and noise characteristic value in the camera image, and the image feature of the training image may be at least one of brightness, contrast, frequency characteristic value, color information, and noise characteristic value in the training image.
[0023] This makes it possible to absorb any difference in at least one of the brightness, contrast, frequency characteristic value, color information, and noise characteristic value between the image feature amount of the camera image and the image feature amount of the learning image, and therefore makes it possible to suppress deterioration in object detection performance regardless of the amount or value of at least one of the brightness, contrast, frequency characteristic value, color information, and noise characteristic value in the camera image.
[0024] In addition, in the object detection device according to a sixth aspect dependent on the third aspect, when there is a difference between the height or angle of the learning camera, which is the learning environment, and the height or angle of the camera, which is the imaging environment, the correction unit may correct the camera image by at least rotating the camera image according to the difference. The camera image is rotated in at least one direction of the vertical direction and the horizontal direction in the camera image. For example, the camera image is rotated so that an area on one end side of the vertical direction in the camera image moves to the other end side. The larger the angle or magnitude of the rotation, the wider the vertical width of the moved area becomes.
[0025] This allows the difference in height or angle between the installation state of the camera and the installation state of the learning camera to be appropriately absorbed, so that degradation of object detection performance can be appropriately suppressed regardless of the height or angle of the camera.
[0026] In addition, in an object detection device according to a seventh aspect which is dependent on the fifth aspect, when there is a difference between a frequency characteristic value of the learning image which is the learning environment and a frequency characteristic value of the camera image which is the imaging environment, the correction unit may correct the camera image by applying a filter to the camera image according to the difference.
[0027] This makes it possible to appropriately absorb a difference in frequency characteristic value between the image feature amount of the camera image and the image feature amount of the learning image, even if such a difference exists, and therefore makes it possible to appropriately suppress a decrease in object detection performance regardless of the frequency characteristic value of the camera image.
[0028] In the object detection device according to an eighth aspect dependent on the third aspect, when there is a difference between a state of a garnish area of the learning image, which is the learning environment, and a state of a garnish area of the camera image, which is the imaging environment, the correction unit may correct the camera image by replacing an image of a portion of the garnish area of the camera image corresponding to the difference with an image of a color not used in the machine learning. The color not used in the machine learning may be a color not included in the learning image, or a color that is least frequently used among the colors included in the learning image.
[0029] This allows the system to properly absorb any difference in the state of the garnish area between the installation state of the camera and the installation state of the learning camera, thus preventing a decrease in object detection performance regardless of the state of the garnish area in the camera image.
[0030] Hereinafter, the embodiment will be specifically described with reference to the drawings.
[0031] The embodiments described below are all comprehensive or specific examples. The numerical values, shapes, materials, components, arrangement and connection of components, steps, and order of steps shown in the following embodiments are merely examples and are not intended to limit the present disclosure. In addition, among the components in the following embodiments, components that are not described in an independent claim showing the highest concept are described as optional components. In addition, each figure is a schematic diagram and is not necessarily a strict illustration. In addition, the same components are given the same reference numerals in each figure.
[0032] (Embodiment) FIG. 1 is a diagram for explaining an overview of an object detection device according to the present embodiment.
[0033] The object detection device 100 in this embodiment is mounted on a vehicle V, and detects an object, such as a person 1, in the vicinity of the vehicle V. Such an object detection device 100 includes a camera 110 and a processing unit 120.
[0034] The camera 110 is, for example, a monocular camera, and captures an object such as a person 1. Specifically, the camera 110 includes a lens and a light receiving element. When capturing an image, the light receiving element receives light from the outside of the camera 110 through the lens, and outputs an image signal corresponding to the light. The camera 110 outputs a camera image represented by an image signal obtained by the capturing to the processing unit 120. The camera 110 is set with respect to a structure of the vehicle V. The height from the ground at which the camera 110 is installed and the angle at which the camera 110 is installed are determined by the configuration of the vehicle V, the user of the vehicle V, or the like. The angle is, for example, the angle between the optical axis of the camera 110 and the horizontal or vertical direction.
[0035] The processing unit 120 is a computer that acquires a camera image from the camera 110, detects an object shown in the camera image, and outputs detection result information indicating the detection result of the object. The processing unit 120 also uses a trained learning model to detect the object.
[0036] FIG. 2 is a block diagram showing the functional configuration of the processing unit 120 included in the object detection device 100 according to this embodiment.
[0037] The processing unit 120 includes an image conversion unit 121 , an environment estimation unit 122 , a correction unit 123 , a detection unit 124 , and a storage unit 125 .
[0038] The storage unit 125 is a recording medium storing the learning environment information 125a and the learning model 125b. The learning model 125b is a learned learning model generated by machine learning. Machine learning is learning performed on the learning model so that, in response to an input of a learning image to the learning model, information indicating a detection result of an object shown in the learning image is output. The learning environment information 125a is information indicating the learning environment. The learning environment is an environment in which a learning image used for inputting the learning model is obtained in order to generate the learning model 125b by machine learning. In other words, the learning environment is an environment in which a learning camera acquires a learning image by imaging.
[0039] The storage unit 125 is, for example, a hard disk drive, a random access memory (RAM), a read only memory (ROM), or a semiconductor memory. Such a storage unit 125 may be volatile or non-volatile.
[0040] The image conversion unit 121 acquires the camera image Pa from the camera 110 and performs image conversion processing on the camera image Pa. The image conversion processing converts the image format of the camera image Pa into a predetermined image format. The predetermined image format is a format required for the detection unit 124 to detect an object. For example, the image conversion unit 121 removes distortion of the camera image Pa obtained by the camera 110 through the image conversion processing. Specifically, if the camera image Pa is an image expressed by equirectangular projection or an image obtained by imaging using a fisheye lens, the image conversion processing removes distortion from such an image. Alternatively, the image conversion unit 121 corrects a shift of the camera image Pa due to internal parameters and external parameters of the camera 110, etc., through the image conversion processing. In a specific example, the image conversion unit 121 corrects a shift of the center position of the camera image Pa. Then, the image conversion unit 121 outputs the camera image Pa that has been subjected to the image conversion processing as a camera image Pb.
[0041] The environment estimation unit 122 estimates the environment captured by the camera 110 as the imaging environment. Specifically, the environment estimation unit 122 acquires a camera image Pb and estimates the imaging environment using at least the camera image Pb. Then, the environment estimation unit 122 outputs imaging environment information 122a indicating the estimation result of the imaging environment to the correction unit 123.
[0042] The correction unit 123 generates a corrected camera image Pc by correcting the camera image Pb obtained by imaging by the camera 110 in the above-mentioned imaging environment based on the difference between the learning environment and the imaging environment. That is, the correction unit 123 obtains the camera image Pb from the image conversion unit 121, and performs correction on the camera image Pb according to the above-mentioned difference. At this time, the correction unit 123 obtains the learning environment information 125a from the storage unit 125, and further obtains the imaging environment information 122a from the environment estimation unit 122. Then, the correction unit 123 specifies the difference between the learning environment indicated by the learning environment information 125a and the imaging environment indicated by the imaging environment information 122a. When correcting the camera image Pb, the correction unit 123 corrects the camera image Pb based on the difference so that the camera image Pb approaches the image obtained by imaging by the camera 110 in the above-mentioned learning environment.
[0043] The detection unit 124 acquires the corrected camera image Pc from the correction unit 123 and reads out the learning model 125b from the storage unit 125. Then, the detection unit 124 executes image recognition processing. That is, the detection unit 124 detects an object reflected in the corrected camera image Pc by inputting the corrected camera image Pc to the learning model 125b. That is, the detection unit 124 acquires the detection result information 124a output from the learning model 125b. The detection result information 124a is information indicating the detection result of the object. Specifically, the detection result information 124a indicates the position of the object detected in the corrected camera image Pc, the type of the object, the detection probability, and the like. The type of the object may be a person, a dog, and the like. The detection probability may be the probability that an object exists at the above-mentioned position, or may be the probability that the type of the above-mentioned object is a specific type such as a person or a dog. The detection unit 124 outputs such detection result information 124a to the outside of the object detection device 100.
[0044] The image conversion unit 121, the environment estimation unit 122, the correction unit 123, and the detection unit 124 may be realized by a processor such as a CPU (Central Processing Unit) reading and executing a computer program stored in a recording medium such as the memory unit 125.
[0045] FIG. 3 is a flowchart showing an example of the processing operation by the processing unit 120.
[0046] First, the image conversion unit 121 acquires a camera image Pa from the camera 110 (step S1), and performs image conversion processing on the camera image Pa to generate a camera image Pb that is a camera image Pa that has been subjected to the image conversion processing (step S2).
[0047] Next, the environment estimation unit 122 estimates the imaging environment using the camera image Pb, and outputs imaging environment information 122a indicating the imaging environment (step S3).
[0048] The correction unit 123 acquires the imaging environment information 122a from the environment estimation unit 122, acquires the learning environment information 125a from the storage unit 125, and identifies a difference between the imaging environment indicated by the imaging environment information 122a and the learning environment indicated by the learning environment information 125a (step S4). Then, the correction unit 123 generates a corrected camera image Pc by performing correction on the camera image Pb generated by the image conversion unit 121 so that the difference identified in step S4 disappears, i.e., the difference is absorbed (step S5).
[0049] The detection unit 124 executes image recognition processing on the corrected camera image Pc using the learning model 125b in the storage unit 125 (step S6). As a result, an object shown in the corrected camera image Pc is detected, and the detection unit 124 outputs detection result information 124a indicating the result of the detection.
[0050] Here, each of the imaging environment and the learning environment may include at least one of the installation state of the camera and image feature amounts as the environment.
[0051] [Camera installation status] When the imaging environment and the learning environment each include the installation state of the camera as an environment, the correction unit 123 identifies the difference between those installation states. That is, the imaging environment includes the installation state of the camera 110, and the learning environment includes the installation state of the learning camera for obtaining the learning image. Then, the difference between these installation states is identified.
[0052] More specifically, the installation state of the camera 110 is the height of the installed camera 110 from the ground, and the installation state of the learning camera is the height of the installed learning camera from the ground. Alternatively, the installation state of the camera 110 is the angle of the installed camera 110, and the installation state of the learning camera is the angle of the installed learning camera. The angle may be an angle between the optical axis of each of the camera 110 and the learning camera and the horizontal or vertical direction. Alternatively, the installation state of the camera 110 may be a state of a garnish area in which a garnish, which is an object other than the detection target of the detection unit 124, is reflected in the camera image Pb, and the installation state of the learning camera may be a state of a garnish area in which the garnish is reflected in the learning image. The installation state may be called an installation condition.
[0053] Then, the correction unit 123 corrects the camera image Pb so that the difference disappears or is absorbed. That is, the correction unit 123 corrects the camera image Pb obtained by imaging with the camera 110 installed on the vehicle V so that the camera image Pb approaches an image obtained by imaging with the learning camera installed. In other words, the correction unit 123 corrects the camera image Pb so that the camera image Pb matches or resembles an image obtained by imaging with the learning camera installed.
[0054] FIG. 4 is a diagram for explaining an example of correction that is performed when the height of the camera 110 and the height of the learning camera are different.
[0055] For example, as shown in FIG. 4, the correction unit 123 acquires a camera image Pb in which a person is captured. Then, the correction unit 123 identifies a difference between the height of the camera 110 indicated by the imaging environment information 122a and the height of the learning camera indicated by the learning environment information 125a. In a specific example, the correction unit 123 determines that the height of the camera 110 is higher than the height of the learning camera by Δh. Δh is an example of the difference. As a result, the correction unit 123 generates a corrected camera image Pc1 by performing a correction to rotate the camera image Pb in the vertical direction by an amount according to Δh. More specifically, the correction unit 123 rotates the camera image Pb to perform image folding on the camera image Pb and move the lower region d1 of the camera image Pb to the upper part of the camera image Pb. The angle or size of the rotation, or the vertical width of the lower region d1 may be calculated by substituting Δh into a predetermined mathematical formula. The formula calculates that the larger Δh is, the larger the angle of rotation, the magnitude, or the vertical width of the lower region d1 is.
[0056] In correcting the camera image Pb, the correction unit 123 may further fill in the lower region d1 that has been moved upward with a surrounding color to generate a corrected camera image Pc2. Note that the surrounding color is, for example, the color of the region below or immediately below the lower region d1 that has been moved upward in the camera image Pb.
[0057] Although Fig. 4 shows an example of correction when the height of the camera differs between the imaging environment and the learning environment, even when the camera angle (specifically, the elevation and depression angles) differs, the camera image Pb is corrected as in the example shown in Fig. 4. Furthermore, when the azimuth angle of the camera differs, the camera image Pb is corrected by rotating in the horizontal direction.
[0058] Thus, in this embodiment, if there is a difference between the height or angle of the learning camera, which is the learning environment, and the height or angle of the camera 110, which is the imaging environment, the correction unit 123 corrects the camera image Pb by at least rotating the camera image Pb in accordance with that difference.
[0059] This makes it possible to appropriately absorb any difference in height or angle between the installation state of camera 110 and the installation state of the learning camera. Therefore, regardless of the state of the height or angle of camera 110, it is possible to appropriately suppress deterioration in object detection performance.
[0060] In the example of FIG. 4, the environment estimation unit 122 estimates the height of the camera 110 as the imaging environment, and outputs imaging environment information 122a indicating the imaging environment. In this case, the environment estimation unit 122 may estimate the height of the camera 110 by triangulation using the camera image Pb. More specifically, the user moves the subject to be imaged by the camera 110. The camera 110 captures the subject before and after the movement. This generates two camera images Pb. The positions of the subject before and after the movement are known. The environment estimation unit 122 estimates the height of the camera 110 by performing triangulation using the positions of the subject shown in those camera images Pb. When the environment estimation unit 122 estimates the angle of the camera 110 as the imaging environment, triangulation may be performed in the same manner as described above.
[0061] FIG. 5 is a diagram for explaining an example of correction that is performed when the state of the garnish region of the camera image Pb differs from the state of the garnish region of the learning image.
[0062] For example, the correction unit 123 acquires a camera image Pb in which a person is reflected, as shown in Fig. 5. In the example of Fig. 5, the camera image Pb has garnish areas d2 arranged at the four corners of the camera image Pb. For example, the structure of the camera 110 or a wall arranged around the camera 110 is reflected in the garnish area d2.
[0063] The correction unit 123 identifies a difference between the state of the garnish area d2 of the camera image Pb indicated by the imaging environment information 122a and the state of the garnish area of the learning image indicated by the learning environment information 125a. For example, the learning image does not have a garnish area. As a result, the correction unit 123 corrects the camera image Pb by filling the entire garnish area d2 of the camera image Pb with a color not used in machine learning. As a result, the correction unit 123 generates a corrected camera image Pc. Note that, if the learning image has a garnish area, the correction unit 123 may perform correction by filling in the above-mentioned color on the difference area of the garnish area of the camera image Pb that is not included in the garnish area of the learning image.
[0064] Thus, in this embodiment, if there is a difference between the state of the garnish area of the learning image, which is the learning environment, and the state of the garnish area of the camera image Pb, which is the imaging environment, the correction unit 123 corrects the camera image Pb by replacing the image of the part of the garnish area of the camera image Pb that corresponds to the difference with an image of a color that is not used in machine learning.
[0065] This allows the difference to be appropriately absorbed even if there is a difference in the state of the garnish area between the installation state of the camera 110 and the installation state of the learning camera. Therefore, regardless of the state of the garnish area in the camera image, the deterioration of the object detection performance can be appropriately suppressed.
[0066] In the example of FIG. 5, the environment estimation unit 122 estimates the state of the garnish area d2 of the camera image Pb as the imaging environment, and outputs imaging environment information 122a indicating the imaging environment. In this case, the environment estimation unit 122 identifies an area in which a garnish of a predetermined color is reflected in the peripheral portion of the camera image Pb as the garnish area d2. For example, if the garnish is a structure of the camera 110, the predetermined color may be black. Then, the environment estimation unit 122 may estimate the position, size, range, etc. of the garnish area d2 as the state of the garnish area d2.
[0067] Thus, in this embodiment, the installation state of camera 110 is at least one of the height of installed camera 110 from the ground, the angle of installed camera 110, and the state of the garnish area where a garnish, which is an object other than the detection target of detection unit 124, is reflected in camera image Pb. The installation state of the learning camera is at least one of the height of installed learning camera from the ground, the angle of installed learning camera, and the state of the garnish area where the garnish is reflected in the learning image.
[0068] This makes it possible to absorb any difference in at least one of the height, angle, and garnish area state between the installation state of camera 110 and the installation state of the learning camera. Therefore, regardless of the state of at least one of the height, angle, and garnish area state of camera 110, it is possible to suppress deterioration in object detection performance.
[0069] [Image features] When the imaging environment and the learning environment each include image features as environments, the correction unit 123 identifies the difference between those image features. That is, the imaging environment includes the image features of the camera image Pb, and the learning environment includes the image features of the learning image. Then, the difference between these image features is identified.
[0070] More specifically, the image feature amount of the camera image Pb is the luminance of the camera image Pb, and the image feature amount of the learning image is the luminance of the learning image. For example, the luminance may be the average luminance of the entire image, or may be the maximum luminance. Furthermore, the image feature amount of the camera image Pb is the frequency characteristic value of the camera image Pb, and the image feature amount of the learning image is the frequency characteristic value of the learning image. For example, the frequency characteristic value may be the average frequency of the entire image, or may be the maximum frequency. Furthermore, the image feature amount of the camera image Pb is the color information of the camera image Pb, and the image feature amount of the learning image is the color information of the learning image. Furthermore, the image feature amount of the camera image Pb is the noise characteristic value of the camera image Pb, and the image feature amount of the learning image is the noise characteristic value of the learning image. The noise characteristic value is the number of noises included in the image, the SN (Sound-Noise) ratio, the intensity, etc. Furthermore, the noise may be a blown-out highlight or a crushed-black pixel in the image.
[0071] Then, the correction unit 123 corrects the camera image Pb so that the difference disappears or is absorbed. That is, the correction unit 123 corrects the camera image Pb so that the image feature amount of the camera image Pb approaches the image feature amount of the learning image. In other words, the correction unit 123 corrects the camera image Pb so that the image feature amount of the camera image Pb matches or is similar to the image feature amount of the learning camera.
[0072] FIG. 6 is a diagram for explaining an example of correction performed when the frequency characteristic value of the camera image Pb and the frequency characteristic value of the learning image differ from each other.
[0073] For example, as shown in FIG. 6, the correction unit 123 acquires a camera image Pb in which a person is captured. Then, the correction unit 123 identifies a difference between the frequency characteristic value of the camera image indicated by the imaging environment information 122a and the frequency characteristic value of the learning image indicated by the learning environment information 125a. In a specific example, the correction unit 123 determines that the frequency characteristic value of the camera image Pb is higher than the frequency characteristic value of the learning image by Δf. Δf is an example of the difference. As a result, the correction unit 123 corrects the camera image Pb by applying a low-pass filter of a strength according to Δf to the camera image Pb. As a result, a corrected camera image Pc3 is generated as shown in FIG. 6. That is, the correction unit 123 performs smoothing on the camera image Pb. More specifically, the correction unit 123 calculates, as a low-pass filter, a conversion formula such that the frequency characteristic value of the camera image Pb matches the frequency characteristic value of the learning image. The conversion formula may be a formula that converts the pixel value of the pixel to be corrected in the camera image Pb by performing a weighted addition of the pixel value of the pixel to be corrected and each of the pixel values of one or more surrounding pixels surrounding the pixel to be corrected.
[0074] Thus, in this embodiment, when there is a difference between the frequency characteristic value of the learning image, which is the learning environment, and the frequency characteristic value of the camera image Pb, which is the imaging environment, the correction unit 123 corrects the camera image Pb by applying a filter to the camera image Pb in accordance with the difference.
[0075] This makes it possible to appropriately absorb any difference in frequency characteristic value between the image feature amount of the camera image Pb and the image feature amount of the learning image, and therefore to appropriately suppress deterioration of object detection performance regardless of the frequency characteristic value of the camera image Pb.
[0076] In addition, FIG. 6 shows an example of correction in the case where the frequency characteristic value of the camera image Pb is higher than that of the learning image. However, conversely, even if the frequency characteristic value of the camera image Pb is lower than that of the learning image, the camera image Pb may be corrected by applying a filter to the camera image Pb. In this case, a high-pass filter may be applied to the camera image Pb. The correction unit 123 may also apply a filter to the image in the frequency domain. For example, the correction unit 123 converts the camera image Pb into an image in the frequency domain by, for example, performing a Fourier transform on the camera image Pb, and performs frequency filtering on the image in the frequency domain. Then, the correction unit 123 returns the image to an image in the spatial domain by performing an inverse Fourier transform on the frequency-filtered image. As a result, a corrected camera image Pc having a frequency characteristic value that matches or is close to the frequency characteristic value of the learning image is generated.
[0077] In addition, when the correction unit 123 identifies the difference between the luminance of the camera image Pb and the luminance of the learning image, it performs a correction to increase or decrease the luminance of the camera image Pb by the difference so that the luminance of the camera image Pb approaches the luminance of the learning image.
[0078] In addition, when the correction unit 123 identifies the difference between the contrast of the camera image Pb and the contrast of the learning image, it performs a correction to increase or decrease the contrast of the camera image Pb by the difference so that the contrast of the camera image Pb approaches the contrast of the learning image.
[0079] Furthermore, when the correction unit 123 identifies the difference between the noise characteristic value of the camera image Pb and the noise characteristic value of the learning image, the correction unit 123 performs a correction to increase or decrease the noise characteristic value of the camera image Pb by the difference so that the noise characteristic value of the camera image Pb approaches the noise characteristic value of the learning image. For example, the correction unit 123 may increase the noise characteristic value by randomly adding noise to the camera image Pb, and decrease the noise characteristic value by performing smoothing on the camera image Pb.
[0080] Thus, in this embodiment, the image feature of the camera image Pb is at least one of the brightness, contrast, frequency characteristic value, color information, and noise characteristic value of the camera image Pb, and the image feature of the learning image is at least one of the brightness, contrast, frequency characteristic value, color information, and noise characteristic value of the learning image.
[0081] This makes it possible to absorb any difference in at least one of the brightness, contrast, frequency characteristic value, color information, and noise characteristic value between the image feature amount of the camera image Pb and the image feature amount of the learning image. Therefore, regardless of the amount or value of at least one of the brightness, contrast, frequency characteristic value, color information, and noise characteristic value in the camera image Pb, it is possible to suppress deterioration in object detection performance.
[0082] As described above, in the object detection device 100 according to the present embodiment, the camera image Pb is corrected based on the difference between the learning environment and the imaging environment to generate the corrected camera image Pc. That is, the camera image Pb is corrected so that the camera image Pb approaches the image obtained by imaging by the camera 110 in the learning environment. Therefore, the corrected camera image Pc generated by such correction can be treated as an image obtained in the learning environment when machine learning is performed. As a result, no matter what the imaging environment is, for example, no matter what state the camera 110 is installed in the vehicle V, the difference between the learning environment and the imaging environment can be absorbed. In other words, the environment in which the corrected camera image Pc is obtained can be made to approach and match the learning environment. As a result, no matter what the imaging environment is, the detection of the object shown in the corrected camera image Pc can be performed using the learned learning model 125b generated in the learning environment, thereby suppressing the deterioration of the detection performance of the object. Therefore, in order to suppress the deterioration of the detection performance, it is not necessary to recreate the learning model, and the effort of recreating it, that is, re-learning, can be saved.
[0083] Furthermore, the object detection device 100 in this embodiment can absorb the difference between the installation state of the camera 110 and the installation state of the learning camera. Therefore, regardless of the installation state of the camera 110, it is possible to suppress the deterioration of the object detection performance.
[0084] Furthermore, the object detection device 100 according to the present embodiment can absorb the difference between the image feature amount of the camera image Pb and the image feature amount of the learning image. Therefore, regardless of the amount of the image feature amount of the camera image Pb, it is possible to suppress the deterioration of the object detection performance.
[0085] Although the object detection device and the object detection method of the present disclosure have been described based on the above-mentioned embodiment, the present disclosure is not limited to the above-mentioned embodiment. As long as it does not deviate from the spirit of the present disclosure, various modifications conceivable by a person skilled in the art to the above-mentioned embodiment may also be included in the present disclosure.
[0086] For example, the object detection device 100 in this embodiment is mounted on a vehicle V, but may be mounted on a moving object other than a vehicle, or may be placed in a facility or the like to monitor the periphery of the facility.
[0087] Furthermore, in this embodiment, object detection device 100 includes image conversion unit 121, but it is not necessary to include image conversion unit 121. In this case, correction is performed on camera image Pa.
[0088] In addition, in this embodiment, the storage unit 125 is provided in the object detection device 100, but may be provided in a server connected to the object detection device 100 via a communication line such as the Internet. In this case, the object detection device 100 may obtain the learning environment information 125a and the learning model 125b from the server.
[0089] In addition, in this embodiment, the environment estimation unit 122 estimates the imaging environment using the camera image Pb, but the imaging environment may be estimated using not only the camera image Pb but also other information, or the imaging environment may be estimated using only the other information without using the camera image Pb. For example, the environment estimation unit 122 may acquire a sensing signal from a sensor that senses the state of the camera 110 as the above-mentioned other information, and estimate the imaging environment using the sensing signal.
[0090] In the above embodiments, each component may be configured with dedicated hardware, or may be realized by executing a software program suitable for each component. Each component may be realized by a program execution unit such as a CPU (Central Processing Unit) or a processor reading and executing a software program recorded on a recording medium such as a hard disk or a semiconductor memory. Here, the program, which is software that realizes the model generating device of each of the above embodiments, causes a computer to execute each step included in the flowchart of FIG.
[0091] The following cases are also included in this disclosure:
[0092] (1) Specifically, the above device may be a computer system composed of a microprocessor, a ROM (Read Only Memory), a RAM (Random Access Memory), a hard disk unit, a display unit, a keyboard, a mouse, etc. A computer program is stored in the RAM or the hard disk unit. The microprocessor operates according to the computer program, causing at least one of the above devices to achieve its function. Here, the computer program is composed of a combination of multiple instruction codes that indicate commands for a computer to achieve a specified function.
[0093] (2) Some or all of the components constituting the above-mentioned device may be composed of one system LSI (Large Scale Integration). The system LSI is an ultra-multifunctional LSI manufactured by integrating multiple components on one chip, and specifically, is a computer system composed of a microprocessor, ROM, RAM, etc. A computer program is stored in the RAM. The system LSI achieves its functions by the microprocessor operating in accordance with the computer program.
[0094] (3) Some or all of the components constituting the above-mentioned device may be composed of an IC card or a standalone module that is detachable from the device. The IC card or module is a computer system composed of a microprocessor, ROM, RAM, etc. The IC card or module may include the above-mentioned ultra-multifunction LSI. The IC card or module achieves its functions by the microprocessor operating according to a computer program. This IC card or module may be tamper-resistant.
[0095] (4) The present disclosure may be embodied as any of the methods described above, a computer program for implementing these methods on a computer, or a digital signal comprising a computer program.
[0096] The present disclosure may also be a computer program or a digital signal recorded on a computer-readable recording medium, such as a flexible disk, a hard disk, a CD (Compact Disc)-ROM, a DVD, a DVD-ROM, a DVD-RAM, a BD (Blu-ray (registered trademark) Disc), a semiconductor memory, etc. Also, the present disclosure may be a digital signal recorded on such a recording medium.
[0097] The present disclosure may also involve transmitting a computer program or a digital signal via a telecommunications line, a wireless or wired communication line, a network such as the Internet, data broadcasting, or the like.
[0098] Furthermore, the program or digital signal may be recorded on a recording medium and transferred, or the program or digital signal may be transferred via a network or the like, so that the program or digital signal may be implemented by another independent computer system. [Industrial Applicability]
[0099] The object detection device of the present disclosure can suppress deterioration of detection performance, and can be applied, for example, to devices or systems that detect objects around a vehicle. [Explanation of symbols]
[0100] 1 person 100 Object detection device 110 Camera 120 Processing section 121 Image conversion section 122 Environmental Estimation Department 122a Imaging environment information 123 Correction section 124 Detection unit 124a Detection result information 125 Storage section 125a Learning Environment Information 125b Learning Model d1 lower area d2 Garnish area Pa, Pb camera images Pc, Pc1, Pc2, Pc3 Corrected Camera Images V Vehicle
Claims
1. an environment estimation unit that estimates an environment captured by the camera as an imaging environment; a correction unit that generates a corrected camera image by correcting a camera image obtained by imaging the image capturing environment with the camera based on a difference between a learning environment and the image capturing environment; a detection unit that detects an object shown in the corrected camera image by inputting the corrected camera image into a trained learning model; The learning environment includes: An environment in which learning images used to input a learning model are obtained in order to generate the learned learning model by machine learning, The machine learning method includes: A learning process is performed on the learning model so that, in response to an input of the learning image to the learning model, information indicating a detection result of an object shown in the learning image is output, The correction unit corrects the camera image by correcting the camera image so that the camera image approaches an image obtained by capturing an image by the camera in the learning environment; Object detection device.
2. The imaging environment includes: Including the installation state of the camera, The learning environment includes: Including the installation state of a learning camera for obtaining the learning image, The object detection device according to claim 1 .
3. The installation state of the camera is as follows: At least one of the height of the installed camera from the ground, the angle of the installed camera, and the state of a garnish area in which a garnish, which is an object other than the detection target of the detection unit, is reflected in the camera image, The installation state of the learning camera is as follows: At least one of the following: the height of the installed learning camera from the ground, the angle of the installed learning camera, and the state of the garnish area where the garnish is reflected in the learning image. The object detection device according to claim 2 .
4. The imaging environment includes: The image characteristic of the camera image is included, The learning environment includes: Including image features of the learning images, The object detection device according to claim 1 .
5. The image feature amount of the camera image is At least one of brightness, contrast, frequency characteristic value, color information, and noise characteristic value in the camera image, The image feature amount of the learning image is At least one of luminance, contrast, frequency characteristic value, color information, and noise characteristic value in the learning image; The object detection device according to claim 4.
6. When there is a difference between the height or angle of the learning camera in the learning environment and the height or angle of the camera in the imaging environment, The correction unit is correcting the camera image by at least rotating the camera image in response to the difference; The object detection device according to claim 3 .
7. When there is a difference between the frequency characteristic value of the learning image, which is the learning environment, and the frequency characteristic value of the camera image, which is the imaging environment, The correction unit is correcting the camera image by applying a filter to the camera image in response to the difference; The object detection device according to claim 5 .
8. If there is a difference between the state of the garnish area of the learning image, which is the learning environment, and the state of the garnish area of the camera image, which is the imaging environment, The correction unit is Correcting the camera image by replacing an image of a portion of the garnish region of the camera image corresponding to the difference with an image of a color not used in the machine learning. The object detection device according to claim 3 .
9. 1. A computer-implemented object detection method, comprising: The environment captured by the camera is estimated as the captured environment. generating a corrected camera image by correcting a camera image obtained by capturing an image in the capturing environment using the camera based on a difference between the learning environment and the capturing environment; Detecting an object shown in the corrected camera image by inputting the corrected camera image into a trained learning model; The learning environment includes: An environment in which learning images used to input a learning model are obtained in order to generate the learned learning model by machine learning, The machine learning method includes: A learning process is performed on the learning model so that, in response to an input of the learning image to the learning model, information indicating a detection result of an object shown in the learning image is output, In the correction of the camera image, correcting the camera image so that the camera image approaches an image obtained by capturing an image by the camera in the learning environment; Object detection methods.
10. A program for a computer to detect an object, The environment captured by the camera is estimated as the captured environment. generating a corrected camera image by correcting a camera image obtained by capturing an image in the capturing environment using the camera based on a difference between the learning environment and the capturing environment; Detecting an object shown in the corrected camera image by inputting the corrected camera image into a trained learning model; causing the computer to execute The learning environment includes: An environment in which learning images used to input a learning model are obtained in order to generate the learned learning model by machine learning, The machine learning method includes: A learning process is performed on the learning model so that, in response to an input of the learning image to the learning model, information indicating a detection result of an object shown in the learning image is output, In the correction of the camera image, correcting the camera image so that the camera image approaches an image obtained by capturing an image by the camera in the learning environment; program.
Citation Information
Patent Citations
Image processing apparatus, image forming apparatus, image reading apparatus, and image processing method
JP2007299210A
Information processing device, information processing method, and program
JP2019125116A
Information processor, information processing system, and information processing method and program
JP2020046928A
Object recognition device, object recognition method, and object recognition program
JP2021026685A
Operation processing device, object identifying system, learning method, automobile, and lighting appliance for vehicle
WO2019194256A1
Cited By
Image processing apparatus and image processing method
JP2026154228A
