Ambient light compensation method and device, storage medium and program product
By setting up a light sensor on the eye protection lamp and remote control device, and combining multi-point joint compensation with the color plate, the inaccurate ambient light compensation problem caused by the fixed position of the light sensor is solved, and a more accurate light compensation effect is achieved.
Patent Information
- Application Number
- CN202411485708.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-23
- Publication Date
- 2025-01-03
AI Technical Summary
The light sensor is fixed on the eye protection lamp, resulting in inaccurate ambient light compensation from the distance from the light source to the user's reading position.
Set the first light sensor on the eye protection lamp and set the second light sensor on the remote control device. By collecting the illuminance data of the two, and performing multi-point joint compensation in combination with the color plate, accurately obtaining the light at the read and write position Compensate illuminance.
More accurate light compensation is achieved, ensuring that the user's read and write position is maintained in a suitable lighting environment, and avoiding the shortcomings of the traditional single-point compensation method.
Smart Images

Figure CN119255444A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of light detection technology, and in particular to an ambient light compensation method, device, storage medium and program product. Background Art
[0002] With the continuous development of science and technology, the rapid maturity of hardware and artificial intelligence technology, the functions of eye protection lamps are becoming more and more perfect. Among them, ambient light compensation is a common technology widely used in the field of eye protection lamps. Usually, light sensors are used to achieve ambient light compensation, and this light sensor is generally placed on the lamp itself, and can be roughly divided into two specific situations.
[0003] 1. Place it on the chassis of the lamp, open a hole at a specific place on the chassis, and then add an ambient light sensor into it. In this way, the light conditions at the chassis can be measured.
[0004] 2. Place the light sensor on the lamp head to measure the illumination data near the lamp head.
[0005] The illuminance data measured in the above manner can be used to effectively control the illuminance of the eye protection lamp, and these data can be used to compensate for the ambient light data ultimately required by the user, thereby achieving the ideal light state expected by the user.
[0006] However, the above method also has certain limitations. For example, the reading and writing mode of the eye protection lamp is set to an illumination of 1000 lux. When the reading and writing mode of the lamp is turned on, the user actually wants to obtain an illumination of 1600 lux. However, at this time, the ambient light may have reached 1600 lux. If the lamp itself emits an illumination of 1600 lux, it will become 2600 lux. If this is calculated in a linear accumulation manner, it actually fails to meet the actual requirements of customers.
[0007] This is because the position of the light sensor on the lamp is fixed, but the specific area illuminated by the light is not necessarily fixed, which will lead to the following defects:
[0008] 1. If the light sensor is placed on the lamp head, the measured ambient light must be the illuminance near the light source emitted by the lamp. However, there is a certain distance from the light source to the position where the user actually reads and writes. The light will be lost during the propagation process, which will inevitably lead to inaccurate measurement results.
[0009] 2. If the light sensor is placed on the chassis of the lamp, the position where the lamp is usually placed on the chassis is not necessarily the position where the user reads, so the measured data cannot actually accurately represent the illumination corresponding to the position of the illuminated place.
[0010] To this end, the present application proposes an ambient light compensation method to solve the above problem. Summary of the invention
[0011] The main purpose of this application is to provide an ambient light compensation method, device, storage medium and program product, aiming to solve the technical problem of inaccurate ambient light compensation caused by the fixed position of the light sensor on the lamp and the distance between the light source and the user's reading position.
[0012] To achieve the above object, the present application proposes an ambient light compensation method, wherein a first light sensor is arranged on an eye protection lamp, and a second light sensor is arranged on a remote control device, and the remote control device is used to control the eye protection lamp, and the method comprises:
[0013] Collecting illumination data at the location of the eye protection lamp by using the first light sensor;
[0014] Collecting illumination data at a location of a user's remote control device by means of the second light sensor, wherein the remote control device is placed at a reading and writing location of the user;
[0015] Compensation is performed according to the illumination data at the position where the eye protection lamp is located and the illumination data at the position where the remote control device is located, to obtain the light compensation illumination corresponding to the read-write position;
[0016] Ambient light compensation is performed on the read / write position according to the light compensation illumination.
[0017] In one embodiment, the step of performing compensation according to the illumination data at the position of the eye protection lamp and the illumination data at the position of the remote control device to obtain the light compensation illumination corresponding to the read-write position includes:
[0018] Determining an illumination attenuation deviation according to illumination data at a location where the eye protection lamp is located and illumination data at a location where the remote control device is located;
[0019] The illumination attenuation deviation is compensated by a preset compensation algorithm to obtain light compensation illumination.
[0020] In one embodiment, the ambient light compensation method further performs compensation through a color plate, the color plate and the remote control device can be placed separately, and the compensation is performed according to the illumination data at the location of the eye protection lamp and the illumination data at the location of the remote control device, and before the step of obtaining the light compensation illumination corresponding to the read-write position, it also includes:
[0021] Taking a photo of the color plate to obtain a color plate image;
[0022] Perform illumination inversion according to the color plate image to obtain illumination data at the location of the color plate;
[0023] Correspondingly, the step of performing compensation according to the illumination data at the position of the eye protection lamp and the illumination data at the position of the remote control device to obtain the light compensation illumination corresponding to the read-write position also includes:
[0024] Multi-point joint compensation is performed according to the illumination data at the position of the eye protection lamp, the illumination data at the position of the remote control device, and the illumination data at the position of the color plate to obtain the light compensation illumination corresponding to the read-write position.
[0025] In one embodiment, the step of performing illumination inversion according to the color plate image to obtain illumination data at the location of the color plate includes:
[0026] Perform image recognition according to the color palette image to obtain the current colors of the color palette at different angles;
[0027] The illumination data at the location of the color plate is obtained by performing illumination inversion on the colors at different angles through a preset illumination inversion algorithm.
[0028] In one embodiment, the eye protection lamp is located at a first position point A of the read-write position, the remote control device is located at a second position point B of the read-write position, and the color plate is located at a third position point C of the read-write position, then the illumination data at the position of the eye protection lamp is set as the environmental parameter A, the illumination data at the position of the remote control device is set as the environmental parameter B, and the illumination data at the position of the color plate is set as the environmental parameter C; the step of performing multi-point joint compensation according to the illumination data at the position of the eye protection lamp, the illumination data at the position of the remote control device, and the illumination data at the position of the color plate includes:
[0029] If the user selects the first light sensor of the eye protection lamp as the compensation source, single-point compensation is performed according to the environmental parameter A;
[0030] If the user selects the second light sensor of the remote control device as the compensation source, single-point compensation is performed according to the environmental parameter B;
[0031] If the user selects the color plate as the compensation source, single-point compensation is performed according to the environmental parameter C;
[0032] If the user selects the first light sensor and the second light sensor as compensation sources, line compensation is performed according to the environmental parameter A and the environmental parameter B;
[0033] If the user selects the first light sensor and the color plate as compensation sources, line compensation is performed according to the environmental parameter A and the environmental parameter C;
[0034] If the user selects the second light sensor and the color plate as compensation sources, line compensation is performed according to the environmental parameter B and the environmental parameter C;
[0035] If the user selects the first light sensor, the second light sensor and the color plate as compensation sources, surface compensation is performed according to the environmental parameter A, the environmental parameter B and the environmental parameter C;
[0036] If the user does not select a compensation source, no ambient light compensation is performed.
[0037] In one embodiment, the step of performing surface compensation according to the environmental parameter A, the environmental parameter B and the environmental parameter C includes:
[0038] Draw a circumscribed circle and an inscribed circle with the first position point A, the second position point B and the third position point C;
[0039] Determine the center of the circumscribed circle and the center of the inscribed circle;
[0040] According to the environmental parameter A, the environmental parameter B and the environmental parameter C, surface compensation is performed on the first position point A, the second position point B, the third position point C, the center of the circumscribed circle and the center of the inscribed circle.
[0041] In one embodiment, the remote control device is further provided with a color temperature sensor, and before the step of performing ambient light compensation on the read / write position according to the light compensation illumination, the step further includes:
[0042] Collecting color temperature data at the location of the remote control device by using the color temperature sensor;
[0043] Performing color temperature compensation on the color temperature data to obtain the light compensation color temperature at the read / write position;
[0044] Correspondingly, the step of performing ambient light compensation on the read / write position according to the light compensation illumination further includes:
[0045] Ambient light compensation is performed on the read / write position according to the light compensation illumination and the light compensation color temperature.
[0046] In addition, to achieve the above purpose, the present application also proposes an ambient light compensation device, which is applied to an eye protection lamp, wherein a first light sensor is arranged on the eye protection lamp, and a second light sensor is arranged on a remote control device, wherein the remote control device is used to control the eye protection lamp, and the device comprises:
[0047] A lamp illumination module, used for collecting illumination data at the location of the eye protection lamp through the first light sensor;
[0048] A remote control illumination module, used to collect illumination data at a location of a user's remote control device through the second light sensor, wherein the remote control device is placed at a reading and writing location of the user;
[0049] A compensation illumination module, used to perform compensation according to the illumination data at the position where the eye protection lamp is located and the illumination data at the position where the remote control device is located, so as to obtain the light compensation illumination corresponding to the read-write position;
[0050] A compensation control module is used to perform ambient light compensation on the read-write position according to the light compensation illumination.
[0051] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the ambient light compensation method described above are implemented.
[0052] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the ambient light compensation method as described above are implemented.
[0053] One or more technical solutions proposed in this application have at least the following technical effects: this application sets the first light sensor on the eye protection lamp, sets the second light sensor on the remote control device, and also compensates through the color plate, collects the illumination data at the location of the eye protection lamp through the first light sensor; collects the illumination data at the location of the remote control device through the second light sensor, and takes a photo of the color plate to obtain the illumination data at the location of the color plate; performs multi-point joint compensation based on the illumination data at the location of the eye protection lamp, the illumination data at the location of the remote control device, and the illumination data at the location of the color plate, and performs ambient light compensation for the reading and writing position based on the light compensation illumination. Compared with the traditional single-point compensation method, not only two-point compensation can be achieved, but also multi-point joint compensation can be achieved, which is beneficial to the formation of an ambient light compensation surface, and a more accurate light compensation illumination can be obtained to ensure that the user's reading and writing position is maintained in a suitable lighting environment. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0055] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0056] Figure 1 A schematic diagram of a flow chart provided for the first embodiment of the ambient light compensation method of the present application;
[0057] Figure 2 A schematic diagram of the illumination compensation process provided in Example 1 of the present application;
[0058] Figure 3 A schematic diagram of a flow chart provided for the second embodiment of the ambient light compensation method of the present application;
[0059] Figure 4 A schematic diagram of the illumination back-calculation process provided in Example 2 of the present application;
[0060] Figure 5 A schematic diagram of a flow chart of a user selecting ambient light compensation provided in the second embodiment of the present application;
[0061] Figure 6 A schematic diagram of an inscribed circle and a circumscribed circle provided in Example 2 of the present application;
[0062] Figure 7 A schematic diagram of the color temperature compensation process provided in the second embodiment of the present application;
[0063] Figure 8 This is a schematic diagram of the module structure of the ambient light compensation device according to an embodiment of the present application;
[0064] Fig. 9 Schematic diagram of the device structure of the hardware operating environment involved in the ambient light compensation method in the embodiment of the present application.
[0065] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0066] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0067] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0068] It should be noted that the execution subject of this embodiment can be an electronic device with illumination acquisition and ambient light compensation functions, such as an eye protection lamp, a desk lamp, etc., or an ambient light compensation device that executes the ambient light compensation method of this application, etc., and this embodiment does not limit this. The following takes the eye protection lamp as an example to illustrate this embodiment and the following embodiments.
[0069] Based on this, the embodiment of the present application provides an ambient light compensation method, referring to Figure 1 , Figure 1 A flowchart diagram of the first embodiment of the ambient light compensation method of the present application is provided.
[0070] In this embodiment, the first light sensor is arranged on the eye protection lamp, and the second light sensor is arranged on the remote control device, and the remote control device is used to control the eye protection lamp. The ambient light compensation method includes steps S10 to S40:
[0071] Step S10: Collecting illumination data at the location of the eye protection lamp through the first light sensor.
[0072] It should be noted that the first light sensor is a device used to detect the intensity of ambient light around the eye protection lamp.
[0073] It should be noted that illumination data refers to the relevant value of the brightness of light. Illuminance is usually measured in lux, which represents the luminous flux received per unit area. The illumination data at the location of the eye protection lamp reflects the light intensity level that the eye protection lamp can provide.
[0074] It should be noted that the remote control device may include a remote control that is matched with the eye protection lamp, a mobile phone with a remote control function (the mobile phone can communicate with the eye protection lamp, and the front camera or the rear camera has a built-in light sensor to sense light), etc., or other remote control devices, which are not limited in this embodiment. For ease of understanding, this embodiment and the following embodiments are described by taking the remote control as an example.
[0075] Step S20: collecting illumination data at the location of the user's remote control device through the second light sensor, and the remote control device is placed at the reading and writing location of the user.
[0076] It should be noted that the second light sensor is a device for detecting the ambient light intensity of the remote control device at the user's reading and writing position. The first and second do not represent a sequence or priority, but only distinguish between the first light sensor and the second light sensor.
[0077] Whether it is a traditional large floor lamp or a lamp with a remote control, the function of the remote control may be to control the lamp. However, the remote control of this embodiment can be equipped with a second light sensor, and by introducing this method, in conjunction with the first light sensor on the eye protection lamp, a new compensation can be made.
[0078] Step S30: Compensate according to the illumination data at the position of the eye protection lamp and the illumination data at the position of the remote control device to obtain the light compensation illumination corresponding to the read-write position.
[0079] It should be noted that the light compensation illumination is the light intensity that needs to be additionally provided or adjusted in order to achieve an ideal lighting state at the user's reading and writing position.
[0080] It should be noted that a specific algorithm can be used to analyze and process the illumination data at the location of the eye protection lamp and the illumination data at the location of the remote control device to determine the light compensation illumination.
[0081] Through the above processing, the light compensation illumination that is highly adapted to the reading and writing position can be accurately obtained.
[0082] Step S40: performing ambient light compensation on the read / write position according to the light compensation illumination.
[0083] It is understandable that the above two sensors detect the difference in illumination between the eye protection lamp and the user's remote control device, so as to better optimize and compensate for the illumination distribution of the eye protection lamp, making the illumination area of the entire user's reading and writing position more uniform, reducing the discomfort to the eyes caused by uneven illumination. Furthermore, it can also automatically learn and adjust the lighting mode according to the user's usage habits and environmental characteristics, providing users with a personalized lighting experience.
[0084] In the present embodiment, first, the illumination condition of the eye protection lamp is collected by using the first light sensor provided on the eye protection lamp, and the illumination data generated by the eye protection lamp is obtained in detail. At the same time, the user can place the remote control at the reading and writing position, and the illumination data at the remote control device where the user is located is specially collected by using the second light sensor provided on the remote control. Next, the illumination data collected at the position of the eye protection lamp and the illumination data at the position of the remote control device are analyzed and processed, and reasonable compensation is performed through a specific compensation mechanism and algorithm to obtain the precise light compensation illumination corresponding to the reading and writing position. Finally, based on the obtained light compensation illumination, effective ambient light compensation is performed on the reading and writing position, such as adjusting the brightness of the eye protection lamp, or starting other auxiliary lighting equipment, etc., to ensure that the user's reading and writing position can always be maintained in a suitable lighting environment, thereby providing the user with a comfortable, healthy and good light environment conducive to reading and writing.
[0085] In this way, through these two light sensors, the lighting conditions of the surrounding environment can be more comprehensively perceived. The second light sensor can monitor the ambient light from different angles or positions, complementing the first light sensor to obtain more accurate and detailed lighting data. In this way, when the ambient light changes, such as changes in the intensity of natural light, turning the surrounding lights on or off, etc., the two sensors can work together to achieve a more comfortable lighting effect. For example, when the ambient light becomes stronger, the brightness of the eye protection lamp can be automatically reduced to avoid excessive brightness irritating the eyes; when the ambient light becomes weak, the brightness of the eye protection lamp can be automatically increased to ensure sufficient lighting.
[0086] For example, the user usually sits in the middle of the table, and then puts the eye protection lamp in the upper left corner or the upper right corner. At this time, the illuminance data of the upper left corner or the upper right corner will be measured by the light sensor in the lamp. At this time, the remote control can be placed at the user's reading and writing position, and the light sensor of the remote control will measure the illuminance of the ambient light in the place where the user actually uses it. Since light propagation will attenuate, there will be some deviations, and these deviations can be compensated by algorithms to increase the brightness of the lamp, so that the user's reading and writing position meets the set illuminance.
[0087] In one possible implementation, refer to Figure 2 , Figure 2 This is a flow chart of illumination compensation provided in the first embodiment of the present application. In this embodiment, step S30 may include steps S31 to S32:
[0088] Step S31: determining an illumination attenuation deviation according to illumination data at the location of the eye protection lamp and illumination data at the location of the remote control device;
[0089] Step S32: Compensating the illumination attenuation deviation by a preset compensation algorithm to obtain light compensation illumination.
[0090] It should be noted that the illuminance attenuation deviation is the illuminance deviation between the illuminance of the eye protection lamp and the actual reading and writing position of the user. Because there is a certain distance between the eye protection lamp and the actual reading and writing position of the user, and because light propagation will attenuate, there is an illuminance attenuation deviation.
[0091] It should be noted that the preset illumination compensation algorithm is a pre-set algorithm for calculating and adjusting illumination compensation.
[0092] For example, a linear compensation algorithm can perform linear adjustment compensation according to a certain ratio based on the difference between the actual illumination (illuminance data at the location of the eye protection lamp and the illumination data at the location of the remote control device) and the target illumination. For example, a weighted average algorithm comprehensively considers the data and weights of the two light sensors, and calculates a weighted average to perform illumination compensation. For example, an adaptive algorithm automatically adjusts the compensation according to the dynamic changes of the ambient light and the actual illumination of the read-write position. For example, a neural network algorithm makes compensation decisions by training a neural network to learn the relationship between the illumination change law and the compensation demand. Other algorithms are also possible, and this embodiment does not limit this.
[0093] In this embodiment, a specific algorithm can be used to analyze and process the illumination data at the location of the eye protection lamp and the illumination data at the location of the remote control device, for example, taking into account changes in distance, differences in lighting at different angles, etc., and then perform precise calculations and adjustments to determine the light compensation illumination.
[0094] In a feasible implementation manner, step S32 of the illumination in this embodiment may include the steps of: compensating the illumination data at the location of the eye protection lamp and / or the illumination data at the location of the remote control device according to the illumination attenuation deviation through a preset compensation algorithm to obtain light compensation illumination.
[0095] Specifically, the user can choose to compensate with the illumination data of the first light sensor on the eye protection lamp itself, or can compensate with only the illumination data of the second light sensor on the remote control, or can compensate with a combination of the two.
[0096] This embodiment provides an ambient light compensation method. First, the illumination of the eye protection lamp is collected by using the first light sensor provided on the eye protection lamp, and the illumination data generated by the eye protection lamp is obtained in detail. At the same time, the user can place the remote control at the read-write position, and the illumination data at the remote control device where the user is located is specially collected by the second light sensor provided on the remote control. Then, the illumination data at the location of the eye protection lamp and the illumination data at the location of the remote control device collected are analyzed and processed, and reasonable compensation is performed through a specific compensation mechanism and algorithm to obtain the accurate light compensation illumination corresponding to the read-write position. Finally, based on the obtained light compensation illumination, effective ambient light compensation is performed on the read-write position. In this way, the second light sensor of the remote control can more comprehensively perceive the illumination of the surrounding environment, which complements the first light sensor of the eye protection lamp, thereby obtaining more accurate and detailed illumination data. To ensure that the user's read-write position can always be maintained in a suitable lighting environment, thereby providing the user with a comfortable, healthy and good light environment conducive to reading and writing.
[0097] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 3 , Figure 3 A schematic diagram of the flow chart of the second embodiment of the ambient light compensation method of the present application.
[0098] The ambient light compensation method of this example also performs compensation through a color plate, and the color plate and the remote control device can be placed separately. Before step S30 of this example, the ambient light compensation method also includes steps S201 to S202:
[0099] Step S201: photograph the color plate to obtain a color plate image.
[0100] It should be noted that a separate color plate can be set up. At the same time, an app can be set up on the mobile phone. The color plate can be photographed with the mobile phone, and the different colors reflected at different angles on the color plate can be identified by the app to indirectly determine the illumination near the color plate.
[0101] Step S202: performing illumination inversion according to the color palette image to obtain illumination data at the location of the color palette.
[0102] Correspondingly, the step S30 also includes step S301': performing multi-point joint compensation according to the illumination data at the position of the eye protection lamp, the illumination data at the position of the remote control device and the illumination data at the position of the color plate to obtain the light compensation illumination corresponding to the read and write position.
[0103] In this embodiment, a separate color plate can be set up, and an app can also be set up on the mobile phone. The mobile phone takes a photo of the color plate, and the app identifies different colors reflected at different angles on the color plate. Then, through algorithm deduction, the illumination of the color plate can be deduced based on the different colors reflected at different angles on the color plate of the picture. In this way, the dual-point compensation of the light sensor on the remote control combined with the light sensor on the lamp can be further transformed into a comprehensive ambient light compensation method that can be moved and multi-point compensation can be performed through the color plate.
[0104] In one possible implementation, refer to Figure 4 , Figure 4 This is a flow chart of illumination back-calculation provided in the second embodiment of the present application. Step S202 in this embodiment includes steps S2021 to S2022:
[0105] Step S2021: performing image recognition according to the color palette image to obtain the current colors of the color palette at different angles;
[0106] Step S2022: performing illumination inversion on the colors at different angles by using a preset illumination inversion algorithm to obtain illumination data at the location of the color plate.
[0107] It should be noted that the preset illuminance inversion algorithm establishes a relationship algorithm between the preset color information and the corresponding illuminance information, and then uses this model and algorithm to infer the possible corresponding illuminance value when a specific color is given.
[0108] For example, a machine learning algorithm, such as a neural network algorithm, can establish a correlation model between color and illumination through training. For example, a statistical analysis algorithm can analyze the statistical relationship between color data and illumination data. Other algorithms can also be used, and this embodiment does not limit this.
[0109] It is understandable that since a single sensor or multiple sensors on the eye protection lamp can generally only represent the ambient light conditions at the location of the lamp, as an improvement, the sensor on the remote control can be used as an ambient light sensor at the working point, so that two-point joint compensation can be achieved to optimize the actual light at the working surface. This embodiment goes a step further, based on the color plate + app method, a third ambient light compensation point can be obtained to achieve multi-point joint compensation, which is beneficial to form an ambient light compensation surface.
[0110] In one possible implementation, refer to Figure 5 , Figure 5 A schematic diagram of a flow chart of a user selecting ambient light compensation provided in the second embodiment of the present application; the eye protection lamp is located at the first position point A of the read-write position, the remote control device is located at the second position point B of the read-write position, and the color plate is located at the third position point C of the read-write position, then the illumination data at the position of the eye protection lamp is set as the environmental parameter A, the illumination data at the position of the remote control device is set as the environmental parameter B, and the illumination data at the position of the color plate is set as the environmental parameter C;
[0111] The step S301' includes: if the user selects the first light sensor of the eye protection lamp as the compensation source, single-point compensation is performed according to the environmental parameter A; if the user selects the second light sensor of the remote control device as the compensation source, single-point compensation is performed according to the environmental parameter B; if the user selects the color plate as the compensation source, single-point compensation is performed according to the environmental parameter C; if the user selects the first light sensor and the second light sensor as the compensation source, line compensation is performed according to the environmental parameter A and the environmental parameter B; if the user selects the first light sensor and the color plate as the compensation source, line compensation is performed according to the environmental parameter A and the environmental parameter C; if the user selects the second light sensor and the color plate as the compensation source, line compensation is performed according to the environmental parameter B and the environmental parameter C; if the user selects the first light sensor, the second light sensor and the color plate as the compensation source, surface compensation is performed according to the environmental parameter A, the environmental parameter B and the environmental parameter C; if the user does not select a compensation source, ambient light compensation is not performed.
[0112] Specifically, Figure 5 As shown, the user can select different compensation sources for ambient light compensation. When the ambient light compensation device starts working, the device is powered on, connected to the applet that executes the above ambient light compensation method, and the ambient light compensation configuration on the applet is obtained.
[0113] First, determine whether the user selects the lamp sensor as the compensation source (A). If yes (Y), read the environmental parameter A; if no (N), proceed to the next step; at this time, the determination of the lamp sensor as the compensation source is completed (A=-1).
[0114] Then determine whether the user selects the sensor on the remote control as the compensation source (B). If yes (Y), read the environmental parameter B; if no (N), proceed to the next step; at this time, the determination of the sensor on the remote control as the compensation source is completed (B=-1).
[0115] Then determine whether the user selects the visual illumination algorithm of the color plate as the compensation source (C). If yes (Y), take a photo of the color plate to obtain the color plate image, identify the color plate image, obtain the grayscale data of the color plate image, and obtain the environmental parameter C based on the mapping relationship between the grayscale data and the environmental parameter (especially illumination); if no (N), proceed to the next step; at this time, complete the determination of the color plate as the compensation source (C=-1).
[0116] Finally, ambient light compensation is performed according to the compensation source selected by the user, as follows:
[0117] If the user selects the illumination data at the position of the eye protection lamp for single-point compensation (at this time A!=-1, B=-1, C=-1), the environmental parameter A is used for single-point compensation;
[0118] If the user selects the illumination data at the remote control position for single-point compensation (in this case A = -1, B! = -1, C = -1), the environmental parameter B is used for single-point compensation;
[0119] If the user selects the illumination data at the color plate position for single-point compensation (in this case A = -1, B = -1, C! = -1), the environmental parameter C is used for single-point compensation;
[0120] If the user selects the illuminance data at the position of the eye protection lamp and the illuminance data at the position of the remote control for compensation (at this time A!=-1, B!=-1, C=-1), the environmental parameters A and B are used for linear compensation;
[0121] If the user selects the illumination data at the location of A and the color plate for compensation (in this case A!=-1, B=-1, C!=-1), the environmental parameters A and C are used for line compensation;
[0122] If the user selects B and C for compensation (in this case A = -1, B! = -1, C! = -1), the environmental parameters B and C are used for line compensation;
[0123] If the user can select the above three position points for compensation (in this case A!=-1, B!=-1, C!=-1), then the environmental parameters A, B, and C are used for surface compensation. The specific compensation method of surface compensation is described as follows;
[0124] If the user does not select any of the above position points for compensation (in this case A=-1, B=-1, C=-1), it means that no ambient light compensation is required.
[0125] After the user's selection is completed, the ambient light compensation process of the eye protection lamp ends.
[0126] In a possible implementation, Figure 5 As shown, the step of performing surface compensation according to the environmental parameter A, the environmental parameter B and the environmental parameter C includes: drawing a circumscribed circle and an inscribed circle with the first position point A, the second position point B and the third position point C; determining the center of the circumscribed circle and the center of the inscribed circle; and performing surface compensation on the first position point A, the second position point B, the third position point C, the center of the circumscribed circle and the center of the inscribed circle according to the environmental parameter A, the environmental parameter B and the environmental parameter C.
[0127] For ease of understanding, refer to Figure 6 , Figure 6Schematic diagram of the inscribed circle and the circumscribed circle provided in Example 2 of the present application. The lamp is placed at point A in the upper left corner (i.e., the first position point), the remote control is placed at point B in the upper right corner (i.e., the second position point), and the color plate is placed at point C on the working surface (i.e., the third position point). The three points ABC can form a triangular surface. Drawing a circumscribed circle (large circle) or an inscribed circle (small circle) around the vertices of the triangle can form two large and small working surfaces, and surface compensation can be performed on these two working surfaces.
[0128] Among them, the rule of surface compensation is: the position of point A is the origin, the coordinates are (0, 0), according to the relationship between the coordinates and the light parameters (a mapping table is pre-constructed between the coordinates of the lamp location and the light parameters, so the light parameters can be obtained according to the coordinates by looking up the table, or the coordinates can be obtained according to the light parameters. The same light parameter may have four coordinate points that are symmetrical in the upper and lower directions, so the implementation plan needs to support the user to select the positions of B and C), the coordinates of point B (2x, 2v) and point C (cx, cy) can be calculated, a triangle can be constructed based on the three vertices ABC, and the center coordinates of the inscribed circle O1 and the circumscribed circle O2 of the triangle are calculated, and the light parameters are adjusted according to the compensation target selected by the user. The options for compensation targets include: point A, point B, point C, the center of the inscribed circle and the center of the circumscribed circle. In actual applications, these compensation targets can be named according to the application, such as point A is "light source", point B is "remote control", point C is "color plate", the center of the inscribed circle is "intersection point 1", and the center of the circumscribed circle is "intersection point 2". It should be noted that the name can be set according to actual conditions, and this embodiment does not limit this.
[0129] Through the above operations, the user can choose traditional single-point compensation (such as the first sensor A on the lamp, the second sensor B on the remote control, the ambient light compensation C on the color plate, etc.), or two-point compensation (for example, A+B, A+C, B+C, etc.), or three-point compensation (for example, A+B+C), and can further choose multi-point compensation (for example, A+B+C+inscribed circle, A+B+C+circumscribed circle, A+B+C+inscribed circle+circumscribed circle, etc.), and this embodiment does not limit this.
[0130] In a feasible implementation, the color plate can be set in multiple situations. The first situation is that the color plate is set separately, as a separate ordinary color plate, without components, basically just a color cardboard. The advantage is that the cost of the color plate is very low and can be used separately.
[0131] Since the remote control is equipped with a light sensor, the color plate and the remote control can be placed separately to measure different ambient illuminations. The mobile phone takes a photo to calculate the ambient illumination of the color plate (the specific process of measuring the illumination is as described above and will not be repeated here), which may be different from the data of the light sensor on the remote control. In this way, combined with the light sensor on the desk lamp, ambient light compensation at three locations can be completed.
[0132] At the same time, if there is a light sensor at the lamp head position and the lamp base position on the desk lamp, combined with the position of the color plate and the remote control, the ambient light at the light source (lamp head position), the vertical ambient light (lamp base position), and the ambient light in the irradiation area (where the color plate and remote control are placed) can be taken into account at the same time, and four-point compensation can be performed to obtain more accurate and detailed lighting data.
[0133] The second case still follows the first case in that the color plate and the remote control can be placed separately to measure different ambient illuminations, but the color plate can be set on the remote control, that is, on the back shell of the remote control where the battery is, so that it can be removed. The advantage is that there is no need to make a separate color plate, which can avoid loss of the color plate.
[0134] The third situation is that only a color plate is set on the remote control without a light sensor, and then the camera of the mobile phone and visual technology are used to process the measured illuminance (the specific process is as described above and will not be repeated here). The advantage is that the cost is very low.
[0135] The fourth case is that a light sensor is set on the remote control and then a color plate is set. The illuminance data obtained by the sensor on the remote control and the illuminance data at the location of the color plate calculated by the mobile phone camera both represent the ambient light at the same location. In this way, the ambient light at the same location can be measured in two ways, and the color plate and the light sensor complement each other to reduce errors, thereby obtaining more accurate and detailed lighting data for the ambient light at the same location.
[0136] In another possible implementation, referring to Figure 1 and Figure 7 , Figure 7 This is a flow chart of color temperature compensation provided in the second embodiment of the present application. The remote control device described in this embodiment is also provided with a color temperature sensor. Before step S40 of this embodiment, steps S301 to S302 are also included:
[0137] Step S301: collecting color temperature data at the location of the remote control device through the color temperature sensor.
[0138] Step S302: performing color temperature compensation on the color temperature data to obtain the light compensation color temperature of the read / write position.
[0139] Correspondingly, the step S40 further includes: performing ambient light compensation on the read / write position according to the light compensation illumination and the light compensation color temperature.
[0140] It should be noted that the color temperature sensor is a sensor used to detect and measure the color temperature of light in the environment. Color temperature data is data that reflects the degree of color temperature and is used to represent the color components contained in the light. The unit is Kelvin (K). Different color temperatures will give people different visual experiences. For example, light with low color temperature tends to be warmer (such as yellow and orange), and light with high color temperature tends to be cooler (such as blue and white).
[0141] It should be noted that the light compensation color temperature is a compensation value that adjusts or compensates the color temperature of light to achieve a specific effect.
[0142] For example, when users are reading or writing, inaccurate colors may appear due to the non-ideal color temperature of the ambient light. At this time, it is necessary to perform light compensation color temperature operation to increase or decrease the proportion of specific wavelengths of light to make the overall light color temperature reach a more appropriate state, thereby improving visual effects and color accuracy.
[0143] In this embodiment, a color temperature sensor can be set on the remote control. Since the remote control has a light sensor, it can not only measure the illuminance, but also detect the color temperature index through the color temperature sensor to compensate for the new color temperature index. This makes the overall light color temperature reach a more appropriate state, thereby improving the visual effect and enhancing the user experience.
[0144] This embodiment takes into account that a light sensor is provided on a traditional lamp to perform ambient light compensation. Whether it is placed on the lamp head or on the lamp chassis, it is a single-point compensation. Therefore, this embodiment adds a light sensor to the remote control, and combines it with the light sensor provided on the lamp for compensation, so that dual-point compensation can be performed. Furthermore, a color plate and an app can be added, and the sensors of the lamp head and lamp panel on the above-mentioned lamp and the sensor on the remote control can be combined to calculate the illumination of the ambient light at the user's reading and writing position, and the above-mentioned points constitute multi-point compensation. In this way, the sensor of the remote control can more comprehensively perceive the lighting conditions of the surrounding environment, complementing the eye protection light sensor, so as to obtain more accurate and detailed lighting data. This ensures that the user's reading and writing position can always be maintained in a suitable lighting environment, closer to the user's usage range, and improves the user's experience.
[0145] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the ambient light compensation method of the present application. More simple transformations based on this technical concept are all within the protection scope of the present application.
[0146] This application also provides an ambient light compensation device, please refer to Figure 8, Figure 8 This is a schematic diagram of the module structure of the ambient light compensation device of the embodiment of the present application; the device is applied to an eye protection lamp, a first light sensor is arranged on the eye protection lamp, a second light sensor is arranged on a remote control device, the remote control device is used to control the eye protection lamp, and the ambient light compensation device includes:
[0147] A lamp illumination module 601 is used to collect illumination data at the location of the eye protection lamp through the first light sensor;
[0148] A remote control illumination module 602, configured to collect illumination data at a location of a user's remote control device through the second light sensor, wherein the remote control device is placed at a reading and writing location of the user;
[0149] The compensation illumination module 603 is used to perform compensation according to the illumination data at the position where the eye protection lamp is located and the illumination data at the position where the remote control device is located, so as to obtain the light compensation illumination corresponding to the read-write position;
[0150] The compensation control module 604 is used to perform ambient light compensation on the read / write position according to the light compensation illumination.
[0151] In this embodiment, the compensation illumination module 603 is also used to determine the illumination attenuation deviation based on the illumination data at the location of the eye protection lamp and the illumination data at the location of the remote control device; and compensate the illumination attenuation deviation through a preset compensation algorithm to obtain light compensation illumination.
[0152] Furthermore, the ambient light compensation method also performs compensation through a color plate, and the color plate and the remote control device can be placed separately. The ambient light compensation device also includes a color plate illumination module 605, which is used to photograph the color plate to obtain a color plate image; perform illumination reverse deduction based on the color plate image to obtain illumination data at the position of the color plate; accordingly, the compensation illumination module 603 is also used to perform multi-point joint compensation based on the illumination data at the position of the eye protection lamp, the illumination data at the position of the remote control device, and the illumination data at the position of the color plate to obtain the light compensation illumination corresponding to the read-write position.
[0153] Furthermore, the color palette illumination module 605 is also used to perform image recognition based on the color palette image to obtain the current colors of the color palette at different angles; and perform illumination inversion on the colors at different angles through a preset illumination inversion algorithm to obtain illumination data at the location of the color palette.
[0154] Furthermore, the eye protection lamp is located at the first position point A of the read-write position, the remote control device is located at the second position point B of the read-write position, and the color plate is located at the third position point C of the read-write position, then the illumination data at the position of the eye protection lamp is set to environmental parameter A, the illumination data at the position of the remote control device is set to environmental parameter B, and the illumination data at the position of the color plate is set to environmental parameter C; the compensation illumination module 603 is also used for performing single-point compensation according to the environmental parameter A if the user selects the first light sensor of the eye protection lamp as the compensation source; performing single-point compensation according to the environmental parameter B if the user selects the second light sensor of the remote control device as the compensation source; and performing single-point compensation according to the environmental parameter C if the user selects the color plate as the compensation source. Single-point compensation is performed according to the environmental parameter C; if the user selects the first light sensor and the second light sensor as the compensation sources, line compensation is performed according to the environmental parameter A and the environmental parameter B; if the user selects the first light sensor and the color plate as the compensation sources, line compensation is performed according to the environmental parameter A and the environmental parameter C; if the user selects the second light sensor and the color plate as the compensation sources, line compensation is performed according to the environmental parameter B and the environmental parameter C; if the user selects the first light sensor, the second light sensor and the color plate as the compensation sources, surface compensation is performed according to the environmental parameter A, the environmental parameter B and the environmental parameter C; if the user does not select a compensation source, no ambient light compensation is performed.
[0155] Furthermore, the compensation illumination module 603 is also used to draw a circumscribed circle and an inscribed circle with the first position point A, the second position point B and the third position point C; determine the center of the circumscribed circle and the center of the inscribed circle; and perform surface compensation on the first position point A, the second position point B, the third position C, the center of the circumscribed circle and the center of the inscribed circle according to the environmental parameter A, the environmental parameter B and the environmental parameter C.
[0156] Furthermore, the remote control device is also provided with a color temperature sensor, and the ambient light compensation device also includes a color temperature compensation 606, which is used to collect color temperature data at the location of the remote control device through the color temperature sensor; perform color temperature compensation on the color temperature data to obtain the light compensation color temperature of the read-write position; accordingly, the compensation control module 604 is also used to perform ambient light compensation on the read-write position according to the light compensation illuminance and the light compensation color temperature.
[0157] Other embodiments or specific implementations of the ambient light compensation device of the present application can refer to the above-mentioned method embodiments and will not be described in detail here.
[0158] The ambient light compensation device provided by the present application adopts the ambient light compensation method in the above embodiment, which can solve the technical problem of inaccurate ambient light compensation caused by the fixed position of the light sensor on the lamp and the distance between the light source and the position where the user reads, writes, and writes. Compared with the prior art, the beneficial effects of the ambient light compensation device provided by the present application are the same as the beneficial effects of the ambient light compensation method provided by the above embodiment, and other technical features in the ambient light compensation device are the same as the features disclosed in the above embodiment method, which will not be repeated here.
[0159] The present application provides an eye protection lamp, the control center of which is an ambient light compensation device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the ambient light compensation method in the above-mentioned embodiment one.
[0160] Reference below Fig. 9 , Fig. 9 The device structure diagram of the hardware operating environment involved in the ambient light compensation method in the embodiment of the present application shows a schematic diagram of the structure of the ambient light compensation device suitable for implementing the embodiment of the present application. The ambient light compensation device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Fig. 9 The ambient light compensation device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0161] like Fig. 9As shown, the ambient light compensation device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the ambient light compensation device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the ambient light compensation device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows an ambient light compensation device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or provided instead.
[0162] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0163] The ambient light compensation device provided by the present application adopts the ambient light compensation method in the above embodiment, which can solve the technical problem of inaccurate ambient light compensation caused by the fixed position of the light sensor on the lamp and the distance between the light source and the position where the user reads, writes, and writes. Compared with the prior art, the beneficial effects of the ambient light compensation device provided by the present application are the same as the beneficial effects of the ambient light compensation method provided by the above embodiment, and the other technical features in the ambient light compensation device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0164] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0165] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0166] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the ambient light compensation method in the above-mentioned embodiment.
[0167] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.
[0168] The computer-readable storage medium may be included in the ambient light compensation device; or may exist independently without being assembled into the ambient light compensation device.
[0169] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the ambient light compensation device, the ambient light compensation device: collects the illumination data at the position of the eye protection lamp through the first light sensor; collects the illumination data at the position of the user's remote control device through the second light sensor, and the remote control device is placed at the reading and writing position of the user; compensates according to the illumination data at the position of the eye protection lamp and the illumination data at the position of the remote control device to obtain the light compensation illumination corresponding to the reading and writing position; and performs ambient light compensation on the reading and writing position according to the light compensation illumination.
[0170] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0171] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0172] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0173] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned ambient light compensation method, and can solve the technical problem of inaccurate ambient light compensation caused by the fixed position of the light sensor on the lamp and the distance between the light source and the user's reading and writing position. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the ambient light compensation method provided by the above-mentioned embodiment, and will not be repeated here.
[0174] The present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned ambient light compensation method when executed by a processor.
[0175] The computer program product provided by the present application can solve the technical problem of inaccurate ambient light compensation caused by the fixed position of the light sensor on the lamp and the distance between the light source and the position where the user reads, writes, and writes. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as the beneficial effects of the ambient light compensation method provided by the above embodiment, which will not be described in detail here.
[0176] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.
Claims
1. An ambient light compensation method, characterized in that: The first light sensor is arranged on the eye protection lamp, and the second light sensor is arranged on a remote control device, wherein the remote control device is used to control the eye protection lamp, and the method comprises: Collecting illumination data at the location of the eye protection lamp by using the first light sensor; Collecting illumination data at a location of a user's remote control device by means of the second light sensor, wherein the remote control device is placed at a reading and writing location of the user; Compensation is performed according to the illumination data at the position where the eye protection lamp is located and the illumination data at the position where the remote control device is located, to obtain the light compensation illumination corresponding to the read-write position; Ambient light compensation is performed on the read / write position according to the light compensation illumination.
2. The method according to claim 1, characterized in that The step of performing compensation according to the illumination data at the position of the eye protection lamp and the illumination data at the position of the remote control device to obtain the light compensation illumination corresponding to the read-write position comprises: Determining an illumination attenuation deviation according to illumination data at a location where the eye protection lamp is located and illumination data at a location where the remote control device is located; The illumination attenuation deviation is compensated by a preset compensation algorithm to obtain light compensation illumination.
3. The method according to any one of claims 1 to 2, characterized in that The ambient light compensation method also performs compensation through a color plate, the color plate and the remote control device can be placed separately, and the compensation is performed according to the illumination data at the position of the eye protection lamp and the illumination data at the position of the remote control device, and before the step of obtaining the light compensation illumination corresponding to the read-write position, it also includes: Taking a photo of the color plate to obtain a color plate image; Perform illumination inversion according to the color plate image to obtain illumination data at the location of the color plate; Correspondingly, the step of performing compensation according to the illumination data at the position of the eye protection lamp and the illumination data at the position of the remote control device to obtain the light compensation illumination corresponding to the read-write position also includes: Multi-point joint compensation is performed according to the illumination data at the position of the eye protection lamp, the illumination data at the position of the remote control device, and the illumination data at the position of the color plate to obtain the light compensation illumination corresponding to the read-write position.
4. The method according to claim 3, characterized in that The step of performing illumination inversion according to the color plate image to obtain illumination data at the location of the color plate comprises: Perform image recognition according to the color palette image to obtain the current colors of the color palette at different angles; The illumination data at the location of the color plate is obtained by performing illumination inversion on the colors at different angles through a preset illumination inversion algorithm.
5. The method according to claim 4, characterized in that The eye protection lamp is located at the first position point A of the read-write position, the remote control device is located at the second position point B of the read-write position, and the color plate is located at the third position point C of the read-write position, then the illumination data at the position of the eye protection lamp is set as the environmental parameter A, the illumination data at the position of the remote control device is set as the environmental parameter B, and the illumination data at the position of the color plate is set as the environmental parameter C; the step of performing multi-point joint compensation according to the illumination data at the position of the eye protection lamp, the illumination data at the position of the remote control device, and the illumination data at the position of the color plate includes: If the user selects the first light sensor of the eye protection lamp as the compensation source, single-point compensation is performed according to the environmental parameter A; If the user selects the second light sensor of the remote control device as the compensation source, single-point compensation is performed according to the environmental parameter B; If the user selects the color plate as the compensation source, single-point compensation is performed according to the environmental parameter C; If the user selects the first light sensor and the second light sensor as compensation sources, line compensation is performed according to the environmental parameter A and the environmental parameter B; If the user selects the first light sensor and the color plate as compensation sources, line compensation is performed according to the environmental parameter A and the environmental parameter C; If the user selects the second light sensor and the color plate as compensation sources, line compensation is performed according to the environmental parameter B and the environmental parameter C; If the user selects the first light sensor, the second light sensor and the color plate as compensation sources, surface compensation is performed according to the environmental parameter A, the environmental parameter B and the environmental parameter C; If the user does not select a compensation source, no ambient light compensation is performed.
6. The method according to claim 5, characterized in that The step of performing surface compensation according to the environmental parameter A, the environmental parameter B and the environmental parameter C comprises: Draw a circumscribed circle and an inscribed circle with the first position point A, the second position point B and the third position point C; Determine the center of the circumscribed circle and the center of the inscribed circle; According to the environmental parameter A, the environmental parameter B and the environmental parameter C, surface compensation is performed on the first position point A, the second position point B, the third position point C, the center of the circumscribed circle and the center of the inscribed circle.
7. The method according to any one of claims 1 to 2, characterized in that The remote control device is also provided with a color temperature sensor. Before the step of performing ambient light compensation on the read-write position according to the light compensation illumination, the step further includes: Collecting color temperature data at the location of the remote control device by using the color temperature sensor; Performing color temperature compensation on the color temperature data to obtain the light compensation color temperature at the read / write position; Correspondingly, the step of performing ambient light compensation on the read / write position according to the light compensation illumination further includes: Ambient light compensation is performed on the read / write position according to the light compensation illumination and the light compensation color temperature.
8. An ambient light compensation device, characterized in that: The device is applied to an eye protection lamp, a first light sensor is arranged on the eye protection lamp, and a second light sensor is arranged on a remote control device, and the remote control device is used to control the eye protection lamp. The device comprises: A lamp illumination module, used for collecting illumination data at the location of the eye protection lamp through the first light sensor; A remote control illumination module, used to collect illumination data at a location of a user's remote control device through the second light sensor, wherein the remote control device is placed at a reading and writing location of the user; A compensation illumination module, used to perform compensation according to the illumination data at the position where the eye protection lamp is located and the illumination data at the position where the remote control device is located, so as to obtain the light compensation illumination corresponding to the read-write position; A compensation control module is used to perform ambient light compensation on the read / write position according to the light compensation illumination.
9. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the ambient light compensation method according to any one of claims 1 to 7 are implemented.
10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the ambient light compensation method according to any one of claims 1 to 7 are implemented.
Citation Information
Cited By
Virtual load of constant-current driver of flow cytometer and debugging method of virtual load
CN119535076A
