Vehicle model display method and device, electronic equipment, storage medium and product
By receiving vehicle status information and adjusting vehicle models, the problem that the vehicle model display system in the prior art cannot be linked to the real vehicle is solved, real-time linkage between the vehicle model and the real vehicle and the satisfaction of user needs is achieved.
Patent Information
- Application Number
- CN202510039477.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-10
- Publication Date
- 2025-05-09
AI Technical Summary
The existing vehicle model display system cannot be linked to the real vehicle and cannot reflect more real vehicle status, resulting in insufficient value and inability to meet user needs.
By receiving the status information of the vehicle, determining the components whose working state is abnormal, and adjusting the corresponding vehicle model to realize the real-time linkage between the vehicle model and the real vehicle.
Real-time linkage between vehicle models and real cars is realized, and users can obtain information about abnormal components through visual means to meet users' needs.
Smart Images

Figure CN119963787A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of vehicle model display, and in particular to a vehicle model display method, device, electronic device, storage medium and product. Background Art
[0002] With the rapid development of computer graphics, various rendering technologies such as augmented reality and virtual reality have emerged. Accordingly, the vehicle model display system has also been updated and expanded. The vehicle appearance is completely replicated one-to-one through modeling software, and the model is rendered and output to the display screen through rendering technology to achieve the rendering effect of simulated vehicle models.
[0003] Currently, the vehicle model display system has little linkage with the vehicle status in terms of functionality, making the vehicle model rendering somewhat insufficient in value and unable to meet user needs. Summary of the invention
[0004] One of the purposes of the present application is to provide a vehicle model display method to solve the problem that the vehicle model display system in the prior art simply displays the vehicle model, cannot be linked with the real vehicle to reflect more real vehicle status, and thus cannot meet the user's usage needs; the second purpose is to provide a vehicle model display device; the third purpose is to provide an electronic device; the fourth purpose is to provide a computer-readable storage medium; the fifth purpose is to provide a computer program product.
[0005] In order to achieve the above-mentioned purpose, the technical solution adopted in this application is as follows.
[0006] In a first aspect, an embodiment of the present application provides a vehicle model display method, which includes: obtaining status information of the vehicle, wherein the status information is used to indicate the working status of multiple components in the vehicle; determining one or more first components whose working status is abnormal from the multiple components; adjusting the first component model corresponding to each first component in the first vehicle model to obtain a second vehicle model, wherein the first vehicle model includes multiple component models and the first component model is one of the multiple component models; rendering and displaying the second vehicle model.
[0007] According to the above technical means, by receiving the status information of the vehicle, one or more first components whose working status is abnormal can be determined from multiple components, and then the first component model corresponding to the first component in the first vehicle model is adjusted to obtain the second vehicle model. By rendering and displaying the second vehicle model, on the one hand, real-time linkage between the vehicle model and the real vehicle can be realized, and on the other hand, the user can obtain information that the first component is in an abnormal state in a visual manner based on the second vehicle model, thereby meeting the needs of the user.
[0008] Further, the first component model corresponding to each first component in the first vehicle model is adjusted, including at least one of the following: when the abnormal state is a first abnormal state, adjusting the first component model in the first vehicle model to a first shape, wherein the first component in the first abnormal state changes shape and does not shift; when the abnormal state is a second abnormal state, adjusting the first component model in the first vehicle model to a first appearance, wherein the first component in the second abnormal state does not change shape and does not shift; when the abnormal state is a third abnormal state, adjusting the first component model in the first vehicle model to the first state, wherein the first component in the third abnormal state does not change shape and shifts.
[0009] According to the above technical means, the first vehicle model can be adjusted differently according to the abnormal state, so as to achieve a variety of abnormal reminders. When the first component changes in shape and does not move, the shape of the first component model can be changed so that the user can intuitively know the change in the shape of the component caused by the abnormality. When the first component does not change in shape and does not move, the appearance of the first component model can be changed to prompt the user to pay attention to the abnormality of the first component. When the first component does not change in shape and moves, the state of the first component model can be changed to inform the user of the location of the first component, so that the user can handle the abnormality of the first component.
[0010] Further, when the abnormal state is a first abnormal state, adjusting the first component model in the first vehicle model to a first shape includes: when the abnormal state is the first abnormal state, determining a first abnormal value according to the state information, wherein the first abnormal value is used to indicate the degree of abnormality of the first component; determining a first adjustment parameter according to the first abnormal value; and adjusting the first component model to the first shape according to the first adjustment parameter.
[0011] According to the above technical means, when the abnormal state is the first abnormal state, the abnormal degree of the first component can be determined, and then the first component model can be adjusted to the first shape according to the abnormal degree of the first component. In this process, the shape of the first component model is related to the abnormal degree of the first component, so that the user can intuitively obtain the abnormal degree of the first component and meet the needs of the user.
[0012] Further, when the abnormal state is the second abnormal state, adjusting the first component model in the first vehicle model to the first appearance includes: when the abnormal state is the second abnormal state, determining a first abnormal value according to the state information; and when the first abnormal value is greater than a threshold, adjusting the first component model to the first appearance.
[0013] According to the above technical means, when the abnormal state is the second abnormal state, the abnormal degree of the first component can be determined, and then when the abnormal degree of the first component exceeds the threshold, the first component model is adjusted to the first appearance. In this process, the appearance of the first component model is related to the abnormal degree of the first component, so that the user can intuitively obtain the abnormal degree of the first component and meet the needs of the user.
[0014] Furthermore, rendering and displaying the second vehicle model includes: obtaining display image data generated by a first camera on the vehicle, wherein the display image data includes first data and / or second data, the first data includes vehicle appearance data, and the second data includes environmental data of the environment in which the vehicle is located; obtaining first display information based on the display image data, wherein the first display information is used to indicate the appearance of component models other than the first component model in the second vehicle model and / or the background of the second vehicle model; and rendering and displaying the second vehicle model based on the first display information.
[0015] According to the above technical means, the first display information can be obtained by receiving the display image data generated by the camera on the vehicle, so that the second vehicle model can be rendered and displayed according to the first display information. In this process, the vehicle model can be linked with the equipment on the vehicle to restore the real-time status of the vehicle.
[0016] Furthermore, the second vehicle model is rendered and displayed, including: rendering the second vehicle model to generate a first image; generating first warning information corresponding to the first component based on the status information, wherein the first warning information is used to prompt a user that the working status of the first component is an abnormal state; and displaying the first image and the first warning information on the display screen.
[0017] According to the above-mentioned technical means, a first warning information can be obtained to prompt the user that the working state of the first component is an abnormal state. Therefore, by simultaneously displaying the first vehicle model image and the first warning information on the display screen, the abnormality of the component can be displayed to the user, making it convenient for the user to take quick measures based on the abnormality, thereby improving vehicle safety.
[0018] Furthermore, before obtaining the status information of the vehicle, the method also includes: obtaining a third vehicle model and a fourth vehicle model from a plurality of preset vehicle models, wherein the third vehicle model and the fourth vehicle model each include a plurality of component models; replacing one or more second component models in the third vehicle model with a third component model in the fourth vehicle model to obtain a first vehicle model; wherein a second component model is replaced with a corresponding third component model.
[0019] According to the above technical means, in the process of obtaining the first vehicle model, the component models of multiple vehicle models can be combined, so that the vehicle model can be assembled and replaced according to the user's preferences, further meeting the user's needs.
[0020] In a second aspect, the present application provides a vehicle model display device, comprising: a first processing module, used to obtain status information of the vehicle, wherein the status information is used to indicate the working status of multiple components in the vehicle; a second processing module, used to determine one or more first components whose working status is an abnormal state from multiple components; a third processing module, used to adjust the first component model corresponding to each first component in the first vehicle model to obtain a second vehicle model, wherein the first vehicle model includes multiple component models and the first component model is one of the multiple component models; a fourth processing module, used to render and display the second vehicle model.
[0021] In a third aspect, the present application further provides an electronic device, comprising a memory and one or more processors, wherein a computer program is stored in the memory, and when the computer program is executed by the electronic device, a vehicle model display method as described in any one of the first aspects is implemented.
[0022] In a fourth aspect, the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores executable instructions, wherein when the executable instructions are executed by a processor, a vehicle model display method as described in any one of the first aspects is implemented.
[0023] In a fifth aspect, the present application also provides a computer program product, including a computer program or instructions, which, when executed by a processor, implements a vehicle model display method as described in any one of the first aspects.
[0024] It should be noted that the technical effects of the second to fifth aspects can refer to the detailed description of the first aspect above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 A schematic diagram of a first optional flow chart of a vehicle model display method provided in an embodiment of the present application;
[0026] Figure 2 An optional flowchart of a rendering pipeline provided in an embodiment of the present application;
[0027] Figure 3 A second optional flow chart of the vehicle model display method provided in the embodiment of the present application;
[0028] Figure 4 A third optional flow chart of the vehicle model display method provided in the embodiment of the present application;
[0029] Figure 5 A fourth optional flow chart of the vehicle model display method provided in the embodiment of the present application;
[0030] Figure 6 A fifth optional flow chart of the vehicle model display method provided in the embodiment of the present application;
[0031] Figure 7 A sixth optional flow chart of the vehicle model display method provided in the embodiment of the present application;
[0032] Figure 8 A seventh optional flow chart of the vehicle model display method provided in the embodiment of the present application;
[0033] Fig. 9 An eighth optional flow chart of the vehicle model display method provided in the embodiment of the present application;
[0034] Fig.10 An optional schematic diagram of a vehicle model display system provided in an embodiment of the present application;
[0035] Fig.11 An optional schematic diagram of a display interface of an electronic device provided in an embodiment of the present application;
[0036] Fig.12 A ninth optional flow chart of the vehicle model display method provided in the embodiment of the present application;
[0037] Fig.13 A schematic diagram of an optional structure of a vehicle model display device provided in an embodiment of the present application;
[0038] Fig.14 An optional structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0039] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the specific technical solution of the application will be further described in detail below in conjunction with the drawings in the embodiments of the present application. The following embodiments are used to illustrate the present application, but are not used to limit the scope of the present application.
[0040] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0041] In the following description, the terms "first\second\third" are used only as examples to distinguish different objects, and do not represent a specific order for the objects, nor do they have a limitation on the order of precedence. It is understandable that "first\second\third" can be interchanged with a specific order or order of precedence where permitted, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.
[0042] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0043] The embodiments of the present application provide a vehicle model display method, device, equipment, storage medium and computer program product. In practical applications, the vehicle model display method can be implemented by a vehicle model display device, and each functional entity in the vehicle model display device can be collaboratively implemented by hardware resources of the electronic device, such as computing resources such as a processor, and communication resources (such as for supporting various communication methods such as optical cables and cellular).
[0044] Below, various embodiments of the vehicle model display method, device, equipment, storage medium and computer program product provided in the embodiments of the present application are described.
[0045] In the first aspect, the embodiment of the present application provides a vehicle model display method. The function implemented by the method can be implemented by calling program code by a processor in an electronic device, and of course the program code can be stored in a computer storage medium. It can be seen that the electronic device at least includes a processor and a storage medium.
[0046] In some possible implementations, the electronic device may be a computer, a smart phone, a car computer, etc.
[0047] Below, taking an electronic device as an execution subject as an example, the vehicle model display method provided in an embodiment of the present application is explained.
[0048] In a first aspect, an embodiment of the present application provides a vehicle model display method. Figure 1 A first optional flow chart of the vehicle model display method provided in the embodiment of the present application is shown in FIG. Figure 1 As shown, the vehicle model display method may include steps S101 to S104.
[0049] Step S101, obtaining vehicle status information.
[0050] It can be understood that the electronic device can obtain the vehicle status information in real time.
[0051] In some embodiments, the vehicle status information includes information such as the vehicle's operating status, operating hours, and operating mode.
[0052] In some embodiments, status information may be used to indicate the operating status of various components in the vehicle.
[0053] It is understandable that the electronic device can obtain the status information of the vehicle by connecting to the vehicle controller, the vehicle computer and other devices, and then obtain the working status of multiple components in the vehicle. It is understandable that after obtaining the status information of the vehicle, the electronic device can determine the working status of multiple components in the vehicle according to the working status, working time, working mode and other information of the vehicle.
[0054] In some embodiments, when the electronic device is a vehicle computer, the vehicle controller can send a status signal to the vehicle computer through a controller area network (CAN), and the status signal indicates the working status of multiple components. When the vehicle computer receives the status signal, it can obtain the working status of the multiple components. In some embodiments, when the electronic device is a smart phone, the vehicle controller can send a status signal to the smart phone through a wireless network, and when the smart phone receives the status signal, it can obtain the working status of multiple components.
[0055] Step S102: determining one or more first components whose working status is abnormal from a plurality of components.
[0056] It is understandable that after obtaining the status information, the electronic device can obtain the working status of multiple components in the vehicle according to the status information. According to the working status of the multiple components, the electronic device can determine one or more first components whose working status is abnormal from the multiple components.
[0057] In some embodiments, the working state of the first component includes: a normal state and an abnormal state. Among them, the normal state indicates that the first component is in a normal working state, and the abnormal state indicates that the state of the first component does not match the current vehicle usage scenario. In one embodiment, according to the actual vehicle usage scenario, the normal state can be divided into a variety of normal sub-states, and the embodiment of the present application does not limit this. In one embodiment, according to the actual vehicle usage scenario, the abnormal state can be divided into a variety of abnormal sub-states, and the embodiment of the present application does not limit this.
[0058] In one example, the first component may be a tire. When the onboard controller determines that the vehicle is in normal mode, the onboard controller sends a state signal indicating that the tire is in a first normal state, so as to prompt the electronic device that the vehicle is in normal mode and has a first normal state. When the vehicle is in a sports mode, the onboard controller sends a state signal indicating that the tire is in a second normal state, so as to prompt the electronic device that the vehicle is in sports mode and has a second normal state. Here, both the first normal state and the second normal state are normal sub-states.
[0059] In one example, the first component may be a door. When the on-board controller determines that the vehicle is in a driving state and the door is not locked, the on-board controller sends a state signal indicating that the door is in a first abnormal state, to prompt the electronic device that the door is not locked and has a first abnormal state. When the controller determines that the driver starts the vehicle but the rear door is not closed, the on-board controller sends a state signal indicating that the door is in a second abnormal state, to prompt the electronic device that the door is not closed and has a second abnormal state. Here, the first abnormal state and the second abnormal state are both abnormal sub-states.
[0060] Step S103: adjusting the first component model corresponding to each first component in the first vehicle model to obtain a second vehicle model.
[0061] It can be understood that after obtaining one or more first components whose working status is abnormal, the electronic device can adjust the first component model corresponding to each first component in the first vehicle model, so as to obtain the second vehicle model.
[0062] In some embodiments, the first vehicle model includes a plurality of component models, and the plurality of component models correspond to a plurality of components in the vehicle. The first component model is one of the plurality of component models, and the first component model corresponds to a first component in the vehicle.
[0063] In some embodiments, adjusting the first component model corresponding to each first component in the first vehicle model includes: adjusting the first component model corresponding to the first component in the first vehicle model to a fourth component model.
[0064] It can be understood that when the working state of the first component is abnormal, the electronic device can adjust the first component model indicating that the first component is in a normal state in the first vehicle model to a fourth component model. The fourth component model can indicate that the first component is in an abnormal state.
[0065] It can be understood that the second vehicle model is obtained by replacing the first component model with the fourth component model. After the second vehicle model is rendered and displayed, the user can intuitively obtain the information that the first component is in an abnormal state, thereby realizing the display of the actual vehicle state to the user, and improving the rendering value of the vehicle model.
[0066] In some embodiments, multiple fourth component models may be preconfigured according to the working state of the first component, and each fourth component model may correspond to a working state of the first component.
[0067] Exemplarily, assuming that the first component is a tire, the first component model may show that the tire is a normal tire, and the fourth component model may show that the tire is a wide tire. The electronic device may further determine that the wheel is in the second normal state when determining that the vehicle is in the motion mode according to the vehicle status information. The electronic device may then adjust the first component model corresponding to the first normal state in the first vehicle model to the fourth component model corresponding to the second normal state, so that after the first vehicle model is rendered and displayed, the displayed vehicle model has wide tires to prompt the user that the vehicle is in the motion mode.
[0068] It should be noted that, in some embodiments, the first component model may indicate that the first component is in an abnormal state, and the fourth component model may indicate that the first component is in a normal state. That is, after the first component is adjusted from an abnormal state to a normal state, the electronic device may adjust the first component model indicating that the first component is in an abnormal state in the first vehicle model to the fourth component model indicating that the first component is in a normal state.
[0069] Step S104: Render and display the second vehicle model.
[0070] It can be understood that after obtaining the second vehicle model, the electronic device can render the second vehicle model and output the rendered image to the display screen of the electronic device for display.
[0071] In some embodiments, rendering the second vehicle model includes: importing the second vehicle model into a 3D rendering engine, controlling the 3D rendering engine to render the second vehicle model, obtaining an image, and outputting the image to a display screen of the electronic device.
[0072] It can be understood that the electronic device can render and display the second vehicle model through a 3D rendering engine.
[0073] In some embodiments, the 3D rendering engine includes engines such as Unity, Unreal Engine, OpenGL, DirectX, etc.
[0074] In some embodiments, the electronic device may be provided with a rendering pipeline, and the 3D rendering engine may interact with the rendering pipeline through an interface to control the rendering process of the second vehicle model.
[0075] In one embodiment, the interaction between the 3D rendering engine and the rendering pipeline includes command scheduling, shader programming, resource management, performance optimization and other aspects.
[0076] In some embodiments, the electronic device may be provided with a rendering pipeline according to actual needs, which is not limited in the embodiments of the present application.
[0077] In some embodiments, Figure 2 An optional flow chart of the rendering pipeline provided in the embodiment of the present application is shown in FIG. Figure 2 As shown, the rendering pipeline may include: a model acquisition stage 201, a model culling stage 202, a basic rendering stage 203, a transparent rendering stage 204, a post-processing stage 205, an adaptation interface stage 206 and an output image stage 207.
[0078] In one embodiment, the model culling stage 202 may set culling strategies such as distance culling and visibility culling. The culling strategy may dynamically shield component models that do not need to be rendered, reduce the number of draw calls, and achieve the purpose of saving performance.
[0079] In one example, distance culling can determine whether to render a component model corresponding to an object by setting a depth threshold. In another example, visibility culling can determine whether the user's line of sight intersects with the vehicle model by using a model bounding box intersection strategy. This method simplifies the external representation of an object by using a bounding box (such as an axis-aligned bounding box AABB, a sphere bounding box Sphere, an oriented bounding box OBB, etc.), thereby further improving rendering efficiency and performance.
[0080] In one embodiment, the basic rendering stage 202 may set basic rendering strategies such as metal object rendering, plastic object rendering, light rendering, etc. The basic rendering strategies may be used to render common exterior materials of vehicles to ensure rendering effects.
[0081] In one example, the body of the vehicle will use metal materials, and the metal object rendering strategy can be based on the physically based rendering (PBR) technology to achieve metal object rendering; in one example, the bumper and other parts of the vehicle will use plastic materials, and the plastic object rendering strategy can be based on the subsurface scattering (Subsurface Scattering) rendering technology to achieve plastic object rendering. In one example, the light rendering vehicle strategy can be based on the dynamic shadow rendering technology to achieve light rendering. Dynamic shadow rendering technology can include: Shadow Mapping (Shadow Mapping), Cascaded Shadow Maps (Cascaded Shadow Maps, CSM), Percentage-Closer Soft Shadows (Percentage-Closer Soft Shadows, PCSS) and other rendering technologies.
[0082] In one embodiment, the transparent rendering stage 202 may set transparent rendering strategies such as glass object rendering, visual light rendering, etc. The common transparent materials of the vehicle may be rendered through the transparent rendering strategy to ensure the rendering effect.
[0083] In one example, the glass object rendering strategy can render glass objects such as a windshield and a window of a vehicle based on a color mixing method. In one example, the color mixing method is implemented by a mixing equation. The mixing equation can be referred to in the following formula (1):
[0084] Color_final=f_source*Color_source+f_destination*Color_destination(1)
[0085] In the above formula, Color_final is the final mixed color, f_source is the source color component, Color_source is the source color, f_destination is the destination color component, and Color_destination is the destination color.
[0086] In one example, the visualization lighting rendering strategy can create a light similar to a fog effect by simulating the principle of the Tyndall effect, and this fog effect can enhance the realism of the vehicle model.
[0087] In some embodiments, the post-processing stage 205 may include: overall color adjustment processing, gamma correction processing, anti-aliasing processing, etc. Through the post-processing stage, a variety of effects can be performed to enhance the visual quality and artistic style of the final image.
[0088] In some embodiments, the interface adaptation stage can render the display interface elements of the electronic device to achieve the adaptation of the final image and the electronic device.
[0089] In the embodiment of the present application, by receiving the status information of the vehicle, one or more first components whose working status is abnormal can be determined from multiple components, and then the first component model corresponding to the first component in the first vehicle model is adjusted to obtain the second vehicle model. By rendering and displaying the second vehicle model, on the one hand, real-time linkage between the vehicle model and the real vehicle can be achieved, and on the other hand, the user can obtain information that the first component is in an abnormal state in a visual manner based on the second vehicle model, meeting the needs of the user.
[0090] In some possible implementations, Figure 3 A second optional flow chart of the vehicle model display method provided in the embodiment of the present application is shown in FIG. Figure 3 As shown, step S103 may include: step S301 to step S303.
[0091] Step S301: When the abnormal state is a first abnormal state, a first component model in a first vehicle model is adjusted to a first shape.
[0092] It can be understood that the electronic device can adjust the first component model in the first vehicle model to the first shape when determining that the working state of the first component is the first abnormal state.
[0093] In some embodiments, when the working state of the first component is the first abnormal state, the first component may change in shape without displacement. Here, displacement may refer to displacement of the first component relative to the vehicle body frame.
[0094] It can be understood that when the working state of the first component is the first abnormal state, the shape of the first component changes, but the position of the first component does not change. Accordingly, the shape of the first component model in the first car model can be adjusted to the first shape without changing other parameters of the first component model, so that the user can perceive that the first component is in an abnormal state through the difference in shape.
[0095] In one embodiment, assuming that the first component is a tire, when the tire is in a first abnormal state indicating that the tire pressure is too low, the shape of the tire will appear flat. Accordingly, the first component model corresponding to the tire should also appear flat when displayed after rendering. When the tire is in a first normal state indicating that the tire pressure is normal, the shape of the tire will appear three-dimensional. Accordingly, the first component model corresponding to the tire should also appear three-dimensional when displayed after rendering.
[0096] Step S302: When the abnormal state is the second abnormal state, the first component model in the first vehicle model is adjusted to a first appearance.
[0097] It can be understood that the electronic device can adjust the first component model in the first vehicle model to the first appearance when determining that the working state of the first component is the second abnormal state.
[0098] In some embodiments, when the working state of the first component is the second abnormal state, the first component does not change in shape and does not move.
[0099] It is understandable that when the working state of the first component is the second abnormal state, the first component does not change in shape and does not move. Accordingly, the appearance of the first component model in the first vehicle model can be adjusted to the first appearance without changing other parameters of the first component model, so that the user can perceive that the first component is in an abnormal state through the difference in appearance.
[0100] In one embodiment, assuming that the first component is a headlight, when the headlight is in the first abnormal state indicating that the headlight is off, the headlight does not change in shape and does not move. Accordingly, the first component model corresponding to the headlight does not change in shape and does not move when displayed after rendering. At this time, in order to highlight that the working state of the headlight is an abnormal state, the appearance of the first component model corresponding to the headlight can be adjusted to the first appearance, so that the user can easily know that the headlight is abnormal.
[0101] In some embodiments, the first appearance may include information such as color, texture, material, and lighting effects. Color may determine the visual color of the vehicle model after rendering; texture may determine the visual texture pattern of the vehicle model after rendering; material may determine the visual material presented after rendering the vehicle model; and lighting may determine the visual shadows, highlights, etc. presented after rendering the vehicle model.
[0102] Step S303: When the abnormal state is the third abnormal state, the first component model in the first vehicle model is adjusted to the first state.
[0103] It can be understood that the electronic device can adjust the first component model in the first vehicle model to the first state when determining that the working state of the first component is the third abnormal state.
[0104] In some embodiments, when the working state of the first component is the third abnormal state, the first component does not change in shape but is displaced.
[0105] It can be understood that when the working state of the first component is the third abnormal state, the first component does not change in shape and is displaced. Accordingly, the state of the first component model in the first vehicle model can be adjusted to the first state without changing other parameters of the first component model, so that the user can perceive that the first component is in an abnormal state through the difference in state.
[0106] In one embodiment, assuming that the first component is a rearview mirror, when the rearview mirror is in a first abnormal state, the state of the rearview mirror will be shown as a closed state. Accordingly, the first component model corresponding to the rearview mirror should also be shown as a closed state when displayed after rendering. When the rearview mirror is in a first normal state, the state of the rearview mirror will be shown as an open state. Accordingly, the first component model corresponding to the rearview mirror should also be shown as an open state when displayed after rendering.
[0107] In some embodiments, adjusting the first component model in the first vehicle model to the first shape may include adjusting the first component model in the first vehicle model from the second shape to the first shape.
[0108] It can be understood that, when determining that the first shape is different from the second shape of the first component model, the electronic device may adjust the parameters of the first component model in the first vehicle model so as to adjust the first component model from the second shape to the first shape.
[0109] In one embodiment, the second shape may be a default shape of the first component model. Alternatively, the second shape may be a shape of the first component model before the vehicle status information is acquired.
[0110] In some embodiments, adjusting the parameters of the first component model in the first vehicle model includes: comparing the second shape and the first shape of the first component model to obtain a first comparison result; determining a first transformation parameter according to the first comparison result; and adjusting the first component model according to the first transformation parameter.
[0111] It can be understood that the electronic device can first compare and analyze the second shape and the first shape of the first component model to obtain a first comparison result to determine the difference between the two. Then the electronic device can determine the first transformation parameter that causes the difference between the two according to the first comparison result, so that the first component model can be adjusted from the second shape to the first shape according to the first transformation parameter.
[0112] In some embodiments, the first variation parameter includes parameters such as model size, model angle, and model curvature.
[0113] It should be noted that adjusting the first component model in the first vehicle model to the first appearance may include adjusting the first component model in the first vehicle model from the second appearance to the first appearance. Adjusting the first component model in the first vehicle model to the first state may include adjusting the first component model in the first vehicle model from the second state to the first state. Here, the process of adjusting the appearance and state of the electronic device can refer to the process of adjusting the shape of the electronic device, both of which are to adjust the parameters of the first component model. For the sake of brevity of the specification, it will not be repeated here.
[0114] In an embodiment of the present application, the first vehicle model can be adjusted differently according to the abnormal state, so as to achieve a variety of abnormal reminders. In the case where the first component changes in shape and does not shift, the shape of the first component model can be changed so that the user can intuitively know the change in the shape of the component caused by the abnormality. In the case where the first component does not change in shape and does not shift, the appearance of the first component model can be changed to prompt the user to pay attention to the abnormality of the first component. In the case where the first component does not change in shape and shifts, the state of the first component model can be changed to inform the user of the location of the first component, so that the user can handle the abnormality of the first component.
[0115] In some possible implementations, Figure 4 A third optional flow chart of the vehicle model display method provided in the embodiment of the present application is shown in FIG. Figure 4 As shown, step S301 may include: step S401 to step S403.
[0116] Step S401: when the abnormal state is a first abnormal state, determine a first abnormal value according to state information.
[0117] It can be understood that, when the first component is in the first abnormal state, the electronic device can determine the first abnormal value indicating the degree of abnormality of the first component according to the state information.
[0118] In some embodiments, the state information carries operating parameters of the first component, and the first abnormal value of the first component can be determined according to the operating parameters of the first component.
[0119] Exemplarily, assuming that the first component is a tire, the state information may carry the tire pressure value. According to the tire pressure value, the first abnormal value of the tire may be determined. For example, when the tire pressure value is 230 kPa, the first abnormal value of the tire is determined to be 1, indicating that the tire pressure is low; when the tire pressure value is 200 kPa, the first abnormal value of the tire is determined to be 2, indicating that the tire pressure is too low.
[0120] In some embodiments, determining the first abnormal value of the first component according to the working parameter of the first component may include: obtaining a parameter value of the working parameter of the first component, and determining the first abnormal value of the first component according to a ratio of the parameter value to a preset parameter value.
[0121] Step S402: determining a first adjustment parameter according to the first abnormal value.
[0122] It can be understood that after obtaining the first abnormal value, the electronic device can determine the abnormality level of the first component, and further determine the first adjustment parameter indicating the adjustment of the first component model according to the abnormality level of the first component.
[0123] Step S403: adjusting the first component model to a first shape according to a first adjustment parameter.
[0124] It can be understood that after obtaining the first adjustment parameter, the electronic device can use the first adjustment parameter to adjust the parameters of the first component model, thereby adjusting the first component model to the first shape.
[0125] In the embodiment of the present application, when the abnormal state is the first abnormal state, the abnormal degree of the first component can be determined, and then the first component model can be adjusted to the first shape according to the abnormal degree of the first component. In this process, the shape of the first component model is related to the abnormal degree of the first component, so that the user can intuitively obtain the abnormal degree of the first component and meet the needs of the user.
[0126] In some possible implementations, Figure 5 A fourth optional flow chart of the vehicle model display method provided in the embodiment of the present application is shown in FIG. Figure 5 As shown, step S302 may include: step S501 to step S502.
[0127] Step S501: when the abnormal state is the second abnormal state, determine a first abnormal value according to the state information.
[0128] It can be understood that, when the first component is in the second abnormal state, the electronic device can determine the first abnormal value indicating the degree of abnormality of the first component according to the state information.
[0129] In some embodiments, the state information carries operating parameters of the first component, and the first abnormal value of the first component can be determined according to the operating parameters of the first component.
[0130] For example, assuming that the first component is a headlight, the status information may carry a status code of the headlight. According to the status code of the headlight, the first abnormal value of the headlight may be determined. For example, when the status code is 1, the first abnormal value of the headlight is determined to be 1, indicating that the headlight is completely off; when the status code is 2, the first abnormal value of the headlight is determined to be 2, indicating that the brightness of the headlight is insufficient.
[0131] Step S502: When the first abnormal value is greater than a threshold, the first component model is adjusted to a first appearance.
[0132] It can be understood that after obtaining the first abnormal value, the electronic device can determine the abnormality degree of the first component, and then adjust the first component model to the first appearance when the abnormality degree of the first component is greater than a threshold value.
[0133] In some embodiments, the electronic device may set multiple thresholds to adjust the first component model to have different appearances when the first component has different abnormality levels.
[0134] In the embodiment of the present application, when the abnormal state is the second abnormal state, the abnormal degree of the first component can be determined, and then when the abnormal degree of the first component exceeds the threshold, the first component model is adjusted to the first appearance. In this process, the appearance of the first component model is related to the abnormal degree of the first component, so that the user can intuitively obtain the abnormal degree of the first component and meet the needs of the user.
[0135] In some embodiments, Figure 6 A fifth optional flow chart of the vehicle model display method provided in the embodiment of the present application is shown in FIG. Figure 6 As shown, step S104 may include: step S601 to step S603.
[0136] Step S601, obtaining display image data generated by a first camera on the vehicle.
[0137] It is understandable that the first camera on the vehicle can shoot the vehicle and the surrounding environment to generate display image data. The electronic device can obtain the display image data.
[0138] In some embodiments, the display image data includes first data and / or second data. The first data includes appearance data of the vehicle, and the second data includes environmental data of the environment in which the vehicle is located. In one embodiment, the appearance data of the vehicle may include data such as the texture, color, and material of the vehicle. The environmental data of the environment in which the vehicle is located may include scene data, weather data, etc.
[0139] It can be understood that when the first camera on the vehicle takes a picture of the vehicle itself, the electronic device can obtain the appearance data of the vehicle generated by the first camera. The electronic device can also render and display the second vehicle model based on the appearance data of the vehicle, so that the vehicle model visually presents the appearance captured by the first camera. When the first camera on the vehicle takes a picture of the environment in which the vehicle is located, the electronic device can obtain the environmental data of the environment in which the vehicle is located generated by the first camera. The electronic device can also render and display the second vehicle model based on the environmental data of the environment in which the vehicle is located, so that the background of the vehicle model visually presents the environment captured by the first camera.
[0140] In some embodiments, based on the appearance data of the vehicle, the electronic device can display the real appearance of the vehicle in real time. In some embodiments, based on the environmental data of the environment in which the vehicle is located, the electronic device can display the real scene around the vehicle in real time.
[0141] Step S602: Obtain first display information according to the display image data.
[0142] It can be understood that after obtaining the display image data, the electronic device can obtain the first display information according to the display image data.
[0143] In some embodiments, the first display information may include: first appearance information and / or first background information. The first appearance information may be used to indicate the appearance of component models other than the first component model in the second vehicle model. The first background information is used to indicate the background of component models other than the first component model in the second vehicle model.
[0144] In some embodiments, the first appearance information may include: information such as color, texture, material, and lighting effects. Color may determine the visual color of the vehicle model after rendering; texture may determine the visual texture pattern of the vehicle model after rendering; material may determine the visual material presented after rendering the vehicle model; and lighting may determine the visual shadows, highlights, etc. presented after rendering the vehicle model.
[0145] In some embodiments, the first background information may include: environmental texture, environmental elements and other information. Environmental texture and environmental elements are used to set off the second vehicle model and define the scene environment. In some embodiments, the first background information may also include: dynamic background effects. The dynamic background effect makes the scene environment where the second vehicle model is located more realistic.
[0146] In some embodiments, the electronic device may obtain the first display information according to display parameters configured by the user.
[0147] It can be understood that the user can configure the display parameters of the vehicle model according to the requirements, and the electronic device can obtain the display parameters configured by the user, and then obtain the first display information according to the display parameters.
[0148] In some embodiments, the display parameter includes a first parameter and / or a second parameter. The first parameter is used to indicate the appearance of the vehicle, and the second parameter is used to indicate the background of the vehicle. In one embodiment, the appearance of the vehicle may include the texture, color, material, etc. of the vehicle. The background of the vehicle may include a natural background, a weather background, a science fiction background, etc.
[0149] It can be understood that after the user configures the first parameter according to the appearance of the vehicle, the electronic device can obtain the first appearance information. The electronic device can also render and display the second vehicle model according to the first appearance information, so that the vehicle model visually presents the appearance configured by the user. After the user configures the second parameter according to the background of the vehicle, the electronic device can obtain the first background information. The electronic device can also render and display the second vehicle model according to the first background information, so that the scene environment corresponding to the background configured by the user is presented around the vehicle model.
[0150] In some embodiments, according to the first parameter, the electronic device can enable the user to autonomously switch the appearance of the vehicle model. In some embodiments, according to the second parameter, the electronic device can enable the user to autonomously switch the scene around the vehicle model.
[0151] In some embodiments, the second vehicle model includes a plurality of component models. For each component model, the first display information corresponding to the component model can be obtained according to the display parameters configured by the user, so that the user can customize the appearance of the component corresponding to each component model to meet the user's needs.
[0152] In some embodiments, based on the appearance data of the vehicle, the electronic device can display the real appearance of the vehicle in real time. In some embodiments, based on the environmental data of the environment in which the vehicle is located, the electronic device can display the real scene around the vehicle in real time.
[0153] In one embodiment, the real scene around the vehicle includes buildings, roads, rainy and snowy weather, etc.
[0154] Step S603: Render and display the second vehicle model based on the first display information.
[0155] It can be understood that after obtaining the first display information, the electronic device can configure the appearance and / or background of the second vehicle model based on the first display information to render and display the second vehicle model.
[0156] In some embodiments, the electronic device may configure the appearance and / or background for the second vehicle model through a rendering pipeline based on the first display information.
[0157] For example, assume that the rendering pipeline is as follows Figure 2 As shown, in the basic rendering stage 203 of the rendering pipeline, it is possible to determine, based on the first appearance information, to use basic rendering strategies such as metal object rendering, plastic object rendering, and light rendering to configure the appearance for the second vehicle model. In the adaptation interface stage 206 of the rendering pipeline, a background can be configured for the second vehicle model based on the first background information.
[0158] In the embodiment of the present application, the first display information can be obtained by receiving the display image data generated by the camera on the vehicle, so that the second vehicle model can be rendered and displayed based on the first display information. In this process, the vehicle model can be linked with the equipment on the vehicle to restore the real-time status of the vehicle.
[0159] In some possible implementations, Figure 7 A sixth optional flow chart of the vehicle model display method provided in the embodiment of the present application is shown in FIG. Figure 7 As shown, step S104 may include: step S701 to step S703.
[0160] Step S701: Render the second vehicle model to generate a first image.
[0161] It can be understood that the electronic device can render the second vehicle model through a rendering pipeline and a 3D rendering engine, thereby generating a first image containing rich details and visual effects.
[0162] For example, see Figure 2 As shown, electronic devices can be Figure 2 The rendering pipeline shown renders the second vehicle model, thereby generating a first image after the post-processing stage 205. In this process, the graphics rendering interface OpenGL may be responsible for processing the data flow and image drawing in each link of the rendering.
[0163] It can be understood that, through rendering, the first image can provide the user with a highly realistic vehicle model display.
[0164] Step S702: Generate first warning information corresponding to the first component according to the status information.
[0165] It is understandable that the electronic device can obtain the working state of the first component according to the state information. Then, when the working state of the first component is abnormal, the electronic device can generate first warning information corresponding to the first component.
[0166] In some embodiments, the first warning information is at least used to prompt the user that the working state of the first component is abnormal.
[0167] Step S703: display the first image and the first warning information on the display screen.
[0168] It is understandable that after obtaining the first warning information, the electronic device can simultaneously display the first image and the first warning information on the display screen to inform the user of the first component in the vehicle that is in an abnormal working state, so that the user can quickly locate the abnormal problem of the first component and solve it.
[0169] In some embodiments, the electronic device may process the first image and the first warning information through a rendering pipeline so that the first image and the first warning information may be displayed on a display screen at the same time.
[0170] For example, Figure 2 As shown, in the adaptation interface stage 206 of the rendering pipeline, the first image and the first warning information can be processed, so that in the input image stage 207, the first image containing the first warning information can be output, and finally the first image and the first warning information can be displayed simultaneously on the display screen.
[0171] In one embodiment, the display screen may be a display screen on an electronic device. In one embodiment, the display screen may be a display screen on other devices.
[0172] In one embodiment, the electronic device may display the first warning information using text. In one embodiment, the first warning information may also be displayed using text of different colors, fonts or marks according to the severity of the abnormal state of the first component, so that the user can more intuitively observe the degree of abnormality of the vehicle.
[0173] In an embodiment of the present application, a first warning message can be obtained to prompt a user that the working state of the first component is abnormal. Thus, by simultaneously displaying the first vehicle model image and the first warning message on the display screen, the abnormality of the component can be displayed to the user, making it easier for the user to take quick measures based on the abnormality, thereby improving vehicle safety.
[0174] In some embodiments, Figure 8 A seventh optional flow chart of the vehicle model display method provided in the embodiment of the present application is shown in FIG. Figure 8 As shown, before step S101, the following may be included: step S801 to step S802.
[0175] Step S801, obtaining a third vehicle model and a fourth vehicle model from a plurality of preset vehicle models.
[0176] It can be understood that before obtaining the status information of the vehicle, the electronic device may first obtain the third vehicle model and the fourth vehicle model from a plurality of preset vehicle models.
[0177] It can be understood that the third vehicle model and the fourth vehicle model can each include multiple component models, and each of the multiple component models corresponds to a component of the vehicle. For example, the third vehicle model can include a first component model, a second component model, a third component model, etc., and these component models can correspond to doors, hoods, trunk lids, etc. In some embodiments, these component sub-modules can also correspond to interior components of the vehicle, such as seats, steering wheels, dashboards, etc.
[0178] In some embodiments, the third vehicle model and the fourth vehicle model are different models. The third vehicle model and the fourth vehicle model both include a plurality of component models.
[0179] In some embodiments, after the electronic device obtains the third vehicle model and the fourth vehicle model, it can obtain the model data corresponding to the third vehicle model and the fourth vehicle model. In one embodiment, the model data corresponding to the third vehicle model and the fourth vehicle model may include appearance data, structural data, metadata, etc. Among them, the appearance data includes: geometric shape data, material and texture data, lighting and shadow data, etc. The structural data may include: the internal structure and components of the model. For example, in a vehicle model, the structural data may include the layout and properties of doors, tires, A-pillars, etc. The metadata may include information about the model itself, such as the author, creation date, version, license, etc.
[0180] In one embodiment, the third vehicle model and the fourth vehicle model have different parameters such as model structure and model shape.
[0181] In some embodiments, before obtaining the third vehicle model and the fourth vehicle model from the plurality of preset vehicle models, the electronic device may obtain a plurality of preset vehicle models.
[0182] In some embodiments, the plurality of preset vehicle models are all vehicle models that can be obtained by the electronic device. Each vehicle model in the plurality of preset vehicle models may include a plurality of component models.
[0183] In one embodiment, the plurality of preset vehicle models include: a first preset vehicle model and / or a second preset vehicle model.
[0184] It can be understood that the plurality of preset vehicle models include the first preset vehicle model and / or the second preset vehicle model. The electronic device can obtain the third vehicle model and the fourth vehicle model from the first preset vehicle model and / or the second preset vehicle model.
[0185] In some embodiments, the first preset vehicle model is obtained from a first database, which is a local database or a cloud database.
[0186] It is understandable that the electronic device can obtain the first preset vehicle model from a local database and / or a cloud database. Wherein, the local database or the cloud database can store data of the vehicle model. In one embodiment, the data can be a model structure, a model shape, etc.
[0187] In one embodiment, the first database may support the storage of model data or model files in a specific format.
[0188] In some embodiments, the second preset vehicle model is obtained from a first model file, and the first model file is a file uploaded by a user.
[0189] It can be understood that the electronic device can obtain the second preset vehicle model according to the first model file uploaded by the user.
[0190] It is understandable that the electronic device may support the import of model files in specific formats, such as .fbx, .obj, .gltf, etc.
[0191] In some embodiments, the electronic device may perform format conversion on the first model file to convert it into a model file of a specific format for storage. Here, the model file of the specific format may be stored in a local database. The model file of the specific format may also be uploaded and downloaded between the local data and the cloud database at any time, thereby achieving flexibility of vehicle model resources.
[0192] For example, Fig. 9 The eighth optional flow chart of the vehicle model display method provided in the embodiment of the present application is shown in FIG. Fig. 9 As shown, uploading the first model file to obtain the second preset vehicle model can be achieved through steps S901 to S905.
[0193] Step S901, receiving a first model file.
[0194] It can be understood that the electronic device can provide a model import interface to enable the user to upload the first model file.
[0195] Step S902: convert the format of the first model file.
[0196] It can be understood that the electronic device can perform format conversion on the first model file, and the converted first model file is in a specific format.
[0197] Step S903: store the converted first model file in a local resource library.
[0198] It can be understood that the electronic device can store the converted first model file in a local resource library.
[0199] Step S904: Obtain a first vehicle model from a local resource library.
[0200] It can be understood that the electronic device can obtain the first vehicle model from the local resource library according to the user's selection.
[0201] Step S905: Rendering the first vehicle model according to the vehicle status information.
[0202] It can be understood that the electronic device can render the first vehicle model according to the vehicle status information.
[0203] From the above, it can be seen that electronic devices support autonomous import or download of vehicle models, providing users with more flexible rendering options.
[0204] In an embodiment of the present application, the first vehicle model can be obtained from a database or a model file, so that the user can independently import the vehicle model or use the vehicle model in the resource library for customized rendering to meet the user's needs.
[0205] Step S802: Replace one or more second component models in the third vehicle model with third component models in the fourth vehicle model to obtain a first vehicle model.
[0206] It can be understood that after obtaining the third vehicle model, the electronic device can replace a second component model in the third vehicle model with a third component model in the fourth vehicle model, or replace multiple second component models in the third vehicle model with multiple third component models in the fourth vehicle model, thereby arbitrarily adjusting the component models in the vehicle model.
[0207] In one embodiment, a second component model is replaced with a corresponding third component model.
[0208] Exemplarily, the electronic device may replace the second component model indicating the vehicle window in the third vehicle model with the third component model indicating the vehicle window in the fourth vehicle model, thereby achieving customized setting of the component model of the vehicle model.
[0209] In the embodiment of the present application, in the process of obtaining the first vehicle model, the component models of multiple vehicle models can be combined, so that the vehicle model can be assembled and replaced according to the user's preferences, further meeting the needs of the user. It can be understood that
[0210] Below, a specific example is used to introduce the vehicle model display method in the embodiment of the present application.
[0211] In one embodiment, Fig.10 An optional schematic diagram of a vehicle model display system provided in an embodiment of the present application, see Fig.10 As shown, the vehicle model display system 1000 includes: a core layer 1001 and a functional layer 1002 .
[0212] In one embodiment, the core layer 1001 may include: a rendering engine module 1011 , a rendering pipeline module 1012 , an input event module 1013 , a model processing module 1014 and a network module 1015 .
[0213] It can be understood that the core layer 1001 is used to implement the core algorithm of the vehicle model display method. Among them, the rendering engine module 1011 is responsible for processing the data flow and image drawing in each link of the rendering. The rendering pipeline module 1012 is responsible for controlling and optimizing the performance and effect of the rendering. The input event module 1013 is responsible for processing the user's screen events, converting the user's clicks and sliding operations on the screen into internal instructions, so as to perform interactive transformations such as rotation and scaling of the vehicle model. The model processing module 1014 is responsible for the management of model files, at least supporting the import of common model files, and being able to convert model files into a format supported by the database, thereby realizing the flexibility of vehicle model resources. The network module 1015 is responsible for connecting to the cloud resource library through the protocol, and providing users with vehicle model resource upload and download functions. The vehicle model resources that the user imports or downloads independently can be added to the rendering engine module 1011 and the rendering pipeline module 1012 for rendering and display, realizing the linkage between modules.
[0214] In one embodiment, the functional layer 1002 may include: a custom environment module 1021 , a vehicle model replacement module 1022 , a warning suggestion module 1023 , a component replacement module 1024 and a component status real-time monitoring module 1025 .
[0215] It can be understood that the functional layer 102 is used to meet the needs of users to display vehicle models. Among them, the custom environment module 1021 is responsible for switching the scenes around the vehicle model, such as camera real scenes, science fiction scenes and natural scenes. The vehicle model replacement module 1022 is responsible for replacing and displaying different types of vehicle models. The warning suggestion module 1023 is responsible for collating and uploading abnormal data and inputting reports to give user suggestions when the vehicle status is abnormal, so that users can quickly locate the problem and solve it. The component replacement module 10024 is responsible for customizing different components. The component status real-time monitoring module 1025 is responsible for collecting the status information of the vehicle and realizing the synchronization of the vehicle model and the real vehicle status.
[0216] In the embodiment of the present application, the car model software producer of the car factory can use the vehicle model display system to quickly achieve the target effect output client software, and the user also has enough flexibility to realize his own customized preference configuration when using the client software. The user can customize the scene including weather, environment and day and night; the user can import the vehicle model independently or use the vehicle model of the resource library. The vehicle model can be assembled and the appearance can be changed according to the user's preferences, which has extremely high flexibility.
[0217] In one embodiment, Fig.11 An optional schematic diagram of a display interface of an electronic device provided in an embodiment of the present application, see Fig.11 As shown, the display interface can be composed of the following parts:
[0218] 1. Change scene (background) button.
[0219] It can be understood that after the user clicks the changeable scene button, the electronic device can obtain the first display information, and then the electronic device can render and display the first vehicle model according to the first display information, thereby realizing arbitrary scene change.
[0220] In some embodiments, the scenes include real camera scenes, science fiction scenes, and natural scenes.
[0221] 2. The vehicle model displayed in the center, the vehicle model includes multiple parts.
[0222] It is understandable that the vehicle model can be displayed in the middle of the display interface. The vehicle model includes at least: tires, component 1, replaceable component 1 and replaceable component 2. Among them, component 1 can be located inside the vehicle and is a component that the user cannot directly observe. Replaceable component 1 and replaceable component 2 can be located on the outer surface of the vehicle, and at least the appearance can be replaced.
[0223] 3. Abnormal prompts.
[0224] It is understandable that the electronic device can obtain the first warning information according to the status information of the vehicle. The electronic device can display the first warning information in real time so that the user can obtain an abnormal prompt.
[0225] In some embodiments, the first warning information can be displayed by connecting abnormal components. The first warning information can also be displayed using yellow or red lines and fonts according to the severity of the abnormality, so that the user can intuitively observe the degree of abnormality of the vehicle.
[0226] 4. Set button.
[0227] It is understandable that after the user clicks the setting button, the setting interface can be entered. In the setting interface, the user can edit all configuration parameters of the vehicle model rendering so that the electronic device obtains the first display information.
[0228] 5. Abnormal suggestion button.
[0229] It is understandable that after the user clicks the abnormal suggestion button, the user can view the processing suggestions generated by the electronic device according to the current abnormality level of the vehicle. The user can also choose to handle or report according to the suggestions.
[0230] In an embodiment of the present application, a display interface that is easy for users to operate is provided so that the electronic device can obtain all configuration parameters for rendering a vehicle model, thereby realizing vehicle model display.
[0231] Fig.12 A ninth optional flow chart of the vehicle model display method provided in the embodiment of the present application is shown in FIG. Fig.12 As shown, the embodiment of the present application provides a vehicle model display method. Fig.10 and Fig.11 The vehicle model display method may include steps S1201 to S1205.
[0232] Step S1201, receiving a first model file.
[0233] It can be understood that the electronic device can provide a model import interface to receive the first model file input by the user.
[0234] Step S1202: Obtain a first vehicle model according to a first model file.
[0235] It can be understood that the electronic device can perform format conversion on the first model file to obtain the first vehicle model carried in the first model file.
[0236] Step S1203, obtaining state information of the vehicle, and adjusting the first component model in the first vehicle model according to the state information to obtain a second vehicle model.
[0237] It can be understood that the electronic device can receive status information sent by the vehicle controller, so as to adjust the first component in the first vehicle model to obtain the second vehicle model when the status information indicates that the working state of the first component model is abnormal.
[0238] Step S1204, obtaining first display information.
[0239] It can be understood that the electronic device can provide a display parameter input interface to the user, so as to obtain the first display information after the user inputs the display parameter.
[0240] Step S1205: Render and display the second vehicle model according to the first display information.
[0241] It can be understood that the electronic device can determine the appearance of the second vehicle model based on the first display information, and then display the second vehicle model on the display interface.
[0242] In an embodiment of the present application, the electronic device can process user gestures through screen touch events to obtain the vehicle model and display information of the vehicle model specified by the user, and then render the vehicle model based on the 3D rendering engine to meet the needs of the user. The electronic device can link the vehicle model in real time according to the vehicle status information, restore the actual vehicle status as much as possible, and make sure that what is actually seen is consistent with the performance of the vehicle model. For parts that are difficult for users to observe at ordinary times, the electronic device will monitor the parts in real time. Once an abnormal problem occurs, it will be immediately displayed intuitively on the vehicle model, and the problem will be reported and analyzed and suggested through the warning suggestion module. Users can take quick measures according to the situation, thereby improving vehicle safety.
[0243] In a second aspect, an embodiment of the present application provides a vehicle model display device, which is deployed in an electronic device. Fig.13 This is an optional structural diagram of a vehicle model display device provided in an embodiment of the present application, see Fig.13 As shown, the vehicle model display device 1300 may include: a first processing module 1301, used to obtain status information of the vehicle, wherein the status information is used to indicate the working status of multiple components in the vehicle; a second processing module 1302, used to determine one or more first components whose working status is an abnormal state from multiple components; a third processing module 1303, used to adjust the first component model corresponding to each first component in the first vehicle model to obtain a second vehicle model, wherein the first vehicle model includes multiple component models, and the first component model is one of the multiple component models; a fourth processing module 1304, used to render and display the second vehicle model.
[0244] In some embodiments, the third processing module 1303 is further used to, when the abnormal state is a first abnormal state, adjust the first component model in the first vehicle model to a first shape, wherein the first component in the first abnormal state changes shape and does not shift; when the abnormal state is a second abnormal state, adjust the first component model in the first vehicle model to a first appearance, wherein the first component in the second abnormal state does not change shape and does not shift; when the abnormal state is a third abnormal state, adjust the first component model in the first vehicle model to the first state, wherein the first component in the third abnormal state does not change shape and shifts.
[0245] In some embodiments, the third processing module 1303 is further used to determine a first abnormal value based on the state information when the abnormal state is a first abnormal state, wherein the first abnormal value is used to indicate the degree of abnormality of the first component; determine a first adjustment parameter based on the first abnormal value; and adjust the first component model to a first shape based on the first adjustment parameter.
[0246] In some embodiments, the third processing module 1303 is further configured to determine a first abnormal value according to the state information when the abnormal state is the second abnormal state; and adjust the first component model to the first appearance when the first abnormal value is greater than a threshold.
[0247] In some embodiments, the fourth processing module 1304 is also used to obtain display image data generated by a first camera on the vehicle, wherein the display image data includes first data and / or second data, the first data includes vehicle appearance data, and the second data includes environmental data of the environment in which the vehicle is located; based on the display image data, first display information is obtained, wherein the first display information is used to indicate the appearance of component models other than the first component model in the second vehicle model and / or the background of the second vehicle model; based on the first display information, the second vehicle model is rendered and displayed.
[0248] In some embodiments, the fourth processing module 1304 is further configured to render the second vehicle model to generate the first image;
[0249] Generate first warning information corresponding to the first component according to the status information, wherein the first warning information is used to prompt a user that the working state of the first component is an abnormal state; and display a first image and the first warning information on a display screen.
[0250] In some embodiments, the first processing module 1301 is also used to obtain a third vehicle model and a fourth vehicle model from multiple preset vehicle models, wherein the third vehicle model and the fourth vehicle model each include multiple component models; replace one or more second component models in the third vehicle model with a third component model in the fourth vehicle model to obtain the first vehicle model; wherein a second component model is replaced with a corresponding third component model.
[0251] It should be noted that the modules included in the vehicle model display device provided in the embodiment of the present application can be implemented by a processor in an electronic device; of course, they can also be implemented by a specific logic circuit; in the implementation process, the processor can be a central processing unit (CPU, Central Processing Unit), a microprocessor (MPU, Micro Processor Unit), a digital signal processor (DSP, Digital Signal Processor) or a field programmable gate array (FPGA, Field-Programmable Gate Array), etc.
[0252] The description of the above device embodiment is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the device embodiment of the present application, please refer to the description of the method embodiment of the present application for understanding.
[0253] It should be noted that in the embodiments of the present application, if the above-mentioned vehicle model display method is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiment of the present application can be essentially or partly reflected in the form of a software product that contributes to the relevant technology. The computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the vehicle model display method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM), a magnetic disk or an optical disk. In this way, the embodiments of the present application are not limited to any specific combination of hardware and software.
[0254] In a third aspect, an embodiment of the present application provides an electronic device, comprising at least a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and when the processor executes the program, the steps in the vehicle model display method provided in the above embodiment are implemented.
[0255] Fig.14 An optional structural diagram of an electronic device provided in an embodiment of the present application is shown below in combination with Fig.14 The electronic device 1400 shown is used to illustrate the structure of the electronic device.
[0256] In one example, if Fig.14As shown, the electronic device 1400 includes: a processor 1401, at least one communication bus 1402, at least one external communication interface 1403 and a memory 1404. The communication bus 1402 is configured to realize connection and communication between these components. The external communication interface 1403 may include a standard wired interface and a wireless interface.
[0257] The memory 1404 is configured to store instructions and applications executable by the processor 1401, and can also cache data to be processed or processed by the processor 1401 and various modules in the electronic device (for example, image data, audio data, voice communication data, and video communication data), which can be implemented through flash memory (FLASH) or random access memory (Random Access Memory, RAM).
[0258] In another example, the electronic device may be a smart terminal such as a vehicle computer, a smart phone, etc. The electronic device is used to execute the steps in the vehicle model display method provided in the above embodiment.
[0259] In a fourth aspect, the present application further provides a storage medium, on which a readable storage medium stores executable instructions, wherein when the executable instructions are executed by a processor, the steps in the vehicle model display method provided in an embodiment of the present application are implemented.
[0260] In a fifth aspect, the present application also provides a computer program product, including a computer program or instructions, which, when executed by a processor, implement the steps in the above-mentioned vehicle model display method.
[0261] It should be noted here that the description of the above storage medium and device embodiments is similar to the description of the above method embodiments, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the storage medium and device embodiments of this application, please refer to the description of the method embodiments of this application for understanding.
[0262] It should be understood that "one embodiment" or "an embodiment" mentioned throughout the specification means that specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in some embodiments" appearing throughout the specification may not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the size of the sequence number of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application. The above-mentioned sequence numbers of the embodiments of the present application are for description only and do not represent the advantages and disadvantages of the embodiments.
[0263] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0264] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.
[0265] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0266] In addition, all functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be a separate unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0267] A person skilled in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM), magnetic disks or optical disks, etc., various media that can store program codes.
[0268] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application can essentially or in other words, the part that contributes to the relevant technology can be embodied in the form of a software product, which is stored in a storage medium and includes a number of instructions for a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the vehicle model display method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks, or optical disks.
[0269] The above is only an implementation method of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A vehicle model display method, characterized in that: include: Obtaining status information of the vehicle, wherein the status information is used to indicate the working status of multiple components in the vehicle; Determine one or more first components whose working status is abnormal from among the plurality of components; adjusting a first component model corresponding to each of the first components in a first vehicle model to obtain a second vehicle model, wherein the first vehicle model includes a plurality of component models, and the first component model is one of the plurality of component models; The second vehicle model is rendered and displayed.
2. The method according to claim 1, characterized in that The step of adjusting the first component model corresponding to each of the first components in the first vehicle model includes at least one of the following: When the abnormal state is a first abnormal state, adjusting the first component model in the first vehicle model to a first shape, wherein the first component in the first abnormal state undergoes a shape change and does not undergo displacement; When the abnormal state is a second abnormal state, adjusting the first component model in the first vehicle model to a first appearance, wherein the first component in the second abnormal state does not change in shape and does not move; When the abnormal state is a third abnormal state, the first component model in the first vehicle model is adjusted to a first state, wherein the first component in the third abnormal state does not change in shape but is displaced.
3. The method according to claim 2, characterized in that When the abnormal state is a first abnormal state, adjusting the first component model in the first vehicle model to a first shape includes: In the case where the abnormal state is a first abnormal state, determining a first abnormal value according to the state information, wherein the first abnormal value is used to indicate the degree of abnormality of the first component; Determining a first adjustment parameter according to the first abnormal value; The first component model is adjusted to the first shape according to the first adjustment parameter.
4. The method according to claim 2, characterized in that: When the abnormal state is the second abnormal state, adjusting the first component model in the first vehicle model to a first appearance includes: In a case where the abnormal state is a second abnormal state, determining a first abnormal value according to the state information; When the first abnormal value is greater than a threshold, the first component model is adjusted to the first appearance.
5. The method according to claim 1, characterized in that The rendering and displaying the second vehicle model includes: Obtaining display image data generated by a first camera on the vehicle, wherein the display image data includes first data and / or second data, the first data includes vehicle appearance data, and the second data includes environmental data of an environment in which the vehicle is located; Obtaining first display information according to the display image data, wherein the first display information is used to indicate the appearance of component models other than the first component model in the second vehicle model and / or the background of the second vehicle model; Based on the first display information, the second vehicle model is rendered and displayed.
6. The method according to claim 1, characterized in that The rendering and displaying the second vehicle model includes: Rendering the second vehicle model to generate a first image; Generate first warning information corresponding to the first component according to the status information, wherein the first warning information is used to prompt a user that the working status of the first component is abnormal; The first image and the first warning information are displayed on a display screen.
7. The method according to claim 1, characterized in that Before obtaining the vehicle status information, the method further includes: Obtaining a third vehicle model and a fourth vehicle model from the plurality of preset vehicle models, wherein the third vehicle model and the fourth vehicle model each include a plurality of component models; One or more second component models in the third vehicle model are replaced with the third component models in the fourth vehicle model to obtain the first vehicle model; wherein one second component model is replaced with a corresponding one third component model.
8. A vehicle model display device, characterized in that: include: A first processing module, configured to obtain status information of the vehicle, wherein the status information is used to indicate the working status of multiple components in the vehicle; A second processing module, configured to determine one or more first components whose working status is abnormal from the plurality of components; a third processing module, configured to adjust a first component model corresponding to each of the first components in the first vehicle model to obtain a second vehicle model, wherein the first vehicle model includes a plurality of component models, and the first component model is one of the plurality of component models; The fourth processing module is used to render and display the second vehicle model.
9. An electronic device, characterized in that: The electronic device comprises a memory and one or more processors. A computer program is stored in the memory. When the computer program is executed by the electronic device, the vehicle model display method according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium, characterized in that: The readable storage medium stores executable instructions, wherein when the executable instructions are executed by the processor, the vehicle model display method according to any one of claims 1 to 7 is implemented.
11. A computer program product, comprising a computer program or instructions, characterized in that: When the computer program or instruction is executed by a processor, the vehicle model display method according to any one of claims 1 to 7 is implemented.