Virtual ornament control method and device, vehicle and storage medium
By displaying virtual ornaments on the screen of the car machine and linking them with the vehicle's driving status, the problem of center console ornaments affecting driving safety is solved, and the effect of improving the aesthetics and playability of the vehicle is achieved.
Patent Information
- Application Number
- CN202411335434.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-24
- Publication Date
- 2025-06-03
AI Technical Summary
The ornaments placed on the center console may affect the driver's vision and drive safety.
By displaying virtual ornaments on the car computer screen and receiving user control instructions, the virtual ornaments are controlled to achieve linkage with the vehicle's driving status without affecting driving safety, thereby enhancing aesthetics and playability.
It realizes that the vehicle's aesthetics and playability are enhanced without affecting driving safety. Through the linkage of virtual ornaments, the vehicle's driving status is intuitively displayed and the user experience is improved.
Smart Images

Figure CN120085772A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of digital products, and more specifically, to a control method, device, vehicle, and storage medium for a virtual ornament in the field of digital products. Background Art
[0002] Currently, vehicles have become an indispensable part of people's daily lives. To enhance the aesthetics inside the vehicle, some users usually place some ornaments on the vehicle's center console, such as photos, cartoon animals, peace blessing ornaments, etc.
[0003] However, the ornaments placed on the center console may sometimes affect the driver's line of sight and driving safety. Summary of the Invention
[0004] This application provides a control method, device, vehicle, and storage medium for a virtual ornament. This method can achieve the purpose of allowing users to enhance the aesthetics of the vehicle through the ornament and enhance the playability without affecting driving safety.
[0005] In a first aspect, a control method for a virtual ornament is provided. The method includes: receiving a control instruction for a virtual ornament displayed on a vehicle-mounted screen; when it is determined that the control instruction is a preset control instruction, switching the current state of the virtual ornament to the state corresponding to the preset control instruction; when it is determined that the state corresponding to the preset control instruction is a linkage state, controlling the virtual ornament to swing according to the current driving information of the vehicle.
[0006] In the above technical solution, when it is determined that the state corresponding to the preset control instruction is a linkage state, the virtual ornament can be controlled to swing according to the current driving information of the vehicle, so that the movement of the virtual ornament matches the actual state of the vehicle. Through this linkage mechanism, the driving state of the vehicle can be intuitively displayed, helping users better understand the dynamic behavior of the vehicle. And the virtual ornament displayed on the vehicle-mounted screen can achieve the purpose of allowing users to enhance the aesthetics of the vehicle through the ornament and enhance the playability without affecting driving safety, improving the user experience.
[0007] In combination with the first aspect, in some implementation manners of the first aspect, the controlling the virtual ornament to swing according to the current driving information of the vehicle includes: when it is determined that the vehicle is in a turning state, obtaining the current first speed and turning direction of the vehicle; determining the first swing amplitude of the virtual ornament according to the first speed, and determining the swing direction of the virtual ornament according to the turning direction; controlling the virtual ornament to swing according to the first swing amplitude and the swing direction.
[0008] Combined with the first aspect and the above implementation manners, in some implementation manners of the first aspect, controlling the virtual ornament to swing according to the current driving information of the vehicle includes: when it is determined that the vehicle is in the process of switching from a turning state to a straight driving state, obtaining the current second speed of the vehicle; determining the second swing amplitude and swing frequency of the virtual ornament according to the second speed; and controlling the virtual ornament to swing according to the second swing amplitude and the swing frequency.
[0009] Combined with the first aspect and the above implementation manners, in some implementation manners of the first aspect, before receiving a control instruction for the virtual ornament displayed on the in-vehicle screen, the method further includes: when receiving a creation instruction for the virtual ornament, determining a target ornament element for creating the virtual ornament; creating the virtual ornament according to the target ornament element, and displaying the virtual ornament on the in-vehicle screen.
[0010] Combined with the first aspect and the above implementation manners, in some implementation manners of the first aspect, determining the target ornament element for creating the virtual ornament includes: displaying an element resource library; where the element resource library contains various different types of ornament elements; when a selection operation for an ornament element in the element resource library is detected, determining the ornament element corresponding to the selection operation as the target ornament element.
[0011] Combined with the first aspect and the above implementation manners, in some implementation manners of the first aspect, determining the target ornament element for creating the virtual ornament includes: when receiving an input instruction, obtaining input text information or image information; generating an ornament image according to the text information or the image information, and determining the generated ornament image as the target ornament element.
[0012] Combined with the first aspect and the above implementation manners, in some implementation manners of the first aspect, after creating the virtual ornament according to the target ornament element, the method further includes: displaying candidate types and candidate actions corresponding to the virtual ornament; when a selection operation for the candidate type is detected, determining the candidate type corresponding to the selection operation as the type corresponding to the virtual ornament; and / or when a selection operation for the candidate action is detected, determining the candidate action corresponding to the selection operation as the interaction action corresponding to the virtual ornament.
[0013] In a second aspect, a control device for a virtual ornament is provided. The device includes: a receiving module configured to receive a control instruction for the virtual ornament displayed on the in-vehicle screen; a switching module configured to switch the current state of the virtual ornament to the state corresponding to the preset control instruction when it is determined that the control instruction is a preset control instruction; and a control module configured to control the virtual ornament to swing according to the current driving information of the vehicle when it is determined that the state corresponding to the preset control instruction is a linkage state.
[0014] In combination with the second aspect, in some implementation manners of the second aspect, the control module is specifically configured to: when it is determined that the vehicle is in a turning state, obtain the current first speed and turning direction of the vehicle; determine the first swing amplitude of the virtual ornament according to the first speed, and determine the swing direction of the virtual ornament according to the turning direction; and control the virtual ornament to swing according to the first swing amplitude and the swing direction.
[0015] In combination with the second aspect and the above implementation manners, in some implementation manners of the second aspect, the control module is specifically configured to: when it is determined that the vehicle is in the process of switching from a turning state to a straight driving state, obtain the current second speed of the vehicle; determine the second swing amplitude and swing frequency of the virtual ornament according to the second speed; and control the virtual ornament to swing according to the second swing amplitude and the swing frequency.
[0016] In combination with the second aspect and the above implementation manners, in some implementation manners of the second aspect, the device further includes a creation module. The creation module is specifically configured to: when receiving a creation instruction for the virtual ornament, determine a target ornament element for creating the virtual ornament; create the virtual ornament according to the target ornament element, and display the virtual ornament on the in-vehicle screen.
[0017] In combination with the second aspect and the above implementation manners, in some implementation manners of the second aspect, the creation module includes a determination unit. The determination unit is specifically configured to: display an element resource library, where the element resource library contains various types of ornament elements; and when a selection operation on an ornament element in the element resource library is detected, determine the ornament element corresponding to the selection operation as the target ornament element.
[0018] In combination with the second aspect and the above implementation manners, in some implementation manners of the second aspect, the determination unit is specifically configured to: when receiving an input instruction, obtain input text information or image information; generate an ornament image according to the text information or the image information, and determine the generated ornament image as the target ornament element.
[0019] Combined with the second aspect and the above implementation manners, in some implementation manners of the second aspect, the creation module further includes a selection unit, and the selection unit is specifically configured to: display candidate types and candidate actions corresponding to the virtual ornament; when a selection operation on the candidate type is detected, determine the candidate type corresponding to the selection operation as the type corresponding to the virtual ornament; and / or, when a selection operation on the candidate action is detected, determine the candidate action corresponding to the selection operation as the interaction action corresponding to the virtual ornament.
[0020] In a third aspect, a vehicle is provided, including a memory and a processor. The memory is used for storing executable program codes, and the processor is used for calling and running the executable program codes from the memory, so that the vehicle executes the control method of the virtual ornament in the first aspect and any possible implementation manner of the first aspect.
[0021] In a fourth aspect, a computer program product is provided, including: computer program codes, when the computer program codes are run on a computer, enabling the computer to execute the control method of the virtual ornament in the first aspect and any possible implementation manner of the first aspect.
[0022] In a fifth aspect, a computer-readable storage medium is provided, storing computer program codes, when the computer program codes are run on a computer, enabling the computer to execute the control method of the virtual ornament in the first aspect and any possible implementation manner of the first aspect. Description of the Drawings
[0023] Figure 1 is a schematic flowchart of a control method of a virtual ornament provided by an embodiment of the present application;
[0024] Figure 2 is a schematic diagram of a page for customizing a virtual ornament provided by an embodiment of the present application;
[0025] Fig. 3(a) is a schematic diagram of a page of an image resource library provided by an embodiment of the present application;
[0026] Fig. 3(b) is a schematic diagram of a page for customizing an image provided by an embodiment of the present application;
[0027] Figure 4 is a schematic diagram of a page for generating a virtual ornament provided by an embodiment of the present application;
[0028] Figure 5 is a schematic structural diagram of a control device of a virtual ornament provided by an embodiment of the present application;
[0029] Figure 6 is a schematic structural diagram of a vehicle provided by an embodiment of the present application. Detailed implementation manners
[0030] The technical solutions in the present application will be clearly and elaborately described below in conjunction with the accompanying drawings. Among them, in the description of the embodiments of the present application, unless otherwise specified, " / " means "or". For example, A / B may represent A or B. The "and / or" in the text is only a description of the association relationship between associated objects, indicating that there can be three relationships. For example, A and / or B may represent: A exists alone, A and B exist simultaneously, and B exists alone. In addition, in the description of the embodiments of the present application, "a plurality of" means two or more than two.
[0031] Hereinafter, the terms "first" and "second" are only used for descriptive purposes and cannot be understood as implying or suggesting relative importance or implicitly indicating the quantity of the indicated technical features. Thus, the features defined with "first" and "second" may explicitly or implicitly include one or more of such features.
[0032] Currently, vehicles have become an indispensable part of people's daily lives. To enhance the aesthetics inside the vehicle, some users usually place some ornaments on the center console inside the vehicle, such as photos, cartoon animals, lucky blessing ornaments, etc.
[0033] However, the ornaments placed on the center console may sometimes affect the driver's line of sight, thereby affecting driving safety.
[0034] To solve the above technical problems, the embodiments of the present application provide a control method for virtual ornaments. The execution subject of this method can be a vehicle, specifically a controller in the vehicle. This method can display virtual ornaments on the in-vehicle screen, receive control instructions for the virtual ornaments, and in response to the control instructions, control the virtual ornaments to perform interactive actions, thereby increasing the entertainment during driving and providing an interesting interactive experience for passengers.
[0035] Figure 1 is a schematic flowchart of a control method for virtual ornaments provided by the embodiments of the present application.
[0036] Exemplarily, as Figure 1 shown, the method 100 includes:
[0037] S101, receiving a control instruction for a virtual ornament displayed on the in-vehicle screen.
[0038] S102, when it is determined that the control instruction is a preset control instruction, switching the current state of the virtual ornament to the state corresponding to the preset control instruction.
[0039] S103. When it is determined that the state corresponding to the preset control instruction is the linkage state, control the virtual ornament to swing according to the current driving information of the vehicle.
[0040] In the embodiment of the present application, when receiving a control instruction for a virtual ornament displayed on the in-vehicle computer screen, if it is determined that the control instruction is a preset control instruction, the current state of the virtual ornament can be switched to the state corresponding to the preset control instruction. When it is determined that the state corresponding to the preset control instruction is the linkage state, the virtual ornament can be controlled to swing according to the current driving information of the vehicle, so that the movement of the virtual ornament matches the actual state of the vehicle. Through this linkage mechanism, the driving state of the vehicle can be intuitively displayed, helping the user better understand the dynamic behavior of the vehicle. And the virtual ornament displayed on the in-vehicle computer screen can, without affecting driving safety, achieve the purpose of allowing the user to enhance the aesthetics of the vehicle through the ornament, enhancing the playability, and improving the user experience.
[0041] The following describes Figure 1 the specific implementation methods of each step in the illustrated embodiment:
[0042] For S101, it can be understood that the above virtual ornament refers to a virtual decoration or small object displayed on the in-vehicle computer screen, and the form of the virtual ornament can be similar to some decorations placed on the central console in the vehicle in the real world.
[0043] The above virtual ornament can enhance the aesthetics of the vehicle interior and also have a certain interactive function for user entertainment.
[0044] In some embodiments, the user can select a virtual ornament from the ornament resource library stored in the in-vehicle computer system.
[0045] It can be understood that the ornament resource library stores complete virtual ornaments that have been designed. The user can select and download a virtual ornament from the ornament resource library and add the downloaded virtual ornament to the in-vehicle computer screen.
[0046] Exemplarily, the user can also combine different ornament elements to obtain a customized virtual ornament.
[0047] In a possible implementation manner, before receiving a control instruction for a virtual ornament displayed on the in-vehicle computer screen, the method further includes: when receiving a creation instruction for the virtual ornament, determining a target ornament element for creating the virtual ornament; creating the virtual ornament according to the target ornament element, and displaying the virtual ornament on the in-vehicle computer screen.
[0048] It can be understood that the above creation instruction for the virtual ornament can be initiated by the user.
[0049] Exemplarily, it can be initiated by a user clicking a button related to creating a virtual ornament on the in-vehicle screen, can be initiated by a user's voice command, or can also be initiated by a specific gesture operation. The embodiments of the present application do not limit this.
[0050] The above-mentioned target ornament elements for creating a virtual ornament can include image elements and sound source elements. Among them, the image elements are used to determine the appearance of the virtual ornament, and the sound source elements are used to determine the sound of the virtual ornament.
[0051] Furthermore, the above-mentioned target ornament elements can be selected from the element resource library provided by the in-vehicle system.
[0052] In a possible implementation manner, determining the target ornament elements for creating the virtual ornament includes: displaying the element resource library; where the element resource library contains various different types of ornament elements; in the case of detecting a selection operation on the ornament elements in the element resource library, determining the ornament element corresponding to the selection operation as the target ornament element.
[0053] It can be understood that after receiving the creation instruction, the element resource library can be displayed on the in-vehicle screen. The element resource library can contain various different types of ornament elements, and the element resource library can contain several image elements and several sound source elements.
[0054] Exemplarily, the element resource library can include an image resource library, and the image resource library can provide images of various different styles and themes related to virtual ornaments. Users can select different images to determine the appearance of the virtual ornament. The image format in the image resource library can be a preset image format, such as PNG, JPEG, or SVG.
[0055] The element resource library can include a sound source resource library, and the sound source resource library can provide different sound effects and sound resources related to virtual ornaments, such as the action sounds and prompt sounds of virtual ornaments. The sound sources in the sound source resource library can also be preset sound source formats, such as MP3 or WAV.
[0056] Furthermore, users can select favorite ornament elements from various types of element resource libraries as target ornament elements, and combine the target ornament elements to customize the appearance and behavior of the virtual ornament according to personal preferences. For example, select an image from the image resource library as the appearance of the virtual ornament, and then select a sound resource from the sound source resource library as the action sound of the virtual ornament. Through the combination of the above elements, a customized virtual ornament can be obtained.
[0057] Exemplarily, such as Figure 2As shown, the user can click the button of "Create Virtual Ornament" on the in-vehicle screen to enter the page corresponding to "Customize Virtual Ornament". After entering the page for customizing virtual ornaments, the element resource library can be displayed on the in-vehicle screen. The element resource library can include an image resource library and a sound source resource library. The user can click to enter different resource libraries in the element resource library on the left side of the screen and select target ornament elements for combination. The combined virtual ornament can be presented in the "Virtual Ornament Display Frame" on the right side of the screen. After the generated virtual ornament is displayed in the virtual ornament display frame, the user can click the "Modify" button below the "Virtual Ornament Display Frame" to modify the target ornament elements; the user can also click the "Save" button below the "Virtual Ornament Display Frame" to save the currently generated virtual ornament.
[0058] In some embodiments, the element resources in the above element resource library can be updated through Over-the-Air (OTA) technology.
[0059] Exemplarily, when it is detected that new element resources are available, the new element resources can be pushed to the user's in-vehicle system. The user can choose whether to download the new element resources. After the user chooses to download the new element resources, the current element resource library can be updated after the download is completed.
[0060] Furthermore, in order to fully meet the personalized needs of users, custom options can be provided in the element resource library. For example, the user can upload images or sound sources by themselves to create virtual ornaments.
[0061] Exemplarily, as shown in Fig. 3(a), after the user clicks to enter the image resource library, the user can select an image in the image resource library as the appearance of the virtual ornament, and can also click the "Customize Image" option to choose to upload an image by themselves and use the self-uploaded image as the appearance of the virtual ornament.
[0062] In a possible situation, the image uploaded by the user may be a real photo taken, and the image elements existing in the real photo may not be suitable to be directly used as the appearance of the virtual ornament.
[0063] Based on this, the embodiment of the present application can establish a virtual ornament creation application or service (Agent) based on the Artificial Intelligence (AI) large model. The virtual ornament creation application can generate an image by means of text-to-image or image-to-image through a piece of text or a picture, and use the image as the appearance of the virtual ornament.
[0064] In one possible implementation, determining the target ornament element for creating the virtual ornament includes: when receiving an input instruction, obtaining the input text information or image information; generating an ornament image according to the text information or the image information, and determining the generated ornament image as the target ornament element.
[0065] It can be understood that the above input instruction can be an instruction initiated by the user on the in-vehicle screen. For example, when the user clicks on the input box corresponding to "input text" in the "text-to-image module" in Figure 3(b), an input instruction is initiated, or when the user clicks on the input box corresponding to "input image" in the "image-to-image module" in Figure 3(b), an input instruction is initiated.
[0066] Furthermore, generating the ornament image according to the text information or the image information can be specifically implemented based on an AI large model. And the generated ornament image can be stored in the image resource library.
[0067] It can be understood that since the images generated in the embodiments of this application are for creating virtual ornaments, image generation rules can be set in advance to ensure that the images generated based on the AI large model are suitable for constructing ornaments. For example, the image generation rule can be set to generate cartoon-type images.
[0068] Exemplarily, after obtaining the text information input by the user, the AI large model can parse the text information, and can use a pre-trained natural language processing model to extract the feature information in the text, and then, with the help of a generation model such as a generative adversarial network model, generate an ornament image according to the extracted feature information.
[0069] After obtaining the image information uploaded by the user, the feature information in the image information uploaded by the user can be extracted, and then, with the help of a generation model such as a generative adversarial network model, an ornament image can be generated according to the pre-set image generation rule and the extracted feature information.
[0070] As mentioned above, a virtual ornament creation application or service can be established in the in-vehicle system, and this application or service can be used to generate ornament images according to text information or image information.
[0071] Exemplarily, as shown in Figure 3(b), the user can input a paragraph of text in the "text-to-image module" on the screen and click the "generate" button to generate an image consistent with the description of the text, and the generated image can be displayed in the "generation effect box" on the right side of the screen. For example, the user can input "draw an ornament of a puppy for me" and click the "generate" button, then the image corresponding to "puppy" can be displayed in the "generation effect box".
[0072] Users can also input an image in the "Image-to-Image Module" on the screen and click the "Generate" button to generate an image with the same image elements as the input image but a different style. The generated image can be displayed in the "Generation Effect Box" on the right side of the screen. For example, users can input a photo of a real puppy and click the "Generate" button, then a cartoon-style puppy image can be displayed in the "Generation Effect Box".
[0073] As shown in Figure 3(b), if the user is not satisfied with the currently generated ornament image, they can also click the "Regenerate" button to generate a new ornament image. If the user determines to use the currently generated ornament image, they can click the "Add and Save" button, and the currently generated ornament image can be added and saved to the image resource library. Subsequently, a virtual ornament can be generated based on this ornament image.
[0074] Similarly, in some embodiments, users can also upload their self-recorded sound source in the sound source resource library, and use this sound source as the target ornament element for creating a virtual ornament.
[0075] Furthermore, after determining the target ornament element for creating a virtual ornament, a virtual ornament can be created according to the target ornament element.
[0076] Exemplarily, as Figure 2 shown, users can first select an image in the "Image Resource Library" or generate an image as the appearance of the virtual ornament. For example, select the "puppy" image as the appearance of the virtual ornament. Then, they can select a sound source in the "Sound Source Resource Library" or upload a sound source as the action sound of the virtual ornament. For example, select the "woof" sound as the action sound of the virtual ornament. Finally, the "Virtual Ornament Display Box" can display the effect of the finally generated virtual ornament. For example, the effect of the finally generated virtual ornament is "a puppy is woofing".
[0077] Users can also select an image in the "Image Resource Library" or generate an image as the appearance of the virtual ornament. For example, select the "puppy" image as the appearance of the virtual ornament. Then, without adding a sound source element, directly click the "Generate" button, and the "Virtual Ornament Display Box" can display the effect of the finally generated virtual ornament. For example, the effect of the finally generated virtual ornament is "a puppy".
[0078] In some embodiments, after creating a virtual ornament according to the target ornament element, users can save the created virtual ornament to the ornament resource library for other users to download or purchase the virtual ornament.
[0079] It can be understood that the above-mentioned ornament resource library is the resource library storing the already designed complete virtual ornaments as described above.
[0080] In some embodiments, after creating a virtual ornament based on the target ornament element, the user can also set the type of virtual ornament and the interactive action.
[0081] In one possible implementation, after creating the virtual ornament based on the target ornament element, the method also includes: displaying candidate types and candidate actions corresponding to the virtual ornament; when a selection operation on the candidate type is detected, determining the candidate type corresponding to the selection operation as the type corresponding to the virtual ornament; and / or, when a selection operation on the candidate action is detected, determining the candidate action corresponding to the selection operation as the interactive action corresponding to the virtual ornament.
[0082] It is understandable that the candidate types of the above virtual ornaments may include fixed type and linkage type. Among them, the fixed type ornaments will not be linked with the driving state of the vehicle, and the linkage type ornaments can swing in linkage with the driving state of the vehicle.
[0083] The above-mentioned candidate actions can be understood as the interaction methods between the user and the virtual ornaments and the response actions of the virtual ornaments to these interaction methods.
[0084] For example, the candidate action may be that the user clicks on the virtual ornament and the virtual ornament plays a preset sound. For example, if the virtual ornament is a puppy and the action sound of the virtual ornament is "woof woof", the interactive action may be set as: the user clicks on the "puppy" and the "puppy" makes a "woof woof" sound.
[0085] In some embodiments, the specific implementation process of the above interactive action can be: after the user sets the image of the virtual ornament, the sound source and the trigger operation of the interactive action, the vehicle system can create an HTML page, which contains the image of the virtual ornament set by the user, and can introduce a JavaScript file at the bottom of the page. In the JavaScript file, code can be written so that when the user triggers the above interactive action on the image of the virtual ornament, the sound source of the virtual ornament is played.
[0086] For example, after creating a virtual ornament based on the target ornament element, the user clicks Figure 2 Click the "Save" button to jump to the page for setting the type of virtual ornaments and interactive actions, that is, Figure 4 The page shown.
[0087] like Figure 4As shown, the candidate types and candidate actions of the virtual ornament are presented, namely the options corresponding to "Type" and "Interaction Action" in the figure. The user can select any one of the "Fixed Type" and "Linked Type" as the type of the virtual ornament, and can also select any one of the displayed "Interaction Actions" as the interaction action of the virtual ornament. For example, if the user selects "Linked Type" as the type of the virtual ornament and selects "Action 2" as the interaction action of the virtual ornament, and then clicks the "Generate" button, the virtual ornament can be generated and displayed on the in-vehicle screen.
[0088] Furthermore, after the user selects the type or interaction action of the virtual ornament, the corresponding effect can be displayed in the "Virtual Ornament Display Frame".
[0089] For example, when the user selects "Linked Type" as the type of the virtual ornament, the animation of the effect of the virtual ornament linked with the vehicle driving state can be displayed in the "Virtual Ornament Display Frame". When the user selects "Action 2" as the interaction action of the virtual ornament, the animation of the effect of the virtual ornament making "Action 2" during the interaction with the user can be displayed in the "Virtual Ornament Display Frame".
[0090] In some embodiments, the user can only select the type of the virtual ornament without selecting the interaction action of the virtual ornament; or only select the interaction action of the virtual ornament without selecting the type of the virtual ornament; or neither select the type of the virtual ornament nor the interaction action, and directly click the "Generate" button to generate the virtual ornament.
[0091] Exemplarily, if the user does not select the type and interaction action of the virtual ornament and chooses to directly generate the virtual ornament, the generated virtual ornament is defaulted to the "Fixed Type" and defaults to "No Interaction Action".
[0092] With the above method, the user can select different ornament elements according to their own interests to create personalized virtual ornaments, increasing the driving pleasure. The user can also upload text information or image information by themselves to generate ornament images, thus obtaining unique virtual ornaments and enhancing the user's personalized experience. And the user can also select the type and interaction action of the virtual ornament by themselves, fully participating in the entire creation process of the virtual ornament and improving the user experience.
[0093] Furthermore, after the user clicks Figure 4 the "Generate" button on the page shown, the virtual ornament can be displayed on the in-vehicle screen.
[0094] Exemplarily, the generated virtual ornament can be displayed at a fixed position on the in-vehicle screen, and the user can also initiate a control command to move the virtual ornament, flexibly selecting the placement position of the virtual ornament.
[0095] Further, the above control instruction refers to a command sent by the user to the in-vehicle system through the in-vehicle screen or other input devices of the vehicle, for controlling the behavior or state of the virtual ornament.
[0096] For the above S102, it can be understood that after receiving the control instruction, the control instruction can be parsed, and when it is determined that the control instruction is a preset control instruction, the current state of the virtual ornament is switched to the state corresponding to the preset control instruction.
[0097] Among them, the current state of the virtual ornament refers to the state in which the virtual ornament is at the current moment. For example, the current state can be a stationary state. The stationary state refers to the state in which the virtual ornament is stationary on the screen without any movement.
[0098] Exemplarily, when the virtual ornament does not receive any control instruction, the virtual ornament usually remains in a stationary state.
[0099] In some embodiments, the above preset control instruction can be a movement control instruction, and the state corresponding to the movement control instruction is a movement state, that is, if the control instruction is a movement control instruction, the current state of the virtual ornament is switched to the movement state.
[0100] It can be understood that the above movement state refers to the state in which the virtual ornament can move following the finger position on the screen.
[0101] Exemplarily, setting the trigger mode of the movement control instruction as "long press operation", when the user long presses the virtual ornament, the virtual ornament can be switched from the fixed state to the movement state. When the virtual ornament is in the movement state, the user can drag the virtual ornament to different positions on the screen by moving the finger position.
[0102] In a possible situation, when it is determined that the current state of the virtual ornament is switched to the movement state, if the user releases the finger, the virtual ornament exits the movement state and returns to the current state.
[0103] Further, in some other embodiments, if the virtual ornament has set interaction actions, the above preset control instruction can also be an interaction control instruction, and the state corresponding to the interaction control instruction is an interaction state, that is, if the control instruction is an interaction control instruction, the current state of the virtual ornament is switched to the interaction state.
[0104] It can be understood that the above interaction state refers to the state in which the virtual ornament makes interaction actions on the screen. Among them, the interaction actions made by the virtual ornament are the interaction actions set by the user when creating the virtual ornament.
[0105] Exemplarily, the triggering method of the interaction control instruction is set to "click operation". When the user clicks on the virtual ornament, the virtual ornament can be switched from the current state to the interactive state. When the virtual ornament is in the interactive state, the virtual ornament can perform interactive actions.
[0106] For example, after obtaining the virtual ornament of "barking puppy", the user can set the triggering method of the interaction control instruction to "click operation". After the user performs a "click operation" on the "puppy", the "puppy" can be switched from the static state to the interactive state. When the "puppy" is in the interactive state, the "puppy" can make a "barking" sound.
[0107] In some embodiments, if the user sets the type of the virtual ornament to the linkage type, the virtual ornament can be linked to the driving state of the vehicle. The above preset control instruction can be a linkage control instruction, and the state corresponding to the linkage control instruction is the linkage state. When the driving state of the vehicle changes, a linkage control instruction can be sent to the virtual ornament, that is, if the control instruction is a linkage control instruction, the current state of the virtual ornament is switched to the linkage state.
[0108] It can be understood that the change in the driving state of the above vehicle can be that the rotation angle of the steering wheel changes to be greater than or equal to the preset angle threshold.
[0109] Exemplarily, the preset angle threshold can be set according to actual needs. For example, the preset angle threshold is set to 10 degrees.
[0110] Furthermore, the above linkage state refers to the state where the virtual ornament swings along with the driving state of the vehicle.
[0111] Regarding the above S103, it can be understood that, as described above, the virtual ornament in the linkage state can change dynamically according to information such as the speed and steering state of the vehicle. Therefore, when it is determined that the state corresponding to the above preset control instruction is the linkage state, the virtual ornament can be controlled to swing along with the driving state of the vehicle.
[0112] In a possible implementation manner, controlling the virtual ornament to swing according to the current driving information of the vehicle includes: when it is determined that the vehicle is in the steering state, obtaining the current first speed and steering direction of the vehicle; determining the first swing amplitude of the virtual ornament according to the first speed, and determining the swing direction of the virtual ornament according to the steering direction; controlling the virtual ornament to swing according to the first swing amplitude and the swing direction.
[0113] It can be understood that the above vehicle being in the steering state can be understood as the state when the rotation angle of the vehicle's steering wheel is greater than or equal to the preset angle threshold.
[0114] Exemplarily, the preset angle threshold can be set according to actual requirements, such as being set to 10 degrees.
[0115] Further, when it is determined that the vehicle is in a turning state, the current first speed and turning direction of the vehicle can be obtained, where the first speed and turning direction can be obtained from the vehicle's powertrain controller. Then, the first swing amplitude of the virtual ornament can be determined according to the current first speed, and the swing direction of the virtual ornament can be determined according to the current turning direction.
[0116] Exemplarily, a corresponding relationship between the driving speed and the swing amplitude of the virtual ornament can be established in advance. This corresponding relationship can be a one-to-one correspondence, or a corresponding relationship between a driving speed range and the swing amplitude. The above corresponding relationship can be stored in the vehicle in advance.
[0117] For example, the corresponding relationship between the driving speed and the swing amplitude of the virtual ornament can be as shown in Table 1:
[0118] Table 1
[0119] Travel speed range 0 - 20 km / h 21 - 40 km / h 41 - 60 km / h Above 61 km / h Swing amplitude 0 degrees 10 degrees 20 degrees 30 degrees
[0120] It can be seen that, as shown in Table 1, the greater the driving speed, the greater the swing amplitude of the ornament.
[0121] Exemplarily, when it is determined that the vehicle is in a turning state, if the current first speed of the vehicle is obtained as 38 km / h, by querying Table 1, the first swing amplitude of the virtual ornament can be determined to be 10 degrees.
[0122] Further, the turning direction of the vehicle can also be obtained, and the opposite direction of the turning direction can be determined as the swing direction of the virtual ornament. For example, when the vehicle turns left, it is determined that the swing direction of the virtual ornament is to swing right; when the vehicle turns right, it is determined that the swing direction of the virtual ornament is to swing left.
[0123] It can be understood that when the vehicle is turning, controlling the virtual ornament to swing in the opposite direction of the turning direction can simulate the reaction of a real ornament when turning, making the virtual ornament closer to a real ornament.
[0124] Further, after determining the first swing amplitude and swing direction of the above virtual ornament, the animation rendering module in the vehicle system can be used to control the virtual ornament to swing according to the first swing amplitude and swing direction.
[0125] It can be understood that the above animation rendering module can adjust the position and posture of the virtual ornament in real time according to the swing amplitude and swing direction.
[0126] In the real world, when the steering wheel of a vehicle returns to the straight position from a certain angle, the ornaments placed in the vehicle usually swing left and right due to inertia. To simulate this scenario, when the steering wheel of the vehicle returns to the straight position, the virtual ornament can be controlled to swing left and right.
[0127] In one possible implementation, controlling the virtual ornament to swing according to the current driving information of the vehicle includes: when it is determined that the vehicle is in the process of switching from the steering state to the straight driving state, obtaining the current second speed of the vehicle; determining the second swing amplitude and swing frequency of the virtual ornament according to the second speed; controlling the virtual ornament to swing according to the second swing amplitude and the swing frequency.
[0128] It can be understood that, as described above, the above-mentioned steering state refers to the state when the steering angle of the vehicle's steering wheel is greater than or equal to a preset angle threshold, and the above-mentioned straight driving state refers to the state when the steering angle of the vehicle's steering wheel is less than the preset angle threshold. That is, the process of switching from the steering state to the straight driving state can be understood as the process in which the steering angle of the vehicle's steering wheel changes from being greater than or equal to the preset angle threshold to being less than the preset angle threshold.
[0129] For example, when the steering wheel rotation angle of the vehicle is 30 degrees in the steering state, when the steering wheel rotation angle starts to decrease, such as changing to 28 degrees, it can be understood that the vehicle starts to switch the steering state.
[0130] The above-mentioned second speed can be the driving speed when the vehicle is just starting to switch from the steering state to the straight driving state, that is, the driving speed at the time point when the steering angle of the steering wheel starts to decrease (the steering wheel starts to return to the straight position).
[0131] Exemplarily, when the vehicle is in the steering state, the steering wheel rotation angle of the vehicle is 30 degrees. When the steering wheel rotation angle starts to decrease, such as changing to 28 degrees, it can be understood that the vehicle starts to switch from the steering state to the straight driving state, and then the speed of the current vehicle can be obtained as the second speed.
[0132] In some embodiments, the above-mentioned second speed can also be the average driving speed during the period from when the steering wheel starts to return to the straight position to when the steering wheel is completely returned to the straight position.
[0133] Furthermore, the above-mentioned swing frequency refers to the number of times the virtual ornament completes a complete swing cycle per unit time. Among them, a complete swing cycle can be the entire process in which the virtual ornament swings to one side and returns to the starting position. That is, the swing frequency can be understood as the total number of complete left and right swings completed by the virtual ornament per second. For example, the swing frequency is 2 times per second, which means that the virtual ornament completes two complete left and right swings per second.
[0134] For example, a correspondence between the driving speed and the swing frequency, and a correspondence between the driving speed and the swing amplitude can be set. The correspondence between the driving speed and the swing amplitude can be shown in Table 1. The above correspondence can be stored in the vehicle in advance.
[0135] The corresponding relationship between the driving speed and the swing frequency of the virtual ornament can be shown in Table 2:
[0136] Table 2
[0137] Travel speed range 0 - 20 km / h 21 - 40 km / h 41 - 60 km / h Above 61 km / h Swing frequency 0 times / second 2 times / second 4 times / second 6 times / second
[0138] It can be seen that, as shown in Table 2, the greater the driving speed, the more frequent the virtual pendulum swings.
[0139] Exemplarily, when it is determined that the vehicle starts to switch the steering state, the current second speed of the vehicle is obtained to be 30 km / h. By querying Table 1, it can be determined that the second swing amplitude is 10 degrees; by querying Table 2, it can be determined that the swing frequency is 2 times / second.
[0140] Similarly, as mentioned above, after determining the swing frequency and swing amplitude of the virtual ornament when the steering wheel is returned to the center position, the animation rendering module in the vehicle system can be used to control the virtual ornament to swing according to the swing amplitude and swing frequency.
[0141] The above method controls the swing of the virtual ornaments to match the actual state of the vehicle, which enhances the fun. In addition, the virtual ornaments can swing according to the steering direction and speed of the vehicle, which can provide intuitive status feedback to the user and increase interactivity. Different vehicle states are distinguished, and the virtual ornaments are controlled according to different vehicle states, so that the virtual ornaments are closer to the real ornaments and the playability of the virtual ornaments is enhanced.
[0142] In some embodiments, if a movement control instruction or an interaction control instruction for a virtual ornament is received when the virtual ornament is in a linkage state, it can be determined whether to switch the linkage state of the virtual ornament according to the priority order of the control instruction.
[0143] For example, the priority of the control instruction can be set according to actual needs, for example, the priority of the movement control instruction is set higher than the linkage control instruction, and the priority of the linkage control instruction is set higher than the interaction control instruction. This embodiment of the application is not limited to this.
[0144] For example, when a virtual ornament is in a linkage state, if a movement control instruction is received, according to the priority order of the control instructions, it is determined that the priority of the movement control instruction is higher than the priority of the linkage control instruction, then the linkage state of the virtual ornament can be switched to the movement state.
[0145] If an interaction control instruction is received and it is determined that the priority of the interaction control instruction is lower than that of the linkage control instruction according to the priority order of the control instructions, there is no need to switch the linkage state of the virtual ornament.
[0146] In some embodiments, if the virtual ornament is a linkage type ornament, the virtual ornament can also be linked with the in-vehicle infotainment (IVI) applications.
[0147] It can be understood that the above IVI applications can be applications installed in the IVI, such as music playing applications, navigation applications, safety alarm applications and other applications.
[0148] Exemplarily, when the user starts the music playing application in the IVI to play music, the virtual ornament can swing along with the music rhythm. For example, the swing amplitude and swing frequency of the virtual ornament can be determined according to the rhythm and intensity of the music, and then the animation rendering module in the IVI system controls the virtual ornament to swing according to the swing amplitude and swing frequency.
[0149] When the user starts the navigation application in the IVI, the virtual ornament can serve as a navigation assistant to provide direction indication or reminder. For example, when the navigation application prompts a left turn, the virtual ornament can be controlled to swing left in advance to remind the driver to turn left. It can also control the virtual ornament to make specific actions, such as swaying or flashing, to remind the driver that the destination is approaching when approaching the destination.
[0150] When the vehicle encounters potential safety risks, the virtual ornament can serve as a safety warning system to remind the driver to pay attention. For example, when the vehicle detects an obstacle ahead or makes an emergency brake, the virtual ornament can make an emergency brake action to remind the driver to pay attention. When the vehicle deviates from the lane, the virtual ornament can make a tilting action to remind the driver to correct the direction in time.
[0151] The above method can link the virtual ornament with the IVI applications, enhancing the playability of the virtual ornament, increasing the driving pleasure, and improving the user experience.
[0152] Figure 5 It is a schematic structural diagram of a control device for a virtual ornament provided by an embodiment of the present application.
[0153] Exemplarily, as Figure 5 shown, the device 500 includes:
[0154] A receiving module 501, configured to receive a control instruction for a virtual ornament displayed on the IVI screen.
[0155] A switching module 502, configured to switch the current state of the virtual ornament to the state corresponding to the preset control instruction when it is determined that the control instruction is a preset control instruction.
[0156] The control module 503 is configured to control the virtual ornament to swing according to the current driving information of the vehicle when it is determined that the state corresponding to the preset control instruction is the linkage state.
[0157] In a possible implementation manner, the control module is specifically configured to: when it is determined that the vehicle is in a turning state, obtain the current first speed and turning direction of the vehicle; determine the first swing amplitude of the virtual ornament according to the first speed, and determine the swing direction of the virtual ornament according to the turning direction; control the virtual ornament to swing according to the first swing amplitude and the swing direction.
[0158] In a possible implementation manner, the control module is specifically configured to: when it is determined that the vehicle is in the process of switching from a turning state to a straight driving state, obtain the current second speed of the vehicle; determine the second swing amplitude and swing frequency of the virtual ornament according to the second speed; control the virtual ornament to swing according to the second swing amplitude and the swing frequency.
[0159] Optionally, the device further includes a creation module, and the creation module is specifically configured to: when receiving a creation instruction for the virtual ornament, determine a target ornament element for creating the virtual ornament; create the virtual ornament according to the target ornament element, and display the virtual ornament on the vehicle machine screen.
[0160] In a possible implementation manner, the creation module includes a determination unit, and the determination unit is specifically configured to: display an element resource library; wherein, the element resource library contains various types of ornament elements; when detecting a selection operation on an ornament element in the element resource library, determine the ornament element corresponding to the selection operation as the target ornament element.
[0161] In a possible implementation manner, the determination unit is specifically configured to: when receiving an input instruction, obtain input text information or image information; generate an ornament image according to the text information or the image information, and determine the generated ornament image as the target ornament element.
[0162] In a possible implementation manner, the creation module further includes a selection unit, and the selection unit is specifically configured to: display candidate types and candidate actions corresponding to the virtual ornament; when detecting a selection operation on the candidate type, determine the candidate type corresponding to the selection operation as the type corresponding to the virtual ornament; and / or, when detecting a selection operation on the candidate action, determine the candidate action corresponding to the selection operation as the interaction action corresponding to the virtual ornament.
[0163] Figure 6 It is a schematic structural diagram of a vehicle provided by an embodiment of the present application.
[0164] Exemplarily, such asFigure 6 As shown, the vehicle 600 includes: a memory 601 and a processor 602. Among them, an executable program code 6011 is stored in the memory 601, and the processor 602 is used to call and execute the executable program code 6011 to execute a control method for a virtual ornament.
[0165] In addition, an embodiment of the present application also protects a device, which may include a memory and a processor. Among them, an executable program code is stored in the memory, and the processor is used to call and execute the executable program code to execute a control method for a virtual ornament provided by the embodiment of the present application.
[0166] In this embodiment, the device can be divided into functional modules according to the above method examples. For example, it can correspond to each functional module, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware. It should be noted that the division of modules in this embodiment is illustrative, only a logical function division, and there may be other division methods in actual implementation.
[0167] In the case of dividing each functional module corresponding to each function, the device may further include a receiving module, a switching module, a control module, etc. It should be noted that all relevant contents of each step involved in the above method embodiment can be cited in the function description of the corresponding functional module, and will not be repeated here.
[0168] It should be understood that the device provided in this embodiment is used to execute the above control method for a virtual ornament, so the same effect as the above implementation method can be achieved.
[0169] In the case of adopting an integrated unit, the device may include a processing module and a storage module. Among them, when the device is applied to a vehicle, the processing module can be used to control and manage the actions of the vehicle. The storage module can be used to support the vehicle to execute relevant program codes and data, etc.
[0170] Among them, the processing module can be a processor or a controller, which can implement or execute various exemplary logical blocks, modules, and circuits shown in combination with the disclosure of the present application. The processor can also be a combination that realizes computing functions, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, etc. The storage module can be a memory.
[0171] In addition, the device provided by the embodiment of the present application may specifically be a chip, a component, or a module. The chip may include a connected processor and a memory; among them, the memory is used to store instructions, and when the processor calls and executes the instructions, the chip can execute the control method for a virtual ornament provided by the above embodiment.
[0172] This embodiment also provides a computer-readable storage medium, in which computer program code is stored. When the computer program code runs on a computer, the computer is caused to execute the above-mentioned related method steps to implement a control method for a virtual ornament provided in the above embodiment.
[0173] This embodiment also provides a computer program product. When the computer program product runs on a computer, the computer is caused to execute the above-mentioned related steps to implement a control method for a virtual ornament provided in the above embodiment.
[0174] Among them, the device, computer-readable storage medium, computer program product or chip provided in this embodiment are all used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above, and will not be elaborated here.
[0175] Through the description of the above embodiments, those skilled in the art can understand that for the convenience and simplicity of description, only the above division of each functional module is used as an example. In actual applications, the above functions can be allocated to different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.
[0176] In the embodiments provided in this application, it should be understood that the disclosed device and method can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the displayed or discussed coupling or direct coupling or communication connection between each other can be through some interfaces. The indirect coupling or communication connection of the device or unit can be in an electrical, mechanical or other form.
[0177] The above content is only the specific implementation manner of this application, but the protection scope of this application is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed in this application, and all should be covered by the protection scope of this application. Therefore, the protection scope of this application should be subject to the protection scope of the claims.
Claims
1. A method for controlling a virtual ornament, characterized in that: The method comprises: Receive control instructions for virtual ornaments displayed on the vehicle screen; When it is determined that the control instruction is a preset control instruction, switching the current state of the virtual ornament to a state corresponding to the preset control instruction; When it is determined that the state corresponding to the preset control instruction is a linkage state, the virtual ornament is controlled to swing according to the current driving information of the vehicle.
2. The method according to claim 1, characterized in that The controlling the virtual ornament to swing according to the current driving information of the vehicle includes: When it is determined that the vehicle is in a turning state, obtaining a current first speed and a turning direction of the vehicle; Determining a first swing amplitude of the virtual pendulum according to the first speed, and determining a swing direction of the virtual pendulum according to the turning direction; Control the virtual ornament to swing according to the first swing amplitude and the swing direction.
3. The method according to claim 1, characterized in that The controlling the virtual ornament to swing according to the current driving information of the vehicle includes: When it is determined that the vehicle is in the process of switching from the turning state to the straight-line driving state, obtaining a current second speed of the vehicle; Determining a second swing amplitude and a second swing frequency of the virtual pendulum according to the second speed; Control the virtual ornament to swing according to the second swing amplitude and the swing frequency.
4. The method according to claim 1, characterized in that: Before receiving the control instruction for the virtual ornament displayed on the vehicle screen, the method further includes: In case of receiving a creation instruction for the virtual ornament, determining a target ornament element for creating the virtual ornament; The virtual ornament is created according to the target ornament element, and the virtual ornament is displayed on the vehicle screen.
5. The method according to claim 4, characterized in that The determining of the target ornament element for creating the virtual ornament comprises: Displaying an element resource library; wherein the element resource library contains a variety of different types of ornament elements; When a selection operation on an ornament element in the element resource library is detected, the ornament element corresponding to the selection operation is determined as the target ornament element.
6. The method according to claim 4, characterized in that The determining of the target ornament element for creating the virtual ornament comprises: When receiving an input command, obtaining input text information or image information; An ornament image is generated according to the text information or the image information, and the generated ornament image is determined as the target ornament element.
7. The method according to claim 4, characterized in that After creating the virtual ornament according to the target ornament element, the method further includes: Displaying candidate types and candidate actions corresponding to the virtual ornaments; In the case where a selection operation on the candidate type is detected, determining the candidate type corresponding to the selection operation as the type corresponding to the virtual ornament; And / or, when a selection operation on the candidate action is detected, the candidate action corresponding to the selection operation is determined as the interactive action corresponding to the virtual ornament.
8. A control device for a virtual ornament, characterized in that: The device comprises: A receiving module, used for receiving control instructions for virtual ornaments displayed on the vehicle screen; A switching module, for switching the current state of the virtual ornament to a state corresponding to the preset control instruction when it is determined that the control instruction is a preset control instruction; The control module is used to control the virtual ornament to swing according to the current driving information of the vehicle when it is determined that the state corresponding to the preset control instruction is a linkage state.
9. A vehicle, characterized in that: The vehicle comprises: A memory for storing executable program codes; A processor, configured to call and run the executable program code from the memory, so that the vehicle executes the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed, the method according to any one of claims 1 to 7 is implemented.