Automated hyperspectral learning system
A DNN-based learning system converts low-resolution RGB images into high-resolution data using hyperspectral training, addressing the limitations of RGB cameras and hyperspectral costs, enhancing object inspection accuracy.
Patent Information
- Application Number
- JP2023020561
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-02-14
- Publication Date
- 2024-08-26
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Conventional RGB cameras struggle to capture detailed features of objects due to their limited resolution, while hyperspectral cameras, though capable of capturing fine details, are expensive and impractical for widespread use.
A learning system that utilizes a deep neural network (DNN) to convert low-resolution RGB image data into high-resolution data by training with hyperspectral image data, enabling accurate feature extraction and prediction without the need for expensive hyperspectral cameras.
The system enhances the resolution of RGB images to reveal features like scratches or grooves, improving object inspection accuracy while reducing costs by leveraging affordable RGB cameras and DNNs.
Smart Images

Figure 2024115086000001
Abstract
Description
[Technical field]
[0001] The present invention relates to a learning system that uses a high-resolution camera with multiple bands (wavelengths) or multiple channels, such as a hyperspectral camera, and in particular to a learning system that uses image data captured by a hyperspectral camera as training data to learn image data captured by a low-resolution camera, such as a visible light or RGB camera, and a prediction system that uses a learning system. [Background technology]
[0002] Objects are recognized or classified using cameras and sensors. For example, a face recognition device in Patent Document 1 obtains face images of a person from different directions using a high-gradation camera and a low-gradation camera, detects a face region from the high-gradation input image, detects a face region from the low-gradation input image, selects the image of the face region obtained from the high-gradation image and the image of the face region obtained from the low-gradation image with the highest evaluation value, performs face matching processing, and provides a face recognition method that is robust against illumination variations. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2009-134593 A Summary of the Invention [Problem to be solved by the invention]
[0004] Generally, digital cameras used for face recognition are RGB cameras, which convert light in three bands (wavelengths) of the visible light range, red, green, and blue, into electrical signals and generate three pieces of RGB image data. Images generated by RGB image data can provide images that are close to human visual information.
[0005] An RGB camera includes an imaging element such as a CMOS sensor or CCD, and the RGB image data converted into an electrical signal by the imaging element is composed of, for example, 24-bit data (R / G / B=8 bits). By increasing the number of pixels in the CMOS sensor, it is possible to obtain high-resolution image data such as 4K images.
[0006] By increasing the resolution of RGB image data, it is possible to visually recognize the details of an imaged object when the image data is displayed on a display, but depending on the object's shape, material, and imaging conditions (e.g., brightness, shooting direction, etc.), it may not be possible to clearly recognize the details of the object. For example, in an object inspection process, if fine scratches and grooves on the object's surface cannot be clearly recognized from an image generated using RGB image data, it becomes impossible to accurately determine whether the object is good or bad.
[0007] On the other hand, if a hyperspectral camera with high resolution in multiple bands (wavelengths) or channels is used, it becomes possible to clearly see features such as scratches that cannot be clearly seen from RGB image data. However, hyperspectral cameras are very expensive, and it is not realistic to use a hyperspectral camera to perform all inspections.
[0008] The present invention is devised to solve such conventional problems, and aims to provide a learning system that uses image data captured by a high-resolution camera with multiple bands (wavelengths) or multiple channels to learn from image data captured by a low-resolution camera such as a visible light or RGB camera, and a prediction system that utilizes the same. [Means for solving the problem]
[0009] The learning method of the present invention is executed by a learning system using a high-resolution camera, and includes the steps of capturing images of the same object with a low-resolution camera and a high-resolution camera, and learning the image data captured by the low-resolution camera using the image data captured by the high-resolution camera as teacher data.
[0010] In one aspect, the learning method further includes a step of extracting teacher data by preprocessing the high-resolution image data, and the learning step learns the low-resolution image data using the extracted teacher data. In one aspect, the learning step learns using a DNN that uses low-resolution image data as input and high-resolution image data as teacher data. In one aspect, the extracting step extracts image data of a specific wavelength as teacher data from the high-resolution image data. In one aspect, the teacher data is image data that represents the material, shape, size, or quality of an object. In one aspect, the low-resolution camera is an RGB camera or a visible light camera, and the high-resolution camera is a hyperspectral camera.
[0011] The learning system using a high-resolution camera of the present invention includes an imaging means for imaging the same object with a low-resolution camera and a high-resolution camera, and a learning means for learning image data captured by the low-resolution camera using image data captured by the high-resolution camera as teacher data.
[0012] In one embodiment, the learning system further includes an extraction means for extracting teacher data from high-resolution image data, and the learning means learns low-resolution image data using the teacher data extracted by the extraction means. In one embodiment, the learning means includes a DNN that uses low-resolution image data as input and high-resolution image data as teacher data. In one embodiment, the extraction means extracts image data of a specific wavelength from the high-resolution image data as teacher data. In one embodiment, the teacher data is image data that represents the material, shape, size, or quality of an object. In one embodiment, the low-resolution camera is an RGB camera or a visible light camera, and the high-resolution camera is a hyperspectral camera. In one embodiment, the learning system further includes an output means that inputs RGB image data captured by an RGB camera to the learning means and outputs RGB image data including features when captured by the hyperspectral camera. Effect of the Invention
[0013] According to the present invention, by using image data captured by a camera with high resolution of multiple bands (wavelengths) or multiple channels as training data for learning image data captured by a camera with low resolution such as an RGB camera, it is possible to obtain image data having characteristics that would have been obtained if the image had been captured by a camera with high resolution, without using a camera with high resolution, thereby reducing the cost of predicting or inspecting an object. [Brief description of the drawings]
[0014] [Figure 1] 1 is a block diagram showing the overall configuration of a learning and prediction system according to an embodiment of the present invention. [Diagram 2] FIG. 1 is a diagram showing an example of image data captured by an RGB camera and an example of image data captured by a hyperspectral camera. [Diagram 3] FIG. 4 is a diagram illustrating the operation of an AI unit according to an embodiment of the present invention. [Figure 4] FIG. 2 is a diagram showing an operation flow of the learning and prediction system according to an embodiment of the present invention. [Diagram 5] FIG. 13 is a block diagram showing a configuration of a learning and prediction system according to another embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0015] One feature of the learning and prediction system of the present invention is that it uses image data captured by a hyperspectral camera, which is a camera with high resolution in multiple bands (wavelengths) or multiple channels, as training data, and learns image data captured by a camera with low resolution such as an RGB camera, for example, using a DNN (deep neural network).Then, using the trained DNN, an RGB image having the characteristics captured by the hyperspectral camera is generated from the image data captured by the RGB camera.
[0016] The learning and prediction system of the present invention can be applied to a variety of applications, such as an object recognition system or object detection system that recognizes or detects the material, shape, size, quality, etc. of an object.
[0017] A hyperspectral camera measures (photographs) an object at intervals of several nm in hundreds of wavelengths (several hundred bands) in the range from visible light to infrared light, for example, and an image generated from the measured image data has a very high resolution compared to an image generated from three-band image data of an RGB camera. In other words, each pixel of an image captured by an RGB camera is represented by three wavelengths of R, G, and B, but each pixel of an image captured by a hyperspectral camera is represented by, for example, several hundred wavelengths. Therefore, an image captured by a hyperspectral camera has a high resolution and can capture features of an object that are difficult to see from an RGB image. On the other hand, a hyperspectral camera is very expensive compared to an RGB camera.
[0018] In a preferred embodiment, the learning and prediction system of the present invention uses image data from a hyperspectral camera as training data and has a DNN learn image data from an RGB camera. Then, when predicting or measuring an object, the trained DNN is used to input image data captured by the RGB camera to the DNN, and RGB image data having characteristics when captured by the hyperspectral camera is output, making it possible to predict the characteristics of the object that would have been obtained if it had been captured by the hyperspectral camera. This makes it possible to obtain RGB image data having characteristics when captured by a hyperspectral camera using the trained DNN without constantly using a very expensive hyperspectral camera. EXAMPLES
[0019] Next, an embodiment of the present invention will be described with reference to the drawings. Fig. 1 is a block diagram showing the configuration of a learning and prediction system according to an embodiment of the present invention, in which Fig. 1(A) shows the configuration at the time of learning, and Fig. 1(B) shows the configuration at the time of prediction.
[0020] As shown in FIG. 1(A), the learning and prediction system 100 of this embodiment includes an RGB camera 110 that captures an image of an object S as a subject, a hyperspectral camera 120 that captures the same object S, and an AI (artificial intelligence) unit 130 that inputs the RGB image data captured by the RGB camera 110, uses the image data captured by the hyperspectral camera 120 as training data, and performs learning on the RGB image data.
[0021] The RGB camera 110 converts light of three wavelengths input through, for example, RGB color filters into electrical signals using a CMOS sensor or CCD, and generates RGB image data of the three wavelengths as shown in Fig. 2(A). One pixel is composed of, for example, 24-bit data (R=G=B=8 bits), and in this case, one pixel can express 256 x 256 x 256 colors. By increasing the number of pixels in the CMOS sensor or CCD, the RGB image data can be made to have a higher resolution, such as a 4K image.
[0022] On the other hand, the hyperspectral camera 120 captures (measures) an object in hundreds of bands (wavelengths) within the range of, for example, visible light to infrared light. The wavelength spectroscopy method is not particularly limited, but for example, a reflective grating, a wavelength variable filter, etc. can be used. The image data captured by the hyperspectral camera 120 is composed of 250 wavelength bands at 5 nm intervals within the imaging range of 450 nm to 1700 nm, as shown in FIG. 2(B), and in this case, one pixel is composed of, for example, 2 Kbits (8×250). For example, even if the characteristics of an object are difficult to express by RGB wavelengths, the characteristics can be expressed more clearly with light of hundreds of wavelengths.
[0023] The AI unit 130 receives RGB image data captured by the RGB camera 110 as input, and uses hyperspectral image data captured by the hyperspectral camera 120 as training data, and performs machine learning of the RGB image data using, for example, a DNN (deep neural network).
[0024] FIG. 3(A) shows an example of the configuration of a DNN. The DNN includes an input layer, multiple intermediate layers, and an output layer. The input layer receives RGB image data captured by the RGB camera 110. The size of the input layer may be determined according to the number of pixels of the RGB camera 110. Also, a window may be moved from within the RGB image data (frame) to select an image area contained in the window, and image data of the selected image area may be input. This allows efficient processing compatible with high-resolution RGB image data.
[0025] The multiple intermediate layers perform arithmetic processing to extract features of the RGB image data, and the output layer outputs image data having the features extracted by the intermediate layers.
[0026] The DNN compares the image data from which the features are extracted and output from the output layer with the image data from which the features are captured by the hyperspectral camera 120, which is the teacher data, and if there is a discrepancy (difference) between the two, the weights (parameters) between each layer of the DNN are corrected or adjusted so as to reduce the difference. The DNN performs machine learning using a large amount of RGB image data and teacher data.
[0027] The RGB camera 110 and the hyperspectral camera 120 capture images of the same object S, and there is a strong correlation between the image data of the two. However, since the RGB image data has a lower resolution than the hyperspectral image data, even if the hyperspectral image can capture the characteristics of the object S, it may be difficult to capture the characteristics of the object S from the RGB image. For example, when capturing an image of a metal surface, the RGB image cannot capture minute grooves or scratches on the surface using three wavelengths, but the hyperspectral image can capture such grooves, scratches, etc. using multiple wavelengths.
[0028] The DNN extracts latent information or its features that are difficult to identify visually from the RGB image data, and adjusts weights (parameters) so that the extracted features match the features of the image data captured by the hyperspectral camera 120. By repeating such a learning process, the latent features contained in the RGB image data are associated with the features of the hyperspectral image data. Note that the higher the resolution of the RGB image data (the larger the number of pixels), the more latent features are contained in the RGB image data, and the higher the number of features associated with the hyperspectral image data, thereby further improving the learning accuracy.
[0029] The AI unit 130 can also use a learning method other than DNN, for example, RGB image data may be learned by a convolutional neural network. The convolutional neural network includes a convolutional layer and a pooling layer, and extracts features of the image data.
[0030] Next, the configuration of the learning and prediction system 100 of this embodiment at the time of prediction will be described. As shown in Fig. 1(B), the learning and prediction system 100 captures an object P to be predicted by an RGB camera 110, and provides the captured RGB image data to an AI unit 130. The AI unit 130 inputs the RGB image data, and outputs image data including features of the hyperspectral image from an output unit 140.
[0031] 3B shows the DNN of the AI unit 130 at the time of prediction. The DNN inputs RGB image data of an object P to be predicted to the input layer, performs calculations based on learned weights (parameters) in the intermediate layer, generates an image including the features of the hyperspectral camera image in the output layer, and outputs RGB image data having the features of the hyperspectral image to the output unit 140.
[0032] The output unit 140, for example, displays RGB image data having the characteristics of a hyperspectral image on a display, and the user can visually recognize the characteristics of the object P (e.g., material, shape, size, surface condition such as scratches) from the RGB image data having the characteristics of the hyperspectral image displayed on the display, which could not be recognized from unlearned RGB image data.
[0033] In the above example, RGB image data is input to the trained DNN, but if the DNN is learning binary image data or grayscale image data, binary image data or grayscale image data may be input to the trained DNN and binary image data or grayscale image data having the characteristics of a hyperspectral image may be output from the output unit 140.
[0034] Next, the operation flow of the learning and prediction system 100 of this embodiment during learning and prediction is shown in Fig. 4 (A) and (B). During learning, the learning and prediction system 100 photographs the same object with an RGB camera and a hyperspectral camera (S100), and automatically trains the DNN by using the image data captured by the hyperspectral camera as teacher data and the image data captured by the RGB camera as input (S110). Note that instead of inputting the RGB image data of the entire area to the DNN, for example, RGB image data of only a predetermined specific area may be input to the DNN. In this case, the image data captured by the hyperspectral camera corresponds to the specific area and becomes the teacher data. When the error between the image data of the output layer of the DNN and the teacher data disappears or becomes equal to or less than a certain amount, the machine learning is terminated, and the learning data of the DNN is stored in a memory or the like (S120).
[0035] Next, when predicting an object using the trained DNN, the object is photographed with an RGB camera (S200), and the image data photographed by the RGB camera is input to the input layer of the DNN. Based on the learning result, the DNN generates RGB image data having characteristics that would have been obtained if the object had been photographed with a hyperspectral camera in the output layer, and outputs the RGB image data having the characteristics of the hyperspectral image to the output unit 140 (S210). The user can visually recognize the characteristics of the object P from the RGB image data having the characteristics of the hyperspectral image output to the output unit 140.
[0036] Thus, according to this embodiment, a trained DNN can be used without using a very expensive hyperspectral camera to generate an RGB image from RGB image data that contains features that would have been obtained if the image had been captured by a hyperspectral camera, and this can be used to predict the features of an object.
[0037] Next, a second embodiment of the present invention will be described. In the first embodiment, the image data captured by the hyperspectral camera 120 is used as the teacher data as it is, but in the second embodiment, the learning system 100A includes a pre-processing unit 200 that extracts teacher data from the image data captured by the hyperspectral camera 120. The pre-processing unit 200 is not particularly limited, but may include, for example, an image filter, a sensor, a calculation processing unit, etc., and improves the accuracy of the teacher data required for learning the DNN and improves the prediction accuracy of the object. In addition, the pre-processing unit 200 compresses the teacher data to improve the efficiency of the processing of the AI unit 130.
[0038] In one embodiment, the preprocessing unit 200 may perform compression processing such as Fourier transform on the hyperspectral image and use the resulting data as training data. In another embodiment, the preprocessing unit 200 may classify training data for each type or material of the object S and use the classified data as training data. In yet another embodiment, the preprocessing unit 200 may extract only a specific wavelength from the hyperspectral image and use the extracted wavelength as training data. In yet another embodiment, the preprocessing unit 200 may extract a specific area from the hyperspectral image and use the extracted area as training data.
[0039] The learning and prediction system 100 of this embodiment is configured using hardware resources and software resources. For example, it is configured using a computer device or electronic device including a central processing unit including a CPU, an ALU, etc., an arithmetic processing unit, a memory unit, an input / output unit, an imaging unit, a display unit, a communication unit, a user interface unit, etc. The learning and prediction system 100 may also be a system in which one or more computer devices or electronic devices are connected via a network.
[0040] In one embodiment, the memory unit includes a semiconductor storage device, a hard disk storage device, etc., and stores various data, programs, and software applications to be used for dense prediction. The input / output unit includes a user input device (keyboard, voice input, touch panel, etc.), a display, a voice output device, etc. The communication unit has a function for communicating with a network or an external device via wired or wireless communication means. The communication unit, for example, downloads data from a server connected to the network, uploads data to the server, or acquires data from an imaging camera, a sensor, etc. connected to the network. The arithmetic processing unit includes, for example, an image processing processor or a DSP for processing image data. The central processing unit executes the programs or software applications stored in the memory unit and controls the dense prediction.
[0041] In the above examples, a hyperspectral camera is used as an example of a multi-wavelength or multi-band camera, but this is not limited thereto. The multi-wavelength or multi-band camera may be a multispectral camera that has a greater number of bands than an RGB camera or a visible light camera, but a smaller number of bands than a hyperspectral camera.
[0042] Furthermore, the learning and prediction system of this embodiment can be applied to the following inspections and judgments: material judgment for metals and liquids, detection of foreign matter in food, appearance inspection, and vegetation judgment for measuring the vegetation of an area photographed using images taken at a high level by a helicopter or drone.
[0043] Although the preferred embodiments of the present invention have been described in detail above, the present invention is not limited to the specific embodiments, and various modifications and changes are possible within the scope of the gist of the invention described in the claims. [Explanation of symbols]
[0044] 100: Learning and Prediction Systems 110:RGB camera 120: Hyperspectral camera 130: AI Department 140: Output section 150: Pre-processing section S: Object P: Object
Claims
1. A learning method implemented by a learning system using a high-resolution camera, comprising: capturing images of the same object with a low resolution camera and a high resolution camera; A step of learning image data captured by a camera with a low resolution using image data captured by a camera with a high resolution as training data; Learning methods including:
2. The learning method further includes a step of extracting training data by preprocessing the high-resolution image data; The learning method according to claim 1 , wherein the learning step includes learning low-resolution image data using the extracted teacher data.
3. 2. The learning method according to claim 1, wherein said learning step comprises learning using a DNN that uses low-resolution image data as input and high-resolution image data as teacher data.
4. 3. The learning method according to claim 2, wherein said extracting step extracts image data of a specific wavelength from high-resolution image data as training data.
5. The learning method according to claim 4 , wherein the teacher data is image data representing a material, a shape, a size, or a quality of an object.
6. The learning method according to claim 1 , wherein the low-resolution camera is an RGB camera or a visible light camera, and the high-resolution camera is a hyperspectral camera.
7. A learning system using a high-resolution camera, an imaging means for imaging the same object with a low-resolution camera and a high-resolution camera; A learning means for learning image data captured by a camera with a low resolution using image data captured by a camera with a high resolution as training data; A learning system including:
8. The learning system further includes an extraction means for extracting teacher data from the high-resolution image data, The learning system according to claim 7 , wherein the learning means performs learning of image data with low resolution using the teacher data extracted by the extraction means.
9. 8. The learning system according to claim 7, wherein the learning means includes a DNN that receives low-resolution image data as input and uses high-resolution image data as training data.
10. 9. The learning system according to claim 8, wherein said extracting means extracts image data of a specific wavelength from high-resolution image data as training data.
11. The learning system according to claim 10 , wherein the teacher data is image data representing a material, a shape, a size, or a quality of an object.
12. The learning system of claim 7 , wherein the low resolution camera is an RGB camera or a visible light camera, and the high resolution camera is a hyperspectral camera.
13. The learning system further The learning system according to claim 7 , further comprising an output means for inputting RGB image data captured by an RGB camera to the learning means and outputting RGB image data including features captured by a hyperspectral camera.
Citation Information
Patent Citations
Face authentication device and face authentication method
JP2009134593A
