Vehicle control method, vehicle control device, vehicle, and storage medium

CN118004026BActive Publication Date: 2026-10-09GREAT WALL MOTOR CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410360378.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-27
Publication Date
2026-10-09
Estimated Expiration
2044-03-27

AI Technical Summary

Technical Problem

[0003]目前,车辆的氛围灯颜色一般是预先设置的固定的点亮颜色;但是,固定的点亮颜色在氛围灯的点亮过程中会影响用户的沉浸感

Benefits of technology

[0010] The above technical solution obtains the target duration for each light color based on the target proportion of each light color and the preset light illumination cycle. Since the target duration for each light color is positively correlated with the target proportion of each light color, when controlling the ambient lights in the vehicle to illuminate according to the first light color, the target sequence, and the target duration for each light color, the color difference between the ambient lights and the user's environment can be reduced, thereby improving the rendering effect of the ambient lights and enhancing the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118004026B_ABST
    Figure CN118004026B_ABST
Patent Text Reader

Abstract

The application provides a vehicle control method, a vehicle control device, a vehicle and a storage medium, comprising: collecting an environment image of an environment where the vehicle is located; determining a first light color and a target proportion of each light color in the first light color; wherein the first light color is a light color matched based on color values of pixel points in the environment image, and the target proportion represents a ratio of a number of pixel points corresponding to a certain light color in the environment image to a number of all pixel points in the environment image; and based on the first light color and the target proportion of each light color, controlling the ambient light in the vehicle to be lit. The method can realize linkage between the ambient light in the vehicle and the external environment, and improve the cabin experience of the user.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of vehicles, and more specifically, to a vehicle control method, a vehicle control device, a vehicle, and a storage medium. Background Technology

[0002] With the booming development of the automotive industry, ambient lighting in vehicles has gradually become more common, and how to use ambient lighting to meet users' intelligent requirements for vehicles has become one of the research hotspots.

[0003] Currently, the ambient lighting colors in vehicles are generally preset and fixed; however, fixed lighting colors can affect the user's sense of immersion during the ambient lighting process. Summary of the Invention

[0004] This application provides a vehicle control method, a vehicle control device, a vehicle, and a storage medium. The method can accurately determine the ambient light color that matches the ambient color, enabling the ambient light in the vehicle to be linked with the external environment and enhancing the user's cabin experience.

[0005] In a first aspect, a vehicle control method is provided, the method comprising: acquiring an environmental image of the environment in which the vehicle is located; determining a first light color and a target proportion of each light color in the first light color; wherein the first light color is a light color obtained by matching the color values ​​of pixels in the environmental image, and the target proportion represents the ratio of the number of pixels corresponding to a certain light color in the environmental image to the total number of pixels in the environmental image; and controlling the ambient lights in the vehicle to be illuminated based on the first light color and the target proportion of each light color.

[0006] The above technical solution determines the first light color and the target proportion of each light color within the first light color, and controls the ambient lighting in the vehicle based on the first light color and the target proportion of each light color. Since the first light color matches the color value of a pixel in the environmental image, the matching degree between the light color and the environmental color can be improved. Furthermore, controlling the ambient lighting in the vehicle based on the first light color and the target proportion of each light color within the first light color, since the target proportion of each light color in the first light color is determined based on the environmental image, can accurately achieve the linkage between the ambient lighting in the vehicle cabin and the external environment, thus enhancing the user's cabin experience.

[0007] In conjunction with the first aspect, in some possible implementations, the color values ​​of pixels in the environmental image are identified in a preset order to obtain the target order of the first light colors. The method further includes: controlling the ambient lights in the vehicle to illuminate the first light colors in the target order.

[0008] The above technical solution identifies the color values ​​of pixels in the environmental image according to a preset order to obtain the target order of the first light color, and controls the ambient lights in the vehicle to light up the first light color according to the target order. Since the target order is obtained by identifying the color values ​​of pixels in the environmental image according to a preset order, and the preset order is related to the user's viewing habits, it can improve the matching degree between the lighting order of the first light color and the environmental colors in the preset order, thereby improving the rendering effect during the lighting process of the ambient lights.

[0009] In combination with the first aspect and the above implementation methods, in some possible implementation methods, the method further includes: obtaining a target duration corresponding to each light color based on the target proportion of each light color and a preset light illumination cycle; wherein the target proportion is positively correlated with the target duration; controlling the ambient lights in the vehicle to illuminate the first light colors in the target order, and each light color in the first light color lasts for the target duration corresponding to each light color.

[0010] The above technical solution obtains the target duration for each light color based on the target proportion of each light color and the preset light illumination cycle. Since the target duration for each light color is positively correlated with the target proportion of each light color, when controlling the ambient lights in the vehicle to illuminate according to the first light color, the target sequence, and the target duration for each light color, the color difference between the ambient lights and the user's environment can be reduced, thereby improving the rendering effect of the ambient lights and enhancing the user experience.

[0011] In combination with the first aspect and the above implementation methods, in some possible implementation methods, the method further includes: obtaining a preset color value range corresponding to each light color in the vehicle; determining a target color value range to which the color value of a pixel in the environmental image belongs; and determining the light color corresponding to the target color value range as the first light color.

[0012] The above technical solution obtains the preset color value range corresponding to each light color in the vehicle and determines the target color value range to which the color value of the pixel in the environmental image belongs. The light color corresponding to the target color value range is determined as the first light color. Since the first light color is determined based on the color value of the pixel in the environmental image, the color in the environmental image is matched and fused with the light color of the ambient light. During the process of lighting the ambient light, the immersion of the occupants in the vehicle can be improved, thereby improving the driving experience of the occupants.

[0013] In combination with the first aspect and the above implementation methods, in some possible implementation methods, the environmental image is the environmental image of the current frame. The method further includes: acquiring the environmental image of the next frame of the environmental image of the current frame; determining a second light color that matches the color value of the pixels in the environmental image of the next frame; determining the color change rate between the first light color and the second light color; and controlling the ambient light to be lit with the second light color based on the color change rate.

[0014] The above technical solution determines the color change rate between the first light color and the second light color, and controls the ambient light to be lit in the second light color based on the color change rate. Since the switching timing of the ambient light is determined by the color change rate, and the color change rate is determined by the first light color and the second light color, the matching degree between the ambient light color and the colors in the environment is improved, thereby improving the rendering effect of the ambient light.

[0015] In combination with the first aspect and the above implementation methods, in some possible implementation methods, the method further includes: if the color change rate is greater than or equal to a preset change rate threshold, controlling the ambient light to be lit with the second light color; if the color change rate is less than the preset change rate threshold, lighting the first light color for a preset lighting cycle, and then controlling the ambient light to be lit with the second light color.

[0016] The above technical solution controls the ambient light to illuminate in the second light color if the color change rate is greater than or equal to a preset change rate threshold. Thus, when the color change rate is large, the second light color is switched immediately, thereby enhancing the user's immersive experience through the ambient light in the vehicle.

[0017] In combination with the first aspect and the above implementation, in some possible implementations, the method further includes: obtaining the first color quantity of the first light color, the second color quantity of the second light color, and the third color quantity of the same light color between the first light color and the second light color; and obtaining the color change rate based on the first color quantity, the second color quantity, and the third color quantity.

[0018] The above technical solution improves the accuracy of the color change rate between the first and second light colors because the color change rate is calculated based on the number of first, second, and third colors. Furthermore, based on the color change rate, the ambient light is controlled to be lit in the second light color, thereby improving the matching degree between the ambient light color and the ambient color of the vehicle's surroundings and enhancing the rendering effect of the ambient light.

