Vehicle-mounted operating system user interface display method and device and computer program product
The vehicle operating system integrates a Gaussian blur and cropping method to align the bottom bar with the interface theme, addressing visual inconsistency and enhancing user experience.
Patent Information
- Application Number
- CN202411191217.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-28
- Publication Date
- 2024-12-06
AI Technical Summary
Existing vehicle operating systems lack a mechanism to integrate vehicle operating system user interface display devices and methods that ensure the bottom bar visually matches the theme and style of the current user interface, leading to visual inconsistency and potential driver distraction.
A method and device for vehicle operating systems that involve taking a screenshot of the current interface, applying a Gaussian blur effect, cropping the bottom bar area, and overlaying it with a matching theme, ensuring the bottom bar integrates seamlessly with the interface.
The solution enhances the visual harmony of the interface, reducing visual inconsistency and driver distraction by aligning the bottom bar with the interface theme, thereby improving aesthetics and user experience.
Smart Images

Figure CN119088492A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of vehicle-mounted operating systems, and in particular to a method, device and computer program product for displaying a user interface of a vehicle-mounted operating system. Background Art
[0002] The in-vehicle operating system is an operating system designed for the automotive environment. It integrates functions such as infotainment, navigation, and communication. The in-vehicle operating system provides a user interface that enables drivers and passengers to intuitively operate various functions. When using the in-vehicle operating system, users will switch between different applications and functions, such as switching from the music playback interface to the navigation interface, or from the phone application to the vehicle settings. These switches usually involve updates to the entire user interface content.
[0003] The bottom bar is an important part of the user interface, which usually contains some commonly used function buttons or icons. The bottom bar usually adopts a uniform white background and does not change with the changes of the user interface. However, if the background color of the bottom bar (such as a uniform white background) is inconsistent with the background color or theme of the switched user interface, the bottom bar will be visually disconnected from the rest of the interface, affecting the overall aesthetics. In addition, the inconsistent visual elements may distract the driver, especially during driving. Summary of the invention
[0004] The purpose of this application is to propose a method and device for displaying the user interface of an in-vehicle operating system, and a computer program product, so that the bottom bar can match the theme and style of the current user interface and improve the overall visual effect of the user interface.
[0005] To achieve the above-mentioned purpose, according to a first aspect of the present application, a method for displaying a user interface of an in-vehicle operating system is provided, the method comprising:
[0006] In response to the interface switching, taking a screenshot of the current interface after the switching to obtain an interface image;
[0007] Generate a Gaussian blur effect image according to the interface image;
[0008] Cut out the area effect image corresponding to the bottom bar from the Gaussian blur effect image;
[0009] Overlay the area effect map on the bottom bar of the current interface.
[0010] According to a second aspect of the present application, a vehicle-mounted operating system user interface display device is provided, the device comprising:
[0011] A screenshot module, used to take a screenshot of the current interface after switching to obtain an interface image in response to the interface switching;
[0012] A Gaussian blur module, used to generate a Gaussian blur effect image according to the interface image;
[0013] A cropping module, used for cropping a region effect image corresponding to the bottom bar from the Gaussian blur effect image;
[0014] The fuzzy processing module is used to overlay the regional effect map on the bottom bar in the current interface.
[0015] According to a third aspect of the present application, a vehicle-mounted operating system user interface display device is provided, comprising:
[0016] A communication interface, used to communicate with other electronic devices;
[0017] a memory for storing computer program instructions;
[0018] A processor is used to execute the computer program instructions to support the vehicle-mounted operating system user interface display device according to the first aspect to implement the method according to the first aspect.
[0019] According to a fourth aspect of the present application, a computer program product is provided, comprising computer program instructions, wherein the computer program instructions instruct a computer device to perform operations corresponding to the method according to the first aspect.
[0020] The present application provides a vehicle-mounted operating system user interface display method and device, and a computer program product, which have the following beneficial effects:
[0021] When a user switches from one application or function to another, the interface management module of the vehicle operating system detects the switching behavior and triggers an interface screenshot to obtain a complete interface image. The interface image obtained by the screenshot is Gaussian blurred using image processing technology to obtain a Gaussian blurred rendering. Furthermore, the corresponding area rendering is cropped from the Gaussian blurred rendering according to the position and size of the bottom bar. Finally, the cropped area rendering is overlaid on the bottom bar of the current interface. In this way, the background color and style of the bottom bar will match the theme of the current interface, thereby improving the aesthetics and consistency of the overall interface, which can effectively solve the problem of visual inconsistency between the bottom bar and other parts of the user interface in the vehicle operating system. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0023] Figure 1 This is a flowchart of a method for displaying a user interface of an in-vehicle operating system in an embodiment of the present application.
[0024] Figure 2 This is a structural diagram of a vehicle-mounted operating system user interface display device in an embodiment of the present application. DETAILED DESCRIPTION
[0025] The detailed description of the drawings is intended as an illustration of the current embodiment of the present application, and is not intended to represent the only form in which the present application can be implemented. It should be understood that the same or equivalent functions can be accomplished by different embodiments intended to be included in the spirit and scope of the present application.
[0026] See also Figure 1 An embodiment of the present application provides a method for displaying a user interface of an in-vehicle operating system, the method comprising the following steps:
[0027] Step S10, in response to the interface switching, taking a screenshot of the current interface after the switching to obtain an interface image.
[0028] Specifically, when the vehicle operating system is running, the user's operation on the vehicle operating system user interface is monitored at all times. When the user requests to switch to a new application or function interface by touching the screen, clicking a button, voice command or other interactive methods, the interface screenshot operation is triggered, and a screenshot tool is called to take a screenshot of the new interface after switching to obtain the interface image, and save it in the storage system;
[0029] For example, an SDK component with a real-time screenshot function can be integrated into various applications of the vehicle operating system. When these applications switch interfaces during user use, they will notify the screenshot SDK component to capture the real-time image of the current interface and save the image in the storage system for subsequent use or analysis.
[0030] Step S20, generating a Gaussian blur effect image according to the interface image.
[0031] Specifically, the interface image is blurred based on a Gaussian blur algorithm. The Gaussian blur algorithm specifically uses a Gaussian kernel to perform convolution processing on the image. The Gaussian kernel is generated based on a Gaussian function. Gaussian blur can effectively blur the image while retaining the approximate structure and brightness distribution of the image, making the blur effect look more natural.
[0032] Step S30, cutting out the area effect image corresponding to the bottom bar from the Gaussian blur effect image.
[0033] Specifically, determine the specific position (x, y coordinates) of the bottom bar on the screen as well as its width and height. Based on the coordinates and size of the bottom bar, call the preset cropping function to extract the rectangular area corresponding to the bottom bar from the Gaussian blur effect image, and save the cropped area effect image as a new image file or keep it in memory for use in subsequent steps.
[0034] Step S40: Overlay the area effect diagram on the bottom bar of the current interface.
[0035] Specifically, you can use the graphics processing library or the graphics API provided by the operating system to overlay the cropped area rendering as a new layer on the bottom bar of the current interface, notify the graphics subsystem or display controller to update the screen display, render the synthesized image to the screen, trigger a screen refresh, and the user will see that the background of the bottom bar has been replaced by the new area rendering, which is consistent with the style of other parts of the interface. After the overlay operation is completed, the buttons or icons on the bottom bar should remain interactive, and the user can still click them to perform corresponding functions.
[0036] Through the method of this embodiment, the user interface of the vehicle operating system becomes more harmonious visually, and the bottom bar no longer appears abrupt, but is integrated with the design style of the entire interface. This processing method not only improves the aesthetics of the interface, but also helps the driver concentrate and reduce visual interference.
[0037] In some embodiments, the step S20 further comprises:
[0038] Step S21, dividing the interface image into a plurality of unit areas, and obtaining a pixel average value of each unit area; wherein the unit area includes a plurality of pixel points.
[0039] Specifically, the entire interface image is divided into several small unit areas, which can be a rectangular area containing multiple pixels; for each unit area, the pixel average value of all pixels in the unit area is calculated. It should be noted that in actual applications, the size of the unit area can be determined through experiments and tests. Developers can try different sizes and evaluate the blur effect and processing speed to find the best balance. In addition, users can also be allowed to customize the size of the unit area to meet personalized needs.
[0040] Step S22, performing Gaussian blur operation according to the pixel average value of each unit area and a preset blur radius to determine the blur value of each unit area.
[0041] Specifically, in this embodiment, a blur radius is preset, and this radius determines the influence range of the Gaussian blur. The blur radius determines the influence range of the blur operation. A larger blur radius will cause farther pixels to have a greater influence on the central pixel, thereby producing a stronger blur effect. The standard deviation of the corresponding Gaussian function can be determined according to the blur radius, and a Gaussian function can be obtained based on the standard deviation. The Gaussian function is a function characterized by a normal distribution; further, a Gaussian kernel can be obtained based on the Gaussian function. Using the Gaussian kernel, a convolution operation can be performed on the average pixel value of the unit area, that is, blur processing, to obtain a blur value of the unit area.
[0042] Furthermore, in order to adapt to different application requirements, a zoom ratio can be set. After the interface image is scaled according to the zoom ratio, a Gaussian blur operation is performed based on the pixel average value of each unit area and a preset blur radius to determine the blur value of each unit area.
[0043] Step S23 , merging the plurality of unit areas according to the fuzzy values of the respective unit areas to obtain a plurality of composite areas, and acquiring a fuzzy value of each composite area.
[0044] Specifically, adjacent unit areas are merged into larger composite areas. This merging can be performed based on certain rules. For example, unit areas with similar fuzzy values are merged together. Similar fuzzy values refer to the fuzzy value error of two unit areas being less than or equal to a certain threshold. For each composite area, the weighted average of the fuzzy values of all the unit areas it contains can be calculated, or other merging strategies can be used to determine the fuzzy value of the composite area.
[0045] Step S24, generating a Gaussian blur effect image according to the blur values of each composite area.
[0046] Specifically, after obtaining the fuzzy values of each composite area of the image, the fuzzy values of each composite area are used as the pixel values of each area of a new image, and this new image is a Gaussian blur effect image.
[0047] By independently processing unit areas and merging composite areas, this method can achieve different degrees of blur in different image areas, more finely control the effect of Gaussian blur, and make the blur effect more uniform and natural.
[0048] In some embodiments, the step S23 further comprises:
[0049] If there are at least X unit areas with the same fuzzy values, and these at least X unit areas together form a continuous area, then the continuous area will be regarded as a composite area; specifically, if there is a group of at least X unit areas in the interface image, their fuzzy values are the same, and these unit areas are spatially continuous, that is, they are adjacent to each other, then these unit areas will be regarded as a single composite area, and this composite area will be processed as a whole, rather than processing each unit area separately.
[0050] If any unit area fails to form a composite area, the unit area will be regarded as a free unit; specifically, if a unit area does not form a continuous composite area with other unit areas, then this unit area is marked as a free unit, that is, free units are those unit areas that have not been merged into any composite area.
[0051] If there are at least X free units that together form a continuous region, then the continuous region is regarded as a composite region; specifically, if there is a group of at least X free units that are adjacent to each other and form a continuous region, then these free units will also be merged into a single composite region.
[0052] If the number of free units that together form a continuous area is less than X, the continuous area will be merged into the surrounding composite area with the closest fuzzy value to it to obtain a new composite area; specifically, if the number of free units in a continuous area is less than X, then this continuous area will not be treated as a composite area alone. On the contrary, it will be merged into a surrounding composite area with the closest fuzzy value based on the similarity between the fuzzy value of this continuous area and the fuzzy values of multiple surrounding composite areas, thereby forming a new larger composite area.
[0053] Wherein, X is a preset threshold value used to determine when to merge unit regions into composite regions. This value can be set according to specific application requirements, which affects the number and size of composite regions. In this embodiment, X can be set to 10.
[0054] It should be noted that in order to more effectively process different areas in an image, the method of this embodiment reduces the amount of calculation by merging unit areas with similar blur values while maintaining the visual coherence of the image, so that Gaussian blur processing can be made more efficient, especially when processing large images or requiring local blur effects. In this way, the structure and details of the image can be better preserved while achieving a smooth blur effect.
[0055] In some embodiments, the fuzzy value of any composite region or continuous region is an average of the fuzzy values of all unit regions within the composite region or continuous region.
[0056] Specifically, the blur values of all unit areas in the composite or continuous area are added together and then divided by the total number of unit areas in the composite or continuous area. The result is the blur value of the composite or continuous area. The mean calculation method ensures that the blur value of the composite and continuous areas can reflect the average blur effect of all unit areas in these areas, and can provide a simple and effective way to merge and process different areas in the image to generate a smooth Gaussian blur effect.
[0057] Corresponding to the above-mentioned embodiment method, another embodiment of the present application provides a vehicle-mounted operating system user interface display device, the device comprising:
[0058] Screenshot module 1, used for taking a screenshot of the current interface after switching to obtain an interface image in response to the interface switching;
[0059] Gaussian blur module 2, used to generate a Gaussian blur effect image according to the interface image;
[0060] A cropping module 3 is used to crop the area effect image corresponding to the bottom bar from the Gaussian blur effect image;
[0061] The fuzzy processing module 4 is used to overlay the area effect map on the bottom bar in the current interface.
[0062] In some embodiments, the Gaussian blur module 2 includes:
[0063] A unit division submodule, used to divide the interface image into a plurality of unit areas and obtain a pixel average value of each unit area; wherein the unit area includes a plurality of pixel points;
[0064] A fuzzy operation submodule, used for performing Gaussian fuzzy operation according to the pixel average value of each unit area and a preset fuzzy radius to determine the fuzzy value of each unit area;
[0065] A unit merging submodule, used for merging the plurality of unit areas according to the fuzzy values of the respective unit areas to obtain a plurality of composite areas, and obtaining a fuzzy value of each composite area;
[0066] The blur effect generation submodule is used to generate a Gaussian blur effect image according to the blur values of each composite area.
[0067] In some embodiments, the unit merging submodule is further configured to:
[0068] If there are at least X unit areas with the same fuzzy value, and the at least X unit areas together form a continuous area, then the continuous area is regarded as a composite area;
[0069] If any unit region fails to form a composite region, the unit region is regarded as a free unit;
[0070] If there are at least X free units that together form a continuous region, then the continuous region is regarded as a composite region;
[0071] If the number of free units that together form a continuous region is less than X, then the continuous region is merged into the surrounding composite region that is closest to its fuzzy value to obtain a new composite region;
[0072] Among them, X is the preset value.
[0073] In some embodiments, the fuzzy value of any composite region or continuous region is an average of the fuzzy values of all unit regions within the composite region or continuous region.
[0074] It should be noted that the device of this embodiment corresponds to the method of the above embodiment. Therefore, the contents not described in detail in the device of this embodiment can be obtained by referring to the contents of the method of the above embodiment, and will not be repeated in this embodiment.
[0075] Another embodiment of the present application also provides another vehicle-mounted operating system user interface display device, including:
[0076] A communication interface, used to communicate with other electronic devices;
[0077] a memory for storing computer program instructions;
[0078] The processor is used to execute the computer program instructions to support the vehicle-mounted operating system user interface display device to implement the method described in the above embodiment.
[0079] In this embodiment, the memory mainly includes a program storage area and a data storage area, wherein the program storage area can store an operating device, an application required for at least one function, etc., and the data storage area can store related data, etc. In addition, the memory can be a high-speed random access memory, or a non-volatile memory, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, and a flash card (FlashCard), etc., or the memory can also be other volatile solid-state storage devices.
[0080] The processor can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor, or the processor can be any conventional processor. The processor is the control center of the vehicle-mounted operating system user interface display device, and uses various interfaces and lines to connect various parts of the vehicle-mounted operating system user interface display device.
[0081] An embodiment of the present application also provides a computer program product, including computer program instructions, wherein the computer program instructions instruct a computer device to perform operations corresponding to the method described in the above embodiment.
[0082] Specifically, the computer program product includes a series of computer program instructions, which can instruct a computer device to execute the vehicle operating system user interface display method described in this application. These instructions are codes written in a computer program, which define how to perform specific operations. In this embodiment, these instructions are used to execute the vehicle operating system user interface display method of the above embodiment.
[0083] These program instructions are designed to be loaded onto a computer device and instruct the device to perform specific operations, which are the various steps in the vehicle operating system user interface display method described in the above embodiment.
[0084] In this way, the computer program product provides a complete software solution, which can be run on various computer devices to implement the vehicle operating system user interface display method of the above embodiment.
[0085] The embodiments of the present application have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.
Claims
1. A method for displaying a user interface of an in-vehicle operating system, characterized in that: The method comprises: In response to the interface switching, taking a screenshot of the current interface after the switching to obtain an interface image; Generate a Gaussian blur effect image according to the interface image; Cut out the area effect image corresponding to the bottom bar from the Gaussian blur effect image; Overlay the area effect map on the bottom bar of the current interface.
2. The method according to claim 1, characterized in that The step of generating a Gaussian blur effect image according to the interface image further includes: Dividing the interface image into a plurality of unit areas, and obtaining a pixel average value of each unit area; wherein the unit area includes a plurality of pixel points; Performing a Gaussian blur operation according to the pixel average value of each unit area and a preset blur radius to determine a blur value of each unit area; Merging the plurality of unit areas according to the fuzzy values of the respective unit areas to obtain a plurality of composite areas, and obtaining a fuzzy value of each composite area; A Gaussian blur effect image is generated according to the blur values of each composite area.
3. The method according to claim 2, characterized in that The step of merging the plurality of unit areas according to the fuzzy values of the respective unit areas to obtain a plurality of composite areas further comprises: If there are at least X unit areas with the same fuzzy value, and the at least X unit areas together form a continuous area, then the continuous area is regarded as a composite area; If any unit region fails to form a composite region, the unit region is regarded as a free unit; If there are at least X free units that together form a continuous region, then the continuous region is regarded as a composite region; If the number of free units that together form a continuous region is less than X, then the continuous region is merged into the surrounding composite region that is closest to its fuzzy value to obtain a new composite region; Among them, X is the preset value.
4. The method according to claim 2, characterized in that: The fuzzy value of any composite region or continuous region is the average of the fuzzy values of all unit regions within the composite region or continuous region.
5. A vehicle-mounted operating system user interface display device, characterized in that: The device comprises: A screenshot module, used to take a screenshot of the current interface after switching to obtain an interface image in response to the interface switching; A Gaussian blur module, used to generate a Gaussian blur effect image according to the interface image; A cropping module, used for cropping a region effect image corresponding to the bottom bar from the Gaussian blur effect image; The fuzzy processing module is used to overlay the regional effect map on the bottom bar in the current interface.
6. The device according to claim 5, characterized in that The Gaussian blur module includes: A unit division submodule, used to divide the interface image into a plurality of unit areas and obtain a pixel average value of each unit area; wherein the unit area includes a plurality of pixel points; A fuzzy operation submodule, used for performing Gaussian fuzzy operation according to the pixel average value of each unit area and a preset fuzzy radius to determine the fuzzy value of each unit area; A unit merging submodule, used for merging the plurality of unit areas according to the fuzzy values of the respective unit areas to obtain a plurality of composite areas, and obtaining a fuzzy value of each composite area; The blur effect generation submodule is used to generate a Gaussian blur effect image according to the blur values of each composite area.
7. The device according to claim 6, characterized in that The unit merging submodule is further used for: If there are at least X unit areas with the same fuzzy value, and the at least X unit areas together form a continuous area, then the continuous area is regarded as a composite area; If any unit region fails to form a composite region, the unit region is regarded as a free unit; If there are at least X free units that together form a continuous region, then the continuous region is regarded as a composite region; If the number of free units that together form a continuous region is less than X, then the continuous region is merged into the surrounding composite region that is closest to its fuzzy value to obtain a new composite region; Among them, X is the preset value.
8. The device according to claim 6, characterized in that The fuzzy value of any composite region or continuous region is the average of the fuzzy values of all unit regions within the composite region or continuous region.
9. A vehicle-mounted operating system user interface display device, characterized in that: include: A communication interface, used to communicate with other electronic devices; a memory for storing computer program instructions; A processor, configured to execute the computer program instructions to enable the apparatus to implement the method according to any one of claims 1 to 4.
10. A computer program product, characterized in that The method comprises computer program instructions, wherein the computer program instructions instruct a computer device to execute operations corresponding to the method according to any one of claims 1 to 4.
