Illuminance calibration method, apparatus, system, and non-transitory storage medium
By collecting illuminance data on standard and target surfaces, determining the compensation method, and performing calibration, the problem of the influence of the material and color of the light-reflecting surface on the accuracy of illuminance data was solved, and accurate calibration of illuminance data was achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-19
- Publication Date
- 2026-04-07
AI Technical Summary
The material and color of the light-reflecting surface can affect the illuminance data collected by the TSIM sensor, resulting in inaccurate data.
By collecting the illuminance of a preset light source on a standard surface and a target surface, the compensation method corresponding to the target surface is determined, and the target illuminance is calculated based on the original illuminance and the compensation method. Calibration is performed using a linear or target compensation formula.
The illuminance data was normalized, which improved the accuracy of the illuminance data.
Smart Images

Figure CN119354331B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of illumination detection, in particular to an illumination calibration method, device, system and non-volatile storage medium. BACKGROUND
[0002] The material and color of the light reflection surface will affect the original illumination data collected by the TSIM sensor. In the case of using the same light source for illumination, the illumination data collected by the TSIM will change with the material (wood, glass, marble, etc.) and color (white, gray, green, etc.) of the reflection surface. This results in inaccurate illumination data obtained by the user.
[0003] At present, there is no effective solution to the above problems. SUMMARY
[0004] The embodiments of the present application provide an illumination calibration method, device, system and non-volatile storage medium to at least solve the technical problem that the material and color of the light reflection surface will affect the collected illumination data, resulting in inaccurate illumination data obtained.
[0005] According to one aspect of the embodiments of the present application, an illumination calibration method is provided, comprising: collecting a first illumination of a preset light source on a standard surface and a second illumination of the preset light source on a target surface; determining a compensation mode corresponding to the target surface according to the first illumination and the second illumination; obtaining an original illumination of a target light source to be detected on the target surface; and determining a target illumination corresponding to the target light source based on the original illumination and the compensation mode.
[0006] Optionally, the preset light source is used to emit light rays of multiple brightnesses.
[0007] Optionally, in the case that the compensation mode is to compensate by using a target compensation formula, the collection of the first illumination of the preset light source on the standard surface and the second illumination of the preset light source on the target surface comprises: obtaining a target number of compensation coefficients in an initial compensation formula, wherein the compensation coefficients in the initial compensation formula are unknown numbers; and collecting a plurality of groups of illumination data under the preset light source emitting light rays of the target number of quantities, wherein the number of groups of the plurality of groups of illumination data matches the target number, and any one group of illumination data in the plurality of groups of illumination data comprises the illumination corresponding to the standard surface and the illumination corresponding to the target surface.
[0008] Optionally, in the case that the compensation mode is to compensate by using a target compensation formula, the determination of the compensation mode corresponding to the target surface according to the first illumination and the second illumination comprises: solving the unknown numbers corresponding to the compensation coefficients in the initial compensation formula based on the plurality of groups of illumination data, to obtain the target compensation formula including the compensation coefficients as known numbers.
[0009] Optionally, in the case that the compensation mode is to compensate by using a linear compensation formula, the linear compensation formula represents that the illumination on the standard surface linearly changes with the illumination on the target surface, and the compensation mode corresponding to the target surface is determined according to the first illumination and the second illumination, comprising: determining the compensation mode corresponding to the target surface according to the first group of illuminations and the second group of illuminations, wherein the first group of illuminations comprises the first illumination on the standard surface and the second illumination on the target surface when the preset light source is turned on, and the second group of illuminations comprises the first illumination on the standard surface and the second illumination on the target surface when the preset light source is turned off.
[0010] Optionally, the linear compensation formula is y=kx+b, wherein y is the illumination of the light source on the standard surface, x is the illumination of the light source on the target surface, and k and b are compensation coefficients of the compensation formula.
[0011] Optionally, the illumination corresponding to the target light source to be detected is uploaded to a display terminal.
[0012] According to another aspect of the embodiment of the present application, there is also provided a light illumination detection system, comprising: a light source, a light illumination sensor and a host computer, wherein the light illumination sensor is configured to collect the illuminations on the standard surface and the target surface under the light source and to obtain the original illumination of the target surface under the light source to be detected; and the host computer is configured to determine the compensation coefficient corresponding to the target surface according to the illumination corresponding to the standard surface and the illumination corresponding to the target surface, and to determine the illumination corresponding to the light source to be detected based on the original illumination and the compensation coefficient.
[0013] Optionally, the system further comprises a display terminal configured to display the illumination corresponding to the light source to be detected.
[0014] According to another aspect of the embodiment of the present application, there is also provided a light illumination calibration device, comprising: an acquisition module configured to acquire the first illumination of a preset light source on a standard surface and the second illumination of the preset light source on a target surface; a first determination module configured to determine the compensation mode corresponding to the target surface according to the first illumination and the second illumination; an acquisition module configured to acquire the original illumination of a target light source to be detected on the target surface; and a second determination module configured to determine the target illumination corresponding to the target light source based on the original illumination and the compensation mode.
[0015] According to still another aspect of the embodiment of the present application, there is also provided a non-volatile storage medium comprising a stored program, wherein the program, when executed, controls the device in which the non-volatile storage medium is located to perform any of the above light illumination calibration methods.
[0016] According to another aspect of the present invention, a computer device is also provided, the computer device including a processor, the processor being configured to run a program, wherein the program executes any of the above-described illuminance calibration methods during runtime.
[0017] According to another aspect of the present invention, a computer program product is also provided, including a computer program that, when executed by a processor, implements any of the above-described illuminance calibration methods.
[0018] In this embodiment of the invention, an illuminance calibration method is employed. This involves collecting a first illuminance of a preset light source on a standard surface and a second illuminance of the preset light source on a target surface. Based on the first and second illuminances, a compensation method corresponding to the target surface is determined. The original illuminance of the target light source on the target surface is obtained. Based on the original illuminance and the compensation method, the target illuminance corresponding to the target light source is determined. This achieves the purpose of normalizing the illuminance, thereby improving the accuracy of the acquired illuminance. Furthermore, it solves the technical problem that the material and color of the light-reflecting surface can affect the acquired illuminance data, leading to inaccurate illuminance data. Attached Figure Description
[0019] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this application, illustrate exemplary embodiments of the invention and, together with their description, serve to explain the invention and do not constitute an undue limitation thereof. In the drawings:
[0020] Figure 1 A hardware block diagram of a computer terminal for implementing a light intensity calibration method is shown.
[0021] Figure 2 This is a schematic flowchart of the illuminance calibration method provided according to an embodiment of the present invention;
[0022] Figure 3 This is a schematic diagram of a light intensity detection system provided according to an optional embodiment of the present invention;
[0023] Figure 4 This is a structural block diagram of the illuminance calibration device provided according to an embodiment of the present invention. Detailed Implementation
[0024] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0025] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0026] According to an embodiment of the present invention, a method embodiment of a light intensity calibration method is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.
[0027] The method embodiment provided in Embodiment 1 of this application can be executed on a mobile terminal, computer terminal, or similar computing device. Figure 1 A hardware block diagram of a computer terminal for implementing a light intensity calibration method is shown. Figure 1 As shown, the computer terminal 10 may include one or more processors (shown as 102a, 102b, ..., 102n in the figure) (the processor may include, but is not limited to, a microprocessor MCU or a programmable logic device FPGA, etc.) and a memory 104 for storing data. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of a BUS bus), a network interface, a power supply, and / or a camera. Those skilled in the art will understand that... Figure 1 The structure shown is for illustrative purposes only and does not limit the structure of the aforementioned electronic device. For example, computer terminal 10 may also include... Figure 1 The more or fewer components shown, or having the same Figure 1The different configurations shown.
[0028] It should be noted that the aforementioned one or more processors and / or other data processing circuits are generally referred to herein as "data processing circuits". These data processing circuits may be implemented wholly or partially as software, hardware, firmware, or any other combination thereof. Furthermore, the data processing circuits may be a single, independent processing module, or may be wholly or partially integrated into any other element in the computer terminal 10. As involved in the embodiments of this application, the data processing circuits serve as processor control (e.g., selection of a variable resistor termination path connected to an interface).
[0029] The memory 104 can be used to store software programs and modules of application software, such as the illuminance calibration method and corresponding program instructions / data storage device in the embodiments of the present invention. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory 104, thereby implementing the illuminance calibration method of the aforementioned application. The memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory remotely located relative to the processor, and these remote memories can be connected to the computer terminal 10 via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0030] The display may be, for example, a touchscreen liquid crystal display (LCD) that allows the user to interact with the user interface of the computer terminal 10.
[0031] Figure 2 This is a schematic flowchart of the illuminance calibration method provided according to an embodiment of the present invention, as shown below. Figure 2 As shown, the method includes the following steps:
[0032] Step S202: Collect the first illuminance of the preset light source on the standard surface and the second illuminance of the preset light source on the target surface.
[0033] In this step, a preset light source can be used to illuminate both a standard surface and a target surface to obtain a first illuminance and a second illuminance. The standard surface can serve as a reference surface, meaning the illuminance on that surface is the accurate value. For example, a smooth white surface can be used as the standard surface. The preset light source can first illuminate the smooth white surface to obtain the first illuminance, and then the preset light source can illuminate the target surface to obtain the second illuminance.
[0034] Step S204: Determine the compensation method corresponding to the target surface based on the first illuminance and the second illuminance.
[0035] In this step, to normalize the illuminance, the second illuminance is compensated in some way so that the measured illuminance on the target surface should be the same as that on the standard surface. Therefore, the compensation method corresponding to the target surface can be determined based on the first and second illuminances.
[0036] Step S206: Obtain the original illuminance of the target light source on the target surface.
[0037] Step S208: Determine the target illuminance corresponding to the target light source based on the original illuminance and compensation method.
[0038] The obtained raw illuminance is the illuminance before compensation. Based on the previously determined compensation method and the raw illuminance, the target illuminance corresponding to the target light source can be obtained. The target illuminance seen by the user is the compensated target illuminance.
[0039] Through the above steps, the purpose of normalizing the illuminance is achieved, thereby improving the accuracy of the acquired illuminance. This solves the technical problem that the material and color of the light-reflecting surface can affect the acquired illuminance data, resulting in inaccurate illuminance data.
[0040] As an optional embodiment, a preset light source is used to emit light of various brightness levels.
[0041] Optionally, the preset light source can emit light of various brightness levels for subsequent illuminance calibration. This is because when determining the compensation method and calibrating the illuminance using the compensation formula, it's necessary to first obtain the illuminance of light illuminating the surface at different brightness levels, then substitute it into the formula to obtain the unknowns. Therefore, having the preset light source emit light of various brightness levels provides a convenient condition for subsequently determining the compensation method.
[0042] As an optional embodiment, when the compensation method is to use a target compensation formula, the acquisition of a first illuminance of a preset light source on a standard surface and a second illuminance of a preset light source on a target surface includes: obtaining the target number of compensation coefficients in the initial compensation formula, wherein the compensation coefficients in the initial compensation formula are unknowns; acquiring multiple sets of illuminance data under the number of light rays emitted by the preset light source at the target number, wherein the number of multiple sets of illuminance data matches the target number, and any one set of illuminance data in the multiple sets of illuminance data includes the illuminance corresponding to the standard surface and the illuminance corresponding to the target surface.
[0043] As an optional embodiment, when the compensation method is to use a target compensation formula, the compensation method corresponding to the target surface is determined based on the first illuminance and the second illuminance, including: solving the unknowns corresponding to the compensation coefficients in the initial compensation formula based on multiple sets of illuminance data to obtain a target compensation formula including compensation coefficients that are known.
[0044] Optionally, the preset light source can emit light of various brightness levels for subsequent illuminance calibration. When the compensation method uses a target compensation formula, an initial compensation formula can be obtained first, determining the number of target compensation coefficients. Illuminance can then be collected based on the number of targets. For example, with two compensation coefficients, two sets of illuminance data can be obtained. Each set of illuminance data corresponds to a different brightness of light emitted by the preset light source, resulting in different illuminance on the surface. This facilitates solving for the unknowns in the formula. Each set of illuminance data includes illuminance on a standard surface and illuminance on a target surface. Substituting each set of illuminance data into the formula yields multiple equations with unknown compensation coefficients. Solving these equations simultaneously provides the compensation coefficients. Based on the obtained compensation coefficients, the target compensation formula can be derived, which can be used for illuminance calibration.
[0045] As an optional embodiment, when the compensation method is to use a linear compensation formula, the linear compensation formula characterizes the linear change of illuminance on the standard surface with the illuminance on the target surface. The compensation method corresponding to the target surface is determined according to the first illuminance and the second illuminance, including: determining the compensation method corresponding to the target surface based on the first set of illuminance and the second set of illuminance, wherein the first set of illuminance includes the first illuminance on the standard surface and the second illuminance on the target surface when the preset light source is turned on, and the second set of illuminance includes the first illuminance on the standard surface and the second illuminance on the target surface when the preset light source is turned off.
[0046] As an optional embodiment, the linear compensation formula is y = kx + b, where y is the illuminance of the light source on the standard surface, x is the illuminance of the light source on the target surface, and k and b are the compensation coefficients of the compensation formula.
[0047] Optionally, the linear compensation formula is y = kx + b, where y is the illuminance of the light source on the standard surface, x is the illuminance of the light source on the target surface, and k and b are the compensation coefficients of the compensation formula. Two sets of illuminance data can be obtained. One set of illuminance data represents the illuminance of the standard and target surfaces when the preset light source is on, and the other set represents the illuminance of the standard and target surfaces when the preset light source is off. In this way, the preset light source only needs to emit one type of light to obtain two sets of illuminance data. Substituting the two sets of illuminance data into the compensation formula sequentially yields the two compensation coefficients, k and b.
[0048] As an optional embodiment, the illuminance corresponding to the target light source to be detected is uploaded to the display terminal.
[0049] Optionally, the illuminance corresponding to the target light source to be detected can be uploaded to the display terminal, and the user can see the illuminance through the display terminal.
[0050] Here is a specific implementation method:
[0051] 1. The target illuminated surface is defined as a smooth, white surface. A TSIM sensor (light sensor) is used for illuminance detection. The illuminance data detected by the TSIM sensor is independent of distance; the illuminance data is the same at all distances. All illuminance values should be normalized to the data measured on this surface.
[0052] 2. In the user's environment, after installing the TSIM sensor (light sensor) at the user's designated location, a standard white smooth surface is first laid on the user's designated target surface. The TSIM sensor (light sensor) then measures the illuminance of the user's lighting fixtures with and without them turned on, obtaining illuminance data as lux1 and lux2. The standard reflective surface is then removed, and the TSIM sensor is used again to detect the illuminance of the user's lighting fixtures with and without them turned on, obtaining illuminance data as lux3 and lux4.
[0053] 3. lux1 and lux2 are defined as the normalized actual illuminance of the target surface, while lux3 and lux4 are defined as the original illuminance of the target surface. Taking the emerald green leather reflective surface as an example, the original illuminance data read by TSIM is compared with the data read by a white glossy reflective surface under the same conditions. The compensation formula y = kx + q is used to normalize the reflective surface data to the white glossy reflective surface. Here, y represents the illuminance value of the white glossy reflective surface, x represents the original illuminance value of the emerald green leather, and k and q are coefficients in the normalization formula. Substituting the four data points into the formula yields two equations. Solving these two quadratic equations simultaneously gives the coefficients k and q.
[0054] 4. Users can shine the light source to be tested onto the target surface. After compensating the original illuminance using the above compensation formula, the resulting target illuminance can be displayed on the display terminal for users to view.
[0055] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that the present invention is not limited to the described order of actions, because according to the present invention, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to the present invention.
[0056] Through the above description of the embodiments, those skilled in the art can clearly understand that the illuminance calibration method according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of the present invention.
[0057] According to another aspect of the present invention, a light intensity detection system is also provided. Figure 3 This is a schematic diagram of a light intensity detection system provided according to an optional embodiment of the present invention, such as... Figure 3 As shown, it includes: a light source, a light sensor, and a host computer. The light sensor is used to collect the illuminance on a standard surface and a target surface under the light source and to obtain the original illuminance of the target surface under the light source to be tested. The host computer is used to determine the compensation coefficient corresponding to the target surface based on the illuminance corresponding to the standard surface and the illuminance corresponding to the target surface, and to determine the illuminance corresponding to the light source to be tested based on the original illuminance and the compensation coefficient.
[0058] Optionally, the system further includes a display terminal for displaying the illuminance corresponding to the light source to be detected.
[0059] According to an embodiment of the present invention, an illuminance calibration apparatus for implementing the above-described illuminance calibration method is also provided. Figure 4 This is a structural block diagram of the illuminance calibration device provided according to an embodiment of the present invention, such as... Figure 4 As shown, the illuminance calibration device includes: a data acquisition module 42, a first determination module 44, an acquisition module 46, and a second determination module 48. The illuminance calibration device will be described below.
[0060] The acquisition module 42 is used to acquire the first illuminance of the preset light source on the standard surface and the second illuminance of the preset light source on the target surface.
[0061] The first determining module 44, connected to the acquisition module 42, is used to determine the compensation method corresponding to the target surface based on the first illuminance and the second illuminance.
[0062] The acquisition module 46, connected to the first determination module 44, is used to acquire the original illuminance of the target light source on the target surface.
[0063] The second determining module 48, connected to the acquiring module 46, is used to determine the target illuminance corresponding to the target light source based on the original illuminance and the compensation method.
[0064] It should be noted that the aforementioned acquisition module 42, first determination module 44, acquisition module 46, and second determination module 48 correspond to steps S202 to S208 in the embodiments. Multiple modules implement the same instances and application scenarios as their corresponding steps, but are not limited to the content disclosed in the above embodiments. It should also be noted that the aforementioned modules, as part of the device, can run on the computer terminal 10 provided in the embodiments.
[0065] Embodiments of the present invention may provide a computer device. Optionally, in this embodiment, the computer device may be located in at least one of a plurality of network devices in a computer network. The computer device includes a memory and a processor.
[0066] The memory can be used to store software programs and modules, such as the program instructions / modules corresponding to the illuminance calibration method and apparatus in this embodiment of the invention. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory, thereby realizing the aforementioned illuminance calibration method. The memory may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory may further include memory remotely located relative to the processor, and these remote memories can be connected to a computer terminal via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0067] The processor can call the information and application program stored in the memory through the transmission device to perform the following steps: acquire the first illuminance of the preset light source on the standard surface and the second illuminance of the preset light source on the target surface; determine the compensation method corresponding to the target surface based on the first illuminance and the second illuminance; acquire the original illuminance of the target light source to be detected on the target surface; and determine the target illuminance corresponding to the target light source based on the original illuminance and the compensation method.
[0068] Optionally, the processor may also execute program code that presets a light source to emit light of various brightness levels.
[0069] Optionally, the processor may also execute program code for the following steps: when the compensation method is to use a target compensation formula, the processor acquires the first illuminance of the preset light source on the standard surface and the second illuminance of the preset light source on the target surface, including: obtaining the target number of compensation coefficients in the initial compensation formula, wherein the compensation coefficients in the initial compensation formula are unknowns; acquiring multiple sets of illuminance data under the number of light rays emitted by the preset light source, wherein the number of sets of illuminance data matches the number of targets, and any set of illuminance data in the multiple sets of illuminance data includes the illuminance corresponding to the standard surface and the illuminance corresponding to the target surface.
[0070] Optionally, the processor may also execute program code with the following steps: when the compensation method is to use a target compensation formula, determine the compensation method corresponding to the target surface based on the first illuminance and the second illuminance, including: solving the unknowns corresponding to the compensation coefficients in the initial compensation formula based on multiple sets of illuminance data, and obtaining a target compensation formula including the known compensation coefficients.
[0071] Optionally, the processor may also execute program code for the following steps: when the compensation method is to use a linear compensation formula, the linear compensation formula characterizes the linear change of illuminance on the standard surface with illuminance on the target surface. Based on the first illuminance and the second illuminance, the compensation method corresponding to the target surface is determined, including: based on the first set of illuminance and the second set of illuminance, the compensation method corresponding to the target surface is determined, wherein the first set of illuminance includes the first illuminance on the standard surface and the second illuminance on the target surface when the preset light source is turned on, and the second set of illuminance includes the first illuminance on the standard surface and the second illuminance on the target surface when the preset light source is turned off.
[0072] Optionally, the processor may also execute program code for the following steps: the linear compensation formula is y = kx + b, where y is the illuminance of the light source on the standard surface, x is the illuminance of the light source on the target surface, and k and b are the compensation coefficients of the compensation formula.
[0073] Optionally, the processor can also execute program code that uploads the illuminance corresponding to the target light source to be detected to the display terminal.
[0074] This invention provides a method for calibrating illuminance by collecting a first illuminance of a preset light source on a standard surface and a second illuminance of the preset light source on a target surface; determining a compensation method corresponding to the target surface based on the first and second illuminances; acquiring the original illuminance of the target light source on the target surface; and determining the target illuminance corresponding to the target light source based on the original illuminance and the compensation method. This achieves the purpose of normalizing the illuminance, thereby improving the accuracy of the acquired illuminance and solving the technical problem that the material and color of the light-reflecting surface can affect the acquired illuminance data, leading to inaccurate illuminance data.
[0075] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing the hardware related to the terminal device. The program can be stored in a non-volatile storage medium, which may include: flash drive, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk, etc.
[0076] Embodiments of the present invention also provide a non-volatile storage medium. Optionally, in this embodiment, the non-volatile storage medium can be used to store the program code executed by the illuminance calibration method provided in the above embodiments.
[0077] Optionally, in this embodiment, the non-volatile storage medium may be located in any computer terminal in a group of computer terminals in a computer network, or in any mobile terminal in a group of mobile terminals.
[0078] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for performing the following steps: acquiring a first illuminance of a preset light source on a standard surface and a second illuminance of the preset light source on a target surface; determining a compensation method corresponding to the target surface based on the first illuminance and the second illuminance; acquiring the original illuminance of the target light source to be detected on the target surface; and determining the target illuminance corresponding to the target light source based on the original illuminance and the compensation method.
[0079] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for performing the following steps: a preset light source is used to emit light of various brightness levels.
[0080] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for performing the following steps: when the compensation method is to use a target compensation formula, acquiring a first illuminance of a preset light source on a standard surface and a second illuminance of the preset light source on a target surface, including: obtaining the target number of compensation coefficients in the initial compensation formula, wherein the compensation coefficients in the initial compensation formula are unknowns; acquiring multiple sets of illuminance data under the number of light rays emitted by the preset light source at the target number, wherein the number of multiple sets of illuminance data matches the target number, and any one set of illuminance data in the multiple sets of illuminance data includes the illuminance corresponding to the standard surface and the illuminance corresponding to the target surface.
[0081] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for performing the following steps: when the compensation method is to use a target compensation formula, the compensation method corresponding to the target surface is determined according to the first illuminance and the second illuminance, including: solving the unknowns corresponding to the compensation coefficients in the initial compensation formula based on multiple sets of illuminance data to obtain a target compensation formula including compensation coefficients that are known.
[0082] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for performing the following steps: when the compensation method is to use a linear compensation formula, the linear compensation formula characterizes the linear change of illuminance on the standard surface with illuminance on the target surface; determining the compensation method corresponding to the target surface based on the first illuminance and the second illuminance, including: determining the compensation method corresponding to the target surface based on the first set of illuminance and the second set of illuminance, wherein the first set of illuminance includes the first illuminance on the standard surface and the second illuminance on the target surface when the preset light source is turned on, and the second set of illuminance includes the first illuminance on the standard surface and the second illuminance on the target surface when the preset light source is turned off.
[0083] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for performing the following steps: the linear compensation formula is y = kx + b, where y is the illuminance of the light source on the standard surface, x is the illuminance of the light source on the target surface, and k and b are the compensation coefficients of the compensation formula.
[0084] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for performing the following steps: uploading the illuminance corresponding to the target light source to be detected to the display terminal.
[0085] Embodiments of the present invention also provide a computer program product, including a computer program. Optionally, in this embodiment, when the computer program is executed by a processor, it can: acquire a first illuminance of a preset light source on a standard surface and a second illuminance of the preset light source on a target surface; determine a compensation method corresponding to the target surface based on the first illuminance and the second illuminance; obtain the original illuminance of the target light source to be detected on the target surface; and determine the target illuminance corresponding to the target light source based on the original illuminance and the compensation method.
[0086] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0087] In the above embodiments of the present invention, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0088] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units can be a logical functional division, and in actual implementation, there may be other division methods. For instance, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual coupling, direct coupling, or communication connection may be through some interfaces; the indirect coupling or communication connection between units or modules may be electrical or other forms.
[0089] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0090] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0091] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a non-volatile storage medium. Based on this understanding, the technical solution of the present invention, in essence, 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. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.
[0092] The above description is only a preferred embodiment of the present invention. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.
Claims
1. A method for calibrating illuminance, characterized in that, include: Collect the first illuminance of the preset light source on the standard surface and the second illuminance of the preset light source on the target surface; Based on the first illuminance and the second illuminance, determine the compensation method corresponding to the target surface; Obtain the original illuminance of the target light source on the target surface; Based on the original illuminance and the compensation method, the target illuminance corresponding to the target light source is determined; Wherein, when the compensation method is to use a target compensation formula, the step of collecting the first illuminance of the preset light source on the standard surface and the second illuminance of the preset light source on the target surface includes: obtaining the target number of compensation coefficients in the initial compensation formula, wherein the compensation coefficients in the initial compensation formula are unknowns; collecting multiple sets of illuminance data under the number of light rays emitted by the preset light source at the target number, wherein the number of sets of illuminance data matches the target number, and any set of illuminance data in the multiple sets of illuminance data includes the illuminance corresponding to the standard surface and the illuminance corresponding to the target surface.
2. The method according to claim 1, characterized in that, The preset light source is used to emit light of various brightness levels.
3. The method according to claim 2, characterized in that, When the compensation method is to use a target compensation formula, determining the compensation method corresponding to the target surface based on the first illuminance and the second illuminance includes: Based on the multiple sets of illuminance data, the unknowns corresponding to the compensation coefficients in the initial compensation formula are solved to obtain the target compensation formula, which includes the compensation coefficients as known numbers.
4. The method according to claim 1, characterized in that, When the compensation method is a linear compensation formula, the linear compensation formula characterizes the linear change in illuminance on the standard surface with the illuminance on the target surface. Determining the compensation method corresponding to the target surface based on the first illuminance and the second illuminance includes: Based on the first set of illuminance and the second set of illuminance, the compensation method corresponding to the target surface is determined. The first set of illuminance includes the first illuminance on the standard surface and the second illuminance on the target surface when the preset light source is turned on. The second set of illuminance includes the first illuminance on the standard surface and the second illuminance on the target surface when the preset light source is turned off.
5. The method according to claim 4, characterized in that, The linear compensation formula is y=kx+b, where y is the illuminance of the light source on the standard surface, x is the illuminance of the light source on the target surface, and k and b are the compensation coefficients of the compensation formula.
6. The method according to any one of claims 1 to 5, characterized in that, Also includes: The illuminance corresponding to the target light source to be detected is uploaded to the display terminal.
7. A light intensity detection system, characterized in that, It includes a light source, a light sensor, and a host computer, among which, The light sensor is used to collect the illuminance on the standard surface and the target surface under the light source and to obtain the original illuminance of the target surface under the light source to be detected. The host computer is used to determine the compensation coefficient corresponding to the target surface based on the illuminance corresponding to the standard surface and the illuminance corresponding to the target surface, and to determine the illuminance corresponding to the light source to be detected based on the original illuminance and the compensation coefficient. The light sensor is further configured to, when the compensation method is to use a target compensation formula, obtain the target number of compensation coefficients in the initial compensation formula, wherein the compensation coefficients in the initial compensation formula are unknowns; and collect multiple sets of illuminance data under the number of light rays emitted by the light source, wherein the number of sets of illuminance data matches the number of targets, and any set of illuminance data includes the illuminance corresponding to the standard surface and the illuminance corresponding to the target surface.
8. The system according to claim 7, characterized in that, Also includes: The display terminal is used to display the illuminance corresponding to the light source to be detected.
9. A light intensity calibration device, characterized in that, include: The acquisition module is used to acquire the first illuminance of the preset light source on the standard surface and the second illuminance of the preset light source on the target surface; The first determining module is used to determine the compensation method corresponding to the target surface based on the first illuminance and the second illuminance. The acquisition module is used to acquire the original illuminance of the target light source to be detected on the target surface; The second determining module is used to determine the target illuminance corresponding to the target light source based on the original illuminance and the compensation method; The acquisition module is further configured to, when the compensation method is to use a target compensation formula, obtain the target number of compensation coefficients in the initial compensation formula, wherein the compensation coefficients in the initial compensation formula are unknowns; and acquire multiple sets of illuminance data under the number of light rays emitted by the preset light source, wherein the number of sets of illuminance data matches the number of targets, and any set of illuminance data in the multiple sets of illuminance data includes the illuminance corresponding to the standard surface and the illuminance corresponding to the target surface.
10. A non-volatile storage medium, characterized in that, The non-volatile storage medium includes a stored program, wherein, when the program is executed, it controls the device containing the non-volatile storage medium to perform the illuminance calibration method according to any one of claims 1 to 6.
11. A computer device, characterized in that, include: Memory and processor The memory stores computer programs; The processor is configured to execute a computer program stored in the memory, wherein when the computer program is executed, the processor performs the illuminance calibration method according to any one of claims 1 to 6.
12. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements the illuminance calibration method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Lighting system
JP1998335071A