[0019] Secondly, a vehicle control device is provided, the device comprising: a data acquisition module for acquiring an environmental image of the vehicle's environment; a determination module for determining a first light color and a target proportion of each light color in the first light color; wherein the first light color is a light color obtained by matching the color values ​​of pixels in the environmental image, and the target proportion represents the ratio of the number of pixels corresponding to a certain light color in the environmental image to the total number of pixels in the environmental image; and a control module for controlling the ambient lights in the vehicle to illuminate based on the first light color and the target proportion of each light color.

[0020] Thirdly, a vehicle is provided, including a memory and a processor, wherein the memory is used to store executable program code; and the processor is used to call and run the executable program code from the memory, causing the vehicle to perform the vehicle control method in the first aspect or any possible implementation thereof.

[0021] Fourthly, a computer-readable storage medium is provided that stores computer program code, which, when executed on a computer, causes the computer to perform the vehicle control method of the first aspect or any possible implementation thereof.

[0022] Fifthly, a computer program product is provided, comprising: computer program code, which, when run on a computer, causes the computer to execute the vehicle control method in the first aspect or any possible implementation thereof. Attached Figure Description

[0023] Figure 1 This is a schematic diagram of a vehicle control method provided in an embodiment of this application;

[0024] Figure 2 This is a schematic flowchart of a vehicle control method provided in an embodiment of this application;

[0025] Figure 3 This is a schematic diagram of the framework of a vehicle control system provided in an embodiment of this application;

[0026] Figure 4This is a schematic flowchart of another vehicle control method provided in an embodiment of this application;

[0027] Figure 5 This is a schematic diagram of the structure of a vehicle control device provided in an embodiment of this application;

[0028] Figure 6 This is a schematic diagram of the structure of a vehicle provided in an embodiment of this application. Detailed Implementation

[0029] The technical solutions in this application will be clearly and thoroughly described below with reference to the accompanying drawings. In the description of the embodiments of this application, unless otherwise stated, " / " means "or," for example, A / B can mean A or B. "And / or" in the text is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Furthermore, in the description of the embodiments of this application, "multiple" refers to two or more than two.

[0030] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as implying or suggesting relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature.

[0031] Figure 1 This is a schematic diagram of a vehicle control method provided in an embodiment of this application.

[0032] For example, such as Figure 1 As shown, the vehicle ambient lighting can be configured in the vehicle cabin. The first light color is determined by the color values ​​of pixels in the current frame of the environment image where the vehicle is located. Then, based on the ratio of the number of pixels corresponding to a specific light color in the environment image to the total number of pixels in the environment image, the target proportion of that light color is determined. Thus, the ambient lighting in the vehicle is controlled by the first light color and the target proportion of each light color. For example, during the ambient lighting process, the lighting duration of each light color is determined based on the target proportion of each light color within the first light color.

[0033] Furthermore, as the environmental image changes, the ambient light color will change accordingly. When the next frame of the environmental image is captured, the corresponding second light color is determined based on the next frame of the environmental image, and the timing of the ambient light color switching is determined based on the color change rate between the first light color and the second light color.

[0034] Specifically, if the color change rate is greater than or equal to a preset change rate threshold, the ambient light is controlled to illuminate in the second light color; if the color change rate is less than the preset change rate threshold, the first light color is illuminated for a preset illumination cycle, and then the ambient light is controlled to illuminate in the second light color. This allows the ambient light color to switch according to the environmental image, enhancing the immersion of the driver and passengers and improving their driving experience through the interplay between the environmental image and the ambient light color.

[0035] It should be noted that the color change rate is used to represent the rate of change of light color between the first light color and the second light color. The color change rate can be calculated from the number of light colors. Specifically, the number of first colors of the first light color, the number of second colors of the second light color, and the number of third colors that are the same as the first light color and the second light color are obtained; then, the color change rate is calculated based on the number of first colors, the number of second colors, and the number of third colors.

[0036] For example, the first light color includes orange, light green, and cyan, and the second color includes orange, light green, and blue-violet. The first color of the first light has 3 instances of the first color, the second color of the second light has 3 instances of the second color, the colors that are the same in both the first and second light colors are orange and light green, and the third color has 2 instances. Therefore, the color change rate = ((3-2)+(3-2)) / (3+3) = 33.3%.

[0037] Optionally, the ambient light can consist of one or more light strips; or, the ambient light can also consist of multiple LED beads, without any specific limitation.

[0038] Optionally, ambient lighting can be positioned around the seats in the vehicle cabin; alternatively, it can be positioned along the vehicle doors. The placement of the ambient lighting can be determined based on the specific circumstances and is not specifically limited here.

[0039] Optionally, the preset rate of change threshold can be set to 50%, 55%, 60%, etc., without specific limitations.

[0040] Optionally, the frequency of acquiring environmental images of the vehicle's surroundings can be set to 1 frame / 15 seconds, 2 frames / 20 seconds, etc., without any specific limitation.

[0041] For example, by acquiring the current frame of the environment image of the vehicle's surroundings, a first light color matching the color values ​​of pixels in the environment image is determined. Furthermore, based on the ratio of the number of pixels of each light color in the environment image to the total number of pixels in the environment image, a target proportion of each light color within the first light color is determined. Specifically, a preset color value range corresponding to each light color in the vehicle is first obtained, a target color value range to which the color values ​​of pixels in the environment image belong is determined, and the light color corresponding to the target color value range is determined as the first light color.

[0042] Furthermore, the color values ​​of pixels in the environmental image are identified in a preset order. Based on the order in which the color values ​​of the pixels appear during the identification process, the target order of the first light colors is determined. The target duration corresponding to each light color is determined by multiplying the target proportion of each light color by the preset light illumination period. On this basis, the ambient lights in the vehicle are controlled to illuminate the first light colors in the target order, and each light color in the first light color is illuminated for the target duration corresponding to that light color.

[0043] Optionally, the preset order may include, but is not limited to: from top to bottom in the vertical direction of the environment image, from bottom to top in the vertical direction of the environment image, or from the middle position to the boundary in the vertical direction of the environment image. No specific limitation is made here.

[0044] For example, given the first light color corresponding to the current frame's environment image and the second light color corresponding to the next frame's environment image, the first color quantity of the first light color, the second color quantity of the second light color, and the third color quantity of the same light color between the first light color and the second light color are obtained. Based on the first color quantity, the second color quantity, and the third color quantity, the color change rate is obtained.

[0045] Specifically, a first difference between the quantity of the first color and the quantity of the third color, and a second difference between the quantity of the second color and the quantity of the third color are obtained. The sum of the first difference and the second difference is used as a first reference value, and the sum of the quantity of the first color and the quantity of the second color is used as a second reference value. The color change rate is determined by the ratio of the first reference value to the second reference value. Based on the color change rate, the ambient light is controlled to illuminate with the second light color.

[0046] It should be noted that the color of vehicle ambient lighting is generally a preset, fixed illumination color; however, a fixed illumination color can affect the user's immersion during the ambient lighting process, reducing the driving and riding experience. In view of this, this application proposes a vehicle control method, a vehicle control device, a vehicle, and a storage medium. Through the embodiments of this application, it is possible to realize the linkage between the ambient lighting in the vehicle and the external environment, thereby enhancing the user's cabin experience.

[0047] Figure 2 This is a schematic flowchart of a vehicle control method provided in an embodiment of this application.

