Spectral sensor response performance detection method and device, equipment and storage medium

By converting spectral data into RGB images and comparing them with visible light imaging sensor images, the deep learning model is used to detect the color response performance of the spectral sensor, which solves the problem of accuracy and high cost of spectral sensor response performance detection in smartphones and other devices, and achieves high efficiency. detection process.

CN118644436APending Publication Date: 2024-09-13BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202310261130.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-10
Publication Date
2024-09-13

AI Technical Summary

Technical Problem

In the manufacturing process of devices such as smartphones, the response performance detection of spectral sensors has problems of insufficient accuracy and high cost, resulting in a waste of detection time and energy.

Method used

By obtaining the spectral data of the spectral sensor in the target scene, converting it into an RGB image, and comparing it with the RGB image collected by the visible light imaging sensor, the deep learning model and color correction technology are used to detect the color response performance of the spectral sensor and avoid the proofing of the spectral sensor module. .

Benefits of technology

It achieves accurate detection of the response performance of the spectral sensor, simplifies the detection process, reduces costs, and saves the time and energy of detection personnel.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118644436A
    Figure CN118644436A
Patent Text Reader

Abstract

The invention relates to a spectral sensor response performance detection method and device, equipment and a storage medium. The method comprises the following steps: acquiring spectral data acquired in a target scene based on a spectral sensor; determining a first RGB image based on the spectral data; the first RGB image is compared with a second RGB image, a comparison result is obtained, and the second RGB image comprises an RGB image collected in the target scene based on a visible light imaging sensor; and detecting the color response performance of the spectrum sensor based on the comparison result. The response performance of the spectrum sensor can be accurately detected, and the response performance of the spectrum sensor is evaluated by using the information in the simulation stage instead of performing spectrum sensor module proofing, so that the detection process can be simplified, a large amount of time and energy of detection personnel can be saved, and the detection efficiency is improved. And the detection cost can be greatly reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of terminal technology, and in particular to a method, device, equipment and storage medium for detecting response performance of a spectral sensor. Background Art

[0002] Spectral sensors such as multispectral sensors and hyperspectral sensors have been widely used in the fields of industry, agriculture, aerospace, etc. because they can obtain both the spatial distribution information and spectral information of objects. With the development of smart terminal technology, devices such as smart phones have become shooting tools for more and more users, and users have higher and higher requirements for the shooting performance of smart phones. By integrating spectral sensors on devices such as smart phones, the spectral imaging function of spectral sensors can be combined with the data processing and image display functions of devices such as smart phones to improve the shooting performance of devices such as smart phones. In the process of manufacturing and leaving the factory of smart phones and other devices, it is necessary to test the response performance of spectral sensors (such as color reproduction performance, etc.), so as to realize the subsequent model selection and parameter debugging of spectral sensors. If the response performance of spectral sensors is tested by proofing spectral sensor modules, it will not only affect the detection accuracy, but also increase the cost of detection materials, and consume a lot of time and energy of detection personnel.

[0003] Therefore, how to accurately detect the response performance of spectral sensors, reduce detection costs, and save the time and energy of detection personnel has become one of the technical problems that need to be solved urgently. Summary of the invention

[0004] In order to overcome the problems existing in the related art, the embodiments of the present disclosure provide a method, device, equipment and storage medium for detecting the response performance of a spectral sensor, so as to solve the defects in the related art.

[0005] According to a first aspect of an embodiment of the present disclosure, a method for detecting response performance of a spectral sensor is provided, the method comprising:

[0006] Acquire spectral data collected by a spectral sensor in a target scene;

[0007] determining a first RGB image based on the spectral data;

[0008] Comparing the first RGB image with a second RGB image to obtain a comparison result, wherein the second RGB image includes an RGB image acquired by a visible light imaging sensor at the target scene;

[0009] The color response performance of the spectral sensor is detected based on the comparison result.

[0010] In some embodiments, determining a first RGB image based on the spectral data comprises:

[0011] interpolating the spectral data to obtain interpolated spectral data;

[0012] Inputting the interpolated spectral data into a pre-trained first deep learning model to obtain first RGB data;

[0013] The first RGB image is determined based on the first RGB data.

[0014] In some embodiments, determining the first RGB image based on the first RGB data includes:

[0015] The first RGB data is simulated through an imaging link PipeLine of an image signal processor to obtain the first RGB image.

[0016] In some embodiments, determining a first RGB image based on the spectral data comprises:

[0017] Based on the quantum efficiency curve of the spectral sensor, obtaining visible light data within a set wavelength range from the spectral data;

[0018] Adjusting the visible light data to multi-channel data with a preset number of channels;

[0019] Determine second RGB data based on the multi-channel data and a color matching function of an RGB space, wherein the color matching function of the RGB space is obtained by converting the color matching function into the RGB space;

