Hyperspectral camera waveband adjustment method and device, electronic equipment and storage medium
By calculating the target voltage and setting the control voltage of the hyperspectral camera, the problem of difficulty in quickly providing multiple wavelength spectral images in the prior art is solved, efficient band adjustment is achieved, and workload is reduced.
Patent Information
- Application Number
- CN202411703712.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-26
- Publication Date
- 2025-03-18
AI Technical Summary
The existing hyperspectral camera technology is difficult to quickly provide spectral images corresponding to multiple wavelengths, and the experimental process is cumbersome and the workload is large.
By obtaining the target wavelength and its adjacent wavelength and voltage data, the target voltage is calculated and the control voltage of the hyperspectral camera is set to control the output band and achieve the spectral image output corresponding to the target wavelength.
The target voltage corresponding to the target wavelength can be determined without repeated multiple experiments, which significantly reduces the workload and can provide users with spectral images corresponding to multiple wavelengths.
Smart Images

Figure CN119653207A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of camera data processing technology, and in particular to a hyperspectral camera band adjustment method and device, electronic equipment and storage medium. Background Art
[0002] In related technologies, hyperspectral cameras control the selection of light by controlling the distance (cavity distance) between two plates in MEMS. In hardware circuits, one plate is usually fixed and the other is adjustable; four voltage points are placed at the edge of the fixed plate (the position is not restricted), and then the voltage of these four points is controlled by electrostatic force to control the cavity distance, thereby obtaining a spectral image of a certain wavelength. At present, the voltage values of the four points are gradually explored through experimental data. If a camera wants to provide spectral images of multiple wavelengths, it is necessary to repeat the experiment many times to find the voltage group corresponding to the wavelength. This processing method has a large workload and can only provide users with limited spectral images corresponding to specified wavelengths.
[0003] In summary, the technical problems existing in the relevant technologies need to be improved. Summary of the invention
[0004] The main purpose of the embodiments of the present application is to propose a hyperspectral camera band adjustment method and device, electronic device and storage medium, which can provide users with spectral images corresponding to multiple wavelengths and effectively reduce the workload.
[0005] To achieve the above object, an embodiment of the present application provides a method for adjusting the band of a hyperspectral camera, the method comprising the following steps:
[0006] Get the target wavelength;
[0007] Acquire at least two adjacent wavelengths to be selected corresponding to the target wavelength, and a plurality of adjacent voltages to be selected corresponding to the adjacent wavelengths to be selected;
[0008] Calculating a plurality of target voltages according to the target wavelength, the adjacent wavelength to be selected, and the adjacent voltage to be selected;
[0009] Setting a control voltage of the hyperspectral camera according to the target voltage;
[0010] The output band of the hyperspectral camera is controlled according to the control voltage to control the hyperspectral camera to output a spectral image corresponding to the target wavelength.
[0011] In some embodiments, the step of acquiring at least two adjacent wavelengths to be selected corresponding to the target wavelength, and a plurality of adjacent voltages to be selected corresponding to the adjacent wavelengths to be selected, comprises:
[0012] At least two adjacent wavelengths to be selected corresponding to the target wavelength and a plurality of adjacent voltages to be selected corresponding to the adjacent wavelengths to be selected are obtained experimentally.
[0013] In some embodiments, the calculating of a plurality of target voltages according to the target wavelength, the adjacent wavelength to be selected and the adjacent voltage to be selected includes:
[0014] According to the target wavelength, an adjacent wavelength to be selected that meets preset requirements is selected from the adjacent wavelengths to be selected as a target adjacent wavelength;
[0015] Selecting the adjacent voltage to be selected corresponding to the target adjacent wavelength from the adjacent voltages to be selected as the target adjacent voltage;
[0016] A plurality of target voltages are calculated according to the target wavelength, the target adjacent wavelengths and the target adjacent voltages.
[0017] In some embodiments, the calculating a plurality of target voltages according to the target wavelength, the target adjacent wavelength and the target adjacent voltage comprises:
[0018] According to the target wavelength, the target adjacent wavelength and the target adjacent voltage, a plurality of target voltages are calculated by an interpolation calculation formula.
[0019] In some embodiments, the target voltages are calculated by an interpolation calculation formula according to the target wavelength, the target adjacent wavelength and the target adjacent voltage, including:
[0020] A first target voltage is calculated according to the target wavelength, the first adjacent wavelength, the second adjacent wavelength, the first adjacent voltage and the fifth adjacent voltage;
[0021] A second target voltage is calculated according to the target wavelength, the first adjacent wavelength, the second adjacent wavelength, the second adjacent voltage and the sixth adjacent voltage;
[0022] A third target voltage is calculated according to the target wavelength, the first adjacent wavelength, the second adjacent wavelength, the third adjacent voltage and the seventh adjacent voltage;
[0023] A fourth target voltage is calculated according to the target wavelength, the first adjacent wavelength, the second adjacent wavelength, the fourth adjacent voltage and the eighth adjacent voltage;
[0024] Wherein, the target voltage includes the first target voltage, the second target voltage, the third target voltage and the fourth target voltage;
[0025] The target adjacent wavelengths include the first adjacent wavelength and the second adjacent wavelength;
[0026] The target adjacent voltages corresponding to the first adjacent wavelength include the first adjacent voltage, the second adjacent voltage, the third adjacent voltage and the fourth adjacent voltage;
[0027] The target adjacent voltages corresponding to the second adjacent wavelength include the fifth adjacent voltage, the sixth adjacent voltage, the seventh adjacent voltage, and the eighth adjacent voltage.
[0028] In some embodiments, setting the control voltage of the hyperspectral camera according to the target voltage includes:
[0029] Acquire a voltage control point of the target voltage in the hyperspectral camera;
[0030] A control voltage corresponding to the control point is set according to the target voltage.
[0031] In some embodiments, controlling the output band of the hyperspectral camera according to the control voltage includes:
[0032] Inputting the control voltage into the control point corresponding to the hyperspectral camera to control the conductive plate in the hyperspectral camera to generate electrostatic force;
[0033] Obtaining the cavity distance obtained by driving the conductive plate with the electrostatic force;
[0034] An output band of the hyperspectral camera is determined according to the cavity distance.
[0035] To achieve the above object, another aspect of the embodiment of the present application provides a hyperspectral camera band adjustment device, the device comprising:
[0036] The first module is used to obtain the target wavelength;
[0037] The second module is used to obtain at least two adjacent wavelengths to be selected corresponding to the target wavelength, and a plurality of adjacent voltages to be selected corresponding to the adjacent wavelengths to be selected;
[0038] A third module is used to calculate a plurality of target voltages according to the target wavelength, the adjacent wavelength to be selected and the adjacent voltage to be selected;
[0039] A fourth module is used to set a control voltage of the hyperspectral camera according to the target voltage;
[0040] The fifth module is used to control the output band of the hyperspectral camera according to the control voltage, so as to control the hyperspectral camera to output the spectral image corresponding to the target wavelength.
[0041] To achieve the above object, another aspect of an embodiment of the present application provides an electronic device, including:
[0042] at least one processor;
[0043] at least one memory for storing at least one program;
[0044] When the at least one program is executed by the at least one processor, the at least one processor implements the above method.
[0045] To achieve the above objective, another aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program implements the above method when executed by a processor.
[0046] The embodiments of the present application include at least the following beneficial effects: The present application provides a method and device for adjusting the band of a hyperspectral camera, an electronic device and a storage medium. The scheme obtains a target wavelength, at least two adjacent wavelengths to be selected of the target wavelength, and several adjacent voltages to be selected corresponding to the adjacent wavelengths to be selected, and then calculates several target voltages according to the target wavelength, the adjacent wavelengths to be selected and the adjacent voltages to be selected, and then sets the control voltage of the hyperspectral camera according to the target voltage, and then controls the output band of the hyperspectral camera according to the control voltage to control the hyperspectral camera to output a spectral image corresponding to the target wavelength, thereby eliminating the need to repeat experiments multiple times to determine the target voltage corresponding to the target wavelength, and can provide users with spectral images corresponding to multiple wavelengths and effectively reduce the workload. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] Figure 1 is a flow chart of a hyperspectral camera band adjustment method provided in an embodiment of the present application;
[0048] Figure 2 It is a schematic diagram of the positional relationship between any wavelength and adjacent wavelengths provided in an embodiment of the present application;
[0049] Figure 3 is a schematic diagram of a spectral response curve during a test provided in an embodiment of the present application;
[0050] Figure 4 It is a structural schematic diagram of a hyperspectral camera band adjustment device provided in an embodiment of the present application;
[0051] Figure 5 It is a schematic diagram of the hardware structure of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION
[0052] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is further described in detail below in conjunction with the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the embodiments of the present application, they are only examples of devices and methods consistent with some aspects of the embodiments of the present application.
[0053] It is understood that the terms "first", "second", etc. used in this application can be used to describe various concepts in this article, but unless otherwise specified, these concepts are not limited by these terms. These terms are only used to distinguish one concept from another concept. For example, without departing from the scope of the embodiment of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the words "if" and "if" as used herein can be interpreted as "at the time of" or "when" or "in response to determination".
[0054] The terms "at least one", "multiple", "each", "any", etc. used in this application, at least one includes one, two or more, multiple includes two or more, each refers to each of the corresponding multiple, and any refers to any one of the multiple.
[0055] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0056] Before describing the embodiments of the present application in detail, some nouns and terms involved in the embodiments of the present application are first described. The nouns and terms involved in the embodiments of the present application are subject to the following interpretations:
[0057] MEMS stands for micro-electromechanical systems, specifically high-tech devices that are a few millimeters or smaller in size.
[0058] Electrostatic force drive is a driving method based on Coulomb force, which is mainly used to accurately control the movement of structures in micro-electromechanical systems (MEMS). For example, in the MEMS-based FP (Fabry-Perot) interferometer cavity, the distance between two parallel plates is adjusted by electrostatic force drive to achieve wavelength selection. It controls the distance between the plates by applying a voltage between two conductive plates to generate an electrostatic force. This electrostatic force is generated by the attraction (Coulomb force) between the two charged plates. When a voltage is applied between two parallel plates, these plates form a capacitor. According to the characteristics of the capacitor, the electrostatic force F between the two plates can be expressed by the following formula:
[0059]
[0060] In the formula, ∈ represents the dielectric constant of the medium between the plates; A represents the effective area of the plates; V represents the applied voltage; and d represents the distance between the plates.
[0061] In related technologies, hyperspectral cameras control the selection of light by controlling the distance (cavity distance) between two plates in MEMS. In hardware circuits, one plate is usually fixed and the other is adjustable; four voltage points are placed at the edge of the fixed plate (the position is not restricted), and then the voltage of these four points is controlled by electrostatic force to control the cavity distance, thereby obtaining a spectral image of a certain wavelength. At present, the voltage values of the four points are gradually explored through experimental data. If a camera wants to provide spectral images of multiple wavelengths, it is necessary to repeat the experiment many times to find the voltage group corresponding to the wavelength. This processing method has a large workload and can only provide users with limited spectral images corresponding to specified wavelengths.
[0062] In view of this, the embodiments of the present application provide a hyperspectral camera band adjustment method and device, electronic device and storage medium. The present application obtains a target wavelength, at least two adjacent wavelengths to be selected of the target wavelength, and several adjacent voltages to be selected corresponding to the adjacent wavelengths to be selected, and then calculates several target voltages according to the target wavelength, the adjacent wavelengths to be selected and the adjacent voltages to be selected, and then sets the control voltage of the hyperspectral camera according to the target voltage, and then controls the output band of the hyperspectral camera according to the control voltage to control the hyperspectral camera to output a spectral image corresponding to the target wavelength, thereby eliminating the need to repeat experiments multiple times to determine the target voltage corresponding to the target wavelength, and can provide users with spectral images corresponding to multiple wavelengths and effectively reduce the workload.
[0063] The hyperspectral camera band adjustment method provided in the embodiment of the present application relates to the field of camera data processing technology. The hyperspectral camera band adjustment method provided in the embodiment of the present application can be applied to a terminal, can also be applied to a server, and can also be software running in a terminal or a server. In some embodiments, the terminal can be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, and a car terminal, etc., but is not limited to this; the server side can be configured as an independent physical server, or it can be configured as a server cluster or distributed system composed of multiple physical servers, and can also be configured as a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. The server can also be a node server in a blockchain network; the software can be an application that implements the hyperspectral camera band adjustment method, etc., but is not limited to the above forms.
[0064] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.
[0065] Figure 1 is an optional flow chart of the hyperspectral camera band adjustment method provided in the embodiment of the present application. Figure 1 The method may include but is not limited to steps S110 to S150:
[0066] Step S110, obtaining a target wavelength;
[0067] Step S120, obtaining at least two adjacent wavelengths to be selected corresponding to the target wavelength, and a plurality of adjacent voltages to be selected corresponding to the adjacent wavelengths to be selected;
[0068] Step S130, calculating and obtaining a plurality of target voltages according to the target wavelength, the adjacent wavelength to be selected and the adjacent voltage to be selected;
[0069] Step S140, setting the control voltage of the hyperspectral camera according to the target voltage;
[0070] Step S150: controlling the output band of the hyperspectral camera according to the control voltage to control the hyperspectral camera to output a spectral image corresponding to the target wavelength.
[0071] In the embodiment of the present application, at least two adjacent wavelengths to be selected corresponding to the target wavelength and several adjacent voltages to be selected corresponding to the adjacent wavelengths to be selected can be obtained by experimental means. Since the number of adjacent wavelengths to be selected and adjacent voltages to be selected in the present application is limited, the experimental workload in the experimental method is not high, and the present application obtains adjacent information by experimental means, thereby effectively improving the accuracy of the target voltage calculation.
[0072] In the embodiment of the present application, the process of calculating a plurality of target voltages according to the target wavelength, the adjacent wavelength to be selected, and the adjacent voltage to be selected includes but is not limited to the following steps:
[0073] According to the target wavelength, an adjacent wavelength to be selected that meets preset requirements is selected from the adjacent wavelengths to be selected as the target adjacent wavelength;
[0074] Selecting an adjacent voltage to be selected corresponding to the target adjacent wavelength from the adjacent voltages to be selected as the target adjacent voltage;
[0075] A plurality of target voltages are calculated based on the target wavelength, the target adjacent wavelength and the target adjacent voltage.
[0076] It can be understood that since there can be countless adjacent wavelengths of the target wavelength, this embodiment selects the target adjacent wavelength by the difference between the target wavelength and the adjacent wavelength, that is, two adjacent wavelengths to be selected with the smallest difference between the adjacent wavelength to be selected and the target wavelength are selected as the target adjacent wavelengths, and the target wavelength is located between the two target adjacent wavelengths. Then, the adjacent voltage to be selected corresponding to the target adjacent wavelength is selected as the target adjacent voltage, thereby effectively improving the calculation accuracy of the target voltage.
[0077] It is understandable that, in this embodiment, several target voltages can be calculated by interpolation calculation formula according to the target wavelength, target adjacent wavelength and target adjacent voltage. Specifically, the process of calculating several target voltages by interpolation formula includes but is not limited to the following steps:
[0078] A first target voltage is calculated according to the target wavelength, the first adjacent wavelength, the second adjacent wavelength, the first adjacent voltage and the fifth adjacent voltage;
[0079] A second target voltage is calculated according to the target wavelength, the first adjacent wavelength, the second adjacent wavelength, the second adjacent voltage and the sixth adjacent voltage;
[0080] A third target voltage is calculated according to the target wavelength, the first adjacent wavelength, the second adjacent wavelength, the third adjacent voltage and the seventh adjacent voltage;
[0081] A fourth target voltage is calculated according to the target wavelength, the first adjacent wavelength, the second adjacent wavelength, the fourth adjacent voltage and the eighth adjacent voltage;
[0082] Among them, the target voltages include a first target voltage, a second target voltage, a third target voltage and a fourth target voltage; the target adjacent wavelengths include a first adjacent wavelength and a second adjacent wavelength; the target adjacent voltages corresponding to the first adjacent wavelength include a first adjacent voltage, a second adjacent voltage, a third adjacent voltage and a fourth adjacent voltage; the target adjacent voltages corresponding to the second adjacent wavelength include a fifth adjacent voltage, a sixth adjacent voltage, a seventh adjacent voltage and an eighth adjacent voltage.
[0083] For example, four target voltages y corresponding to the target wavelength x are required. a1 ,y a2 ,y a3 and a4 , it is known that the target adjacent voltages corresponding to the first adjacent wavelength x1 include y1 a1 ,y1 a2 ,y1 a3 and y1 a4 , the target adjacent voltage corresponding to the second adjacent wavelength x2 includes y2 a1 ,y2 a2 ,y2 a3 and y2 a4 , and if Figure 2 As shown, the target wavelength x is located between the first adjacent wavelength x1 and the second adjacent wavelength x2, and the target adjacent voltage y1 corresponding to the first adjacent wavelength x1 is a1 , the target adjacent voltage y2 corresponding to the second adjacent wavelength x2 a1 For example, based on Figure 2 The target voltage y corresponding to the target wavelength x can be obtained a1 The calculation formula is as follows:
[0084]
[0085] The calculation formula for the target voltage corresponding to the target wavelength x is the same as above and will not be repeated here.
[0086] By calculating respectively in the above manner, the four voltages corresponding to any target wavelength x can be quickly obtained, and then the four target voltages are set in the MEMS of the hyperspectral camera, so that the hyperspectral camera can be controlled to output the corresponding spectral image. Specifically, after obtaining the four target voltages, the voltage control point of the target voltage in the hyperspectral camera is obtained, and then the control voltage corresponding to the control point is set according to the target voltage.
[0087] It can be understood that after obtaining the control voltage, this embodiment inputs the control voltage into the control point corresponding to the hyperspectral camera to control the conductive plate in the hyperspectral camera to generate electrostatic force, and then obtains the cavity distance obtained by the electrostatic force driving the conductive plate, and then determines the output band of the hyperspectral camera according to the cavity distance, so that the hyperspectral camera can output a spectral image corresponding to the target wavelength.
[0088] In the embodiment of the present application, taking the application to monarch NIR spectral camera as an example, the wavelength range of the camera is between 713 nanometers and 920 nanometers. The 4 voltage data corresponding to 10 uniformly distributed wavelengths obtained through experiments are shown in Table 1:
[0089] Table 1
[0090]
[0091]
[0092] Assume that a spectral image with a target wavelength of 810 nanometers is required. It is known that 810 nanometers falls between the 805 nanometer and 828 nanometer bands of the existing voltage data. Therefore, 805 nanometers and 828 nanometers are used as target adjacent wavelengths, and their corresponding voltages are used as target adjacent voltages. Then, the interpolation formula is used to calculate the four target voltages (a1, a2, a3, and a4) corresponding to the target wavelengths:
[0093]
[0094] Then the target voltage group [24.7521, 31.4035, 35.4114, 28.7601] corresponding to 810 nanometers calculated above is set in the MEMS, and a monochromator is used to generate 810 nanometers of light. Then a spectral camera is used to obtain a spectral image at this wavelength. The spectral response curve is shown in the figure. Figure 3 As shown. Due to the characteristics of the FP cavity spectral camera technology principle, there will be a certain error in the center wavelength. The error of monarch NIR spectral camera is ±5 nanometers. Figure 3 From the experimental results shown, the central wavelength of the actual spectrum image and the central wavelength of the light generated by the monochromator have an error of only 2 nanometers, which is acceptable. Therefore, this experiment also fully illustrates the reliability of the method of the present application.
[0095] In summary, the method of the present application can obtain data of any wavelength and corresponding voltage with a small number of anchor point data, thus eliminating the need for a large number of experiments and the need to add additional hardware equipment, effectively reducing workload and equipment costs, and providing users with spectral images corresponding to multiple wavelengths.
[0096] Reference Figure 4 The present application embodiment provides a hyperspectral camera band adjustment device, the device comprising:
[0097] The first module 410 is used to obtain a target wavelength;
[0098] The second module 420 is used to obtain at least two adjacent wavelengths to be selected corresponding to the target wavelength, and a plurality of adjacent voltages to be selected corresponding to the adjacent wavelengths to be selected;
[0099] The third module 430 is used to calculate a plurality of target voltages according to the target wavelength, the adjacent wavelength to be selected and the adjacent voltage to be selected;
[0100] A fourth module 440 is used to set a control voltage of the hyperspectral camera according to the target voltage;
[0101] The fifth module 450 is used to control the output band of the hyperspectral camera according to the control voltage, so as to control the hyperspectral camera to output a spectral image corresponding to the target wavelength.
[0102] It can be understood that the contents of the above method embodiments are all applicable to the present device embodiments, the functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0103] The embodiment of the present application also provides an electronic device, the electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the above-mentioned hyperspectral camera band adjustment method when executing the computer program. The electronic device can be any intelligent terminal including a tablet computer, a car computer, etc.
[0104] It can be understood that the contents of the above method embodiments are all applicable to the present device embodiments, the functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0105] See also Figure 5 , Figure 5 The hardware structure of an electronic device of another embodiment is illustrated, and the electronic device includes:
[0106] The processor 510 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;
[0107] The memory 520 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 520 can store an operating system and other application programs. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 520, and the processor 510 is called to execute the hyperspectral camera band adjustment method of the embodiment of this application;
[0108] Input / output interface 530, used to implement information input and output;
[0109] Communication interface 540, used to realize communication interaction between the device and other devices, which can be realized through wired mode (such as USB, network cable, etc.) or wireless mode (such as mobile network, WIFI, Bluetooth, etc.);
[0110] bus 550 , which transmits information between the various components of the device (e.g., processor 510 , memory 520 , input / output interface 530 , and communication interface 540 );
[0111] The processor 510 , the memory 520 , the input / output interface 530 and the communication interface 540 are connected to each other in communication within the device via the bus 550 .
[0112] The embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above-mentioned hyperspectral camera band adjustment method is implemented.
[0113] It can be understood that the contents of the above method embodiments are all applicable to the present storage medium embodiments, the functions specifically implemented by the present storage medium embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0114] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0115] The embodiments described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0116] Those skilled in the art will appreciate that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than shown in the figures, or a combination of certain steps, or different steps.
[0117] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0118] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.
[0119] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0120] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0121] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the above units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0122] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0123] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0124] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including multiple instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store programs.
[0125] The preferred embodiments of the present invention are described above with reference to the accompanying drawings, but the scope of the rights of the present invention is not limited thereto. Any modification, equivalent substitution and improvement made by a person skilled in the art without departing from the scope and essence of the present invention should be within the scope of the rights of the present invention.
Claims
1. A hyperspectral camera band adjustment method, characterized in that: The method comprises the following steps: Get the target wavelength; Acquire at least two adjacent wavelengths to be selected corresponding to the target wavelength, and a plurality of adjacent voltages to be selected corresponding to the adjacent wavelengths to be selected; Calculating a plurality of target voltages according to the target wavelength, the adjacent wavelength to be selected, and the adjacent voltage to be selected; Setting a control voltage of the hyperspectral camera according to the target voltage; The output band of the hyperspectral camera is controlled according to the control voltage to control the hyperspectral camera to output a spectral image corresponding to the target wavelength.
2. The method according to claim 1, characterized in that: The acquiring at least two adjacent wavelengths to be selected corresponding to the target wavelength and a plurality of adjacent voltages to be selected corresponding to the adjacent wavelengths to be selected includes: At least two adjacent wavelengths to be selected corresponding to the target wavelength and a plurality of adjacent voltages to be selected corresponding to the adjacent wavelengths to be selected are obtained experimentally.
3. The method according to claim 1, characterized in that The calculating a plurality of target voltages according to the target wavelength, the adjacent wavelength to be selected and the adjacent voltage to be selected comprises: According to the target wavelength, an adjacent wavelength to be selected that meets preset requirements is selected from the adjacent wavelengths to be selected as a target adjacent wavelength; Selecting the adjacent voltage to be selected corresponding to the target adjacent wavelength from the adjacent voltages to be selected as the target adjacent voltage; A plurality of target voltages are calculated according to the target wavelength, the target adjacent wavelengths and the target adjacent voltages.
4. The method according to claim 3, characterized in that The calculating a plurality of target voltages according to the target wavelength, the target adjacent wavelength and the target adjacent voltage comprises: According to the target wavelength, the target adjacent wavelength and the target adjacent voltage, a plurality of target voltages are calculated by an interpolation calculation formula.
5. The method according to claim 4, characterized in that The step of calculating a plurality of target voltages by an interpolation calculation formula according to the target wavelength, the target adjacent wavelength and the target adjacent voltage includes: A first target voltage is calculated according to the target wavelength, the first adjacent wavelength, the second adjacent wavelength, the first adjacent voltage and the fifth adjacent voltage; A second target voltage is calculated according to the target wavelength, the first adjacent wavelength, the second adjacent wavelength, the second adjacent voltage and the sixth adjacent voltage; A third target voltage is calculated according to the target wavelength, the first adjacent wavelength, the second adjacent wavelength, the third adjacent voltage and the seventh adjacent voltage; A fourth target voltage is calculated according to the target wavelength, the first adjacent wavelength, the second adjacent wavelength, the fourth adjacent voltage and the eighth adjacent voltage; Wherein, the target voltage includes the first target voltage, the second target voltage, the third target voltage and the fourth target voltage; The target adjacent wavelengths include the first adjacent wavelength and the second adjacent wavelength; The target adjacent voltages corresponding to the first adjacent wavelength include the first adjacent voltage, the second adjacent voltage, the third adjacent voltage and the fourth adjacent voltage; The target adjacent voltages corresponding to the second adjacent wavelength include the fifth adjacent voltage, the sixth adjacent voltage, the seventh adjacent voltage, and the eighth adjacent voltage.
6. The method according to claim 1, characterized in that The step of setting the control voltage of the hyperspectral camera according to the target voltage comprises: Acquire a voltage control point of the target voltage in the hyperspectral camera; A control voltage corresponding to the control point is set according to the target voltage.
7. The method according to claim 6, characterized in that The step of controlling the output band of the hyperspectral camera according to the control voltage comprises: Inputting the control voltage into the control point corresponding to the hyperspectral camera to control the conductive plate in the hyperspectral camera to generate electrostatic force; Obtaining the cavity distance obtained by driving the conductive plate with the electrostatic force; An output band of the hyperspectral camera is determined according to the cavity distance.
8. A hyperspectral camera band adjustment device, characterized in that: The device comprises: The first module is used to obtain the target wavelength; The second module is used to obtain at least two adjacent wavelengths to be selected corresponding to the target wavelength, and a plurality of adjacent voltages to be selected corresponding to the adjacent wavelengths to be selected; A third module is used to calculate a plurality of target voltages according to the target wavelength, the adjacent wavelength to be selected and the adjacent voltage to be selected; A fourth module is used to set a control voltage of the hyperspectral camera according to the target voltage; The fifth module is used to control the output band of the hyperspectral camera according to the control voltage, so as to control the hyperspectral camera to output the spectral image corresponding to the target wavelength.
9. An electronic device, characterized in that: include: at least one processor; at least one memory for storing at least one program; When the at least one program is executed by the at least one processor, the at least one processor implements the method according to any one of claims 1 to 7.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.