Vehicle-mounted starry sky roof control method, vehicle-mounted starry sky roof control system and vehicle
By acquiring video color features and generating regional control parameters, the linkage between the starry sky roof and the vehicle display device is realized, solving the problem of the lack of connection between visual effects and video content, and enhancing the immersiveness and layering of the in-vehicle entertainment experience.
Patent Information
- Application Number
- CN202610094938.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-01-23
- Publication Date
- 2026-03-03
AI Technical Summary
The independent operation of the vehicle's starry sky roof and in-vehicle display equipment results in visual effects that are unrelated to video content, lacking an immersive viewing experience.
By acquiring the color features of the video, regional control parameters for the luminous area are generated based on mapping rules, thereby realizing the zoned luminous control of the starry sky top, associating it with the video content, and enhancing the visual effect.
It achieves synchronized changes between the starry sky ceiling lighting effect and the video content, creating an immersive viewing experience and enhancing the sense of sophistication and exclusivity of the in-car entertainment experience.
Smart Images

Figure CN121590410A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of vehicle technology, and more specifically, to an in-vehicle starry sky control method, an in-vehicle starry sky control system, and a vehicle in the field of vehicle technology. Background Technology
[0002] With the increasing intelligence and personalization of automobiles, the functions of in-vehicle audio-visual entertainment systems are becoming increasingly rich. Among them, in-vehicle starry sky ceilings and in-vehicle display devices have become important configurations for enhancing the immersive experience of the in-vehicle cabin. In-vehicle starry sky ceilings can simulate natural landscapes such as starry skies and shooting stars through arrayed LED light sources, creating a comfortable and romantic cabin atmosphere; in-vehicle display devices are used to play videos, navigation information, entertainment programs, etc., and are the core carriers of in-vehicle information interaction and audio-visual experience.
[0003] In existing technologies, the functions of the vehicle's starry sky roof and the in-vehicle display device are independent of each other, and no effective linkage mechanism has been established between the two, resulting in the visual effect of the starry sky roof being completely unrelated to the video content played by the in-vehicle display device. Summary of the Invention
[0004] In view of the above problems, this disclosure provides a vehicle-mounted starry sky roof control method, a vehicle-mounted starry sky roof control system, and a vehicle to overcome or at least partially solve the above problems. The technical solution is as follows: In a first aspect, this disclosure provides a method for controlling an in-vehicle starry sky roof. The method includes: determining the color characteristics of a video being played inside a target vehicle, wherein the target vehicle is equipped with a starry sky roof; generating region control parameters corresponding to at least two luminous areas of the starry sky roof based on the color characteristics and a first mapping rule, wherein the first mapping rule defines the association between the color characteristics and different luminous areas; and controlling the luminescence of the starry sky roof using the region control parameters corresponding to the at least two luminous areas.
[0005] Secondly, based on the same inventive concept, this disclosure also provides a vehicle-mounted starry sky roof control system, which includes: a color extraction unit, a processing unit, and a control unit. The color extraction unit is used to determine the color characteristics of a video being played inside a target vehicle, wherein the target vehicle is equipped with a starry sky roof. The processing unit is used to generate region control parameters corresponding to at least two luminous areas of the starry sky roof based on the color characteristics and a first mapping rule, wherein the first mapping rule defines the association between the color characteristics and different luminous areas. The control unit is used to control the illumination of the starry sky roof using the region control parameters corresponding to at least two luminous areas.
[0006] Thirdly, based on the same inventive concept, this disclosure also provides a vehicle including a memory and a processor. The memory stores executable program code; the processor retrieves and executes the executable program code from the memory to perform the vehicle-mounted starry sky control method provided in some of the above embodiments.
[0007] Fourthly, this disclosure also provides a computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, it implements the steps of the vehicle-mounted starry sky control method provided in some of the above embodiments.
[0008] Fifthly, this disclosure also provides a computer program product, which includes a computer program that, when executed by a processor, implements the steps of the vehicle-mounted starry sky control method provided in some of the above embodiments.
[0009] The technical solution provided in this disclosure has the following advantages compared with the prior art: In the vehicle-mounted starry sky ceiling control method provided in this embodiment, color features of the video are acquired, and region control parameters for at least two luminous areas are generated based on the color features and a first mapping rule. Since the color features of the video change with the video frame, the region control parameters generated based on the color features can also change with the video frame. The luminous effect of the starry sky ceiling can change with the region control parameters, thus changing with the video frame. This allows the visual effect of the starry sky ceiling to be associated with the video content played on the vehicle-mounted display device, extending the emotional color of the video to the entire passenger space. This creates a truly immersive in-vehicle viewing experience, breaking the limitation of the traditional viewing mode's "screen and environment separation," creating an immersive viewing atmosphere for passengers, and enhancing the sense of layering and exclusivity of the in-vehicle entertainment experience. In addition, through the first mapping rule, color features can be associated with at least two luminous areas. Different luminous areas can be controlled to emit light through different area control parameters, thereby achieving zoned control of the starry sky top, which can improve the luminous effect of the starry sky top and enhance its visual hierarchy.
[0010] The above description is merely an overview of the technical solution disclosed herein. In order to better understand the technical means of this disclosure and to implement it in accordance with the contents of the specification, and to make the above and other objects, features and advantages of this disclosure more apparent and understandable, specific embodiments of this disclosure are described below. Attached Figure Description
[0011] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.
[0012] To more clearly illustrate the technical solutions in the embodiments of this disclosure or the prior art, the accompanying drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, those skilled in the art can obtain other drawings based on these drawings without creative effort.
[0013] Various other advantages and benefits will become apparent to those skilled in the art upon reading the following detailed description of preferred embodiments. The accompanying drawings are for illustrative purposes only and are not intended to limit the scope of this disclosure. Furthermore, the same reference numerals denote the same parts throughout the drawings. In the drawings: Figure 1 The vehicle-mounted starry sky ceiling control method provided in this embodiment of the disclosure; Figure 2 This is a flowchart of step S1 in the vehicle-mounted starry sky control method provided in the embodiments of this disclosure; Figure 3 This is a flowchart of step S11 in the vehicle-mounted starry sky control method provided in this embodiment of the disclosure; Figure 4 This is a flowchart of step S12 in the vehicle-mounted starry sky control method provided in this embodiment of the disclosure; Figure 5 This is a flowchart of step S122 in the vehicle-mounted starry sky control method provided in this embodiment of the disclosure; Figure 6 This is a flowchart of step S123 in the vehicle-mounted starry sky control method provided in the embodiments of this disclosure; Figure 7 This is another flowchart of step S1 in the vehicle-mounted starry sky control method provided in the embodiments of this disclosure; Figure 8 This is a flowchart of step S2 in the vehicle-mounted starry sky control method provided in this embodiment of the disclosure; Figure 9 This is a structural block diagram of the vehicle-mounted starry sky control system provided in an embodiment of this disclosure; Figure 10 This is a structural block diagram of a vehicle provided in an embodiment of this disclosure. Detailed Implementation
[0014] To better understand the above-mentioned objectives, features, and advantages of this disclosure, the solutions disclosed herein will be further described below. It should be noted that, unless otherwise specified, the embodiments and features described herein can be combined with each other.
[0015] Numerous specific details are set forth in the following description in order to provide a full understanding of this disclosure, but this disclosure may also be implemented in other ways different from those described herein; obviously, the embodiments in the specification are only some, and not all, of the embodiments of this disclosure.
[0016] Exemplary embodiments of the present disclosure will now be described in more detail with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
[0017] As an important decorative feature to enhance the ambiance of a vehicle's interior, a starry sky roof integrates multiple illuminated units into the roof trim to simulate the dazzling visual effect of a starry sky, effectively enhancing the sense of luxury and immersion within the vehicle's space. Currently, most starry sky roofs are implemented using preset, fixed lighting patterns.
[0018] As the core carrier of in-vehicle audio-visual entertainment systems, in-vehicle display devices have been continuously enriched in their functions, and can now support a variety of functions such as high-definition video playback, online movie viewing, navigation map display, and vehicle-machine interactive control.
[0019] However, in the existing technology, the functions of the vehicle starry sky roof and the in-vehicle display device are independent of each other, and no effective linkage mechanism has been established between the two, resulting in the visual effect of the starry sky roof being completely unrelated to the video content played by the in-vehicle display device.
[0020] Based on this, this disclosure provides a method for controlling a vehicle-mounted starry sky ceiling.
[0021] Figure 1 The vehicle-mounted starry sky control method provided in this embodiment of the disclosure.
[0022] Please see Figure 1 The vehicle-mounted starry sky control method includes the following steps S1 to S3.
[0023] S1. When playing a video inside the target vehicle, determine the color characteristics of the video. The target vehicle is equipped with a starry sky roof.
[0024] The target vehicle is equipped with a display device and a starry sky ceiling.
[0025] The display device can be a ceiling-mounted screen.
[0026] In some examples, the vehicle's infotainment system can monitor the status of the local video player application. If it detects that the application is in a "playing" state, it can determine that a video is playing. In other examples, the system can control the output of video information to the display device, which can then display the video information. This allows the system to determine whether the display device is playing a video.
[0027] When a display device plays a video, the color characteristics of the video being played are obtained.
[0028] Among them, color features can be information extracted from the video played by the display device that can characterize the color attributes and the rules of change.
[0029] In some examples, color features may include static color features and dynamic color change patterns.
[0030] For example, static color attributes can include hue, saturation, and value.
[0031] For example, dynamic color change patterns can include color change frequency and color change amplitude. Color change frequency refers to the frequency of switching of the dominant color tone or color scheme of the image per unit of time. For instance, when playing action scenes such as explosions or chases, the color change frequency is high, corresponding to the rapid color switching of the starry sky ceiling lights; when playing slow-paced landscape films, the color change frequency is low, corresponding to the slow, gradual change of the starry sky ceiling lights.
[0032] The range of color changes can represent the degree of difference in color attributes between consecutive frames. For example, when switching from a night scene to a day scene, the brightness change is large, corresponding to a significant increase in the brightness of the starry sky; when switching from a light blue scene to a dark blue scene, the brightness change is small, corresponding to a slight adjustment in the brightness of the starry sky.
[0033] S2. Based on color features and the first mapping rule, generate region control parameters corresponding to at least two luminous regions of the starry sky top. The first mapping rule defines the correlation between color features and different luminous regions.
[0034] The starry sky ceiling is divided into multiple independent and controllable light-emitting areas, and each light-emitting area can execute control commands independently.
[0035] For example, the multiple light-emitting regions may include a core light-emitting region, an ambient light-emitting region, and an edge light-emitting region, wherein the light-emitting point density of the core light-emitting region is greater than that of the ambient light-emitting region, and the light-emitting point density of the ambient light-emitting region is greater than that of the edge light-emitting region.
[0036] For example, the core luminous area can be the area surrounding the vehicle's display device, while the ambient luminous area can be the area above the driver's seat and the area above the rear seats, and the edge luminous area is located on the side of the ambient luminous area away from the core luminous area.
[0037] Among them, the core luminous area is the primary focus of users when viewing the starry sky ceiling, the ambient area is responsible for enhancing the overall mood, and the edge area is used to refine the visual boundaries.
[0038] As the video frame changes, the color characteristics also change, which allows for the generation of region control parameters for each area under different frame conditions.
[0039] Among them, the area control parameters can control the lighting system of the vehicle-mounted starry sky roof.
[0040] The first mapping rule is a fixed association logic pre-written into the system. It does not require real-time calculation. After inputting color features, it can directly output the corresponding area control parameters.
[0041] For example, in step S2, region control parameters for at least two luminous regions can be generated for each color feature. In this case, the at least two luminous regions can correspond to the same color feature. The luminous effects of the two luminous regions can be the same or different.
[0042] For example, inputting a color feature can generate region control parameters corresponding to the core luminous region, the ambient luminous region, and the edge luminous region.
[0043] For example, the video can have multiple color features, and in step S2, multiple luminous region control parameters can be generated for each of the multiple color features.
[0044] For example, multiple color features can include a first color feature, a second color feature, and a third color feature. Inputting the first color feature can generate the area control parameters corresponding to the core luminous area, inputting the second color feature can generate the area control parameters corresponding to the ambient luminous area, and inputting the third color feature can generate the area control parameters corresponding to the edge luminous area.
[0045] S3. Use the area control parameters corresponding to at least two light-emitting areas to control the light emission of the starry sky top.
[0046] When different regional control parameters are used to control the illumination of the starry sky roof's luminous area, the luminous area of the starry sky roof can present different effects.
[0047] In the vehicle-mounted starry sky ceiling control method provided in this embodiment, color features of the video are acquired, and region control parameters for at least two luminous areas are generated based on the color features and a first mapping rule. Since the color features of the video change with the video frame, the region control parameters generated based on the color features can also change with the video frame. The luminous effect of the starry sky ceiling can change with the region control parameters, thus changing with the video frame. This allows the visual effect of the starry sky ceiling to be associated with the video content played on the vehicle-mounted display device, extending the emotional color of the video to the entire passenger space. This creates a truly immersive in-vehicle viewing experience, breaking the limitation of the traditional viewing mode's "screen and environment separation," creating an immersive viewing atmosphere for passengers, and enhancing the sense of layering and exclusivity of the in-vehicle entertainment experience. In addition, through the first mapping rule, color features can be associated with at least two luminous areas. Different luminous areas can be controlled to emit light through different area control parameters, thereby achieving zoned control of the starry sky top, which can improve the luminous effect of the starry sky top and enhance its visual hierarchy.
[0048] Figure 2 This is a flowchart of step S1 in the vehicle-mounted starry sky control method provided in the embodiments of this disclosure.
[0049] Please see Figure 2 In some embodiments, step S1, determining the color characteristics of the video when playing the video inside the target vehicle, may include the following steps S11 to S13.
[0050] S11. When playing a video inside the target vehicle, acquire the target video frame.
[0051] In some examples, the target video frame can be the current video frame. In this case, the acquisition and capture of the target video frame are performed simultaneously. With this setting, the system can directly capture the currently playing video frame and generate region control parameters, thus enabling rapid response to sudden changes in the video frame, such as rapid transitions in special effects or sudden changes in the video frame caused by the user switching video sources.
[0052] In other examples, the target video frame can be captured before the video frame plays. Pre-capturing the target video frame allows for buffer time for hardware responses such as the starry sky display, improving the synchronization between the starry sky display's illumination and the video image, and providing users with an immersive audiovisual and lighting experience.
[0053] Figure 3 This is a flowchart of step S11 in the vehicle-mounted starry sky control method provided in the embodiments of this disclosure.
[0054] Please see Figure 3 In some examples, step S11 may include steps S111 to S113 as described below.
[0055] S111. When playing a video inside the target vehicle, obtain the type of video.
[0056] The types of videos can include suspense films, art films, science fiction films, and action films, etc., which will not be listed here.
[0057] For example, the video type can be obtained by calling the video platform and / or the in-vehicle application API (Application Programming Interface).
[0058] For example, official category tags can be obtained through in-vehicle video apps to determine the video type. These official category tags, determined by video platforms based on content review and producer annotations, are more accurate than local AI recognition or manual annotation. This improved efficiency in coordinating with the system effectively avoids misclassifying suspense films as action films or science fiction films as art films, providing a reliable basis for matching starry sky lighting strategies. Furthermore, this approach does not require consuming the vehicle's computing power, thus reducing the load on the in-vehicle system.
[0059] S112. Determine the preset quantity according to the type, wherein the preset quantities corresponding to at least two types are different.
[0060] S113. Acquire a preset number of target video frames within each time period.
[0061] The time interval between two adjacent target video frames can be the same or different.
[0062] The more target video frames acquired within each time period, i.e., the larger the preset number, the more accurately the color characteristics of the video played within that time period can be reflected based on the color features acquired from multiple target video frames.
[0063] For example, a time period can be 1 second.
[0064] The frequency of image changes varies depending on the video genre. For example, in science fiction and action films, scene transitions are rapid and colors change frequently, resulting in a faster frequency of color feature changes. Conversely, in art films, the pace is slower and colors are more stable, leading to a slower frequency of color feature changes. The number of presets can be positively correlated with the frequency of image changes.
[0065] For example, the number of presets for science fiction films can be greater than the number of presets for art films. For instance, if the video is an action film, the number of presets can be 10. If the video is an art film, the number of presets can be 5.
[0066] This setup, with a larger preset number of target video frames for videos with rapidly changing color features, allows for more comprehensive coverage of color fluctuations within a short period. This improves the accuracy of the extracted color features in matching the video's realistic atmosphere and prevents key color changes from being missed due to insufficient target video frames. Consequently, the switching of the starry sky ceiling lights can be synchronized with the video's rhythm. Conversely, for videos with rapidly changing color features, a smaller preset number of target video frames is sufficient to accurately capture the core colors.
[0067] In summary, videos with rapidly changing color features require more frames to ensure accuracy, while videos with slower color feature changes can be completed with fewer frames. Therefore, dynamically adjusting the extraction frequency based on video type enables efficient allocation of computing resources, reduces the waste of computing power caused by uniformly setting a high number of frames for all videos, and prevents deviations in color feature extraction from action movies caused by uniformly setting a low number of frames. This ensures feature extraction accuracy in scenes with drastic color changes and reduces the waste of computing power in smooth scenes, thereby improving system operating efficiency.
[0068] Please see Figure 2 Step S12: Perform pixel filtering and main color extraction on the target video frame to obtain the main color of the target video frame.
[0069] Pixel filtering refers to the screening of all pixels in the acquired target video frame. The core purpose is to remove invalid and interfering pixels and retain valid pixels with representative color information, in order to prepare for the subsequent accurate extraction of the main color tone.
[0070] Dominant color extraction refers to determining the core color with the highest proportion and greatest visual weight from the target video frame by using color quantization and statistical analysis to obtain the effective pixel set after pixel filtering. The core color is the dominant color.
[0071] Figure 4 This is a flowchart of step S12 in the vehicle-mounted starry sky control method provided in this embodiment of the present disclosure.
[0072] Please see Figure 4 In some examples, step S12, which involves pixel filtering and main color extraction of the target video frame to obtain the main color of the target video frame, may include the following steps S121 to S123.
[0073] S121. Filter out white pixels and transparent pixels in the target video frame and retain multiple valid pixels, wherein the first color channel value of the white pixels is greater than or equal to the first threshold, the second color channel value of the white pixels is greater than or equal to the second threshold, the third color channel value of the white pixels is greater than or equal to the third threshold, and the opacity value of the transparent pixels is greater than or equal to the opacity threshold.
[0074] Pixels are the basic units that make up video frames, and pixel data is a set of core information used to describe the attributes of a single pixel. Each pixel has corresponding pixel data.
[0075] The pixel data may include color data and opacity values (Alpha values). The color data may include a first color channel value, a second color channel value, and a third color channel value. For example, the first color channel value may be an R channel value, the second color channel value may be a G channel value, and the third color channel value may be a B channel value.
[0076] Here, white pixels can include white pixels and near-white pixels, and the first, second, and third color channel values of the white pixels are all at or near their maximum values. Specifically, when the first, second, and third color channel values of a white pixel are all at their maximum values...
[0077] Among them, the first threshold, the second threshold, and the third threshold can be equal.
[0078] For example, the values of the first, second, and third color channels can all range from 0 to 255. The first, second, and third thresholds can all be greater than or equal to 230 and less than or equal to 250. Of course, the first, second, and third thresholds can also have other values, which are not listed here.
[0079] In particular, filtering out white pixels before extracting the main color can reduce the interference of weak color information of white pixels in the extraction of the main color.
[0080] The higher the opacity value, the less transparent the pixel; conversely, the lower the opacity value, the more transparent the pixel.
[0081] If the opacity value of a pixel is greater than or equal to the opacity threshold, it means that the pixel has low transparency and can clearly display colors, thus it is a valid pixel and is retained. Conversely, if the opacity value is less than the opacity threshold, it means that the pixel has high transparency and cannot transmit valid colors, thus it is judged as a transparent pixel and filtered out.
[0082] In step S121, white pixels and transparent pixels in the target video frame are filtered out, and the remaining pixels are valid pixels.
[0083] S122. Based on the color data, cluster multiple valid pixels to obtain multiple pixel sets.
[0084] In step S122, effective pixels with similar color features are grouped into one category by a clustering algorithm, and finally multiple "pixel groups with similar colors" (i.e., pixel sets) are obtained.
[0085] In this system, no two sets of pixels overlap, and a pixel can belong to only one set of pixels.
[0086] For example, after clustering the valid pixels, we can get 9 pixel sets. Of course, the number of pixel sets can be more or less. There is no limit to the number of pixel sets here.
[0087] Specifically, the range of values for the first color channel is divided into multiple ranges, the range of values for the second color channel is divided into multiple ranges, and the range of values for the third color channel is divided into multiple ranges.
[0088] For example, the value range of the first color channel is 0~255, and the range is divided by the median cut method.
[0089] Calculate the median of the initial interval: (0+255) / 2=127.5. Using 127.5 as the boundary, after the first round of segmentation, the initial interval [0, 255] is divided into two intervals: [0, 127] and [128, 255].
[0090] The range of values for the second color channel can be divided into two intervals: [0, 127] and [128, 255].
[0091] The range of values for the third color channel can be divided into two intervals: [0, 127] and [128, 255].
[0092] The specific ranges of the 8 pixel sets obtained in this way can be shown in Table 1 below. Table 1 is a comparison table of the R-channel, G-channel, and B-channel value ranges for each of the 8 pixel sets. Specifically, the R-channel value range is the first channel value range, the G-channel value range is the second channel value range, and the B-channel value range is the third channel value range.
[0093]
[0094] Table 1 Based on the range of the first channel value, the range of the second channel value, and the range of the third channel value corresponding to the pixel, the pixel is assigned to the corresponding pixel set.
[0095] By filtering out white and transparent pixels from the target video frames, invalid frames lacking color information are eliminated, preventing invalid data from interfering with subsequent color extraction results and ensuring that the extracted color features are highly correlated with the video content actually viewed by the user. Furthermore, by removing white and transparent pixels and clustering the valid pixels, the number of invalid pixels that need to be processed during clustering is reduced. Since complex calculations on massive amounts of raw pixel data are unnecessary, computational resources are reduced; therefore, the method disclosed herein can run smoothly even on devices with limited computing power.
[0096] Figure 5 This is a flowchart of step S122 in the vehicle-mounted starry sky control method provided in the embodiments of this disclosure.
[0097] Please see Figure 5 Step S122 may also include the following steps S1221 and S1222.
[0098] S1221. Merge the color data of effective pixels with the color quality parameter as the step size to generate color data level values.
[0099] The original first color channel value, second color channel value, and third color channel value are consecutive values, resulting in a huge amount of data.
[0100] In step S1221, after dividing the continuous color values into several discrete color levels using a preset step size (i.e., color quality parameters), the amount of color data is greatly reduced, which greatly reduces the data storage and computing load, making it more suitable for devices with limited computing power such as automotive chips. It can also improve the computing speed and the real-time performance of starry sky ceiling light control and video playback.
[0101] For example, the color quality parameter can be 5. Of course, the color quality parameter can also be larger or smaller, which will not be listed here.
[0102] In step S1221, the first color channel values are merged using color quality parameters to obtain a first color level value, the second color channel values are merged to obtain a second color level value, and the third color channel values are merged to obtain a third color level value. The color data level value may include the first color level value, the second color level value, and the third color level value.
[0103] For example, in step S1221, the minimum value is taken and merged with the color quality parameter as the step size.
[0104] For example, color data level value = Original color data ÷ color quality parameters × Color quality parameters. For example, if the first color channel value is 234, 234 ÷ 5 = 46.8, rounding 46.8 down gives 46, and 46 × 5 = 230. Therefore, after merging this first color channel value, the corresponding first color level value is 230.
[0105] S1222. Cluster multiple valid pixels according to the color data level values to obtain multiple pixel sets.
[0106] Clustering effective pixels based on color data level values can reduce computing power, increase processing speed, and improve the real-time performance of starry sky top illumination control. S123. Extract the main color tone from multiple pixel sets to obtain the main color tone.
[0107] In this context, dominant color extraction refers to analyzing the color distribution patterns of pixels within each pixel set and selecting the color with the highest proportion that best represents the visual characteristics of that set. Simply put, it's about "extracting a signature color" for each pixel set.
[0108] The dominant color can be the color with the highest percentage in the pixel set, or it can be the average color of all valid pixels in the pixel set. For example, you can take the first average of the first color channel values of all pixels in the pixel set, the second average of the second color channel values of all pixels, and the third average of the third color channel values of all pixels. The dominant color is then determined based on these three averages.
[0109] Figure 6 This is a flowchart of step S123 in the vehicle-mounted starry sky control method provided in the embodiments of this disclosure.
[0110] Please see Figure 6 Step S123: Extract the main color tone from multiple pixel sets to obtain the main color tone, which may include the following steps S1231 to S1232.
[0111] S1231. Determine a first pixel set from multiple pixel sets, wherein the number of pixels in the first pixel set is greater than the number of pixels in other pixel sets among the multiple pixel sets.
[0112] The plurality of pixel sets may include at least one first pixel set. For example, there may be one first pixel set, which is the one containing the most pixels among the plurality of pixel sets. Alternatively, there may be two first pixel sets, which are the two sets containing the most pixels among the plurality of pixel sets.
[0113] S1232. Extract the hue from the first pixel set to obtain the main hue.
[0114] Among them, the first pixel set with the largest number of pixels is selected for primary color extraction to obtain the primary color. The extracted primary color can truly reflect the main color attributes of the target video frame.
[0115] Please see Figure 2 Step S13: Determine color characteristics based on the main color tone.
[0116] In step S13, the primary color tone is converted into color features to facilitate emotion mapping calculation.
[0117] Before determining color features, pixel filtering was performed first, and then the main color tone was obtained. Therefore, when generating color features, there is no need to process massive amounts of raw pixel data. Only the main color tone needs to be processed, reducing the number of computational steps, thereby reducing computing power and improving the real-time performance of video processing.
[0118] In some examples, the color feature determined based on the dominant hue is the first color feature. Specifically, step S13 can be: determining the first color feature based on the dominant hue, and defining the first color feature as the color feature.
[0119] Figure 7 This is another flowchart of step S1 in the vehicle-mounted starry sky control method provided in the embodiments of this disclosure.
[0120] Please see Figure 7 In some embodiments, step S1, in the case of playing a video inside the target vehicle, determining the color characteristics of the video, and the target vehicle being equipped with a starry sky roof, may also include the following steps S14 and S15.
[0121] S14. Extract the secondary tone from the filtered pixels to obtain the secondary tone of the target video frame.
[0122] The secondary color is the secondary core color of the target video frame. It is different from the primary color and is not a derived color or similar color of the primary color.
[0123] The proportion of secondary colors in the filtered pixels (i.e., effective pixels) is less than the proportion of primary colors in the effective pixels.
[0124] Please see Figure 6Step S14 may also include the following steps S141 and S142.
[0125] S141. Determine a second pixel set from multiple pixel sets, wherein the number of pixels in the second pixel set is less than the number of pixels in the first pixel set.
[0126] S142. Extract the hue from the second pixel set to obtain the secondary hue.
[0127] The number of second pixel sets can be one or more; for example, the number of second pixel sets can be three.
[0128] In step S142, hue extraction is performed on each second pixel set to obtain multiple secondary hues.
[0129] S15. Based on the secondary hue, determine the second color feature and define the second color feature as the color feature.
[0130] For example, when there is only one secondary hue, a second color feature can be generated based on multiple secondary hues.
[0131] For example, when there are multiple secondary hues, multiple second color features can be generated based on these multiple secondary hues.
[0132] By acquiring the primary and secondary color tones, and generating first and second color features based on them, the illumination of different areas of the starry sky roof can be controlled according to the first and second color features. This makes the lighting scene of the starry sky roof more compatible with the video content, greatly enhancing the immersive experience for drivers and passengers.
[0133] Please see Figure 7 Step S1: When playing a video inside the target vehicle, determine the color characteristics of the video. If the target vehicle is equipped with a starry sky roof, the steps S16 and S17 below may also be included.
[0134] S16. Extract edge tones from the filtered pixels to obtain the edge tones of the target video frame.
[0135] Among them, the edge tone is different from the secondary tone and the primary tone. The proportion of the secondary tone in the filtered pixels (i.e. the effective pixels) is smaller than that of the primary tone in the effective pixels.
[0136] Please see Figure 6 Step S16 may include the following steps S161 and S162.
[0137] S161. Determine a third pixel set from multiple pixel sets, wherein the number of pixels in the third pixel set is less than the number of pixels in the second pixel set.
[0138] S162. Extract the hue from the third pixel set to obtain the edge hue.
[0139] The number of third pixel sets can be one or more; for example, the number of third pixel sets can be four.
[0140] In step S162, hue extraction is performed on each third pixel set to obtain multiple edge hues.
[0141] S17. Based on the edge hue, determine the third color feature and define the third color feature as the color feature.
[0142] For example, when the number of edge hues is one, a third color feature can be generated based on one edge hue.
[0143] For example, when there are multiple edge hues, multiple third color features can be generated based on multiple edge hues.
[0144] By acquiring the primary color tone, secondary color tone, and edge color tone, and generating first color features, second color features, and third color features based on the primary color tone, secondary color tone, and edge color tone, the illumination of different areas of the starry sky roof can be controlled according to the first color features, second color features, and third color features. This makes the lighting scene of the starry sky roof more compatible with the video content, further enhancing the immersive experience for drivers and passengers.
[0145] Table 2 is the first mapping rule table.
[0146]
[0147] Table 2 Please refer to Table 2. In some embodiments, the first mapping rule may include: for the core luminous area of the starry sky ceiling, matching the luminous color represented by the area control parameters to the main color tone of the target video frame, and superimposing a preset brightness breathing variation; for the ambient luminous area of the starry sky ceiling, matching the luminous color represented by the area control parameters to the secondary color tone of the target video frame, and superimposing a preset meteor dynamic variation; for the edge luminous area of the starry sky ceiling, matching the luminous color represented by the area control parameters to the edge color tone of the target video frame. Here, the main color tone corresponds to the first color feature, the secondary color tone corresponds to the second color feature, and the edge color tone corresponds to the third color feature.
[0148] Among them, the area control parameters corresponding to the core light-emitting area can control the light color of the core light-emitting area to match the main color tone, and can also make the LED beads in the core light-emitting area present a breathing and flashing effect.
[0149] Among them, the brightness breathing change is a dynamic light pattern that simulates the breathing rhythm of a biological organism, with the brightness slowly and periodically cycling from dark to bright and then from bright to dark. By making the brightness of the core luminous area change in a breathing pattern, it conforms to the human eye's perception habits, reducing visual fatigue. The brightness change of the breathing flicker is smooth and gradual, without sudden jumps in brightness, and will not stimulate the optic nerve of the human eye like high-frequency flickering. Especially in the enclosed space of a car, the slow brightness fluctuation is more in line with the human eye's adaptation to changes in light, and it is less likely to cause visual fatigue even after prolonged use, balancing the aesthetics and comfort of the lighting. In addition, the gradual brightness change of the core luminous area will not interfere with the driver's vision, while creating a soft atmosphere.
[0150] In some examples, the brightness breathing frequency of the core luminous region can be correlated with the rhythm of the video.
[0151] The method may also include acquiring the rhythm of the video and generating region control parameters based on the rhythm and color features.
[0152] For example, the frequency of brightness breathing changes can be greater than or equal to 0.5Hz and less than or equal to 2Hz. This setting can prevent the brightness breathing changes from being too rapid and stimulating the optic nerve. In addition, the brightness can also change rapidly to enhance emotional tension and achieve resonance between the starry sky ceiling lights and the storyline.
[0153] In some examples, the brightness of the first color feature corresponding to the core luminescent region is related to the brightness of the video image.
[0154] The starry sky top control method provided in this embodiment may further include: acquiring the brightness of a video; if the brightness of the video is greater than or equal to a first brightness threshold, the brightness of the first color feature corresponding to the core luminous region may be increased by a first preset value. For example, the first preset value may be equal to 20%.
[0155] If the video brightness is less than the second brightness threshold, the brightness of the first color feature corresponding to the core luminous region can be reduced by a second preset value. For example, the second preset value can be equal to 30%.
[0156] The first brightness threshold can be greater than or equal to the second brightness threshold.
[0157] In step S2, the regional control parameters of the starry sky top can be determined based on the adjusted first color feature.
[0158] In cases where the video image is bright, i.e., when the brightness of the video image is greater than or equal to the first brightness threshold, the brightness of the core luminous area of the starry sky top can be increased by increasing the brightness of the first color feature, thereby making the brightness of the core luminous area of the starry sky top more matched with the brightness of the video image.
[0159] When the video image is dark, that is, when the brightness of the video image is less than the second brightness threshold, the brightness of the core luminous area of the starry sky top can be reduced by decreasing the brightness in the first color feature. This makes the brightness of the core luminous area of the starry sky top more matched with the brightness of the video image, avoiding excessive brightness in the core luminous area, which would affect the user's viewing experience.
[0160] The area control parameters corresponding to the ambient light area can control the color of the ambient light area to match the secondary color tone, and can also make the ambient light area present a meteor-like dynamic change.
[0161] The ambient lighting area features dynamic changes resembling shooting stars, which enhances the dynamism and three-dimensional effect of the starry sky ceiling light.
[0162] Among them, meteor density can be positively correlated with the saturation in the HSV color space model corresponding to the secondary hue.
[0163] Meteor density refers to the number of meteor effects appearing per unit time / unit of starry sky top display area. The higher the meteor density, the higher the frequency and density of meteors appearing.
[0164] Among them, the greater the saturation of the secondary hue, the greater the meteor density and the more vivid and eye-catching the meteor color; the lower the saturation of the secondary hue, the smaller the meteor density and the more elegant and soft the meteor color.
[0165] For example, in art films, the secondary color tone corresponds to a lower saturation in the HSV color space model. In this case, the slow, low-frequency movement of shooting stars enhances the sense of tranquility. Conversely, in intense scenes, the secondary color tone is a highly saturated purple or red. In this case, the high-speed, high-frequency movement of shooting stars increases the sense of tension.
[0166] The area control parameters corresponding to the edge-emitting area can control the emission color of the edge-emitting area to match the edge hue.
[0167] The edge-emitting area exhibits static dim light, which allows the edge-emitting area to have low brightness.
[0168] By matching the edge illumination area to the edge hue, the color dimension of the image can be supplemented, making the visual characteristics of the video scene more complete. Furthermore, it can enhance the spatial layering of the starry sky ceiling light, achieving a three-dimensional visual effect of "center-atmosphere-edge," making the visual transition of the roof light more natural and smooth.
[0169] In some examples, color features may include an HSV (hue-saturation-value) color space model. Here, hue (H) ranges from 0 to 360°, saturation (S) ranges from 0 to 100%, and value (V) ranges from 0 to 100%.
[0170] In HSV, the H, S, and V components are completely independent and independently adjustable, enabling layered adjustment of the starry sky ceiling's color, vibrancy, and brightness, reducing color linkage issues. Furthermore, when the starry sky ceiling is further dimmed based on the HSV color space model, its lighting effects accurately reproduce the human eye's color perception of the video image.
[0171] In addition, the color of the emitted light in the luminous area can be matched with the hue H. By periodically changing the brightness V, a breathing effect can be achieved in the luminous area. By making the value of V change instantaneously, a shooting star can be simulated.
[0172] In summary, converting hues to the HSV color space model facilitates emotion mapping calculations.
[0173] Figure 8 This is a flowchart of step S2 in the vehicle-mounted starry sky control method provided in the embodiments of this disclosure.
[0174] Please see Figure 8 In some embodiments, the first mapping rule may include a first sub-mapping rule and a second sub-mapping rule.
[0175] Step S2: Based on color features and the first mapping rule, generate region control parameters corresponding to at least two luminous regions of the starry sky top. The first mapping rule defines the association between color features and different luminous regions, and may include the following steps S21 to S25.
[0176] S21. Based on color features and the first sub-mapping rule, determine the color features corresponding to the core luminous area, ambient luminous area, and edge luminous area of the starry sky top.
[0177] The first sub-mapping rule defines the relationship between color features and different luminous regions.
[0178] Furthermore, the color characteristics corresponding to each luminous area can also be related to the video type.
[0179] For example, in the process of acquiring the color features of the target video frame, eight hues were acquired. In some examples, in the case of science fiction and art films, the eight hues may include one primary hue, three secondary hues, and four edge hues. In other examples, in the case of action films, the eight primary hues may include two primary hues, three secondary hues, and three edge hues.
[0180] In step S1, multiple color features can be generated based on multiple hues, wherein the color feature corresponding to the primary hue is the first color feature, the color feature corresponding to the secondary hue is the second color feature, and the color feature corresponding to the edge hue is the third color feature.
[0181] The first color feature can be mapped to the core luminous area, the three second color features can be mapped to the ambient luminous area, and the four third color features can be mapped to the edge luminous area.
[0182] S22. Based on the video type and the second sub-mapping rule, determine the lighting effects corresponding to the core luminous area, ambient luminous area, and edge luminous area.
[0183] The second mapping rule defines the lighting effects of different luminous areas under different video types.
[0184] In step S22, the starry sky ceiling can have different lighting effects depending on the type of video being played on the display device.
[0185] For example, lighting effects can include brightness breathing changes, meteor dynamic changes, brightness flashing changes, brightness gradients, etc.
[0186] In different video types, the same luminous area can have different lighting effects.
[0187] For example, in the case of a science fiction video, the core luminous area can exhibit a breathing effect in brightness. In the case of an art film, the core luminous area can exhibit a gradual change in brightness.
[0188] For example, in the case of a science fiction film, the ambient light area can display a color change effect, while in the case of an art film, the ambient light area can display a multi-color flashing effect.
[0189] For example, in various video types, the edge-lit area exhibits a flickering effect.
[0190] By determining the lighting effects of each luminous area based on video type and the second sub-mapping rule, multiple video types can be linked with the luminous effects of the starry sky ceiling, thereby enhancing the immersive experience for users watching videos.
[0191] S23. Based on the color characteristics corresponding to the core luminous area and the lighting effect of the core luminous area, generate the area control parameters corresponding to the core luminous area.
[0192] In step S23, the region control parameters of the core luminous region can be generated based on the first color feature and the lighting effect of the core luminous region.
[0193] S24. Based on the color characteristics of the ambient light area and the lighting effect of the ambient light area, generate the area control parameters corresponding to the ambient light area.
[0194] In step S24, the area control parameters of the ambient light emission area can be generated based on the three second color features.
[0195] The ambient light-emitting area of the starry sky top can include multiple sub-light-emitting areas distributed in a ring, wherein one sub-light-emitting area is matched with a second color feature.
[0196] In some examples, the sub-emitting regions that are closer to the core emitting region match the second color feature, which corresponds to a larger number of pixels in the pixel set.
[0197] In other examples, the sub-emitting regions closer to the core emitting region match the longer wavelength of the second color feature.
[0198] For example, the colors corresponding to the three secondary color features are red, orange, and yellow. The wavelengths of red, orange, and yellow light decrease sequentially. Therefore, the emitted colors of the three ring-shaped sub-emitting regions are red, orange, and yellow, respectively, presenting a gradient effect.
[0199] S25. Based on the effective color features in the color features corresponding to the edge-emitting area and the lighting effect of the edge-emitting area, generate area control parameters corresponding to the edge-emitting area, wherein the brightness of the effective color features is less than or equal to the preset brightness.
[0200] For example, if there is an invalid color feature among the four third color features, the invalid color feature can be removed and the valid color feature can be retained. The invalid color feature is the third color feature with a brightness higher than the preset brightness, while the valid color feature is the color feature with a brightness less than or equal to the preset brightness.
[0201] If there is no effective color feature among the four third color features, then the edge luminous area will not emit light.
[0202] If there is a valid color feature among the four third color features, then the edge luminous area will display the color of the valid color feature.
[0203] The edge-emitting area is usually located around the perimeter of the roof, away from the driver's line of sight. By matching the effective color features with a brightness lower than the preset brightness in the third color feature to the edge-emitting area, the edge-emitting area can present a low-brightness mode, thereby reducing the brightness of the edge-emitting area from interfering with the driver.
[0204] This design not only enhances the atmosphere through color complements but also avoids the impact of edge lighting on the driver's vision, perfectly balancing the needs of "cabin entertainment experience" and "driving safety".
[0205] Table 3 is a comparison table of the video played in the vehicle and the starry sky effect after adopting the vehicle starry sky control method provided in the embodiments of this disclosure.
[0206] Table 3 Please refer to Table 3. During a certain screening time of a science fiction film, the starry sky ceiling can present the effect shown in Table 3. During a certain screening time of an art film, the starry sky ceiling can present the effect shown in Table 3. During a certain screening time of an action film, the starry sky ceiling can present the effect shown in Table 3.
[0207] In some examples, the video frame can be processed using a multi-frame moving average algorithm before the target video frame is acquired, that is, before step S1.
[0208] Specifically, at least one set of video frame data is cached, where each set of video frames includes multiple original video frames.
[0209] Multiple original video frames in each group of video frames are fused to obtain a fused frame.
[0210] Display devices display based on the merged frames.
[0211] It consists of a series of consecutive original video frames in a set of video frame data, with a high degree of content correlation between adjacent frames. For example, the same object may only undergo minor changes in position or shape in adjacent frames.
[0212] For example, a set of video frames may include 3 original video frames. Of course, a set of video frames may include more or fewer original video frames, which will not be listed here.
[0213] In the process of fusing multiple original video frames in each group of video frames, the average value of the pixel data of each pixel in the original video frame can be calculated.
[0214] For example, in a set of video frames, the R-channel value of a pixel in the (n-1)th original video frame is 250, the R-channel value of the same pixel in the nth original video frame is 50, and the R-channel value of the same pixel in the (n+1)th original video frame is 240. After fusion processing, the R-channel value of this pixel in the nth frame becomes (250+50+240) / 3≈180. That is, the R-channel value of this pixel in the fused frame is 180.
[0215] Therefore, if the difference between the pixel data of a certain frame and the pixel data of adjacent frames is too large, for example, if the difference between the R channel values of two adjacent frames is greater than or equal to 50, the image can be avoided by processing through a multi-frame smoothing algorithm, which would cause the color to jitter violently and reduce the stimulation of the human eye caused by the image change.
[0216] Furthermore, it can effectively eliminate stuttering, jitter, and screen tearing during video playback, improving the smoothness and stability of the output image from in-vehicle displays. It can also achieve precise matching between low frame rate videos and high refresh rate in-vehicle displays, improving playback quality without modifying the original video files.
[0217] Based on the same inventive concept, this disclosure also provides a vehicle-mounted starry sky roof control system.
[0218] Figure 9 This is a structural block diagram of the vehicle-mounted starry sky control system provided in an embodiment of this disclosure.
[0219] Please see Figure 9 The vehicle-mounted starry sky control system 100 may include a color extraction unit 110, a processing unit 120, and a control unit 130.
[0220] The color extraction unit 110 is used to perform the above step S1, in the case of playing a video inside the target vehicle, to determine the color characteristics of the video, wherein the target vehicle is equipped with a starry sky roof.
[0221] The processing unit 120 is used to perform the above step S2, and based on color features and the first mapping rule, generate regional control parameters corresponding to at least two luminous areas of the starry sky top. The first mapping rule defines the correlation between color features and different luminous areas.
[0222] The control unit 130 is used to perform the above step S3 and control the light emission of the starry sky top using the area control parameters corresponding to at least two light-emitting areas.
[0223] The vehicle-mounted starry sky control system 100 provided in this embodiment is used to execute the vehicle-mounted starry sky control method provided in some of the above embodiments. Therefore, the vehicle-mounted starry sky control system 100 provided in this embodiment has all the beneficial effects of the vehicle-mounted starry sky control method provided in some of the above embodiments, which will not be elaborated here.
[0224] Based on the same inventive concept, this disclosure also provides a vehicle.
[0225] Figure 10 This is a structural block diagram of a vehicle provided in an embodiment of this disclosure.
[0226] Please see Figure 10 The vehicle 200 includes a memory 210 and a processor 220. The memory 210 stores executable program code. The processor 220 retrieves and executes the executable program code from the memory 210 to perform the vehicle-mounted starry sky control method provided in some of the embodiments described above.
[0227] The vehicle 200 provided in this embodiment has all the beneficial effects of the vehicle-mounted starry sky control method provided in the above embodiments, and will not be described in detail here.
[0228] In some examples, processor 220 is the core component of the vehicle infotainment system. Processor 220 can also be used for video decoding, central control interaction, vehicle networking communication, ADAS data processing, etc.
[0229] In some embodiments, the processor 220 is used to reserve some computing power to execute the vehicle-mounted starry sky control method provided in some of the above embodiments.
[0230] With this configuration, the processor 220 will not have its computing power squeezed out by other high-load tasks, thus enabling the vehicle-mounted starry sky control method to execute stably.
[0231] For example, processor 220 reserves 20% of its computing power for executing the vehicle-mounted starry sky control method provided in some of the above embodiments.
[0232] This disclosure also provides a computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the steps of the vehicle-mounted starry sky control method provided in some of the above embodiments.
[0233] This disclosure also provides a computer program product, which, when executed by a processor, implements the steps of the vehicle-mounted starry sky control method provided in some of the above embodiments.
[0234] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments of this disclosure can be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include at least: any entity or device capable of carrying the computer program code to the vehicle controller, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium. Examples include USB flash drives, portable hard drives, magnetic disks, or optical disks. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electrical carrier signals or telecommunication signals.
[0235] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0236] Through the above description of the embodiments, those skilled in the art will understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0237] In the embodiments provided in this disclosure, 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 or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another device, 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 of devices or units may be electrical, mechanical, or other forms.
[0238] In the description of this disclosure, it should be understood that if the terms "upper", "lower", "front", "rear", "left" and "right" are used to indicate the orientation or positional relationship based on the orientation or positional relationship shown in the drawings, they are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the position or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of this disclosure.
[0239] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes the element.
[0240] The above are merely embodiments of this disclosure and are not intended to limit the scope of this disclosure. Various modifications and variations can be made to this disclosure by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this disclosure should be included within the scope of the claims of this disclosure.
Claims
1. A method for controlling a vehicle-mounted starry sky ceiling, characterized in that, include: When a video is played inside a target vehicle, the color characteristics of the video are determined, and the target vehicle is equipped with a starry sky roof. Based on the color features and the first mapping rule, region control parameters corresponding to at least two luminous regions of the starry sky top are generated respectively. The first mapping rule defines the association between the color features and different luminous regions. The starry sky top is controlled to emit light using regional control parameters corresponding to at least two emitting regions.
2. The vehicle-mounted starry sky ceiling control method according to claim 1, characterized in that, In the case of playing a video inside the target vehicle, determining the color characteristics of the video includes: When a video is played inside the target vehicle, the target video frame of the video is obtained; Pixel filtering and main color extraction are performed on the target video frame to obtain the main color of the target video frame; The color features are determined based on the primary color tone.
3. The vehicle-mounted starry sky ceiling control method according to claim 2, characterized in that, The step of performing pixel filtering and main color extraction on the target video frame to obtain the main color of the target video frame includes: Filter white pixels and transparent pixels in the target video frame and retain multiple valid pixels, wherein the first color channel value of the white pixels is greater than or equal to a first threshold, the second color channel value of the white pixels is greater than or equal to a second threshold, the third color channel value of the white pixels is greater than or equal to a third threshold, and the opacity value of the transparent pixels is greater than or equal to an opacity threshold. Based on the color data, the multiple valid pixels are clustered to obtain multiple pixel sets; The dominant color is obtained by extracting the dominant color from the multiple pixel sets.
4. The vehicle-mounted starry sky ceiling control method according to claim 3, characterized in that, The step of extracting the dominant color tone from the plurality of pixel sets to obtain the dominant color tone includes: A first pixel set is determined from the plurality of pixel sets, wherein the number of pixels in the first pixel set is greater than the number of pixels in the other pixel sets among the plurality of pixel sets; The dominant color tone is obtained by extracting the color tone from the first set of pixels.
5. The vehicle-mounted starry sky ceiling control method according to claim 3, characterized in that, In the case of playing a video inside a target vehicle, determining the color characteristics of the video, wherein the target vehicle is equipped with a starry sky roof, the method further includes: The secondary color tone of the filtered pixels is extracted to obtain the secondary color tone of the target video frame; Based on the secondary hue, a second color feature is determined, and the second color feature is identified as the color feature.
6. The vehicle-mounted starry sky control method according to claim 5, characterized in that, In the case of playing a video inside a target vehicle, determining the color characteristics of the video, wherein the target vehicle is equipped with a starry sky roof, the method further includes: Edge tones are extracted from the filtered pixels to obtain the edge tones of the target video frame; Based on the edge hue, a third color feature is determined, and the third color feature is identified as the color feature.
7. The vehicle-mounted starry sky control method according to claim 6, characterized in that, The first mapping rule includes: for the core luminous area of the starry sky ceiling, matching the luminous color represented by the area control parameters to the main color tone of the target video frame, and superimposing a preset brightness breathing change; for the ambient luminous area of the starry sky ceiling, matching the luminous color represented by the area control parameters to the secondary color tone of the target video frame, and superimposing a preset meteor dynamic change; for the edge luminous area of the starry sky ceiling, matching the luminous color represented by the area control parameters to the edge color tone of the target video frame.
8. The vehicle-mounted starry sky ceiling control method according to claim 1, characterized in that, The step of generating region control parameters corresponding to at least two luminous regions of the starry sky top based on the color features and the first mapping rule includes: Based on the color features and the first sub-mapping rule, the color features corresponding to the core luminous area, ambient luminous area and edge luminous area of the starry sky top are determined respectively. The first sub-mapping rule defines the association between the color features and different luminous areas. Based on the video type and the second sub-mapping rule, the lighting effects corresponding to the core luminous area, the ambient luminous area and the edge luminous area are determined respectively. The second mapping rule defines the lighting effects of different luminous areas under different video types. The first mapping rule includes the first sub-mapping rule and the second sub-mapping rule. Based on the color characteristics corresponding to the core luminous area and the lighting effect of the core luminous area, generate area control parameters corresponding to the core luminous area; Based on the color characteristics corresponding to the ambient light-emitting area and the lighting effect of the ambient light-emitting area, generate area control parameters corresponding to the ambient light-emitting area; Based on the effective color features in the color features corresponding to the edge luminous area and the lighting effect of the edge luminous area, a region control parameter corresponding to the edge luminous area is generated, wherein the brightness of the effective color features is less than or equal to a preset brightness.
9. A vehicle-mounted starry sky ceiling control system, characterized in that, include: A color extraction unit is used to determine the color features of a video when the video is played inside a target vehicle, wherein the target vehicle is equipped with a starry sky roof. The processing unit is configured to generate region control parameters corresponding to at least two luminous regions of the starry sky top based on the color features and the first mapping rule, wherein the first mapping rule defines the association between the color features and different luminous regions. The control unit is used to control the illumination of the starry sky top using area control parameters corresponding to at least two luminous areas.
10. A vehicle, characterized in that, include: Memory, used to store executable program code; A processor is configured to call and execute the executable program code from the memory to perform the vehicle-mounted starry sky control method as described in any one of claims 1 to 8.