[0020] The first RGB image is determined based on the second RGB data.

[0021] In some embodiments, determining the first RGB image based on the second RGB data includes:

[0022] Performing color correction on the second RGB data to obtain corrected second RGB data;

[0023] The first RGB image is determined based on the corrected second RGB data.

[0024] In some embodiments, performing color correction on the second RGB data to obtain corrected second RGB data includes:

[0025] The second RGB data is input into a pre-trained second deep learning model to obtain corrected second RGB data.

[0026] In some embodiments, comparing the first RGB image with the second RGB image to obtain a comparison result includes:

[0027] The first RGB image is compared with the second GRB image as a reference standard Groundtruth, and at least one indicator is determined, wherein the at least one indicator includes at least one of the following:

[0028] Signal-to-noise ratio SNR, peak signal-to-noise ratio PSNR, mean square error peak signal-to-noise ratio cSNR, E color difference Delta E;

[0029] The comparison result is determined based on the at least one indicator.

[0030] According to a second aspect of an embodiment of the present disclosure, a device for detecting response performance of a spectral sensor is provided, the device comprising:

[0031] A spectral data acquisition module is used to acquire spectral data collected by a spectral sensor in a target scene;

[0032] A first image determination module, configured to determine a first RGB image based on the spectral data;

[0033] A comparison result acquisition module, used for comparing the first RGB image with a second RGB image to obtain a comparison result, wherein the second RGB image includes an RGB image acquired by a visible light imaging sensor at the target scene;

[0034] A response performance detection module is used to detect the color response performance of the spectral sensor based on the comparison result.

[0035] In some embodiments, the first image determination module includes a first determination unit;

[0036] The first determining unit is configured to:

[0037] interpolating the spectral data to obtain interpolated spectral data;

[0038] Inputting the interpolated spectral data into a pre-trained first deep learning model to obtain first RGB data;

[0039] The first RGB image is determined based on the first RGB data.

[0040] In some embodiments, the first determining unit is further configured to simulate the first RGB data through an imaging link PipeLine of an image signal processor to obtain the first RGB image.

[0041] In some embodiments, the first image determination module includes a second determination unit;

[0042] The second determining unit is configured to:

[0043] Based on the quantum efficiency curve of the spectral sensor, obtaining visible light data within a set wavelength range from the spectral data;

[0044] Adjusting the visible light data to multi-channel data with a preset number of channels;

[0045] Determine second RGB data based on the multi-channel data and a color matching function of an RGB space, wherein the color matching function of the RGB space is obtained by converting the color matching function into the RGB space;

[0046] The first RGB image is determined based on the second RGB data.

[0047] In some embodiments, the second determining unit is further configured to:

[0048] Performing color correction on the second RGB data to obtain corrected second RGB data;

[0049] The first RGB image is determined based on the corrected second RGB data.

[0050] In some embodiments, the second determination unit is further used to input the second RGB data into a pre-trained second deep learning model to obtain corrected second RGB data.

[0051] In some embodiments, the comparison result acquisition module includes:

[0052] An indicator determination unit is used to compare the first RGB image with the second GRB image as a reference standard Groundtruth, and determine at least one indicator, wherein the at least one indicator includes at least one of the following:

[0053] Signal-to-noise ratio SNR, peak signal-to-noise ratio PSNR, mean square error peak signal-to-noise ratio cSNR, E color difference Delta E;

[0054] A result determination unit is used to determine the comparison result based on the at least one indicator.

[0055] According to a third aspect of an embodiment of the present disclosure, an electronic device is provided, the device comprising:

[0056] a processor and a memory for storing a computer program;

[0057] Wherein, the processor is configured to implement, when executing the computer program:

[0058] Acquire spectral data collected by a spectral sensor in a target scene;

[0059] determining a first RGB image based on the spectral data;

[0060] Comparing the first RGB image with a second RGB image to obtain a comparison result, wherein the second RGB image includes an RGB image acquired by a visible light imaging sensor at the target scene;

[0061] The color response performance of the spectral sensor is detected based on the comparison result.

[0062] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the following is implemented:

[0063] Acquire spectral data collected by a spectral sensor in a target scene;

[0064] determining a first RGB image based on the spectral data;

[0065] Comparing the first RGB image with a second RGB image to obtain a comparison result, wherein the second RGB image includes an RGB image acquired by a visible light imaging sensor at the target scene;

[0066] The color response performance of the spectral sensor is detected based on the comparison result.

[0067] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:

[0068] The present disclosure obtains spectral data collected by a spectral sensor in a target scene, determines a first RGB image based on the spectral data, and then compares the first RGB image with a second RGB image to obtain a comparison result, wherein the second RGB image includes an RGB image collected by a visible light imaging sensor in the target scene, and then detects the color response performance of the spectral sensor based on the comparison result. Since the first RGB image is determined based on the spectral data, and the color response performance of the spectral sensor is detected based on the comparison result between the first RGB image and the second RGB image, the spectral data can be converted into an RGB space, and then the first RGB image is detected based on a data detection method for the RGB space, thereby reflecting the response performance of the spectral sensor, and accurately detecting the response performance of the spectral sensor can be achieved. Moreover, since there is no need to proof the spectral sensor module, but the response performance of the spectral sensor is evaluated by using the information in the simulation stage, not only the detection process can be simplified, but a lot of time and energy of the detection personnel can be saved, and the detection cost can also be greatly reduced.

[0069] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0070] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0071] Figure 1A is a flow chart of a method for detecting response performance of a spectral sensor according to an exemplary embodiment of the present disclosure;

[0072] Figure 1B is a schematic diagram of a format of spectral data according to an exemplary embodiment of the present disclosure;

[0073] Figure 1C is a schematic diagram of the format of RGB data according to an exemplary embodiment of the present disclosure;

[0074] Figure 2 is a flowchart showing how to determine a first RGB image based on the spectral data according to an exemplary embodiment of the present disclosure;

[0075] Figure 3A is a flowchart showing how to determine a first RGB image based on the spectral data according to an exemplary embodiment of the present disclosure;

[0076] Figure 3B is a quantum efficiency curve diagram of a spectral sensor according to an exemplary embodiment of the present disclosure;

[0077] Figure 4 is a flowchart showing how to determine the first RGB image based on the second RGB data according to an exemplary embodiment of the present disclosure;

[0078] Figure 5 is a flowchart showing how to compare the first RGB image with the second RGB image according to an exemplary embodiment of the present disclosure;

[0079] Figure 6 is a block diagram of a spectral sensor response performance detection device according to an exemplary embodiment of the present disclosure;

[0080] Figure 7 is a block diagram of another spectral sensor response performance detection device according to an exemplary embodiment of the present disclosure;

[0081] Figure 8 It is a block diagram of an electronic device according to an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION

[0082] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0083] Figure 1A It is a flow chart of a method for detecting the response performance of a spectral sensor according to an exemplary embodiment; the method of this embodiment can be applied to a server such as a local server and a cloud server with data processing capabilities, and the server can be deployed in a device cluster consisting of one electronic device or multiple electronic devices.

[0084] like Figure 1A As shown, the method includes the following steps S101-S104:

[0085] In step S101, spectral data collected by a spectral sensor in a target scene is acquired.

[0086] In this embodiment, when the response performance of the spectral sensor needs to be detected, spectral data can be collected in a target scene based on the spectral sensor, and then the spectral data can be acquired.

[0087] In some embodiments, the spectral sensor may include at least one of a hyperspectral sensor and a multispectral sensor, which is not limited in this embodiment.

[0088] The above target scene can be set based on actual business needs, such as being set to a single light source scene, a multi-light source scene, etc., which is not limited in this embodiment.

[0089] In step S102, a first RGB image is determined based on the spectral data.

[0090] In this embodiment, after the spectral data collected by the spectral sensor in the target scene is acquired, the first RGB image can be determined based on the spectral data.

[0091] For example, Figure 1B is a schematic diagram of a format of spectral data according to an exemplary embodiment of the present disclosure; Figure 1C FIG. 1 is a schematic diagram showing the format of RGB data according to an exemplary embodiment of the present disclosure. Figure 1B and Figure 1CAs shown, the format of the spectral data collected by the spectral sensor is quite different from that of the data collected by the traditional visible light imaging sensor (such as RGB camera, etc.). There are few solutions for detecting the response performance of spectral sensors in the related art, and the spectral data collected by the spectral sensor cannot be directly detected using the data detection method for the RGB space. Therefore, in this embodiment, after obtaining the spectral data collected by the spectral sensor in the target scene, the first RGB image is determined based on the spectral data, that is, the spectral data collected by the spectral sensor is converted to the RGB space, so that the first RGB image can be detected by the subsequent data detection method based on the RGB space.

[0092] In some embodiments, the first RGB image may be determined based on the spectral data based on a correlation between pre-acquired spectral data and RGB image data.

[0093] In some other embodiments, the above method of determining the first RGB image based on the spectral data can also refer to the following Figure 2 or Figure 3A The illustrated embodiment will not be described in detail here.

[0094] In step S103, the first RGB image is compared with the second RGB image to obtain a comparison result.

[0095] In this embodiment, after determining the first RGB image based on the spectral data, the first RGB image can be compared with the second RGB image to obtain a comparison result, wherein the second RGB image includes an RGB image captured by a visible light imaging sensor (such as an RGB camera, etc.) at the target scene.