[0048] For example, Figure 2 The method shown can be executed by the vehicle's overall controller or chip.

[0049] For example, such as Figure 2 As shown, the method 200 includes the following procedures:

[0050] S210, collects environmental images of the vehicle's surroundings.

[0051] For example, an environmental image of the vehicle's surroundings is captured by a camera. It is understood that the environmental image captured by the camera will continuously change as the vehicle moves. Furthermore, the environmental image can be obtained by capturing images with the camera or by selecting from captured video streams; no specific limitation is made here.

[0052] Optionally, the camera can be, but is not limited to, a DVR (Digital Video Recorder), a 360 smart camera, etc.; alternatively, an environmental image acquisition camera can be configured on the vehicle to capture environmental images of the vehicle's surroundings. The camera can be determined based on the actual situation, and no specific limitations are made here.

[0053] Optionally, the frequency of acquiring environmental images of the vehicle's surroundings can be 1 frame / 15 seconds, 1 frame / 20 seconds, etc., without any specific limitation.

[0054] S220, determine the first light color and the target proportion of each light color in the first light color.

[0055] It should be noted that the first light color includes at least one light color. For example, the first light color includes orange, cyan, cyan-purple, etc.; or, the first light color only includes yellow. Furthermore, the first light color is a light color obtained by matching the color values ​​of pixels in the environment image. The target proportion represents the ratio of the number of pixels corresponding to a certain light color in the environment image to the total number of pixels in the environment image. Specifically, the number of pixels corresponding to each light color and the total number of pixels in the environment image can be obtained first. The ratio of the number of pixels corresponding to each light color to the total number of pixels in the environment image is then used to determine the target proportion for each light color. For example, if the first light color includes orange, cyan, and cyan-purple; the target proportion for orange is 30%, the target proportion for cyan is 40%, and the target proportion for cyan-purple is 30%.

[0056] As can be understood, the target proportion represents the ratio of the number of pixels corresponding to a certain light color in the environment image to the total number of pixels in the environment image. For example, if the first light color includes cyan and yellow, the target proportion of yellow is the ratio of the number of yellow pixels in the environment image to the total number of pixels in the environment image. Other scenarios follow the same logic, and will not be elaborated further here.

[0057] It's important to note that the color values ​​of pixels in an environment image refer to the RGB values ​​of those pixels. RGB stands for Red, Green, and Blue, representing the values ​​of these three color channels used to describe the color of each pixel. Essentially, each pixel is represented by a triplet containing the values ​​of these three color channels, with each channel value ranging from 0 to 255. 0 represents the minimum intensity of the color, and 255 represents the maximum intensity. By combining these three color channel values ​​appropriately, various colors can be generated. For example, when the values ​​of all three channels in a pixel are 255 (RGB: 255-255-255), the pixel is white; when the values ​​of all three channels are 0 (RGB: 255-255-255), the pixel is black.

[0058] For example, the color value of each pixel in the environment image is obtained, and the first light color corresponding to the color value of each pixel is matched. Alternatively, all pixels in the environment image are divided into multiple sub-images, the color value of each pixel in each sub-image is obtained, and the color value of the corresponding pixel in each sub-image is determined based on the average color value of the pixels in each sub-image; that is, the color value of the corresponding pixel in each sub-image is determined based on the color value of each pixel in the environment image.

[0059] In one example, an environmental image of the vehicle's surroundings is acquired, and the first light color matching the color values ​​of pixels in the environmental image is determined. Specifically, a preset color value range corresponding to each light color in the vehicle is obtained, and a target color value range to which the color values ​​of pixels in the environmental image belong is determined. The light color corresponding to the target color value range is then determined as the first light color.

[0060] Understandably, before acquiring environmental images, a correspondence is established between the color values ​​of the ambient lights in the vehicle and the pixel values ​​in the environmental image, based on the color of the ambient lights themselves. This determines the preset color value range for each light color in the vehicle. For example, the ambient light colors might be orange (RGB: 255-64-26), maroon (RGB: 255-36-43), bluish-purple (RGB: 15-39-255), cyan-purple (RGB: 66-73-255), light green (RGB: 133-255-157), and cyan-green (RGB: 0-255-51). Since the color values ​​of pixels in the environmental image are not precisely the color values ​​of specific light colors, the color values ​​for the light colors are expanded, as follows:

[0061] The preset color value ranges for orange in vehicle ambient lighting are: (RGB: 200-255, 100-51, 50-0); (RGB: 200-255, 51-0, 50-0); (RGB: 0-50, 0-50, 200-255); (RGB: 50-100, 50-100, 200-255); (RGB: 100-150, 200-255, 150-200); and (RGB: 0-50, 200-255, 50-100).

[0062] It is understood that the preset color value range shown above is only one possible method in actual application, and does not limit the preset color value range used in actual application. The specific preset color value range can be determined according to the actual situation, and is not limited here.

[0063] For example, a preset color value range corresponding to each light color in the vehicle is obtained, and a target color range to which the color values ​​of pixels in the environmental image belong is determined. The light color corresponding to the target color range is then determined as the first light color. For instance, the color values ​​of pixels in the environmental image obtained include (RGB: 255-85-26), (RGB: 126-255-155), and (RGB: 6-255-50). The target color range to which the color values ​​of pixels in the environmental image belong includes preset color value ranges (RGB: 200-255, 100-51, 50-0), preset color value ranges (RGB: 100-150, 200-255, 150-200), and preset color value ranges (RGB: 0-50, 200-255, 50-100). Further, the light color corresponding to the target color range is determined as the first light color, which includes orange, light green, and cyan.

[0064] In addition, the first number of pixels corresponding to orange in the first light color, the second number of pixels corresponding to light green in the first light color, and the third number of pixels corresponding to cyan in the first light color are obtained respectively, and the total number of all pixels in the environmental image is obtained as the target number; the ratio of the first number to the target number is determined as the target proportion corresponding to orange, the ratio of the second number to the target number is determined as the target proportion corresponding to light green, and the ratio of the third number to the target number is determined as the target proportion corresponding to cyan.

[0065] The above solution obtains the preset color value range corresponding to the color of each light in the vehicle and determines the target color value range to which the color value of the pixel in the environmental image belongs. The light color corresponding to the target color value range is determined as the first light color. Since the first light color is determined based on the color value of the pixel in the environmental image, the color in the environmental image is matched and fused with the light color of the ambient light. During the process of lighting the ambient light, the immersion of the occupants in the vehicle can be improved, thereby improving the driving experience.

[0066] In another example, a preset color value range corresponding to each light color in the vehicle is obtained, and it is determined whether there is a target color value range to which the color value of a pixel in the environment image belongs. If there is a target color value range to which the color value of a pixel belongs, the corresponding pixels in the environment image that do not belong to a color value range are removed. Based on the color value range to which the color value of the pixel in the environment image belongs, the target color value range to which the color of the pixel in the environment image belongs is determined, and the light color corresponding to the target color value range is determined as the first light color.

[0067] Optionally, the preset color value range can be determined in accordance with the manner described in the aforementioned disclosed embodiments, and will not be repeated here.

