Drawing method and device for simulating car window
By simulating the view through a multi-layer structure and masking technology, and combining it with data from external sensors, the system simulates the real window environment on the in-vehicle device, solving the problem of not utilizing the vehicle scene in existing technologies, and providing an immersive painting experience and natural interaction.
Patent Information
- Application Number
- CN202511052564.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-29
- Publication Date
- 2025-11-14
Smart Images

Figure CN120949983A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of automotive technology, and in particular to a method and apparatus for simulating a vehicle window. Background Technology
[0002] With the development of automotive technology, more and more in-vehicle features are emerging, including drawing functions. However, existing in-vehicle drawing functions simply port drawing software to in-vehicle devices without making full use of the actual vehicle environment or the overall car environment to achieve the purpose of drawing.
[0003] For example, it lacks unique features that are integrated with the driving scenario; it cannot simulate the effect of water mist on the car window; and it does not make full use of the real-world vehicle environment to generate the background canvas. Summary of the Invention
[0004] Therefore, it is necessary to provide a painting method and apparatus that can simulate a car window to address the aforementioned technical problems.
[0005] This application provides a method for painting a simulated car window, the method comprising: S101: In response to the preset startup operation, activate the window painting function; S102: Perform a first configuration operation on the window painting function to simulate the initial image of the window using a multi-layer structure; wherein, the multi-layer structure includes a canvas layer, and feature elements are arranged on the canvas layer using masking technology; S103: Using touch point movement operation to generate a drawing path on the canvas layer, so that the feature elements on the drawing path produce a preset change effect, so that the initial screen becomes the target screen.
[0006] In one embodiment, the method further includes: S104: using a preset breath reset operation to reset the canvas layer, so as to restore the target image to the initial image.
[0007] In one embodiment, the step of performing the first configuration operation on the window painting function includes: selecting a canvas background and a canvas layer, wherein the canvas background is located below the canvas layer, to build the multi-layer structure; or, selecting a multi-layer structure, wherein the multi-layer structure includes at least a canvas background and the canvas layer, wherein the canvas background is located below the canvas layer.
[0008] In one embodiment, the step of simulating the initial image of the car window using a multi-layer structure includes: Based on the multi-layer structure, a background image is set using the canvas background, and an atmosphere effect is set using the canvas layers to simulate the initial image composed of the background image and the atmosphere effect.
[0009] In one embodiment, the step of performing the first configuration operation on the window painting function further includes: Select a drawing mode, and determine the access method based on the drawing mode; The background image, the ambient effect, and the background sound are acquired in real time based on the access method described above. The background image and the ambient effect are arranged in a preset multi-layer structure, and the background sound is played to dynamically simulate the initial view of the car window.
[0010] In one embodiment, the step of setting a background image using the canvas background includes: selecting an access method to obtain the background image, or obtaining the background image after determining the access method based on the painting mode.
[0011] In one embodiment, the step of arranging feature elements on the canvas layer using masking technology includes: Add at least one mask layer using the canvas layer; When multiple mask layers are added to the canvas layer, different feature elements are arranged in each mask layer; The mask layers are stacked in a preset order to create an atmospheric effect for the background image by utilizing the different feature elements after stacking.
[0012] In one embodiment, step S103 includes: Acquire contact data, including contact location; Determine the feature elements of the drawing path on the canvas layer based on the touch point location; The preset change effect is determined based on the touch point data, and the preset change effect is applied to the feature elements on the drawing path so that the initial screen becomes the target screen.
[0013] In one embodiment, the step of resetting the canvas layer using a preset breath reset operation to reset the target image to the initial image includes: Use in-car cameras or microphones to capture users' breath on the screen; The preset breath reset function is activated based on the described breath behavior; Use the breath reset function to reset the feature elements of the canvas layer so that the target image is reset to the initial image.
[0014] This application provides a painting device that simulates a car window, the device comprising: The startup module is used to activate the window painting function in response to a preset startup operation; The simulation module is used to perform a first configuration operation on the window painting function to simulate the initial image of the window using a multi-layer structure; wherein, the multi-layer structure includes a canvas layer, and feature elements are arranged on the canvas layer using masking technology; The drawing module is used to generate a drawing path on the canvas layer using touch point movement operations, so that the feature elements on the drawing path produce a preset change effect, and the initial image becomes the target image.
[0015] The aforementioned method and apparatus for simulating car window painting utilizes a multi-layer structure to simulate the initial image of the car window by performing a first configuration operation on the car window painting function. This multi-layer structure includes a canvas layer, on which feature elements are arranged using masking technology. A drawing path is generated on the canvas layer using touch-point movement, causing preset changes in the feature elements along the drawing path, transforming the initial image into the target image. This multi-layer structure simulates car window scenes in different environments, achieving the purpose of simulating car window painting through touch-point movement, thus providing users with a fresher in-car entertainment experience. This application can capture car window environment data, generate background images and atmospheric effects, and simulate real-world scenes under different car window environments. By performing a configuration operation on the car window painting function, it provides users with painting tools and allows them to select appropriate painting preferences based on their painting needs. The multi-layer structure arranges different display elements, allowing users to choose simulated painting scenes according to their needs, not limited to simulating car window painting. Attached Figure Description
[0016] Figure 1 This is a schematic diagram of the structure of a painting system simulating a car window in one embodiment.
[0017] Figure 2 This is a flowchart illustrating a method for simulating the drawing of a car window in one embodiment.
[0018] Figure 3 This is a schematic diagram of the interface for simulating a car window painting method in one embodiment.
[0019] Figure 4 This is a structural block diagram of a painting device simulating a car window in one embodiment.
[0020] Figure 5 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation
[0021] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0022] The method for drawing simulated car windows provided in this application can be applied to, for example... Figure 1 The painting system shown includes a control unit 100 connected to a touchscreen 200, a sensing unit 300, a camera unit 400, a microphone 500, and a speaker 600. The control unit 100 receives operation commands and displays corresponding interface content via the touchscreen 200. The sensing unit 300 includes various sensors inside and outside the vehicle to detect relevant environmental data. The camera unit 400 includes cameras inside and outside the vehicle to capture relevant environmental images. The microphone 500 receives sound information, and the speaker 600 plays relevant environmental sounds.
[0023] In one embodiment, such as Figure 2 As shown, a method for simulating a car window is provided, which can be applied to... Figure 1 Taking the control unit in the example, the explanation includes the following steps: S101: In response to the preset startup operation, activate the window painting function; S102: Perform the first configuration operation on the car window painting function to simulate the initial image of the car window using a multi-layer structure; wherein, the multi-layer structure includes a canvas layer, and the canvas layer arranges feature elements using masking technology; S103: Using touch point movement operation to generate a drawing path on the canvas layer, so that the feature elements on the drawing path produce a preset change effect, so that the initial screen becomes the target screen.
[0024] In one embodiment, in step S101, the car window painting function is activated in response to a preset activation operation. Optionally, the car window painting function is a simulated scene graffiti method in a painting software application. Common graffiti methods only provide simple painting tools, such as canvases and pens of different sizes, and do not deeply integrate with the in-vehicle environment and driving environment, thus failing to provide users with an immersive painting interaction experience based on the environment. This embodiment, inspired by car window painting, provides a car window painting function, which is a graffiti method that simulates the characteristics of a car window. Optionally, the preset activation operation can be a touch-activated car window painting function in the painting software application, a voice command activation of the car window painting function in the painting software application, or a gesture command activation of the car window painting function in the painting software application. Preferably, the touch-activated activation method is more convenient. Voice activation and gesture activation offer a higher level of intelligent experience.
[0025] In one embodiment, in step S102, a first configuration operation is performed on the window painting function to simulate the initial image of the window using a multi-layer structure.
[0026] Optionally, a multi-layer structure is obtained based on the first configuration operation of the window painting function. The multi-layer structure includes a canvas layer. The steps of performing the first configuration operation on the window painting function include: selecting a canvas background and a canvas layer, with the canvas background located below the canvas layer, to build a multi-layer structure; or, selecting a multi-layer structure that includes at least a canvas background and a canvas layer, with the canvas background located below the canvas layer. For example, the multi-layer structure includes a canvas layer and a canvas background in the display order. In this embodiment, different display content is arranged using the canvas layer and the canvas background.
[0027] In another embodiment, step S102, the step of performing a first configuration operation on the window painting function, includes: Select a painting mode and determine the access method based on the painting mode; acquire the background image, ambient effect, and background sound based on the access method; arrange the background image and ambient effect in a multi-layer structure and play the background sound to dynamically simulate the initial view of the car window.
[0028] Optionally, the painting modes include: Theme Mode, Reality Mode, and AI Mode, adapting to different painting needs and preferences. Theme Mode pre-stores a series of preset background images and white noise background music; selecting a theme mode allows users to begin painting. The background images and white noise background music in Theme Mode are automatically applied to the configured multi-layer structure. In Reality Mode, real-time scenery images captured by an external camera are used as background images, and background sound is intelligently generated based on the real-time scenery data. Furthermore, scenery images can be intelligently generated using real-time perception from external sensors, or captured by an external camera. In AI Mode, large-scale image generation technology is used to automatically generate personalized background images, atmosphere effects, and background sound based on scene descriptions, providing users with a personalized experience.
[0029] Optionally, the steps of acquiring background images, ambient effects, and background sounds based on the access method include: intelligently generating an exterior landscape image using real-world perception from external sensors. Optionally, real-time weather data, such as temperature, humidity, rainfall, airflow, weather conditions, and geographical location, is collected; based on this environmental data, a water vapor coverage effect is dynamically generated using a preset AI model; and then, combined with a preset real-time scene generation algorithm, the background image of the canvas is dynamically adjusted to better reflect the current actual driving environment. Furthermore, the ambient effect is dynamically adjusted according to different weather conditions, such as rainy days, foggy days, and sunny days; for example, the intensity and distribution of feature elements are dynamically adjusted.
[0030] Optionally, the steps of acquiring background images, ambient effects, and background sounds based on the access method also include: acquiring real-time landscape images using an external camera; and acquiring external environmental data, such as temperature, humidity, airflow, weather, and location, using external sensors. Based on the real-time landscape images and external environmental data, combined with an AI model, a background image matching the actual driving scenario is intelligently generated.
[0031] Optionally, the background image can be automatically generated based on the real-world environment outside the vehicle, captured by an external camera, or generated from landscape images in the built-in image library. Therefore, users can choose a background image that better matches the driving environment, or provide a personalized drawing experience. It can be seen that the background image not only adapts to different weather and geographical environments but also dynamically adjusts according to environmental changes, thereby enhancing the user's drawing experience.
[0032] To further explain, environmental data is acquired through onboard sensors to generate a background image that matches the window environment data. Additionally, corresponding white noise, such as rain, wind, or ocean waves, is used as background sound based on the window environment data to enhance immersion. Furthermore, the intensity and type of the background sound are dynamically adjusted based on window environment data, such as wind speed and precipitation, thereby enhancing the multi-sensory experience during the painting process.
[0033] In step S102, the initial image of the car window is simulated using a multi-layer structure. Optionally, the step of simulating the initial image of the car window using a multi-layer structure includes: setting a background image using a canvas background based on the multi-layer structure, and setting an atmosphere effect using canvas layers to simulate the initial image composed of the background image and the atmosphere effect.
[0034] Further, the step of setting a background image using the canvas background includes: selecting an access method to obtain the background image, or determining the access method based on the painting mode and then obtaining the background image. Specifically, after determining the access method, the data source for the background image is determined. When the data source is a built-in image library, the access method is to retrieve an image from the built-in image library and place it on the canvas background as the background image. When the data source is a real-time view of a car window, the access method is to use real-time car window environment data acquired by a parking space sensor or parking space camera, and then use the car window environment data to generate the background image placed on the canvas background. Optionally, the access method includes: using a parking space sensor or parking space camera to acquire real-time car window environment data; or using pre-stored image data in a built-in image library.
[0035] The purpose of this embodiment is to simulate painting on a car window. Therefore, the access method can be a real-time captured image of the scenery outside the car to simulate the environment data of the car window. Of course, to improve the user's painting experience, a built-in image library pre-stores image data of different real-world environments, allowing users to select image data from the built-in image library as background images according to their needs.
[0036] Optionally, the step of arranging feature elements on a canvas layer using masking technology includes: adding at least one mask layer to the canvas layer; when multiple mask layers are added to the canvas layer, arranging different feature elements on each mask layer; and overlapping the mask layers in a preset order to create an atmospheric effect for the background image using the overlapping different feature elements. Here, the mask layer is a transparent carrier, and feature elements are arranged on it so that when different mask layers are overlapped, different feature elements are displayed in a superimposed manner.
[0037] In one embodiment, reference is made to the appendix. Figure 3 This is a schematic diagram of an interface for simulating a car window painting method. The simulated scene is a real car window scene on a rainy day. Optionally, the feature elements include at least water vapor and raindrops. Water vapor has semi-transparent properties. Raindrops are evolved from water droplets and have the transparency and fluidity of water droplets; moreover, raindrops can quickly merge when in close contact. This embodiment uses different mask layers to arrange different feature elements. For example, a first mask layer and a second mask layer are added to the canvas layer. The feature element arranged on the first mask layer is water vapor, and the feature element arranged on the second mask layer is raindrops. The visual effect of the first mask layer and the second mask layer superimposed is a real car window scene on a rainy day.
[0038] Optionally, the first mask layer's feature element is water vapor, making the display interface semi-transparent and reflecting the background image of the canvas below, thus simulating the blurry and opaque state of a car window covered by water vapor. The first mask layer is overlaid on the canvas background to simulate the blurry and opaque effect of a car window covered by water vapor. Through the transparency and blurriness of the feature elements in the first mask layer, the blurriness of the car window scene under water vapor is simulated, thus producing a realistic visual effect. The feature element arranged on the second mask layer is raindrops. This embodiment uses the first mask layer to create a semi-transparent water vapor atmosphere and the second mask layer to simulate the raindrop effect in a real car window scene. Optionally, the raindrop effect is achieved through dynamically generated water droplet elements, and based on a preset trigger mechanism, different forms of raindrop effects are presented. For example, the shape of the raindrops can be changed by moving the touch point; for example, the water droplet traces will gradually become smaller and eventually disappear as the touch point moves. Optionally, this embodiment utilizes a particle system to dynamically generate randomly distributed raindrops. The position, size, transparency, and other attributes of each raindrop dynamically change based on its existence time and the user's touch behavior. For example, raindrops have a certain time period; when their existence time reaches a predetermined time period, their size will decrease until they disappear. For example, when a touch point lands on a raindrop, the shape of the raindrop changes with the direction of the touch point's movement. In this embodiment, when displaying the initial screen, a large number of raindrops are randomly distributed to simulate the effect of raindrops on a car window. The initial attributes of each raindrop include: randomly distributed position, speed, size, and transparency.
[0039] S103: Using touch point movement operation to generate a drawing path on the canvas layer, so that the feature elements on the drawing path produce a preset change effect, so that the initial image becomes the target image.
[0040] Before step S103, the method further includes performing a second configuration operation on the window painting function. Optionally, the step of performing the second configuration operation on the window painting function includes setting the touch point size so that when the touch point performs a movement operation, a drawing path corresponding to the touch point size range is generated. Further explanation: the thickness of the touch point size is changed through the second configuration operation to meet the user's painting needs for detailed depiction.
[0041] Optionally, in step S103, the step of generating a drawing path on the canvas layer using a touch point movement operation, causing the feature elements on the drawing path to produce a preset change effect, and transforming the initial image into the target image, includes: Acquire touch point data, including touch point position and pressure value; determine the feature elements of the drawing path on the canvas layer based on the touch point position; determine the preset change effect based on the pressure value, and apply the preset change effect to the feature effect on the drawing path to transform the initial image into the target image.
[0042] Further explanation: In step S102, the step of displaying the initial image using the multi-layer structure also includes: establishing a relationship between touch point data and feature elements, so that when the touch point passes over a feature element, the feature element at the touch point position produces a preset change effect. Optionally, the touch point data includes pressure value and movement speed; the attributes of the feature element include pixel transparency and pixel shape; the preset change effect includes: as the pressure value and movement speed of the touch point change, the pixel transparency or pixel shape of the feature element changes synchronously.
[0043] Further explanation: When the feature element is water vapor, the preset change effect includes changes in the transparency of water vapor pixels; when the feature element is raindrops, the preset change effect is changes in the shape of raindrop pixels. Further explanation: A correlation is established between pressure values and various attributes in the feature element. These attributes include pixel transparency and pixel shape. The preset change effect includes: when the feature element is water vapor, the transparency of the water vapor at the touch point changes accordingly with the change in pressure value; when the feature element is raindrops, the shape of the raindrops at the trigger point changes accordingly with the change in touch point position. Further explanation: Touchscreen pressure sensing technology is used to control the drawing path on the canvas layer using touch point movement operations. The touchscreen pressure sensing technology includes: determining the touch point position and pressure value based on acquired touch point data; determining the user's touch point movement based on the touch point position, and then determining the user's start of drawing an image on the touchscreen based on the touch point position; and determining the preset change effect of the feature element at the touch point position based on the pressure value. When the feature element is water vapor, the transparency of the water vapor pixels will gradually increase according to the pressure value and the contact trajectory, thus showing the effect of water vapor being wiped away in the visualization interface.
[0044] Optionally, pressure sensing technology is applied to the pressure-sensing layer of the touchscreen. This layer monitors the touch point's position and pressure value in real time, and dynamically adjusts feature elements based on a preset touch recognition algorithm to achieve predetermined changes. For example, the transparency of water vapor changes with touch point movement. Further, the touch point's movement speed and drawing path are determined based on changes in touch point position. The progress of water vapor removal is calculated based on pressure value, touch point movement speed, and drawing path, ensuring a natural and smooth user experience. The pressure-sensing layer monitors the touch point's pressure value in real time to simulate different levels of wiping effects. The touch recognition algorithm dynamically calculates the impact of pressure value on the drawing path. Optionally, the initial pressure value of the touch point determines the initial transparency of the wiping effect. As the touch point pressure changes and the touch point position moves, the transparency of the drawing path continuously adjusts. For example, a light touch results in a small change in transparency, simulating a slight wiping effect; a larger touch pressure results in a more significant change in transparency, simulating a more vigorous wiping effect.
[0045] Based on this, when simulating car window painting using the car window painting function, the touch point is moved to erase the moisture on the first mask layer, thus simulating the scene of moisture being wiped away in a real car window. A second mask is placed on top of the first mask, and raindrops on the second mask create the atmosphere of a car window covered in moisture on a rainy day. The shape of the raindrops is changed by moving the touch point, so that the raindrops on the painting path change into smaller raindrops. The wiping action is simulated by moving the touch point. The touch point movement operation creates a painting path on the painting layer, causing the transparency of the moisture pixels on the painting path to gradually increase, simulating the dynamic effect of moisture being wiped away from the car window. The pressure, trajectory, speed, and other parameters of the touch point affect the progress and area of the wiping effect, making the entire wiping process more natural and smooth.
[0046] Optionally, when the feature element is water vapor, the movement speed of the touch point and the shape of the resulting drawing path also affect the change in transparency. For example, a rapidly moving touch point creates a drawing path that causes the transparency of the area being wiped to increase more quickly, thus simulating the dynamic effect of water vapor being quickly wiped away from a car window. The shape of the drawing path (such as straight lines, curves, etc.) affects the smoothness of water vapor removal, making the user's drawing experience more natural. Furthermore, the pixel transparency change of each feature element is dynamically calculated based on the movement progress, speed, and pressure of the drawing path. As the touch point passes over the feature element on the drawing path, the pixels become more transparent until they finally reach a completely clear state.
[0047] Optionally, the change in pixel transparency of the feature element is not instantaneous, but unfolds gradually through a gradient effect. For example, as the touch point moves, the pixels of the feature element on the drawing path gradually transition from opaque to transparent, forming a smooth wiping process to simulate the dynamic effect of wiping away moisture from a car window.
[0048] Based on this, when the feature element is water vapor, the preset change effect is represented as a trajectory of pixel transparency changes. The transparency of pixels within this trajectory changes with the movement of the touch point and the pressure value. Different touch point movement speeds affect the speed of pixel transparency change; therefore, rapid wiping results in a more rapid change in pixel transparency, while slow wiping produces a more subtle transition effect. To ensure smooth and natural drawing operations, the pixel transparency of the water vapor is dynamically adjusted based on the touch point's pressure value, movement speed, and drawing path. This ensures that the pixel transparency of feature elements along the drawing path is adjusted according to real-time touch point data, guaranteeing the accuracy and subtlety of the wiping effect. Furthermore, a refined control algorithm ensures smooth and natural transparency changes, avoiding abrupt transitions or incorrect transparency changes. Every subtle movement of the touch point is precisely reflected on the target screen, enhancing the naturalness and realism of user interaction with the interface. Optionally, to improve the smoothness of the drawing process, a path optimization algorithm is used to smooth the user's touch trajectory and avoid unnatural effects caused by slight touch jitter. For example, Bézier curves or interpolation algorithms are used to refine the drawing path, making the changes in transparency more consistent.
[0049] Optionally, the movement speed of the touch point is synchronized with the change in the transparency of the pixels of the feature element. For example, when the user wipes quickly, it is reflected on the interface as the touch point moves quickly, causing the transparency of the pixels on the drawing path to increase rapidly, simulating the effect of wiping glass quickly; slower wiping will present a gradient effect, enhancing the naturalness of the visual experience.
[0050] Optionally, the pressure-sensitive layer of the touchscreen uses multi-touch technology to monitor touch data. Therefore, when a user touches the screen, the touch points can be monitored, and the drawing path formed by wiping can be determined by tracking the trajectory of the touch points.
[0051] Optionally, when the feature element is a raindrop, as the touch point passes over a raindrop, the raindrop will dynamically change according to attributes such as the moving speed and pressure value of the drawing path. For example, the raindrop on the drawing path will become smaller or be wiped away. As the touch point moves, the raindrop on the drawing path will gradually become smaller, thus simulating the dynamic effect of raindrops evaporating or being wiped away on a car window. Furthermore, the pixel transparency of the raindrops on the drawing path gradually decreases as the drawing path covers them, eventually disappearing. The raindrops on the drawing path change accordingly as the touch point moves; for example, a fast touch point movement can make the raindrops on the drawing path exhibit a more intense movement effect. Optionally, when multiple raindrops appear within a preset range, a dynamic effect of raindrops merging and sliding is triggered, thereby enhancing visual realism and making the raindrops appear to flow naturally when being wiped, further improving the immersive experience of the simulation. When different pressure values are applied during the touch point's movement, the size and transparency of the raindrops on the drawing path change differently; a touch point with greater pressure can cause the raindrops to disappear faster or have a more significant change in transparency when the raindrops disappear.
[0052] Optionally, this embodiment utilizes a mask layer to implement a masking technique, thereby creating an erasing effect on the drawing layer. This allows raindrops on the drawing path to be eliminated or gradually become transparent as the touch point passes over them, simulating the effect of a car window being wiped clean. Furthermore, frame animation is used to control the lifecycle of the raindrops; as the touch point moves, the size, transparency, and position of the raindrops change until they eventually disappear.
[0053] In one embodiment, after step S103, the method further includes: S104: using a preset breath reset operation to reset the canvas layer, so as to restore the target image to the initial image.
[0054] Optionally, the step of resetting the canvas layer using a preset breath reset operation to restore the target image to its initial state includes: capturing the user's breath behavior when facing the screen using an in-vehicle camera or microphone; activating a preset breath reset function based on the breath behavior; and resetting the feature elements of the canvas layer using the breath reset function to reset the target image to its initial state.
[0055] To further explain, screen reset operations can include touch-based reset and interactive reset. Touch-based reset can use the pre-defined undo tool in the interface to reset the initial screen. Interactive reset operations can use voice commands, gestures, or breath actions. For example, the interface has a pre-defined "breath reset function." When the user breathes on the touchscreen surface, the "breath reset function" is triggered, resetting the target screen to the initial screen. The erasure marks on the canvas layer are then re-covered by the canvas layer's effect features; that is, the wiped-away moisture effect is re-covered, thereby enhancing the software's interactivity.
[0056] The method of capturing a user's breath on the screen using an in-vehicle camera or microphone can include: capturing facial movements and expressions using the in-vehicle camera, and recognizing breath sounds using the in-vehicle microphone; when the facial movements, expressions, and breath sounds all meet preset breath data, it is determined that the user is breathing on the screen. The window painting function in this embodiment aims to simulate drawing and graffiti on a car window; therefore, a reset operation is needed to simulate the reformation of moisture on the window, allowing the user to repeat the drawing process and enhancing the interactivity between the screen and the user's actions.
[0057] Compared to traditional undo / reset tools, this embodiment utilizes the user's breathing action to reset the initial screen. Specifically, it captures the user's breathing action and sound to simulate the natural phenomenon of car windows reforming with condensation due to temperature differences and humidity. Therefore, this process is not merely a visual effect, but a completely new experience of interacting through body movements.
[0058] Optionally, the user's facial expressions and movements can be captured in real time using an in-vehicle camera, and a facial motion recognition algorithm can then determine whether the user has performed a breathalyzing action. The criteria for determining the breathalyzing action include features such as the user's facial expression, the direction and intensity of the airflow. Further, by detecting typical breathalyzing actions such as a slightly open mouth and the release of airflow through changes in the user's facial muscle movements, the initial image restoration effect is triggered.
[0059] Optionally, the sound of breath is captured by the in-vehicle microphone, and features are extracted using digital signal processing (DSP) technology. The sound is then matched with a preset breath sound feature template using an audio analysis algorithm. Once the breath sound is identified, the effect of restoring the initial screen is triggered.
[0060] Furthermore, after recognizing the user's breath, the erased feature element pixels are gradually restored to their initial state. Optionally, the breath action triggers the restoration and arrangement of feature elements in each mask layer.
[0061] Optionally, the restoration process is gradual, for example, simulating the natural condensation of water vapor on glass. The transparency and blurriness of the restored feature element pixels gradually increase with the duration and intensity of the breath action, simulating the water mist effect that re-forms on the car window due to temperature differences or humidity. This allows for adjustment of the mask layer's transparency, making the erased drawing path blurry and opaque again until the original water vapor coverage effect is restored. Furthermore, the speed and extent of restoration can be dynamically adjusted based on factors such as the duration and intensity of the breath action. For example, new raindrops are generated in the area where the erased raindrops were located, and these raindrops gradually become larger and more transparent, simulating the process of raindrops re-gathering on the car window. As the breath action continues, the raindrops gradually increase and spread, restoring an effect similar to the initial state. Optionally, new raindrops are generated based on the area triggered by the breath action, simulating the gradual increase of raindrops over time, eventually restoring a relatively dense layer of water droplets. The restoration process is closely related to the duration of the touch and the intensity of the breath. To enhance the naturalness and realism of the restoration effect, animation control is used to simulate the gradual restoration of the water mist. During the recovery process, the water mist gradually becomes blurred from a transparent state, and the raindrops gradually increase in size over time, eventually forming a complete water mist effect. The speed of the recovery animation is dynamically adjusted based on the intensity of the user's breath. For example, a stronger breath will result in a faster and more obvious recovery effect, while a lighter breath will produce a slower recovery effect. As the user breathes, they will see the water mist effect gradually recover on the screen and feel real-time feedback from touch operations. This interaction method based on motion and sound provides users with a new dimension of operation, making the software more than just limited to traditional click and drag operations, but also incorporating natural motion interaction.
[0062] Optionally, the system captures the user's facial movements using an in-vehicle camera and analyzes their facial expressions using deep learning algorithms to determine if a breath action is occurring. By calculating changes in mouth shape and airflow direction, the system can accurately detect breath behavior. Breath sounds captured by the in-vehicle microphone are feature-extracted using digital signal processing (DSP) technology and matched against preset breath sound feature templates using audio analysis algorithms. Upon detecting a breath sound, the system triggers a water mist recovery effect. An image rendering engine dynamically adjusts the semi-transparent mask and raindrop effect mask in real time. GPU-accelerated image rendering ensures smooth and natural image recovery, avoiding stuttering or choppy performance. To ensure the breath recovery process is synchronized with the user's breath action in real time, providing timely visual feedback, the entire process should be smooth and continuous, avoiding any sense of delay. To meet the needs of different users, the system offers adjustable recovery intensity settings, allowing users to adjust the speed and intensity of the water mist recovery effect after a breath according to their personal preferences.
[0063] In the aforementioned method for simulating car window painting, the car window painting function is activated in response to a preset startup operation. A first configuration operation is performed on the car window painting function to simulate the initial image of the car window using a multi-layer structure. This multi-layer structure includes a canvas layer, on which feature elements are arranged using masking technology. A drawing path is generated on the canvas layer using touch-point movement, causing the feature elements on the drawing path to undergo preset changes, thus transforming the initial image into the target image. This method uses a multi-layer structure to simulate car window scenes in different environments, achieving the purpose of simulating car window painting through touch-point movement, providing users with a fresher in-car entertainment experience. This application can capture car window environment data, generate background images and atmosphere effects, and simulate real-world scenes under different car window environments. By performing a configuration operation on the car window painting function, it provides users with painting tools and allows them to select appropriate painting preferences based on their painting needs. The multi-layer structure arranges different display elements, allowing users to choose simulated painting scenes according to their needs, not limited to simulating car window painting.
[0064] In one embodiment, such as Figure 4 As shown, a painting device simulating a car window is provided, comprising: a start-up module 201, a simulation module 202, and a painting module 203, wherein: The startup module 201 is used to start the window painting function in response to a preset startup operation; The simulation module 202 is used to perform a first configuration operation on the window painting function to simulate the initial image of the window using a multi-layer structure; wherein, the multi-layer structure includes a canvas layer, and feature elements are arranged on the canvas layer using masking technology; The drawing module 203 is used to generate a drawing path on the canvas layer using touch point movement operations, causing the feature elements on the drawing path to produce preset change effects, thereby transforming the initial image into the target image. Specific limitations regarding the painting device for simulated car windows can be found in the above description of the painting method for simulated car windows, and will not be repeated here. Each module in the aforementioned painting device for simulated car windows can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device in hardware form, or stored in the memory of a computer device in software form, so that the processor can call and execute the corresponding operations of each module.
[0065] In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 5As shown, the computer device includes a processor, memory, network interface, and database connected via a system bus. The processor provides computational and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database stores drawing data for simulated car windows. The network interface communicates with external terminals via a network connection. When the processor executes the computer program, it implements a method for drawing simulated car windows.
[0066] Those skilled in the art will understand that Figure 5 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0067] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps: In response to a preset startup operation, the window painting function is activated; a first configuration operation is performed on the window painting function to simulate the initial image of the window using a multi-layer structure; wherein, the multi-layer structure includes a canvas layer, and feature elements are arranged on the canvas layer using masking technology; a drawing path is generated on the canvas layer using touch point movement operations, causing the feature elements on the drawing path to produce preset change effects, thus transforming the initial image into the target image. In one embodiment, a readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, performs the following steps: activating a window painting function in response to a preset startup operation; performing a first configuration operation on the window painting function to simulate an initial image of a window using a multi-layer structure; wherein the multi-layer structure includes a canvas layer, on which feature elements are arranged using masking technology; and generating a drawing path on the canvas layer using a touch-point movement operation, causing the feature elements on the drawing path to produce a preset change effect, thereby transforming the initial image into a target image.
[0068] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0069] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0070] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the invention patent. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this patent application should be determined by the appended claims.
Claims
1. A method for painting a simulated car window, characterized in that, The method includes: S101: In response to the preset startup operation, activate the window painting function; S102: Perform a first configuration operation on the window painting function to simulate the initial image of the window using a multi-layer structure; wherein, the multi-layer structure includes a canvas layer, and feature elements are arranged on the canvas layer using masking technology; S103: Using touch point movement operation to generate a drawing path on the canvas layer, so that the feature elements on the drawing path produce a preset change effect, so that the initial screen becomes the target screen.
2. The method for painting a simulated car window according to claim 1, characterized in that, Also includes: S104: Using a preset breath reset operation, reset the canvas layer to reset the target image to the initial image.
3. The method for painting a simulated car window according to claim 1, characterized in that, The step of performing the first configuration operation on the window painting function includes: Select a canvas background and a canvas layer, with the canvas background located below the canvas layer, to build the multi-layer structure; or, select a multi-layer structure that includes at least a canvas background and the canvas layer, with the canvas background located below the canvas layer.
4. The method for painting a simulated car window according to claim 3, characterized in that, The step of simulating the initial image of the car window using a multi-layer structure includes: Based on the multi-layer structure, a background image is set using the canvas background, and an atmosphere effect is set using the canvas layers to simulate the initial image composed of the background image and the atmosphere effect.
5. The method for painting a simulated car window according to claim 4, characterized in that, The step of performing the first configuration operation on the window painting function further includes: Select a drawing mode, and determine the access method based on the drawing mode; Background images, ambient effects, and background sounds are obtained based on the access method described above; The background image and the ambient effect are arranged in a preset multi-layer structure, and the background sound is played to dynamically simulate the initial view of the car window.
6. The method for painting a simulated car window according to claim 5, characterized in that, The step of setting a background image using the canvas background includes: selecting an access method to obtain the background image, or obtaining the background image after determining the access method based on the painting mode.
7. The method for painting a simulated car window according to claim 4, characterized in that, The step of arranging feature elements on the canvas layer using masking technology includes: Add at least one mask layer using the canvas layer; When multiple mask layers are added to the canvas layer, different feature elements are arranged in each mask layer; The mask layers are stacked in a preset order to create an atmospheric effect for the background image by utilizing the different feature elements after stacking.
8. The method for painting a simulated car window according to claim 6, characterized in that, Step S103 includes: Acquire contact data, including contact location; Determine the feature elements of the drawing path on the canvas layer based on the location of the touch point; The preset change effect is determined based on the touch point data, and the preset change effect is applied to the feature elements on the drawing path so that the initial screen becomes the target screen.
9. The method for painting a simulated car window according to claim 2, characterized in that, The step of resetting the canvas layer using a preset breath reset operation to reset the target image to the initial image includes: Use in-car cameras or microphones to capture users' breath on the screen; The preset breath reset function is activated based on the described breath behavior; Use the breath reset function to reset the feature elements of the canvas layer so that the target image is reset to the initial image.
10. A painting device simulating a car window, characterized in that, The device includes: The startup module is used to activate the window painting function in response to a preset startup operation; The simulation module is used to perform a first configuration operation on the window painting function to simulate the initial image of the window using a multi-layer structure; wherein, the multi-layer structure includes a canvas layer, and feature elements are arranged on the canvas layer using masking technology; The drawing module is used to generate a drawing path on the canvas layer using touch point movement operations, so that the feature elements on the drawing path produce a preset change effect, and the initial image becomes the target image.