[0096] It is worth noting that the above-mentioned method of comparing the first RGB image with the second RGB image can be selected from the image quality detection algorithm in the relevant technology based on actual business needs. For example, the second GRB image can be used as a reference standard Groundtruth, and then the first RGB image is compared with the reference standard Groundtruth to obtain a comparison result. This embodiment is not limited to this.

[0097] In some other embodiments, the method of comparing the first RGB image with the second RGB image to obtain the comparison result can also refer to the following Figure 5 The illustrated embodiment will not be described in detail here.

[0098] In step S104, the color response performance of the spectral sensor is detected based on the comparison result.

[0099] In this embodiment, after the first RGB image is compared with the second RGB image to obtain a comparison result, the color response performance of the spectral sensor can be detected based on the comparison result.

[0100] For example, if the comparison result shows that the image quality of the first RGB image is better, it can be considered that the color response performance of the spectral sensor is higher; conversely, if the comparison result shows that the image quality of the first RGB image is worse, it can be considered that the color response performance of the spectral sensor is lower.

[0101] As can be seen from the above description, the method of this embodiment obtains spectral data collected by a spectral sensor in a target scene, determines a first RGB image based on the spectral data, and then compares the first RGB image with the second RGB image to obtain a comparison result, wherein the second RGB image includes an RGB image collected by a visible light imaging sensor in the target scene, and then detects the color response performance of the spectral sensor based on the comparison result. Since the first RGB image is determined based on the spectral data, and the color response performance of the spectral sensor is detected based on the comparison result between the first RGB image and the second RGB image, the spectral data can be converted into an RGB space, and then the first RGB image is detected based on the data detection method of the RGB space, thereby reflecting the response performance of the spectral sensor, and the response performance of the spectral sensor can be accurately detected. Moreover, since there is no need to proof the spectral sensor module, but the response performance of the spectral sensor is evaluated by using the information in the simulation stage, not only the detection process can be simplified, but also a lot of time and energy of the detection personnel can be saved, and the detection cost can be greatly reduced.

[0102] Figure 2 is a flowchart showing how to determine a first RGB image based on the spectral data according to an exemplary embodiment of the present disclosure;

[0103] This embodiment is based on the above embodiment and takes how to determine the first RGB image based on the spectral data as an example for illustrative description.

[0104] like Figure 2 As shown, determining the first RGB image based on the spectral data in the above step S102 may include the following steps S201-S203:

[0105] In step S201, the spectral data is interpolated to obtain interpolated spectral data.

[0106] In this embodiment, after the above spectral data is obtained, in order to fill the missing pixels of each channel and improve the quality of the subsequent determination of the first RGB image, the spectral data can be interpolated using a common interpolation algorithm in the relevant technology to obtain interpolated spectral data.

[0107] In step S202, the interpolated spectral data is input into a pre-trained first deep learning model to obtain first RGB data.

[0108] In this embodiment, after the spectral data is interpolated to obtain interpolated spectral data, the interpolated spectral data can be input into a pre-trained first deep learning model to obtain first RGB data.

[0109] It is worth noting that although the RGB image can be directly determined based on the above-mentioned interpolated spectral data, the color difference between this RGB image and the actual displayed image is large. Therefore, this embodiment pre-trains the above-mentioned first deep learning model through deep learning technology, and then processes the above-mentioned interpolated spectral data based on the first deep learning model to obtain the first RGB data.

[0110] The first deep learning model can be a network model obtained by training based on sample image data collected by a selected standard RGB camera as groundtruth. The type of the first deep learning model can be set based on actual needs, such as a Unet network, a CNN network, etc., which is not limited in this embodiment.

[0111] In step S203, the first RGB image is determined based on the first RGB data.

[0112] In this embodiment, when the interpolated spectral data is input into a pre-trained first deep learning model to obtain first RGB data, the first RGB image can be determined based on the first RGB data.

[0113] In some embodiments, the above-mentioned method of determining the first RGB image based on the first RGB data can be set based on actual business needs, which is not limited in this embodiment.

[0114] In other embodiments, when the first RGB image is determined based on the first RGB data, the first RGB data can be simulated through an imaging link PipeLine of an image signal processor ISP. Furthermore, the first RGB data can be corrected based on color adjustment modules such as color correction (Color Correct) and gamma correction (Gamma), so as to obtain the above-mentioned first RGB image.

[0115] From the above description, it can be seen that this embodiment interpolates the spectral data to obtain interpolated spectral data, and inputs the interpolated spectral data into a pre-trained first deep learning model to obtain first RGB data, and then determines the first RGB image based on the first RGB data. This can accurately determine the first RGB image based on the spectral data, and then subsequently detect the color response performance of the spectral sensor based on the comparison result of the first RGB image and the second RGB image. This can not only simplify the detection process, thereby saving a lot of time and energy of the detection personnel, but also greatly reduce the detection cost.