[0068] For example, the color values ​​of pixels in the environment image are obtained as (RGB: 255-85-26), (RGB: 255-24-26), and (RGB: 80-90-100). The target color value range to which the color values ​​of pixels in the environment image belong are determined. Pixels in the environment image that do not belong to a color value range are removed, that is, pixels with color values ​​of (RGB: 80-90-100) are removed. The target color range to which the color values ​​of pixels (RGB: 255-85-26) and (RGB: 255-24-26) belong are determined. The target color value range of the pixel in the environment image (RGB: 255-85-26) is determined to be the preset color value range (RGB: 200-255, 100-51, 50-0) corresponding to orange, and the target color value range of the pixel in the environment image (RGB: 255-24-26) is determined to be the preset color value range (RGB: 200-255, 51-0, 50-0) corresponding to maroon. Thus, the first light color is determined to include orange and maroon.

[0069] In another example, a preset color value range corresponding to each light color in the vehicle is obtained, and it is determined whether there is a target color value range to which the color value of a pixel in the environmental image belongs. If there is no target color value range to which the color value of a pixel belongs, the target time of the acquired environmental image is obtained, and the first light color is determined based on the target time.

[0070] Specifically, the light color relationship is used to represent the correspondence between the collection time and the preset light color; based on the target time, the target light color corresponding to the target time is determined, and the target light color is set as the first light color. For example, if the target time is summer, the target light colors corresponding to summer are determined to be light green and dark green, then the first light color includes light green and dark green; or, if the target time is night, the target light colors corresponding to night are determined to be blue and purple, then the first light color includes blue and purple.

[0071] Optionally, the target time can be determined by the season; for example, the target time could be summer, winter, etc. Alternatively, the target time can be determined by the time of day; for example, the target time could be morning, afternoon, etc. The target time can be determined based on the actual situation, and no specific limitations are made here.

[0072] S230 controls the ambient lighting in the vehicle based on the first light color and the target proportion of each light color.

[0073] For example, a target percentage for each of the first light colors is determined, and the ambient lighting in the vehicle is controlled to illuminate accordingly. Specifically, an ambient lighting mode corresponding to a preset number of colors is determined. For instance, if the number of first light colors is 3, and the first light colors include orange, blue, and purple, with a target percentage of 20% for orange, 70% for blue, and 10% for purple, then the ambient lighting in the vehicle is controlled to illuminate in the order of blue, orange, and purple, and the illumination duration gradually decreases with the order of blue, orange, and purple.

[0074] For example, the color values ​​of pixels in the environmental image are identified in a preset order to obtain the target order of the first light colors. For instance, the first light color matching the color value of a pixel in the environmental image is determined, the color values ​​of pixels in the environmental image are identified in the vertical direction from top to bottom in the environmental image, the appearance order of the first light colors is determined based on the color values, the target order is determined, and thus the ambient lights in the vehicle are controlled to illuminate the first light colors in the target order.

[0075] Optionally, the preset order can be a vertical order from top to bottom, a vertical order from bottom to top, or a vertical order from the middle to the top and bottom. The preset order can be determined according to the actual situation and is not specifically limited here.

[0076] For example, the first light color matching the color values ​​of pixels in the environmental image is determined to be orange, light green, and cyan. The color values ​​of pixels in the environmental image are identified vertically from top to bottom, and the order in which the first light colors appear is determined based on these color values. If the order is cyan, light green, and orange, then the target order is determined to be cyan, light green, and orange. Based on this, the ambient lights in the vehicle are controlled to illuminate sequentially according to the target order of cyan, light green, and orange.

[0077] The above scheme identifies the color values ​​of pixels in the environmental image according to a preset order to obtain the target order of the first light color, and controls the ambient lights in the vehicle to light up the first light color according to the target order. Since the target order is obtained by identifying the color values ​​of pixels in the environmental image according to a preset order, and the preset order is related to the user's viewing habits, it can improve the matching between the lighting order of the first light color and the environmental colors in the preset order, thereby improving the rendering effect during the lighting process of the ambient lights.

[0078] In one example, an environmental image of the vehicle's surroundings is acquired, and the color values ​​of pixels in the environmental image that match the first light color are determined. The target proportion of each light color within the first light color is also determined. Based on the target proportion of each light color and a preset lighting cycle, the target duration for each light color is obtained, with the target proportion and target duration being positively correlated. The color values ​​of pixels in the environmental image are identified in a preset order to obtain the target order of the first light colors. Based on this, the ambient lights in the vehicle are controlled to illuminate the first light colors in the target order, with each light color within the first light color illuminating for its corresponding target duration.

[0079] Optionally, the preset light illumination cycle can be set to 10 seconds, 20 seconds, 30 seconds, etc., without specific limitations.

[0080] For example, the first light colors that match the color values ​​of pixels in the environmental image include orange, light green, and cyan. The target proportion of orange is 30%, light green is 40%, and cyan is 30%, with a preset light illumination cycle of 30 seconds. Based on the target proportion of each light color and the preset light illumination cycle, the target duration corresponding to each light color is obtained. Therefore, the target duration for orange is 9 seconds, for light green it is 12 seconds, and for cyan is 9 seconds. Identifying the color values ​​of pixels in the environmental image vertically from top to bottom yields a target order of cyan, light green, and orange. The ambient lights in the vehicle are then controlled to illuminate in the order of cyan, light green, and orange, with cyan illuminating for 9 seconds, light green for 12 seconds, and orange for 9 seconds.

[0081] In another example, if some pixels in the environmental image do not match the target color range, the pixels in the environmental image corresponding to the unmatched target color range are removed. Based on the color values ​​of the remaining pixels in the environmental image, the first light color is matched, along with the target proportion of each light color within the first light color. The color values ​​of pixels in the environmental image are identified according to a preset order to obtain the target order of the first light colors. The percentage of pixels corresponding to each light color within the first light color is obtained, and the product of this percentage and a preset light illumination period is used to determine the target duration for each light color. Based on this, the ambient lights in the vehicle are controlled to illuminate the first light colors according to the target order, with each light color within the first light color illuminating for its corresponding target duration.

[0082] For example, the color values ​​of pixels in the environmental image include (RGB: 255-85-26), (RGB: 126-255-155), (RGB: 6-255-50), and (RGB: 80-90-100), and the proportions of each pixel's color value to the total number of pixels in the environmental image are 20%, 40%, 20%, and 20%, respectively. It is determined that some pixels in the environmental image do not match the target color range, i.e., pixels with color values ​​of (RGB: 80-90-100) do not match the target color range. These pixels are removed. Based on the color values ​​of the remaining pixels, the first light color is obtained. The first light color includes orange, light green, and cyan. Therefore, the target proportion for orange is 20%, for light green it is 40%, and for cyan it is 20%.

[0083] Furthermore, based on the numerical proportion of the number of pixels corresponding to each light color, the target proportion for orange is 25%, for light green it is 50%, and for cyan it is 25%. The product of this numerical proportion and the preset light illumination cycle determines the target duration for each light color; if the preset light illumination cycle is 40 seconds, then the target duration for orange is 10 seconds, for light green it is 20 seconds, and for cyan it is 10 seconds. The color values ​​of pixels in the environmental image are identified vertically from top to bottom, resulting in a target order of cyan, light green, and orange. The ambient lights in the vehicle are then controlled to illuminate in the order of cyan, light green, and orange, with cyan illuminating for 10 seconds, light green for 20 seconds, and orange for 10 seconds.

[0084] The above solution obtains the target duration for each light color based on the target proportion of each light color and the preset light illumination cycle. Since the target duration for each light color is positively correlated with the target proportion of each light color, when controlling the ambient lights in the vehicle to illuminate according to the first light color, the target sequence, and the target duration for each light color, the color difference between the ambient lights and the user's environment can be reduced, thereby improving the rendering effect of the ambient lights and enhancing the user experience.

