An ambient lighting control method, device, and computer-readable storage medium
By converting ambient lighting effect indication data into multi-frame static images and combining them with light source control functions, a full-color ambient lighting effect is generated, solving the problem of monotonous in-vehicle ambient lighting effects and improving user experience and driving safety.
Patent Information
- Application Number
- CN202210101608.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-27
- Publication Date
- 2025-10-31
- Estimated Expiration
- 2042-01-27
AI Technical Summary
Existing in-vehicle ambient lighting offers limited lighting effects, failing to meet the personalized needs of different users and resulting in a poor user experience.
The ambient lighting effect indicator data is converted into multiple single-frame static images. Image feature information is extracted, and combined with the spectral information of multi-color adjustable light sources and preset functions, a control function that changes over time is generated to control the light source to emit light and form a full-color ambient lighting effect.
It achieves diverse lighting effects and adaptively generates light source control through environmental signal perception, thereby improving driving safety and user experience.
Smart Images

Figure CN114494874B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of lighting control technology, and in particular to an ambient lighting control method, device, and computer-readable storage medium. Background Technology
[0002] With the increasing popularity of automobiles, the importance of in-car ambient lighting is receiving more and more attention, especially during nighttime driving. Appropriate ambient lighting can effectively reduce driver visual fatigue and minimize the impact of other interfering lights on the driver, thereby improving driving safety to a certain extent.
[0003] Traditional in-vehicle ambient lighting control systems employ a distributed approach, featuring independent ambient lighting control units that can provide users with relatively good lighting effects. However, current in-vehicle ambient lighting effects are limited and cannot meet the diverse needs of different users, resulting in a poor user experience. Summary of the Invention
[0004] This application provides an ambient light control method, device, and computer-readable storage medium, which can at least solve the problem of the relatively simple lighting effects of ambient lights in related technologies.
[0005] The first aspect of this application provides an ambient light control method, applied to a side-emitting optical fiber with a multi-color adjustable light source at its end, the ambient light control method comprising:
[0006] The ambient lighting effect indication data is converted into multiple single-frame static images corresponding to different lighting periods; wherein, the ambient lighting effect indication data includes environmental perception data and ambient lighting effect reference data;
[0007] Image feature information of each of the single-frame static images is extracted, and a first luminous effect parameter of the optical fiber that varies with time domain is mapped based on the image feature information; wherein, the luminous effect parameter includes light intensity and chromaticity;
[0008] The second luminous effect parameters of the optical fiber are obtained by using the spectral information of the multi-color tunable light source, combined with a preset light attenuation function and a preset color synthesis function;
[0009] The second luminous effect parameter is matched with the first luminous effect parameter to obtain the time-domain change control function of the multi-color tunable light source;
[0010] The multi-color adjustable light source is controlled with reference to the time-domain change control function.
[0011] A second aspect of this application provides an ambient light control device, applied to a side-emitting optical fiber with a multi-color adjustable light source at its end, the ambient light control device comprising:
[0012] The conversion module is used to convert ambient light effect indication data into multiple single-frame static images corresponding to different lighting periods; wherein, the ambient light effect indication data includes environmental perception data and ambient light effect reference data;
[0013] The mapping module is used to extract image feature information of each of the single-frame static images, and map the first emission effect parameters of the optical fiber that change over time based on the image feature information; wherein, the emission effect parameters include light intensity and chromaticity;
[0014] The acquisition module is used to obtain the second luminous effect parameters of the optical fiber by using the spectral information of the multi-color tunable light source, combined with a preset light attenuation function and a preset color synthesis function;
[0015] The matching module is used to match the second luminous effect parameter with the first luminous effect parameter to obtain the time-domain change control function of the multi-color tunable light source;
[0016] The control module is used to control the multi-color adjustable light source with reference to the time-domain change control function.
[0017] A third aspect of this application provides an electronic device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the steps of the ambient light control method provided in the first aspect of this application.
[0018] The fourth aspect of this application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, it implements the steps of the ambient light control method provided in the first aspect of this application.
[0019] As can be seen from the above, according to the ambient lighting control method, device, and computer-readable storage medium provided in this application, the ambient lighting effect indication data is converted into multiple single-frame static images corresponding to different illumination periods; image feature information of each single-frame static image is extracted, and the first illumination effect parameter of the optical fiber changes with time based on the image feature information; the spectral information of the multi-color adjustable light source is used, combined with a preset light attenuation function and a preset color synthesis function to obtain the second illumination effect parameter of the optical fiber; the second illumination effect parameter is matched with the first illumination effect parameter to obtain the time-domain change control function of the multi-color adjustable light source; and the multi-color adjustable light source is controlled with reference to the time-domain change control function. Through the implementation of this application, the illumination of the light source can be controlled in the time domain to form a full-color ambient lighting effect; adjusting the spectral composition of the light source can simulate the effect of a full-spectrum light source to form a functional lighting source; and the light source control function can be adaptively generated to control the illumination through environmental signal perception, ensuring more diverse lighting effects. Attached Figure Description
[0020] Figure 1 A schematic diagram of an optical fiber structure provided in the first embodiment of this application;
[0021] Figure 2 A flowchart illustrating the ambient lighting control method provided in the first embodiment of this application;
[0022] Figure 3 A schematic diagram of the overall optical fiber distribution provided in the first embodiment of this application;
[0023] Figure 4 This is another schematic diagram of the overall optical fiber distribution provided in the first embodiment of this application;
[0024] Figure 5 This is a schematic diagram of the program modules of the ambient light control device provided in the second embodiment of this application;
[0025] Figure 6 This is a schematic diagram of the structure of the electronic device provided in the third embodiment of this application. Detailed Implementation
[0026] To make the inventive objectives, features, and advantages of this application more apparent and understandable, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0027] To address the issue of limited lighting effects in ambient lighting in related technologies, the first embodiment of this application provides an ambient lighting control method. Specifically, this method is applied to a side-emitting optical fiber with a multi-color adjustable light source at its end, using the optical fiber as the ambient lighting element. Figure 1 The diagram shown is a schematic of an optical fiber structure provided in this embodiment. In practical applications, multi-color tunable light sources are provided at both ends of the optical fiber, such as RGBW tunable light sources. The optical fiber emits light from the side, and the overall change effect of light in the optical fiber can be observed.
[0028] like Figure 2 This is a flowchart illustrating the ambient lighting control method provided in this embodiment. The ambient lighting control method includes the following steps:
[0029] Step 201: Convert the ambient light effect indicator data into multiple single-frame static images corresponding to different lighting periods.
[0030] Specifically, the ambient lighting effect indication data in this embodiment includes environmental perception data and ambient lighting effect reference data. The environmental perception data can be environmental audio signals, such as music currently playing in the environment. In practical applications, the environmental audio signal can be converted into multiple single-frame static images corresponding to different lighting periods based on the sound frequency and / or amplitude information of the environmental audio signal. Additionally, the ambient lighting effect indication data can be dynamic images (such as dynamic water flow images), videos, etc.
[0031] Step 202: Extract the image feature information of each single frame static image, and map the first luminous effect parameter of the optical fiber that changes with time domain based on the image feature information.
[0032] Specifically, the luminous effect parameters in this embodiment include luminous intensity and chromaticity. In practical applications, luminous effect information such as luminous intensity and chromaticity is extracted from a single frame of static image and mapped to different parts of the optical fiber to obtain a time-dimensional mapping effect.
[0033] In some embodiments of this example, the steps of extracting image feature information of each single frame static image include: dividing each emission period into multiple change periods; obtaining multiple frames of static images corresponding to multiple change periods for each single frame static image corresponding to each emission period; and extracting the corresponding image feature information of the multiple frames of static images.
[0034] Specifically, in this embodiment, in order to make the ambient light effect more realistic, each light-emitting period can be further subdivided into multiple changing periods. Taking a single light-emitting period of 1 second as an example, 1 second can be divided into 20 changing periods. Then, the light-emitting effect of a single frame is fitted by multiple frames of static images of a single period.
[0035] Step 203: Using the spectral information of a multi-color tunable light source, combined with a preset light attenuation function and a preset color synthesis function, obtain the second luminous effect parameters of the optical fiber.
[0036] Specifically, in this embodiment, parameters are fitted using a light attenuation function and a color synthesis function to form a time-domain control function for the multi-color light source. That is, the corresponding light intensity and chromaticity can be obtained based on the spectral information emitted by the optical fiber. The light intensity information is input into the light attenuation function to obtain the light intensity after attenuation along the length of the optical fiber. Then, the chromaticity information is synthesized using a color synthesis function to obtain the chromaticity at each position along the length of the optical fiber. The light intensity obtained through the light attenuation function and the chromaticity obtained through the color synthesis function constitute the second luminous effect parameter.
[0037] In this embodiment, the optical attenuation function can be expressed as: I = I0·e -a·d In this equation, I represents the attenuated light intensity, I0 represents the initial light intensity, e represents the natural constant, d represents the light penetration depth, and a represents the light absorption coefficient. In practical applications, the coefficients in the formula can be influenced by the fiber density and the material and optical properties corresponding to side emission.
[0038] Furthermore, considering that the physical properties of optical fibers can be affected by manufacturing processes and aging during use in practical applications, this embodiment incorporates the physical properties of the optical fiber into the optical attenuation function to eliminate errors introduced by these properties and improve the accuracy of the optical attenuation function. Accordingly, the optical attenuation function in this embodiment can also be expressed as: I = k·I0·e -a·d Where I represents the attenuated light intensity, k represents the fiber physical property correction coefficient, I0 represents the initial light intensity, e represents the natural constant, d represents the light penetration depth, and a represents the light absorption coefficient. It should be understood that the fiber physical property correction coefficient in this embodiment may include one or more of the following: fiber material characteristic correction coefficient, fiber structure characteristic correction coefficient, etc. When the fiber physical property correction coefficient simultaneously considers multiple different types of coefficients, it can be expressed as k = αk1 + βk2 + ... + γk n Where k1, k2…k n These represent correction coefficients for the physical properties of various types of optical fibers, and α, β…γ represent weighting coefficients corresponding to the correction coefficients for the physical properties of each type of optical fiber.
[0039] It should also be noted that the color synthesis function in this embodiment is the CIE colorimetric system, such as the CIE1931 colorimetric system.
[0040] Step 204: Match the second luminous effect parameter with the first luminous effect parameter to obtain the time-domain change control function of the multi-color tunable light source.
[0041] Specifically, in this embodiment, the least squares method or other computer algorithms can be used to match the obtained second light emission effect parameters with the first light emission effect parameters, control the error, and form single-frame simulation effect control parameters.
[0042] In one optional embodiment of this example, the step of matching the second luminous effect parameter with the first luminous effect parameter includes: selecting a portion of the first luminous effect parameters from all the first luminous effect parameters according to preset parameter characteristics; and matching the second luminous effect parameter with the portion of the first luminous effect parameters.
[0043] Specifically, in practical applications, all the aforementioned first luminous effect parameters can be matched. However, considering the large amount of data and the fact that not all data can guarantee high validity, this embodiment selects only some feature parameters from all the first luminous effect parameters for matching. These feature parameters can form an effective reference for luminous control, which reduces the amount of data processed for luminous control while ensuring the accuracy of luminous control.
[0044] Step 205: Control the multi-color adjustable light source by referring to the time-domain change control function.
[0045] Specifically, in practical applications, the light emission control of this embodiment can be either single-end control of a multi-color tunable light source at one end of the optical fiber, or dual-end control of multi-color tunable light sources at both ends of the optical fiber. The mixing of light at both ends can create differentiated mixing effects within the optical fiber, further enriching the diversity of optical fiber emission effects, such as... Figure 3 The diagram shown is a schematic representation of an overall optical fiber distribution provided in this embodiment, corresponding to an application scenario where the light intensity is consistent at both ends of the optical fiber (i.e., end A and end B). Figure 4 The diagram shown illustrates another overall fiber optic light distribution provided in this embodiment, corresponding to an application scenario where the light intensity at both ends of the fiber is inconsistent. Based on the dual-end multi-color light source of this embodiment, by controlling the intensity in the time domain, a full-color ambient lighting effect can be created.
[0046] Furthermore, in an optional embodiment of this example, after the step of controlling the multi-color tunable light source by referring to the time-domain change control function, the method further includes: obtaining the actual light emission effect parameters of the optical fiber; and comparing the actual light emission effect parameters with the expected light emission effect parameters.
[0047] Correspondingly, when the actual light emission effect parameters exceed the preset error range, the number of equal divisions of the light emission period is increased, and then the process returns to the above-mentioned step of dividing each light emission period into multiple variable periods.
[0048] Specifically, in practical applications, the actual light emission effect of the optical fiber may not be as expected when the light emission control is performed according to the aforementioned control logic. Therefore, in order to improve the light emission effect, this embodiment can divide a single frame of static image into more frames of static image to simulate the single frame effect. Then, the corresponding time-domain change control function is regenerated, and the light emission control is performed again to achieve dynamic correction of the optical fiber light emission effect.
[0049] This embodiment uses the dynamic effect of simulated water flow as an example for illustration. First, different frames of the effect can be formed in a dynamic region. Each frame effect is mapped to a corresponding length of optical fiber (that is, the portion of the optical fiber relative to different distance intervals from the light source in the length direction). The light intensity and chromaticity feature information that change with time is extracted. Then, the light color synthesis effect of the light sources at both ends of the optical fiber is adjusted to form a light emission effect in which the color interval of water changes regularly over time. It should be noted that this embodiment forms multiple frames of change effect within a single time period (e.g., 1 second) for each frame of water flow information. For example, 1 second is divided into 20 change time periods, and the light emission intensity is controlled to fit a frame of water flow image information to form a more realistic light emission effect as much as possible.
[0050] Based on the technical solution of the above-described embodiments of this application, ambient light effect indication data is converted into multiple single-frame static images corresponding to different illumination periods; image feature information of each single-frame static image is extracted, and the first illumination effect parameter of the optical fiber changes with time domain based on the image feature information; the spectral information of the multi-color adjustable light source is used, combined with a preset light attenuation function and a preset color synthesis function to obtain the second illumination effect parameter of the optical fiber; the second illumination effect parameter is matched with the first illumination effect parameter to obtain the time domain change control function of the multi-color adjustable light source; the multi-color adjustable light source is controlled with reference to the time domain change control function. Through the implementation of the solution of this application, the illumination of the light source can be controlled with time domain control to form a full-color ambient light effect; adjusting the spectral composition of the light source can simulate the effect of a full-spectrum light source to form a functional lighting light source; the light source control function can be adaptively generated to control the illumination through environmental signal perception, ensuring more diverse lighting effects.
[0051] Figure 5 This application provides a second embodiment of an ambient lighting control device. This ambient lighting control device is applied to a side-emitting optical fiber with a multi-color adjustable light source at one end. For example... Figure 5 As shown, the ambient lighting control device mainly includes:
[0052] The conversion module 501 is used to convert ambient light effect indication data into multiple single-frame static images corresponding to different illumination periods; wherein, ambient light effect indication data includes environmental perception data and ambient light effect reference data;
[0053] The mapping module 502 is used to extract the image feature information of each single frame static image, and map the first luminous effect parameters of the optical fiber that change over time based on the image feature information; wherein, the luminous effect parameters include light intensity and chromaticity;
[0054] The acquisition module 503 is used to obtain the second luminous effect parameters of the optical fiber by using the spectral information of a multi-color tunable light source, combined with a preset light attenuation function and a preset color synthesis function;
[0055] The matching module 504 is used to match the second luminous effect parameter with the first luminous effect parameter to obtain the time-domain change control function of the multi-color tunable light source;
[0056] The control module 505 is used to control the multi-color adjustable light source with reference to the time-domain change control function.
[0057] In some embodiments of this example, the matching module is specifically used to: select a portion of the first luminous effect parameters from all the first luminous effect parameters according to preset parameter characteristics; and match the second luminous effect parameters with the portion of the first luminous effect parameters.
[0058] In some embodiments of this example, when the mapping module extracts the image feature information of each single-frame static image, it is specifically used to: divide each emission period into multiple change periods; for each single-frame static image corresponding to each emission period, obtain multiple frames of static images corresponding to multiple change periods; and extract the corresponding image feature information of the multiple frames of static images.
[0059] In some embodiments of this example, the ambient light control device further includes: an adjustment module for acquiring the actual luminous effect parameters of the optical fiber; comparing the actual luminous effect parameters with the expected luminous effect parameters; and increasing the number of equal divisions of the luminous period when the actual luminous effect parameters exceed a preset error range. Subsequently, the mapping module is re-triggered to perform the function of equally dividing each luminous period into multiple changing periods.
[0060] It should be noted that the ambient light control methods in the first embodiment can all be implemented based on the ambient light control device provided in this embodiment. Those skilled in the art can clearly understand that, for the sake of convenience and brevity, the specific working process of the ambient light control device described in this embodiment can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0061] According to the ambient light control device provided in this embodiment, the ambient light effect indication data is converted into multiple single-frame static images corresponding to different illumination periods; image feature information of each single-frame static image is extracted, and the first illumination effect parameter of the optical fiber changes with time based on the image feature information; the spectral information of the multi-color adjustable light source is used, combined with a preset light attenuation function and a preset color synthesis function to obtain the second illumination effect parameter of the optical fiber; the second illumination effect parameter is matched with the first illumination effect parameter to obtain the time-domain change control function of the multi-color adjustable light source; the multi-color adjustable light source is controlled with reference to the time-domain change control function. Through the implementation of the solution of this application, the illumination of the light source can be controlled with time-domain control to form a full-color ambient light effect; adjusting the spectral composition of the light source can simulate the effect of a full-spectrum light source to form a functional lighting light source; the light source control function can be adaptively generated to control the illumination through environmental signal perception, ensuring more diverse lighting effects.
[0062] Please see Figure 6 , Figure 6 An electronic device is provided as a third embodiment of this application. This electronic device can be used to implement the ambient light control method in the foregoing embodiments. Figure 6 As shown, the electronic device mainly includes:
[0063] The system includes a memory 601, a processor 602, a bus 603, and a computer program stored on the memory 601 and executable on the processor 602. The memory 601 and the processor 602 are connected via the bus 603. When the processor 602 executes the computer program, it implements the ambient light control method described in the foregoing embodiments. The number of processors can be one or more.
[0064] The memory 601 can be a high-speed random access memory (RAM) or a non-volatile memory, such as a disk storage device. The memory 601 is used to store executable program code, and the processor 602 is coupled to the memory 601.
[0065] Furthermore, embodiments of this application also provide a computer-readable storage medium, which may be disposed in the electronic device of the above embodiments, and the computer-readable storage medium may be the aforementioned... Figure 6 The memory in the illustrated embodiment.
[0066] The computer-readable storage medium stores a computer program that, when executed by a processor, implements the ambient light control method described in the foregoing embodiments. Furthermore, the computer-readable storage medium can also be a USB flash drive, external hard drive, read-only memory (ROM), RAM, magnetic disk, or optical disk, or any other medium capable of storing program code.
[0067] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or modules may be electrical, mechanical, or other forms.
[0068] The modules described as separate components may or may not be physically separate. Similarly, the components shown as modules may or may not be physical modules; they may be located in one place or distributed across multiple network modules. Some or all of the modules can be selected to achieve the purpose of this embodiment, depending on actual needs.
[0069] Furthermore, the functional modules in the various embodiments of this application can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The integrated modules described above can be implemented in hardware or as software functional modules.
[0070] If the integrated module is implemented as a software functional module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, 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 readable 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 of the various embodiments of this application. The aforementioned readable storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, ROM, RAM, magnetic disks, or optical disks.
[0071] 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 this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. 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 this application.
[0072] In the above embodiments, 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.
[0073] The above is a description of the ambient lighting control method, device, and computer-readable storage medium provided in this application. For those skilled in the art, based on the ideas of the embodiments of this application, there will be changes in the specific implementation methods and application scope. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. An ambient lighting control method, characterized in that, The ambient light control method, applicable to side-emitting optical fibers with multi-color adjustable light sources at both ends, includes: The ambient lighting effect indication data is converted into multiple single-frame static images corresponding to different lighting periods; wherein, the ambient lighting effect indication data includes environmental perception data and ambient lighting effect reference data; Image feature information of each single-frame static image is extracted, and based on the image feature information of different single-frame static images, the corresponding light emission effect information is mapped to different parts along the length of the optical fiber to obtain the first light emission effect parameter of the optical fiber that varies with time; wherein, the light emission effect parameter includes light intensity and chromaticity; The second luminous effect parameters of the optical fiber are obtained by using the spectral information of the multi-color tunable light source, combined with a preset light attenuation function and a preset color synthesis function; The second luminous effect parameter is matched with the first luminous effect parameter to obtain the time-domain change control function of the multi-color tunable light source; The multi-color adjustable light source is controlled with reference to the time-domain change control function; The step of obtaining the second luminous effect parameters of the optical fiber by using the spectral information of the multi-color tunable light source, combined with a preset light attenuation function and a preset color synthesis function includes: The light intensity and chromaticity are obtained according to the spectral information emitted by the multi-color tunable light source. The light intensity is input into a preset light attenuation function to obtain the light intensity after attenuation along the fiber length. The chromaticity is synthesized by a preset color synthesis function to obtain the chromaticity at each position along the fiber length. The light intensity obtained by the light attenuation function and the chromaticity obtained by the color synthesis function constitute the second luminous effect parameter. The optical attenuation function is expressed as: I = k·I0·e -a·d k = αk1 + βk2 + ... + γk n Wherein, I represents the attenuated light intensity, k represents the fiber physical property correction coefficient, I0 represents the initial light intensity, e represents the natural constant, d represents the light penetration depth, a represents the light absorption coefficient, and the color synthesis function is the CIE colorimetric system, k1, k2…k n These represent correction coefficients for the physical properties of various types of optical fibers, and α, β…γ represent weighting coefficients corresponding to the correction coefficients for the physical properties of each type of optical fiber.
2. The ambient lighting control method according to claim 1, characterized in that, The step of matching the second luminous effect parameter with the first luminous effect parameter includes: Select a portion of the first luminous effect parameters from all the first luminous effect parameters according to the preset parameter characteristics; The second luminous effect parameter is matched with the partial first luminous effect parameter.
3. The ambient lighting control method according to claim 1, characterized in that, The step of extracting the image feature information of each of the single-frame static images includes: Each of the aforementioned light-emitting periods is divided into multiple variable periods; For each of the single-frame static images corresponding to the light emission period, obtain multi-frame static images corresponding to the multiple changing periods; The corresponding image feature information of the multiple static images is extracted respectively.
4. The ambient lighting control method according to claim 3, characterized in that, After the step of controlling the multi-color tunable light source with reference to the time-domain change control function, the method further includes: Obtain the actual light emission parameters of the optical fiber; Compare the actual luminous effect parameters with the expected luminous effect parameters; When the actual light emission effect parameters exceed the preset error range, the number of equal divisions of the light emission period is increased, and then the process returns to the step of dividing each of the light emission periods into multiple variable periods.
5. An ambient lighting control device, characterized in that, The ambient light control device, applicable to side-emitting optical fibers with multi-color adjustable light sources at both ends, includes: The conversion module is used to convert ambient light effect indication data into multiple single-frame static images corresponding to different lighting periods; wherein, the ambient light effect indication data includes environmental perception data and ambient light effect reference data; The mapping module is used to extract the image feature information of each of the single-frame static images, and based on the image feature information of different single-frame static images, to map the corresponding light emission effect information to different parts along the length of the optical fiber, thereby obtaining the first light emission effect parameter of the optical fiber that varies with time; wherein, the light emission effect parameter includes light intensity and chromaticity; The acquisition module is used to obtain the second luminous effect parameters of the optical fiber by using the spectral information of the multi-color tunable light source, combined with a preset light attenuation function and a preset color synthesis function; The matching module is used to match the second luminous effect parameter with the first luminous effect parameter to obtain the time-domain change control function of the multi-color tunable light source; The control module is used to control the multi-color adjustable light source with reference to the time-domain change control function; Specifically, the acquisition module is used to: obtain the corresponding light intensity and chromaticity based on the spectral information emitted by the multi-color tunable light source; input the light intensity into a preset light attenuation function to obtain the light intensity after attenuation in the fiber length direction; and synthesize the chromaticity through a preset color synthesis function to obtain the chromaticity at each position in the fiber length direction. The light intensity obtained through the light attenuation function and the chromaticity obtained through the color synthesis function constitute the second luminous effect parameter. The optical attenuation function is expressed as: I = k·I0·e -a·d k = αk1 + βk2 + ... + γk n Wherein, I represents the attenuated light intensity, k represents the fiber physical property correction coefficient, I0 represents the initial light intensity, e represents the natural constant, d represents the light penetration depth, a represents the light absorption coefficient, and the color synthesis function is the CIE colorimetric system, k1, k2…k n These represent correction coefficients for the physical properties of various types of optical fibers, and α, β…γ represent weighting coefficients corresponding to the correction coefficients for the physical properties of each type of optical fiber.
6. The ambient lighting control device according to claim 5, characterized in that, When the mapping module performs the extraction of image feature information of each single-frame static image, it is specifically used to: divide each of the light emission periods into multiple change periods; and for each of the single-frame static images corresponding to each of the light emission periods, obtain multiple frames of static images corresponding to the multiple change periods. The corresponding image feature information of the multiple static images is extracted respectively.
7. An electronic device, characterized in that, include: Memory, processor, and bus; The bus is used to enable communication between the memory and the processor; The processor is used to execute computer programs stored in the memory; When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 4.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 4.
Citation Information
Patent Citations
Light source device and automobile headlamp
CN110500553A
Light control method and device, controller, module and storage medium
CN113613363A