[0116] Figure 3A It is a flowchart showing how to determine the first RGB image based on the spectral data according to an exemplary embodiment of the present disclosure; based on the above embodiment, this embodiment takes how to determine the first RGB image based on the spectral data as an example for exemplary description.

[0117] like Figure 3A As shown, determining the first RGB image based on the spectral data in the above step S102 may include the following steps S301-S304:

[0118] In step S301, based on the quantum efficiency curve of the spectral sensor, visible light data within a set wavelength range is acquired from the spectral data.

[0119] In this embodiment, a quantum efficiency (QE) curve of the spectral sensor can be obtained in advance based on a set method, and then after obtaining spectral data collected by the spectral sensor in the target scene, visible light data within a set wavelength range can be obtained from the spectral data based on the quantum efficiency curve of the spectral sensor.

[0120] For example, Figure 3B FIG. 1 is a graph showing the quantum efficiency of a spectral sensor according to an exemplary embodiment of the present disclosure. Figure 3B As shown, in this embodiment, the above-mentioned set wavelength (Wavelength) range can be set based on actual business needs, such as being set to a range of 400 to 700 nm, etc., and this embodiment does not limit this.

[0121] In step S302, the visible light data is adjusted to multi-channel data with a preset number of channels.

[0122] In this embodiment, after the visible light data within the set wavelength range is acquired from the spectrum data, the visible light data may be adjusted to multi-channel data with a preset number of channels.

[0123] For example, after obtaining the visible light data in the above-mentioned range of 400-700 nm, the visible light data can be adjusted to multi-channel data with a preset number of channels by interpolating or reducing the dimensionality (eg, downsampling) the spectral data.

[0124] In some embodiments, the preset number of channels can be set based on the wavelength of the data in the color matching function, such as 31 channels, and the interval between adjacent channels is 10 nm. That is to say, in this embodiment, the visible light data is adjusted to multi-channel data with a preset number of channels, in order to obtain a spectral data matrix consistent with the wavelength in the color matching function (CMF), so that the subsequent matrix operation of the spectral data matrix and the CMF of the RGB space can be realized.

[0125] It is worth noting that the above algorithm for interpolating spectral data can be set based on actual business needs, such as being set to a three-spline difference algorithm, etc., which is not limited in this embodiment.

[0126] In step S303, second RGB data is determined based on the color matching function between the multi-channel data and the RGB space.

[0127] In this embodiment, after the visible light data is adjusted to multi-channel data with a preset number of channels, the second RGB data can be determined based on the multi-channel data and the color matching function of the RGB space, wherein the color matching function of the RGB space is obtained by converting the color matching function into the RGB space.

[0128] It is worth noting that since the color matching function (CMF) is data in the XYZ space, it is necessary to first transform the color matching function (CMF) into the RGB space by means of matrix transformation to obtain the color matching function in the RGB space before it can be operated with the above-mentioned multi-channel data to obtain the second RGB data.

[0129] For example, when based on the color matching function of the multi-channel data and the RGB space, the multi-channel data and the color matching function of the RGB space may be subjected to matrix multiplication operation to obtain data in the RGB domain, namely, the second RGB data.

[0130] In step S304, the first RGB image is determined based on the second RGB data.

[0131] In this embodiment, after the second RGB data is determined based on the color matching function between the multi-channel data and the RGB space, the first RGB image can be determined based on the second RGB data.

[0132] As can be seen from the above description, this embodiment obtains visible light data within a set wavelength range from the spectral data based on the quantum efficiency curve of the spectral sensor, and adjusts the visible light data to multi-channel data with a preset number of channels, and then determines the second RGB data based on the color matching function of the multi-channel data and the RGB space, and then determines the first RGB image based on the second RGB data. This can accurately determine the first RGB image based on the spectral data, and lay a foundation for subsequently detecting the color response performance of the spectral sensor based on the comparison result of the first RGB image and the second RGB image. This can not only simplify the detection process and save a lot of time and energy of the detection personnel, but also greatly reduce the detection cost.

[0133] Figure 4 It is a flowchart showing how to determine the first RGB image based on the second RGB data according to an exemplary embodiment of the present disclosure; based on the above embodiment, this embodiment uses how to determine the first RGB image based on the second RGB data as an example to exemplify.

[0134] like Figure 4 As shown, determining the first RGB image based on the second RGB data in the above step S304 may include the following steps S401-S402:

[0135] In step S401, color correction is performed on the second RGB data to obtain corrected second RGB data.

[0136] In this embodiment, after the second RGB data is determined based on the color matching function of the multi-channel data and the RGB space, in order to improve the accuracy of the second RGB data determined in the above step S303, color correction can be performed on the second RGB data to obtain corrected second RGB data.