[0085] It should be noted that the environmental image is continuously updated according to the image acquisition frequency. For example, if the image acquisition frequency is 1 frame / 15 seconds, the next frame of the environmental image will be acquired after a 15-second interval, and the corresponding second light color will be determined based on the environmental image of the next frame.

[0086] For example, the environmental image is the environmental image of the current frame. The environmental image of the next frame of the current frame is acquired, and the second light color matching the color value of the pixel in the environmental image of the next frame is determined. Specifically, the preset color value range corresponding to each light color in the vehicle is obtained, and the target color value range to which the color value of the pixel in the environmental image of the next frame belongs is determined. Then, the light color corresponding to the target color value range is determined as the second light color.

[0087] Furthermore, the color change rate between the first light color and the second light color is determined, and based on the color change rate, the ambient light is controlled to be lit in the second light color.

[0088] Optionally, the preset color value range can be determined in accordance with the determination method in the aforementioned disclosed embodiments, and will not be repeated here.

[0089] The above solution determines the color change rate between the first light color and the second light color, and controls the ambient light to be lit in the second light color based on the color change rate. Since the switching timing of the ambient light is determined by the color change rate, and the color change rate is determined by the first light color and the second light color, the matching between the ambient light color and the colors in the environment is improved, thereby enhancing the rendering effect of the ambient light.

[0090] For example, the target color value range to which the color value of a pixel in the next frame of the environmental image belongs is determined. The light color corresponding to the target color value range is determined as the second light color. Based on the ratio of the number of pixels corresponding to each light color in the environmental image to the total number of pixels in the environmental image, the target proportion of each light color in the second light color is determined. The color values ​​of pixels in the next frame of the environmental image are identified in a preset order to obtain the target order of the second light colors. Based on the target proportion of each light color and the preset light illumination period, the target duration corresponding to each light color in the second light color is obtained.

[0091] Furthermore, the color change rate between the first light color and the second light color is determined. Based on the color change rate, the ambient lights in the vehicle are controlled to illuminate the second light color in a target sequence, and each light color in the second light color is maintained for the target duration corresponding to each light color.

[0092] Optionally, the preset order can be set to vertical from top to bottom, vertical from bottom to top, etc., without specific limitations.

[0093] For example, the color change rate can be determined by the number of first colors of the first light color and the number of second colors of the second light color. Specifically, the number of first colors of the first light color, the number of second colors of the second light color, and the number of third colors that are the same light color between the first and second light colors are obtained; the color change rate is calculated based on the number of first colors, the number of second colors, and the number of third colors. For example, the expression for the color change rate can be expressed as follows:

[0094] y = ((x1-x3)+(x2-x3)) / (x1+x2)

[0095] Where y represents the color change rate, x1 represents the number of first colors of the first light color, x2 represents the number of second colors of the second light color, and x3 represents the number of third colors that are the same as the first light color and the second light color.

[0096] For example, the first light color includes orange, light green, and cyan; the second color includes orange, maroon, and blue-violet. The first color of the first light has 3 instances of the first color, the second color of the second light has 3 instances of the second color, orange is the only color that is the same as the first and second light colors, and the third color has 1 instance. Therefore, the color change rate = ((3-1)+(3-1)) / (3+3) = 66.6%.

[0097] The above solution improves the accuracy of the color change rate between the first and second light colors because the color change rate is calculated based on the number of first, second, and third colors. Furthermore, based on the color change rate, the ambient lights are controlled to be lit in the second light color, thereby improving the matching between the ambient light color and the ambient color of the vehicle's surroundings and enhancing the rendering effect of the ambient lights.

[0098] For example, based on the color change rate, the ambient light is controlled to be lit in a second light color. Specifically, if the color change rate is greater than or equal to a preset change rate threshold, the ambient light is controlled to be lit in the second light color; if the color change rate is less than the preset change rate threshold, the first light color is lit for a preset lighting cycle, and then the ambient light is controlled to be lit in the second light color.

[0099] Optionally, the preset rate of change threshold can be set to 50%, 55%, 60%, etc., without specific limitations.

[0100] Optionally, the preset light illumination cycle can be set to 15 seconds, 20 seconds, 25 seconds, etc., without specific limitations.

[0101] For example, the system detects whether the color change rate is greater than a preset change rate threshold. If the color change rate is greater than or equal to the preset change rate threshold, the ambient light is controlled to illuminate in the second light color. For instance, if the preset change rate threshold is 50%, and the color change rate between the first and second light colors is determined to be 60%, and the color change rate is greater than the preset change rate threshold, the ambient light is immediately controlled to illuminate in the second light color. Alternatively, if the preset change rate threshold is 50%, and the color change rate between the first and second light colors is determined to be 30%, and the color change rate is less than the preset change rate threshold, the first light color is illuminated for a preset illumination cycle, and then the ambient light is controlled to illuminate in the second light color.

[0102] The above solution controls the ambient light to illuminate in the second light color if the color change rate is greater than or equal to a preset change rate threshold. Thus, when the color change rate is large, the second light color is switched immediately, thereby enhancing the user's immersive experience through the ambient light in the vehicle.

[0103] The above technical solution controls the ambient lighting in the vehicle by determining the first light color and the target proportion of each light color within the first light color, and based on the first light color and the target proportion of each light color. Since the first light color matches the color value of a pixel in the environmental image, the matching degree between the light color and the environmental color can be improved. Furthermore, by controlling the ambient lighting in the vehicle based on the first light color and the target proportion of each light color within the first light color, and since the target proportion of each light color within the first light color is determined based on the environmental image, the ambient lighting in the vehicle can be precisely linked with the external environment, thus enhancing the user's cabin experience.

[0104] Figure 3 This is a schematic diagram of the framework of a vehicle control system provided in an embodiment of this application.

[0105] For example, such as Figure 3 As shown, the vehicle control system includes a camera, ambient lighting, and a control module. The camera captures environmental images of the vehicle's surroundings and inputs these images into an image recognition algorithm. The algorithm identifies the ambient light colors, the target percentage of each color, and the target order of the colors. The control module obtains the recognition results from the image recognition algorithm, i.e., the ambient light colors, the target percentage of each color, and the target order of the colors. The control module then controls the ambient lighting in the vehicle to illuminate the colors according to the target order, with each color illuminating for its corresponding target duration.

[0106] Optionally, the control module can be a vehicle controller or a chip in the vehicle, without specific limitations.

[0107] For example, the environmental image of the current frame is captured by a camera, and the environmental image of the current frame is identified based on an image recognition algorithm. Specifically, a preset color value range corresponding to each light color in the vehicle is obtained, a target color value range to which the color value of a pixel in the environmental image of the current frame belongs is determined, and the light color corresponding to the target color value range is determined as the first light color, and the target proportion of each light color in the first light color is determined.

[0108] Furthermore, the color values ​​of pixels in the environmental image are identified in a preset order to obtain the target order of the first light colors; and based on the target proportion of each light color and the preset light illumination cycle, the target duration corresponding to each light color is obtained. The ambient lights in the vehicle are controlled by the control module to illuminate the first light colors in the target order, and each light color in the first light color continues for the target duration corresponding to each light color.

[0109] It should be noted that the environmental image is constantly updated with the image acquisition frequency. When the camera captures the next frame of the environmental image, the image recognition algorithm identifies the environmental image of the next frame and determines the second light color that matches the color value of the pixel in the environmental image of the next frame, as well as the target proportion of each light color in the second light color. The target proportion of each light color in the second light color is used to represent the proportion of the number of pixels corresponding to a certain light color in the second light color to the total number of pixels in the environmental image of the next frame.