[0137] In some embodiments, a color correction matrix for color correction can be calculated based on a standard 24-color card, and then the second RGB data determined in the above step S303 is corrected through color adjustment modules such as color correction (Color Correct) and gamma correction (Gamma) to obtain corrected second RGB data.

[0138] In other embodiments, the second RGB data may be input into a pre-trained second deep learning model to obtain corrected second RGB data. The second deep learning model may be a network model obtained by training based on sample image data collected by a selected standard RGB camera as groundtruth. The type of the second deep learning model may be set based on actual needs, such as a Unet network, a CNN network, etc., which is not limited in this embodiment.

[0139] In step S402, the first RGB image is determined based on the corrected second RGB data.

[0140] In this embodiment, after color correction is performed on the second RGB data to obtain corrected second RGB data, the first RGB image may be determined based on the corrected second RGB data.

[0141] From the above description, it can be seen that in this embodiment, by performing color correction on the second RGB data to obtain corrected second RGB data, and determining the first RGB image based on the corrected second RGB data, the accuracy of determining the first RGB image can be further improved, and the accuracy of subsequent detection of the color response performance of the spectral sensor based on the comparison result of the first RGB image and the second RGB image can be improved, which can save a lot of time and energy of the detection personnel and can also greatly reduce the detection cost.

[0142] Figure 5 It is a flowchart showing how to compare the first RGB image with the second RGB image according to an exemplary embodiment of the present disclosure; based on the above embodiment, this embodiment uses how to compare the first RGB image with the second RGB image as an example to exemplify.

[0143] like Figure 5 As shown, the comparison of the first RGB image with the second RGB image in the above step S104 may include the following steps S501-S502:

[0144] In step S501, the first RGB image is compared with the second GRB image as a reference standard Groundtruth, and at least one indicator is determined.

[0145] It is worth noting that the at least one indicator mentioned above can be selected from image quality detection indicators in related technologies based on the needs of actual application scenarios. For example, the at least one indicator mentioned above can be set to include at least one of the following (1) to (4):

[0146] (1) Signal-to-noise ratio (SNR), (2) Peak signal-to-noise ratio (PSNR), (3) Mean square error (cSNR), and (4) Color difference (DeltaE).

[0147] In step S502, the comparison result is determined based on the at least one indicator.

[0148] In this embodiment, after comparing the first RGB image with the second GRB image serving as a reference standard Groundtruth and determining at least one indicator, the comparison result may be determined based on the at least one indicator.

[0149] For example, the larger the cSNR, the better, the larger the psnr, the better, and the larger the snr, the better. The Delta E threshold can be set according to the data of a traditional RGB camera, such as setting it to deltaE<3, etc. This embodiment does not limit this.

[0150] From the above description, it can be seen that in this embodiment, by comparing the first RGB image with the second GRB image serving as the reference standard Groundtruth, determining at least one indicator, and determining the comparison result based on the at least one indicator, it is possible to accurately compare the first RGB image with the second RGB image based on at least one indicator, thereby laying a foundation for subsequently detecting the color response performance of the spectral sensor based on the comparison result of the first RGB image with the second RGB image, which can not only simplify the detection process and save a lot of time and energy of the detection personnel, but also greatly reduce the detection cost.

[0151] Figure 6 It is a block diagram of a spectral sensor response performance detection device according to an exemplary embodiment of the present disclosure; the device of this embodiment can be applied to a server such as a local server and a cloud server with data processing functions, and the server can be deployed in a device cluster consisting of one electronic device or multiple electronic devices.

[0152] like Figure 6 As shown, the device may include: a spectral data acquisition module 110, a first image determination module 120, a comparison result acquisition module 130 and a response performance detection module 140, wherein:

[0153] The spectral data acquisition module 110 is used to acquire spectral data collected by the spectral sensor in the target scene;

[0154] A first image determination module 120, configured to determine a first RGB image based on the spectral data;

[0155] A comparison result acquisition module 130, configured to compare the first RGB image with a second RGB image to obtain a comparison result, wherein the second RGB image includes an RGB image acquired by a visible light imaging sensor at the target scene;

[0156] The response performance detection module 140 is used to detect the color response performance of the spectral sensor based on the comparison result.

[0157] As can be seen from the above description, the device of this embodiment obtains spectral data collected by the spectral sensor in the target scene, determines a first RGB image based on the spectral data, and then compares the first RGB image with the second RGB image to obtain a comparison result, wherein the second RGB image includes an RGB image collected by the visible light imaging sensor in the target scene, and then detects the color response performance of the spectral sensor based on the comparison result. Since the first RGB image is determined based on the spectral data, and the color response performance of the spectral sensor is detected based on the comparison result of the first RGB image and the second RGB image, it is possible to convert the spectral data into the RGB space, and then detect the first RGB image based on the data detection method of the RGB space, thereby reflecting the response performance of the spectral sensor, and accurately detect the response performance of the spectral sensor. Moreover, since there is no need to proof the spectral sensor module, but the response performance of the spectral sensor is evaluated by using the information in the simulation stage, it is possible to simplify the detection process, thereby saving a lot of time and energy of the detection personnel, and greatly reduce the detection cost.

[0158] Figure 7 2 is a block diagram of another spectral sensor response performance detection device according to an exemplary embodiment of the present disclosure; the device of this embodiment can be applied to a server such as a local server and a cloud server with data processing functions, and the server can be deployed in a device cluster consisting of one electronic device or multiple electronic devices. Among them, the spectral data acquisition module 210, the first image determination module 220, the comparison result acquisition module 230 and the response performance detection module 240 are the same as the aforementioned Figure 6 The functions of the spectral data acquisition module 110 , the first image determination module 120 , the comparison result acquisition module 130 and the response performance detection module 140 in the illustrated embodiment are the same and will not be described in detail herein.

[0159] like Figure 7 As shown, the first image determination module 220 may include a first determination unit 221;

[0160] The first determining unit 221 may be used to:

[0161] interpolating the spectral data to obtain interpolated spectral data;

[0162] Inputting the interpolated spectral data into a pre-trained first deep learning model to obtain first RGB data;

[0163] The first RGB image is determined based on the first RGB data.

[0164] In some embodiments, the first determining unit 221 may also be configured to simulate the first RGB data through an imaging link PipeLine of an image signal processor to obtain the first RGB image.

[0165] In some embodiments, the first image determination module 220 may include a second determination unit 222;

[0166] The second determining unit 222 may be configured to:

[0167] Based on the quantum efficiency curve of the spectral sensor, obtaining visible light data within a set wavelength range from the spectral data;

[0168] Adjusting the visible light data to multi-channel data with a preset number of channels;

[0169] Determine second RGB data based on the multi-channel data and a color matching function of an RGB space, wherein the color matching function of the RGB space is obtained by converting the color matching function into the RGB space;

[0170] The first RGB image is determined based on the second RGB data.

[0171] In some embodiments, the second determining unit 222 may also be configured to:

[0172] Performing color correction on the second RGB data to obtain corrected second RGB data;

[0173] The first RGB image is determined based on the corrected second RGB data.

[0174] In some embodiments, the second determination unit 222 may also be configured to input the second RGB data into a pre-trained second deep learning model to obtain corrected second RGB data.

[0175] In some embodiments, the comparison result acquisition module 230 may include:

[0176] The index determination unit 231 is used to compare the first RGB image with the second GRB image as a reference standard Groundtruth, and determine at least one index, wherein the at least one index includes at least one of the following:

[0177] Signal-to-noise ratio SNR, peak signal-to-noise ratio PSNR, mean square error peak signal-to-noise ratio cSNR, E color difference Delta E;

[0178] The result determination unit 232 is configured to determine the comparison result based on the at least one indicator.

[0179] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0180] Figure 8 900 is a block diagram of an electronic device according to an exemplary embodiment. For example, the device 900 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0181] Reference Figure 8 , device 900 may include one or more of the following components: a processing component 902 , a memory 904 , a power component 906 , a multimedia component 908 , an audio component 910 , an input / output (I / O) interface 912 , a sensor component 914 , and a communication component 916 .

[0182] The processing component 902 generally controls the overall operation of the device 900, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 902 may include one or more processors 920 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 902 may include one or more modules to facilitate the interaction between the processing component 902 and other components. For example, the processing component 902 may include a multimedia module to facilitate the interaction between the multimedia component 908 and the processing component 902.

[0183] The memory 904 is configured to store various types of data to support operations on the device 900. Examples of such data include instructions for any application or method operating on the device 900, contact data, phone book data, messages, pictures, videos, etc. The memory 904 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0184] The power supply component 906 provides power to the various components of the device 900. The power supply component 906 can include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 900.

[0185] The multimedia component 908 includes a screen that provides an output interface between the device 900 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 908 includes a front camera and / or a rear camera. When the device 900 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0186] The audio component 910 is configured to output and / or input audio signals. For example, the audio component 910 includes a microphone (MIC), and when the device 900 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 904 or sent via the communication component 916. In some embodiments, the audio component 910 also includes a speaker for outputting audio signals.