[0110] Specifically, the preset color value range corresponding to each light color in the vehicle is obtained, the target color value range to which the color value of the pixel in the next frame of the environmental image belongs is determined, and the light color corresponding to the target color value range is determined as the second light color. Then, the color values ​​of the pixels in the next frame of the environmental image are identified in a preset order to obtain the target order of the second light colors; based on the target proportion of each light color in the second light color and the preset light illumination period, the target duration corresponding to each light color in the second light color is obtained.

[0111] Further, the number of first colors of the first light color, the number of second colors of the second light color, and the number of third colors that are the same as the first and second light colors are obtained; based on the number of first colors, the number of second colors, and the number of third colors, the color change rate is obtained. If the color change rate is greater than or equal to a preset change rate threshold, the ambient light is controlled to be lit in the second light color; if the color change rate is less than the preset change rate threshold, the first light color is lit for a preset lighting cycle, and then the ambient light is controlled to be lit in the second light color.

[0112] Understandably, if the color change rate is greater than or equal to a preset change rate threshold, the ambient lights in the vehicle are controlled to illuminate the second light colors in the target order, and each light color in the second light color is maintained for the target duration corresponding to each light color; if the color change rate is less than the preset change rate threshold, after the first light color is illuminated for a preset light illumination cycle, the ambient lights in the vehicle are controlled to illuminate the second light colors in the target order, and each light color in the second light color is maintained for the target duration corresponding to each light color.

[0113] Optionally, the setting method for the preset color value range can refer to the aforementioned disclosed embodiments, and will not be repeated here.

[0114] Optionally, the preset order can refer to the order of the aforementioned disclosed embodiments, which will not be repeated here.

[0115] Figure 4 This is a schematic flowchart of another vehicle control method provided in the embodiments of this application.

[0116] For example, Figure 4 The method shown can be executed by the vehicle controller or chip in the vehicle.

[0117] For example, such as Figure 4 As shown, the method 400 includes the following procedures:

[0118] S401 uses a camera to capture environmental images of the vehicle's surroundings.

[0119] Optionally, the camera may be, but is not limited to, DVR (Digital Video Recorder), 360 smart camera, etc., without specific limitations.

[0120] Optionally, the frequency of acquiring environmental images of the vehicle's surroundings can be 1 frame / 15 seconds, 1 frame / 20 seconds, etc., without any specific limitation.

[0121] S402, obtain the preset color value range corresponding to the colors of each light in the vehicle.

[0122] Optionally, the method for setting the preset color value range can refer to the method in the aforementioned disclosed embodiments, and will not be repeated here.

[0123] S403: Does the color value of a pixel in the current frame's environment image exist within the target color value range? If so, proceed to S404.

[0124] For example, it is detected whether the color value of a pixel in the current frame's environmental image belongs to the target color value range. If the color value of any pixel in the current frame's environmental image does not belong to the target color value range, the first light color is determined based on the target time of acquiring the current frame's environmental image.

[0125] Specifically, the light color relationship is used to represent the correspondence between the collection time and the preset light color; based on the target time, the target light color corresponding to the target time is determined, and the target light color is determined as the first light color. For example, if the target time is summer, the target light color corresponding to summer is determined to include light green, then the first light color includes light green; or, if the target time is night, the target light color corresponding to night is determined to include blue, then the first light color includes blue.

[0126] Optionally, the target time can be determined by the season; for example, the target time could be summer, winter, etc. Alternatively, the target time can be determined by the time of day; for example, the target time could be morning, afternoon, etc. The target time can be determined based on the actual situation, and no specific limitations are made here.

[0127] S404, determine the target color value range to which the color value of a pixel in the environment image belongs.

[0128] Optionally, the method for determining the target color value range to which the color value of a pixel in the environmental image belongs can refer to the method in the aforementioned disclosed embodiments, and will not be repeated here.

[0129] S405, determine the light color corresponding to the target color value range as the first light color.

[0130] For example, if it is determined that there is only one target color value range, then the first light color is determined to include one, and the first light color is the light color corresponding to the target color value range; or, if it is determined that there are multiple target color value ranges, then the first light color is determined to include multiple. It can be understood that the number of target color value ranges is the same as the number of colors in the first light color.

[0131] For example, the color values ​​of pixels in the environmental image are obtained as (RGB: 126-255-155) and (RGB: 6-255-50). The target color range to which the color values ​​of pixels in the environmental image belong are determined as preset color value ranges (RGB: 100-150, 200-255, 150-200) and preset color value ranges (RGB: 0-50, 200-255, 50-100). Further, the light color corresponding to the target color range is determined as the first light color, which includes light green and cyan.

[0132] S406, determine the target proportion of each light color based on the ratio of the number of pixels of each light color in the environment image to the total number of pixels in the environment image.

[0133] For example, the color values ​​of pixels in the environment image include (RGB: 255-85-26), (RGB: 126-255-155), and (RGB: 6-255-50). The first light color obtained by matching the color values ​​of pixels in the environment image includes orange, light green, and cyan. The proportion of the color value of each pixel in the total number of pixels in the environment image is 40%, 40%, and 20%, respectively. Therefore, the target proportion of orange is determined to be 40%, the target proportion of light green is 40%, and the target proportion of cyan is 20%.

[0134] S407, Identify the color values ​​of pixels in the environmental image according to a preset order to obtain the target order of the first light color.

[0135] It should be noted that the execution order of S406 and S407 is not limited here. S406 can be executed first, followed by S407; or S407 can be executed first, followed by S406; or S406 and S407 can be executed simultaneously. The execution order of S406 and S407 can be determined according to the actual situation.

[0136] Optionally, the preset order can be set according to the manner described in the foregoing disclosed embodiments, which will not be repeated here.

[0137] For example, the first light color that matches the color value of the pixel in the environment image is determined to be orange, light green, and cyan; the color values ​​of the pixel in the environment image are identified in a vertical order from top to bottom, and the order of appearance of the first light color is determined according to the color value. If the order of appearance is cyan, light green, and orange, then the target order is determined to be cyan, light green, and orange.

[0138] S408, based on the target proportion of each light color and the preset light illumination cycle, obtains the target duration corresponding to each light color.

[0139] For example, the first light color for matching the color values ​​of pixels in the environmental image includes orange, light green, and cyan, with orange accounting for 30%, light green for 40%, and cyan for 30%, and a preset light illumination cycle of 30 seconds. Based on the target proportion of each light color and the preset light illumination cycle, the target duration corresponding to each light color is obtained. Therefore, the target duration for orange is 9 seconds, for light green it is 12 seconds, and for cyan it is 9 seconds.

[0140] S409 controls the ambient lights to illuminate the first light color in the target sequence, and each light color in the first light color continues for the target duration corresponding to each light color.

[0141] For example, the first light color includes orange, light green, and cyan, and the target sequence of the first light color is cyan, light green, and orange. The target duration for orange is 9 seconds, for light green it is 12 seconds, and for cyan is 9 seconds. Then, the ambient lights in the vehicle are controlled to illuminate in the order of cyan, light green, and orange, with cyan illuminated for 9 seconds, light green for 12 seconds, and orange for 9 seconds.

[0142] It should be noted that if the preset lighting cycle is less than the time required to capture one frame of the environmental image, the ambient light will continue to be lit according to the first light color and related information during the ambient light lighting process, until the second light color of the next frame of the environmental image is determined, and then the lighting method of the ambient light is determined according to the first light color and the second light color.

[0143] S410, determine the second light color that matches the color value of the pixel in the environment image of the next frame.

[0144] It should be noted that the matching method for the second light color of the pixel in the next frame of the environmental image can refer to the method in the aforementioned disclosed embodiments. Furthermore, based on the next frame of the environmental image, the lighting duration corresponding to each light color in the second light color and the target order of the second light colors can also be determined.

[0145] S411, obtain the first color quantity of the first light color, the second color quantity of the second light color, and the third color quantity of the same light color in the first light color and the second light color.

[0146] For example, if the first light color includes orange and white, then the number of first colors is 2; if the second light color includes orange, cyan, and blue, then the number of second colors is 3; if the first light color and the second light color share the same color, including orange, then the number of third colors is 1.

[0147] S412, based on the number of the first color, the number of the second color, and the number of the third color, obtain the color change rate.

[0148] For example, if the quantity of the first color is 4, the quantity of the second color is 6, and the quantity of the third color is 2, then the color change rate is determined to be: color change rate = ((4-2)+(6-2)) / (4+6) = 60%.

[0149] S413, Is the color change rate greater than or equal to the preset change rate threshold? If yes, then execute S414; if no, then execute S415.

[0150] Optionally, the preset rate of change threshold can be fixed at 50%, 55%, 60%, etc.; or, the preset rate of change threshold can be determined according to user needs. The method of setting the preset rate of change threshold can be determined according to the actual situation, and no specific limitation is made here.

[0151] S414 controls the ambient light to illuminate in a second light color.

[0152] For example, if the color change rate is greater than or equal to a preset change rate threshold, the second light color is immediately switched to illuminate the ambient light.

[0153] Specifically, when the color change rate is greater than or equal to a preset change rate threshold, the ambient lights in the vehicle are controlled to illuminate the second light colors in a target sequence, and each light color in the second light color is maintained for the target duration corresponding to each light color.

[0154] For example, the target order of the second light colors and the target duration corresponding to each light color in the second light colors can be determined based on the color values ​​of pixels in the next frame of the environmental image. Specifically, the target color value range to which the color values ​​of pixels in the next frame of the environmental image belong is determined, the light colors corresponding to the target color value range are determined as the second light colors, and the target proportion of each light color in the second light colors is determined. The color values ​​of pixels in the next frame of the environmental image are identified according to a preset order to obtain the target order of the second light colors. Based on the target proportion of each light color and a preset light illumination period, the target duration corresponding to each light color in the second light colors is obtained.

[0155] S415: After the first light color is turned on to the preset light cycle, the ambient light is controlled to turn on with the second light color.

[0156] For example, if the color change rate is less than a preset change rate threshold, the first light color is turned on for a preset light lighting cycle, and then the ambient light is controlled to turn on with the second light color.

[0157] For example, the second light color includes blue, purple, and cyan, and the ambient light is controlled to be lit in blue, purple, and cyan. Specifically, the three light colors can be lit in any order.

[0158] For example, based on the color values ​​of pixels in the next frame's environmental image, the target duration of each light color in the second light color and the target order of the second light colors are determined. Then, after the lighting value of the first light color is preset to the lighting cycle, the ambient lights in the vehicle are controlled to light up the second light colors in the target order, and each light color in the second light color continues for the target duration corresponding to each light color.

[0159] It should be understood that the above examples are provided to help those skilled in the art understand the embodiments of this application, and are not intended to limit the embodiments of this application to the specific values ​​or scenarios illustrated. Those skilled in the art can obviously make various equivalent modifications or changes based on the above examples, and such modifications or changes also fall within the scope of the embodiments of this application.

[0160] The above text combined Figures 1 to 4 The vehicle control method provided in the embodiments of this application has been described in detail; the following will be combined with Figure 5 and Figure 6 The apparatus embodiments of this application are described in detail below. It should be understood that the apparatus in the embodiments of this application can perform the various methods described in the foregoing embodiments of this application, that is, the specific working processes of the various products described below can be referred to the corresponding processes in the foregoing method embodiments.

[0161] Figure 5 This is a schematic diagram of the structure of a vehicle control device provided in an embodiment of this application.

[0162] For example, such as Figure 5 As shown, the vehicle control device 500 includes:

[0163] The acquisition module 510 is used to acquire environmental images of the vehicle's surroundings.

[0164] The determining module 520 is used to determine the first light color and the target proportion of each light color in the first light color; wherein, the first light color is the light color obtained by matching the color values ​​of pixels in the environment image, and the target proportion represents the ratio of the number of pixels corresponding to a certain light color in the environment image to the total number of pixels in the environment image.

[0165] The control module 530 is used to control the ambient lights in the vehicle to illuminate based on the first light color and the target proportion of each light color.

[0166] Optionally, as an embodiment, the vehicle control device 500 is also used for:

[0167] The color values ​​of pixels in the environmental image are identified in a preset order to obtain the target order of the first light color.

[0168] The control module 530 is specifically used for:

[0169] Control the ambient lights in the vehicle to illuminate the first light color in the target sequence.

[0170] Optionally, as one embodiment, the control module 530 is specifically used for:

[0171] Based on the target proportion of each light color and the preset light illumination cycle, the target duration corresponding to each light color is obtained; wherein, the target proportion and the target duration are positively correlated; the ambient lights in the vehicle are controlled to illuminate the first light color in the target order, and each light color in the first light color continues for the target duration corresponding to each light color.

[0172] Optionally, as an embodiment, the determining module 520 is specifically used to: obtain a preset color value range corresponding to each light color in the vehicle; determine the target color value range to which the color value of a pixel in the environmental image belongs; and determine the light color corresponding to the target color value range as the first light color.

[0173] Optionally, as an embodiment, the environment image is the environment image of the current frame, and the vehicle control device 500 is further used to:

[0174] Acquire the environment image of the next frame from the current frame's environment image; determine the second light color that matches the color value of the pixels in the next frame's environment image; determine the color change rate between the first light color and the second light color; based on the color change rate, control the ambient light to be lit with the second light color.

[0175] Optionally, as one embodiment, the vehicle control device 500 is specifically used for:

[0176] If the color change rate is greater than or equal to the preset change rate threshold, the ambient light is controlled to light up with the second light color; if the color change rate is less than the preset change rate threshold, the first light color is lit up until the preset lighting cycle, and then the ambient light is controlled to light up with the second light color.

[0177] Optionally, as one embodiment, the vehicle control device 500 is specifically used for:

[0178] Obtain the first color quantity of the first light color, the second color quantity of the second light color, and the third color quantity of the same light color between the first light color and the second light color; based on the first color quantity, the second color quantity, and the third color quantity, obtain the color change rate.

[0179] It should be noted that the aforementioned vehicle control device 500 is embodied in the form of a functional unit. The term "module" here can be implemented in software and / or hardware, without specific limitations.

[0180] For example, a "module" can be a software program, a hardware circuit, or a combination of both that implements the above functions. The hardware circuit may include an application-specific integrated circuit (ASIC), electronic circuitry, a processor (e.g., a shared processor, a proprietary processor, or a group processor) and memory for executing one or more software or firmware programs, integrated logic circuitry, and / or other suitable components that support the described functions.

[0181] Therefore, the units of the various examples described in the embodiments of this application can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0182] Figure 6 This is a schematic diagram of the structure of a vehicle provided in an embodiment of this application.