[0187] I / O interface 912 provides an interface between processing component 902 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0188] The sensor assembly 914 includes one or more sensors for providing various aspects of status assessment for the device 900. For example, the sensor assembly 914 can detect the open / closed state of the device 900, the relative positioning of components, such as the display and keypad of the device 900, and the sensor assembly 914 can also detect the position change of the device 900 or a component of the device 900, the presence or absence of user contact with the device 900, the orientation or acceleration / deceleration of the device 900, and the temperature change of the device 900. The sensor assembly 914 can also include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 914 can also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 914 can also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0189] The communication component 916 is configured to facilitate wired or wireless communication between the device 900 and other devices. The device 900 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, 4G or 5G or a combination thereof. In an exemplary embodiment, the communication component 916 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 916 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0190] In an exemplary embodiment, the device 900 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.

[0191] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 904 including instructions, and the instructions can be executed by the processor 920 of the device 900 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0192] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the disclosure disclosed herein. The present disclosure is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0193] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A method for detecting the response performance of a spectral sensor, characterized in that: The method comprises: Acquire spectral data collected by a spectral sensor in a target scene; determining a first RGB image based on the spectral data; Comparing the first RGB image with a second RGB image to obtain a comparison result, wherein the second RGB image includes an RGB image acquired by a visible light imaging sensor at the target scene; The color response performance of the spectral sensor is detected based on the comparison result.

2. The method according to claim 1, characterized in that: The determining of a first RGB image based on the spectral data comprises: interpolating the spectral data to obtain interpolated spectral data; Inputting the interpolated spectral data into a pre-trained first deep learning model to obtain first RGB data; The first RGB image is determined based on the first RGB data.

3. The method according to claim 2, characterized in that The determining the first RGB image based on the first RGB data comprises: The first RGB data is simulated through an imaging link PipeLine of an image signal processor to obtain the first RGB image.

4. The method according to claim 1, characterized in that: The determining of a first RGB image based on the spectral data comprises: Based on the quantum efficiency curve of the spectral sensor, obtaining visible light data within a set wavelength range from the spectral data; Adjusting the visible light data to multi-channel data with a preset number of channels; Determine second RGB data based on the multi-channel data and color matching function data in an RGB space, wherein the color matching function in the RGB space is obtained by converting the color matching function into the RGB space; The first RGB image is determined based on the second RGB data.

5. The method according to claim 4, characterized in that The determining the first RGB image based on the second RGB data comprises: Performing color correction on the second RGB data to obtain corrected second RGB data; The first RGB image is determined based on the corrected second RGB data.

6. The method according to claim 5, characterized in that The color correction of the second RGB data to obtain corrected second RGB data includes: The second RGB data is input into a pre-trained second deep learning model to obtain corrected second RGB data.

7. The method according to claim 1, characterized in that The comparing the first RGB image with the second RGB image to obtain a comparison result includes: The first RGB image is compared with the second GRB image as a reference standard Groundtruth, and at least one indicator is determined, wherein the at least one indicator includes at least one of the following: Signal-to-noise ratio SNR, peak signal-to-noise ratio PSNR, mean square error peak signal-to-noise ratio cSNR, E color difference Delta E; The comparison result is determined based on the at least one indicator.

8. A spectral sensor response performance detection device, characterized in that: The device comprises: A spectral data acquisition module is used to acquire spectral data collected by a spectral sensor in a target scene; A first image determination module, configured to determine a first RGB image based on the spectral data; A comparison result acquisition module, used for comparing the first RGB image with a second RGB image to obtain a comparison result, wherein the second RGB image includes an RGB image acquired by a visible light imaging sensor at the target scene; A response performance detection module is used to detect the color response performance of the spectral sensor based on the comparison result.

9. An electronic device, characterized in that: The device comprises: a processor and a memory for storing a computer program; Wherein, the processor is configured to implement, when executing the computer program: Acquire spectral data collected by a spectral sensor in a target scene; determining a first RGB image based on the spectral data; Comparing the first RGB image with a second RGB image to obtain a comparison result, wherein the second RGB image includes an RGB image acquired by a visible light imaging sensor at the target scene; The color response performance of the spectral sensor is detected based on the comparison result.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by the processor, it realizes: Acquire spectral data collected by a spectral sensor in a target scene; determining a first RGB image based on the spectral data; Comparing the first RGB image with a second RGB image to obtain a comparison result, wherein the second RGB image includes an RGB image acquired by a visible light imaging sensor at the target scene; The color response performance of the spectral sensor is detected based on the comparison result.

Citation Information

Patent Citations

  • Multispectral imaging method, multispectral imaging device, mobile terminal and storage medium

    CN111866318A

  • True color image restoration method and device for deep space exploration multispectral image

    CN114972125A

  • Device and method for measuring spectral responsivity of image sensor

    CN115031934A

  • Multi-spectral sensor calibration method and device

    CN115112236A

  • Calibration method, image processing method and device, storage medium and electronic equipment

    CN115471571A