[0183] For example, vehicle 600 and Figure 1 Vehicle 100 in the text refers to the same vehicle.

[0184] For example, such as Figure 6 As shown, the vehicle 600 includes a memory 610 and a processor 620, wherein the memory 610 stores executable program code 630, and the processor 620 is used to call and execute the executable program code 630 to perform a vehicle control method.

[0185] For example, the memory 610 can be used to store related programs of the vehicle control method provided in the embodiments of this application; the processor 620 can call the related programs of the vehicle control method stored in the memory 610 to execute the vehicle control method of the embodiments of this application; for example, acquiring an environmental image of the environment where the vehicle is located; determining a first light color and a target proportion of each light color in the first light color; wherein, the first light color is a light color matched based on the color value of pixels in the environmental image, and the target proportion represents the ratio of the number of pixels corresponding to a certain light color in the environmental image to the total number of pixels in the environmental image; and controlling the ambient lights in the vehicle to be lit based on the first light color and the target proportion of each light color.

[0186] This embodiment can divide the device into functional modules based on the above method example. For example, each module can correspond to a separate function, or two or more functions can be integrated into one processing module. The integrated module can be implemented in hardware. It should be noted that the module division in this embodiment is illustrative and only represents one logical functional division. In actual implementation, there may be other division methods.

[0187] When each functional module is divided according to its corresponding function, the device may also include a data acquisition module, a determination module, and a control module. It should be noted that all relevant content regarding the steps involved in the above method embodiments can be referenced from the functional descriptions of the corresponding functional modules, and will not be repeated here.

[0188] It should be understood that the device provided in this embodiment is used to execute the above-described vehicle control method, and therefore can achieve the same effect as the above-described implementation method.

[0189] When using an integrated unit, the device may include a processing module and a storage module. When the device is applied to a vehicle, the processing module can be used to control and manage the vehicle's movements. The storage module can be used to support the vehicle in executing program code, etc.

[0190] The processing module may be a processor or a controller, which can implement or execute various exemplary logic blocks, modules, and circuits shown in conjunction with the disclosure of this application. The processor may also be a combination of functions that implement computing capabilities, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, etc., and the storage module may be a memory.

[0191] In addition, the device provided in the embodiments of this application may specifically be a chip, component or module. The chip may include a connected processor and a memory. The memory is used to store instructions. When the processor calls and executes the instructions, the chip can execute a vehicle control method provided in the above embodiments.

[0192] This application also provides a computer-readable storage medium storing computer program code, which, when run on a computer, causes the computer to execute the aforementioned method steps to implement a vehicle control method provided in the above embodiments. The computer-readable storage medium may include, but is not limited to, any type of disk, including floppy disks, optical disks, Digital Video Discs (DVDs), Compact Disc Read-Only Memory (CD-ROMs), microdrives, and magneto-optical disks, read-only memory (ROMs), random access memory (RAMs), erasable programmable read-only memory (EPROMs), electrically erasable programmable read-only memory (EEPROMs), dynamic random access memory (DRAMs), video random access memory (VRAMs), flash memory devices, magnetic cards or optical cards, nanosystems (including molecular memory ICs), or any type of media or device suitable for storing instructions and / or data.

[0193] This application also provides a computer program product that, when run on a computer, causes the computer to perform the aforementioned related steps to implement a vehicle control method provided in the above embodiments.

[0194] The vehicle, computer-readable storage medium, computer program product or chip provided in this application are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can be referred to the beneficial effects of the corresponding methods provided above, and will not be repeated here.

[0195] 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.

[0196] In the 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 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 between devices or units may be electrical, mechanical, or other forms.

[0197] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A vehicle control method, characterized in that, include: Collect environmental images of the vehicle's surroundings; Determine a first light color and a target proportion of each light color in the first light color; wherein, the first light color is a light color obtained by matching the color values ​​of pixels in the environment image, and the target proportion represents the ratio of the number of pixels in the environment image corresponding to a certain light color to the total number of pixels in the environment image; Based on the target ratio of the first light color to each of the light colors, the ambient lights in the vehicle are controlled to be turned on. The environment image is the environment image of the current frame, and also includes: Acquire the environmental image of the next frame from the current frame's environmental image; Determine the second light color that matches the color value of the pixel in the environmental image of the next frame; Determine the color change rate between the first light color and the second light color; Based on the color change rate, the timing for switching the ambient light is determined, and the ambient light is controlled to be lit in the second light color.

2. The method according to claim 1, characterized in that, Also includes: The color values ​​of pixels in the environmental image are identified in a preset order to obtain the target order of the first light color. The step of controlling the ambient lighting in the vehicle based on the target ratio of the first light color to each of the light colors includes: The ambient lights in the vehicle are controlled to illuminate the first light color in the target sequence.

3. The method according to claim 2, characterized in that, The control of the ambient lights in the vehicle to illuminate the first light color in the target sequence includes: Based on the target proportion of each light color and the preset light illumination cycle, the target duration corresponding to each light color is obtained; wherein, the target proportion and the target duration are positively correlated. The ambient lights in the vehicle are controlled to illuminate the first light color in the target sequence, and each light color in the first light color is maintained for the target duration corresponding to each light color.

4. The method according to claim 1, characterized in that, Determining the first light color and the target proportion of each light color in the first light color includes: Obtain the preset color value range corresponding to each light color in the vehicle; Determine the target color value range to which the color value of a pixel in the environmental image belongs; The light color corresponding to the target color value range is determined as the first light color.

5. The method according to claim 1, characterized in that, The step of determining the switching timing of the ambient light based on the color change rate and controlling the ambient light to illuminate in the second light color includes: If the color change rate is greater than or equal to a preset change rate threshold, immediately control the ambient light to be lit in the second light color; If the color change rate is less than a preset change rate threshold, the first light color is turned on for a preset light lighting cycle, and then the ambient light is controlled to turn on with the second light color.

6. The method according to claim 1, characterized in that, Determining the color change rate between the first light color and the second light color includes: Obtain the first color quantity of the first light color, the second color quantity of the second light color, and the third color quantity of the same light color between the first light color and the second light color; The color change rate is obtained based on the number of the first color, the number of the second color, and the number of the third color.

7. A vehicle control device, characterized in that, include: The acquisition module is used to acquire environmental images of the vehicle's surroundings. A determining module is used to determine a first light color and a target proportion of each light color in the first light color; wherein, the first light color is a light color obtained by matching the color values ​​of pixels in the environment image, and the target proportion represents the ratio of the number of pixels corresponding to a certain light color in the environment image to the total number of pixels in the environment image. The control module is used to control the ambient lights in the vehicle to be lit based on the target ratio of the first light color to each of the light colors; The environmental image is the environmental image of the current frame. The vehicle control device is also used to acquire the environmental image of the next frame of the environmental image of the current frame; determine the second light color that matches the color value of the pixel in the environmental image of the next frame; determine the color change rate between the first light color and the second light color; and based on the color change rate, determine the switching timing of the ambient light and control the ambient light to be lit with the second light color.

8. A vehicle, characterized in that, The vehicles include: Memory, used to store executable program code; A processor is configured to call and run the executable program code from the memory, causing the vehicle to perform the vehicle control method as described in any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed, implements the vehicle control method as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • In-vehicle lighting device control method, storage medium, and electronic equipment

    CN113306486A

  • Vehicle light control method, nonvolatile storage medium and vehicle

    CN116056288A