Electric energy meter fault component rendering method and device and computer equipment
By building a power meter display model and fault application display scenario, using verification data to determine the location of the fault components and render the fault information, the problem of inefficient failure analysis of traditional power meter is solved, and more efficient fault analysis is achieved.
Patent Information
- Application Number
- CN202510109110.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-23
- Publication Date
- 2025-06-13
AI Technical Summary
Traditional power meter fault analysis methods are inefficient, and it is difficult for non-professional personnel to quickly extract key information. Professional and technical personnel need to spend a lot of time clarifying the location of the fault and the scope of impact.
By importing multiple virtual bodies of power meter components, building a power meter display model and fault application display scenario, obtaining verification data to determine the location of the faulty components, and rendering the faulty components and their area.
It improves the intuitiveness of fault information, shortens the fault analysis time, and improves the efficiency of power meter fault analysis.
Smart Images

Figure CN120147496A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of electric energy meters, and particularly to a method, device, computer device, storage medium, and computer program product for rendering faulty components of an electric energy meter. Background Art
[0002] With the development of the power industry, electric energy meters are used more and more widely. In order to enable accurate metering of electric energy meters, it is necessary to timely detect and display faults of electric energy meters in the production, maintenance, and quality inspection of electric energy meters.
[0003] In traditional solutions, relying on power monitoring software to trace the historical data of electric energy meters, or technicians disassembling and testing electric energy meters, after identifying faulty components, a written fault detection report or an oral fault detection report is generated.
[0004] However, in traditional fault feedback methods, such as written reports listing various data and test results, it is difficult for non-professionals to quickly extract key information. Even for professional technicians, it may take a lot of time to clearly identify the specific location and scope of influence of the fault, resulting in a decrease in the efficiency of electric energy meter fault analysis. Summary of the Invention
[0005] Based on this, in view of the above technical problems, it is necessary to provide a method, device, computer device, computer-readable storage medium, and computer program product for rendering faulty components of an electric energy meter that can improve the efficiency of electric energy meter fault analysis.
[0006] In a first aspect, this application provides a method for rendering faulty components of an electric energy meter. The method includes:
[0007] Importing a plurality of virtual electric energy meter components, and constructing an electric energy meter display model based on the plurality of virtual electric energy meter components;
[0008] Constructing an electric energy meter fault application display scenario based on the electric energy meter display model;
[0009] Obtaining verification data of the electric energy meter, where the verification data includes fault data of the electric energy meter;
[0010] Determining position data of faulty component virtual bodies in the electric energy meter display model based on the fault data;
[0011] Rendering the faulty component virtual bodies and the regions to which the faulty component virtual bodies belong in the electric energy meter display model under the electric energy meter fault application display scenario based on the position data of the faulty component virtual bodies and the fault data.
[0012] In a second aspect, this application also provides a device for rendering faulty components of an electric energy meter. The device includes:
[0013] A model construction module for importing multiple virtual meter components and constructing a meter display model based on the multiple virtual meter components.
[0014] A scene construction module for constructing a meter fault application display scene based on the meter display model.
[0015] A data acquisition module for acquiring verification data of the meter, where the verification data includes fault data of the meter.
[0016] A component positioning module for determining the position data of the virtual fault component in the meter display model based on the fault data.
[0017] A model rendering module for rendering the virtual fault component and the area to which the virtual fault component belongs in the meter display model under the meter fault application display scene based on the position data of the virtual fault component and the fault data.
[0018] In a third aspect, the present application also provides a computer device. The computer device includes a memory and a processor. The memory stores a computer program, and when the processor executes the computer program, the steps in the embodiment of the above-mentioned method for rendering meter fault components are implemented.
[0019] In a fourth aspect, the present application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the embodiment of the above-mentioned method for rendering meter fault components are implemented.
[0020] In a fifth aspect, the present application also provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the steps in the embodiment of the above-mentioned method for rendering meter fault components are implemented.
[0021] The above-mentioned method, device, computer equipment, storage medium, and computer program product for rendering faulty components of an electricity meter are different from traditional solutions. In this solution, by importing multiple virtual bodies of electricity meter components, based on these multiple virtual bodies of electricity meter components, an electricity meter display model is constructed, and based on the electricity meter display model, an electricity meter fault application display scenario is constructed, providing data support for subsequent rendering. Then, by obtaining the verification data of the electricity meter, possible faults of the electricity meter can be quickly and accurately analyzed, and further, the position data of the virtual body of the faulty component in the electricity meter display model can be identified. Finally, in the electricity meter fault application display scenario, based on the position data and fault data of the virtual body of the faulty component, the virtual body of the faulty component and the area to which the virtual body of the faulty component belongs in the electricity meter display model are rendered, so that the operator can intuitively see the location where the fault occurs, greatly improving the intuitiveness of the fault information, and thus effectively improving the efficiency of electricity meter fault analysis. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 It is an application environment diagram of the method for rendering faulty components of an electricity meter in an embodiment;
[0023] Figure 2 It is a flowchart of the method for rendering faulty components of an electricity meter in an embodiment;
[0024] Figure 3 It is a flowchart of the method for rendering faulty components of an electricity meter in another embodiment;
[0025] Figure 4 It is a flowchart of the rendering step in an embodiment;
[0026] Figure 5 It is a flowchart of the process of constructing an electricity meter fault application display scenario in an embodiment;
[0027] Figure 6 It is a flowchart of the process of constructing an electricity meter display model in an embodiment;
[0028] Figure 7 It is a flowchart of the method for rendering faulty components of an electricity meter in another embodiment;
[0029] Figure 8 It is a structural block diagram of the device for rendering faulty components of an electricity meter in an embodiment;
[0030] Figure 9 It is an internal structure diagram of a computer device in an embodiment. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0031] In order to make the objectives, technical solutions, and advantages of this application clearer, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not used to limit this application.
[0032] The method for rendering faulty components of an electricity meter provided by an embodiment of this application can be applied to an application environment as Figure 1 shown. Among them, the terminal 102 communicates with the server 104 through a network. The data storage system can store the data that the server 104 needs to process. The data storage system can be integrated on the server 104, or can be placed in the cloud or on other network servers.
[0033] Specifically, an operator can perform a touch operation on the terminal 102 to import multiple virtual electricity meter components into the server 104. The server 104 constructs an electricity meter display model based on the multiple virtual electricity meter components, and constructs an electricity meter fault application display scenario based on the electricity meter display model. Then, the operator can upload the verification data of the electricity meter to the server 104 through the terminal 102. The verification data includes the fault data of the electricity meter. The server 104 determines the position data of the virtual faulty component in the electricity meter display model based on the fault data. Finally, in the electricity meter fault application display scenario, based on the position data and the fault data of the virtual faulty component, the virtual faulty component and the area to which the virtual faulty component belongs in the electricity meter display model are rendered.
[0034] Among them, the terminal 102 can be, but is not limited to, various personal computers, laptop computers, smart phones, tablet computers, Internet of Things devices, and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart in-vehicle devices, etc. The portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The server 104 can be implemented by an independent server or a server cluster composed of multiple servers.
[0035] In one embodiment, as Figure 2 shown, a method for rendering faulty components of an electricity meter is provided. Taking the method applied to the Figure 1 server 104 in it as an example, the method includes the following steps:
[0036] S100, Import multiple virtual electricity meter components, and construct an electricity meter display model based on the multiple virtual electricity meter components.
[0037] Specifically, virtual bodies of each electricity meter component can be created in 3D modeling software and then imported into a modeling engine in a format supported by the modeling engine, such as imported into the Unreal Engine. In the Unreal Engine, an operator can adjust the positions, angles, and sizes of these virtual bodies of electricity meter components by means of dragging, rotating, scaling, etc., so as to combine and construct an electricity meter display model according to the actual physical position relationship of the virtual bodies of electricity meter components.
[0038] S300. Based on the electricity meter display model, construct an electricity meter fault application display scenario.
[0039] Furthermore, a reasonable electricity meter fault application display scenario can be constructed for the electricity meter display model. For example, for different fault types, corresponding appearance change effects can be designed for the electricity meter display model. For example, when the electricity meter overheats, the color of the virtual body of the component in the electricity meter display model can gradually turn red to simulate the hot state. If there is a fault in the display screen of the electricity meter, the virtual body of the display screen in the electricity meter display model can be controlled to present garbled characters, flicker, or a black screen state, so as to simulate the state of the display screen fault. In addition, the color of the virtual body of the circuit board in the electricity meter display model can also be set. For example, the physical circuit board in the electricity meter is usually green, so the virtual body of the circuit board can be set to green, and a reflection effect can also be added to the virtual body of the circuit board. In this way, by adding colors, reflection effects, etc. to the virtual body of the circuit board and designing appearance change effects for the electricity meter display model for different fault types, etc., an electricity meter fault application display scenario can be constructed.
[0040] S500. Obtain the verification data of the electricity meter, and the verification data includes the fault data of the electricity meter.
[0041] Specifically, the verification data of the electricity meter can be obtained through a return and traceability device. The return and traceability device is a device used for information collection, management, and analysis of returned electricity meters, and can comprehensively record information during the process of the electricity meter from production to return. The verification data includes but is not limited to fault data, verification batches, component numbers, component names, etc., and the fault data includes but is not limited to data such as fault types and fault causes.
[0042] S700. Based on the fault data, determine the position data of the virtual body of the faulty component in the electricity meter display model.
[0043] Among them, the fault data includes the numbers, names, positions, etc. of the faulty components that have faults in the electricity meter. Information related to the faulty components, such as the faulty component number, the faulty component name, and the position of the faulty component in the electricity meter, is extracted from the fault data. Then, when constructing the electricity meter display model, a mapping table between the physical components and the virtual components of the components has been established in advance to associate the actual electricity meter components with the virtual components of the components in the electricity meter display model. At this time, based on the faulty component number, the faulty component name, and the position of the faulty component in the electricity meter in the fault data, the virtual faulty component corresponding to the faulty component in the mapping table can be found, and then the position data of the virtual faulty component in the electricity meter display model can be obtained.
[0044] S900, in the electricity meter fault application display scenario, based on the position data of the virtual faulty component and the fault data, render the virtual faulty component and the area to which the virtual faulty component belongs in the electricity meter display model.
[0045] Specifically, using the position data of the virtual faulty component, the virtual faulty component can be located in the electricity meter display model. Furthermore, a high - light display identifier can be added to the virtual faulty component, which means that the virtual faulty component needs to be highlighted in the subsequent rendering process. In addition, some special effect identifiers can be added to it, which means that the virtual faulty component needs to be highlighted in the subsequent rendering process.
[0046] In addition to adding a high - light display identifier to the virtual faulty component, a corresponding high - light display identifier also needs to be added to the area to which the faulty component belongs. For example, the inside of the electricity meter may be divided into different areas such as a metering module, a communication module, a power supply module, etc. If the virtual faulty component is a virtual current transformer, it may belong to the metering module, and accordingly, a high - light display identifier can be added to the metering module in the electricity meter display model. In addition, the area within a certain physical distance of the virtual faulty component can be considered as the area to which the virtual faulty component belongs, and then a high - light display identifier is added to this area.
[0047] Furthermore, after determining the virtual faulty component and the area to which the virtual faulty component belongs, the virtual faulty component and the virtual faulty component can be rendered. For example, change the color or transparency of the virtual faulty component and the virtual faulty component, brighten the color of the virtual faulty component and the virtual faulty component, and dim the color of other virtual components, so as to highlight the position of the faulty component in the electricity meter and at the same time enable the user to understand the influence range of the faulty component on the electricity meter. In the Unreal Engine, the change of color or transparency can be achieved by modifying the material properties of the model mesh of the area to which it belongs.
[0048] The above method for rendering faulty components of an electricity meter, different from traditional solutions, imports multiple virtual bodies of electricity meter components. Based on these multiple virtual bodies of electricity meter components, an electricity meter display model is constructed, and based on the electricity meter display model, an electricity meter fault application display scenario is constructed, providing data support for subsequent rendering. Then, by obtaining the verification data of the electricity meter, possible faults of the electricity meter can be quickly and accurately analyzed, and then the position data of the virtual body of the faulty component in the electricity meter display model can be identified. Finally, in the electricity meter fault application display scenario, based on the position data and fault data of the virtual body of the faulty component, the virtual body of the faulty component and the area to which the virtual body of the faulty component belongs in the electricity meter display model are rendered, so that the operator can intuitively see the location where the fault occurs, greatly improving the intuitiveness of the fault information, and thus effectively improving the efficiency of electricity meter fault analysis.
[0049] In one embodiment, as Figure 3 shown, before S900, the method further includes:
[0050] S800, based on the fault data, determine the fault type and fault degree of the virtual body of the faulty component.
[0051] S900 includes:
[0052] S910, based on the position data, fault type and fault degree of the virtual body of the faulty component, render the virtual body of the faulty component and the area to which the virtual body of the faulty component belongs in the electricity meter display model.
[0053] Among them, the fault data includes information related to the fault. Based on the fault data, the fault type and fault degree of the virtual body of the faulty component can be analyzed and determined. For example, the fault data may record that the display screen shows a black screen, and further analyze that the black screen fault is caused by the damage of the power supply chip of the display screen, and the fault level is a medium-level fault (the fault level can be divided into mild fault, medium-level fault, and severe fault). Correspondingly, the virtual body of the display screen in the electricity meter display model also has a black screen fault, and the corresponding virtual body of the power supply chip is also damaged.
[0054] Furthermore, based on the position data of the virtual body of the faulty component, a high-light display identifier can be added at the position of the virtual body of the faulty component and the area to which it belongs, and different colors of high-light display identifiers can be added to the virtual body of the faulty component and the area to which it belongs according to different fault types and different fault degrees of the virtual body of the faulty component. Then, the electricity meter display model can be functionally encapsulated using a modeling engine, such as blueprint visual programming in the Unreal Engine, and then the encapsulated electricity meter can be applied to the electricity meter fault application display scenario for real-time rendering.
[0055] In this embodiment, based on the fault data, the location data, fault type and fault degree of the virtual body of the faulty component are accurately analyzed, and not only a highlight display mark is added to the virtual body of the faulty component and the area to which it belongs, but also highlight display marks of different colors are added according to different fault types and fault degrees, so that the fault condition of the electric energy meter can be presented more intuitively, thereby improving the efficiency of fault analysis.
[0056] In one embodiment, Figure 4 As shown, S910 includes:
[0057] S911, based on the position data of the virtual body of the faulty component, add a highlight display mark to the virtual body of the faulty component and the area to which the virtual body of the faulty component belongs.
[0058] S912, adding different color display marks to the faulty component virtual body and the faulty component virtual body according to the fault type and fault degree of the faulty component virtual body.
[0059] S913, functionally encapsulating the electric energy meter display model with the highlight display mark and the different color display marks using a blueprint to obtain an electric energy meter blueprint.
[0060] S914, in the electric energy meter fault application display scenario, the electric energy meter blueprint is rendered in real time.
[0061] Specifically, the location data can be represented by three-dimensional coordinates. According to the location data of the virtual body of the faulty component, the virtual body of the faulty component and its area can be accurately located in the electric energy meter display model, and further a highlight display mark can be added to the virtual body of the faulty component and its area. Different fault types and fault degrees represent different fault severity and impact ranges. Therefore, different color display marks can be added to the virtual body of the faulty component based on different fault types and fault degrees. For example, the same color system is used for the same fault type, and the depth of the color is used to indicate the degree of the fault. For example, for the same fault type, a light red highlight display mark is used for a mild fault, a red highlight display mark is used for a moderate fault, and a dark red highlight display mark is used for a severe fault.
[0062] Furthermore, taking the Unreal Engine as an example of a modeling engine, the blueprint visual programming function in the Unreal Engine can be used to functionally encapsulate the electric energy meter display model with added highlight display logos and color display logos, and obtain a packaged electric energy meter blueprint, and then render the electric energy meter blueprint in real time in the electric energy meter fault application display scene. This means that when the fault type and fault degree change, the highlight display logo and color display logo of the faulty component can be immediately updated during the real-time rendering process, so that the user can see the fault condition of the electric energy meter in real time, and what you see is what you get.
[0063] In this embodiment, the virtual body of the faulty component and the area to which it belongs can be quickly located through the highlighted display mark, and the color display mark can intuitively display the fault type and fault degree of the virtual body of the faulty component. The real-time rendering method is used in the subsequent rendering process, which can facilitate the operator to intuitively understand the real-time fault situation of the electric energy meter and improve the efficiency of fault analysis.
[0064] In one embodiment, Figure 5 As shown, S300 includes:
[0065] S310, based on the electric energy meter display model, simulating the failure effects of components in the electric energy meter in a preset virtual modeling scenario.
[0066] S320, obtaining the circuit color of the electric energy meter, and based on the circuit color of the electric energy meter, simulating the color, reflection effect and interaction effect of the virtual body of the circuit board in the electric energy meter display model in a preset virtual modeling scene.
[0067] 330. Based on the fault effects of components in the preset virtual modeling scene, the color, reflection effect and interaction effect of the circuit board virtual body in the preset virtual modeling scene, an electric energy meter fault application display scene is constructed.
[0068] Among them, the circuit colors in the circuit table include the circuit board substrate color and the colors of various electronic components. For example, the common circuit board substrate color is green, and different types of resistors, capacitors, chips and other components also have their own specific colors. Obtaining the circuit color can more realistically restore the appearance of the electricity meter in the modeling engine.
[0069] Specifically, the virtual bodies of each component are included in the electric energy meter display model. In the preset virtual modeling scenario in the modeling engine, the fault effects of the components in the electric energy meter can be simulated. For example, when simulating the overload fault of the resistor virtual body, the color of the resistor virtual body can be changed to black to simulate the burnt appearance. When simulating the fault of the display screen virtual body, effects such as garbled characters, flickering, and black screen can occur on the display screen virtual body. Then, according to the obtained circuit color, the color, reflection effect, interaction effect, etc. of the circuit board virtual body in the electric energy meter display model are simulated. For example, the color of the circuit board substrate is accurately restored so that the color of the circuit board virtual body is consistent with the color of the real circuit board substrate. And considering the characteristics of the circuit board material, the reflection effect on the surface of the circuit board is simulated. For example, the metal parts (pins, circuits, etc.) of the circuit board usually have a high reflectivity, while the substrate part has a low reflectivity. The attribute data of the circuit board virtual body can be adjusted in the modeling engine so that its reflection effect in the virtual modeling scenario conforms to the actual situation. In addition, an interaction effect can be added to the circuit board virtual body. For example, when the mouse of the operating user hovers over a certain area of the circuit board, the circuit function introduction of that area is displayed. Finally, by integrating the above-simulated component fault effects, the color, reflection effect, and interaction effect of the circuit board virtual body, a complete display scenario of the electric energy meter fault application can be constructed.
[0070] In this embodiment, by obtaining the real circuit color and accurately simulating various effects of the circuit board and component fault effects, the display scenario of the electric energy meter fault application constructed is highly close to the real electric energy meter fault situation, thereby improving the efficiency of electric energy meter fault calibration.
[0071] In one embodiment, as Figure 6 shown, S100 includes:
[0072] S110, obtain the attribute data of the electric energy meter, and according to the attribute data of the electric energy meter, adjust the proportion and format of multiple electric energy meter component virtual bodies, where the electric energy meter component virtual bodies include circuit board virtual bodies.
[0073] S120, call the preset physical engine to simulate the three-dimensional space collision of the circuit board virtual body and add object attributes to the circuit board virtual body.
[0074] S130, combine the processed multiple electric energy meter component virtual bodies to obtain an initial electric energy meter display model.
[0075] S140, according to the electric energy meter appearance data and electric energy meter internal structure data in the attribute data, add texture attributes and material attributes to the initial electric energy meter display model to obtain the electric energy meter display model.
[0076] Among them, the attribute data of the electricity meter includes but is not limited to the rated parameters of the electricity meter, the appearance data of the electricity meter, the internal structure data of the electricity meter, etc. The appearance data of the electricity meter includes appearance dimensions, appearance color, appearance material, etc. The internal structure data of the electricity meter includes the internal circuit board layout, the positions of components, the types of components, etc.
[0077] Specifically, multiple virtual electricity meter component bodies can be imported into a preset modeling engine, such as the Unreal Engine, and the virtual electricity meter component bodies can be adjusted according to the obtained attribute data of the electricity meter. For example, the size of the actual electricity meter components may be relatively large, and the size of the corresponding virtual electricity meter component bodies also needs to be enlarged proportionally. If the proportion of the imported virtual electricity meter component bodies does not match the actual situation, corresponding adjustments are also required. In addition, the format of the imported virtual electricity meter component bodies may not match the format that the Unreal Engine can recognize, or the attribute data of the electricity meter stipulates that the format of the virtual electricity meter component bodies is a specific format. In this case, the format of the virtual electricity meter component bodies also needs to be converted.
[0078] Furthermore, select the circuit board virtual body from the virtual electricity meter component bodies after adjusting the proportion and format, and use a preset physics engine to simulate the collision situation of the circuit board virtual body in three-dimensional space to add physical properties to the circuit board virtual body, so that the circuit board virtual body can be more realistic in the virtual modeling scene.
[0079] Then, combine the multiple virtual electricity meter component bodies after adjusting the proportion, format, and adding physical properties. It can be to place the virtual electricity meter component bodies in the correct positions according to the actual structure and layout of the electricity meter to form a complete initial electricity meter display model. For example, assemble the adjusted circuit board virtual body, chip virtual body, resistor virtual body, capacitor virtual body, etc. according to the actual positional relationship inside the electricity meter to form an initial electricity meter display model. Finally, according to the appearance data and internal structure data in the attribute data of the electricity meter, add textures and materials to the initial electricity meter display model. Specifically, according to the appearance data of the electricity meter, add corresponding textures to the shell virtual body, such as adding the texture pattern of the electricity meter shell, brand logo, etc., to make the electricity meter display model look more realistic. According to the internal structure data and appearance data of the electricity meter, add appropriate material attributes to different virtual electricity meter component bodies. For example, add metal material attributes to the metal pin virtual body in the electricity meter display model, and add plastic material attributes to the plastic shell virtual body, etc., to obtain the electricity meter display model.
[0080] In this embodiment, based on the attribute data of the electricity meter, the proportions and formats of the virtual bodies of the electricity meter components can be adjusted, and physical properties, texture attributes, and material attributes can be added to them, making the constructed electricity meter display model closer to the real electricity meter, thereby facilitating the improvement of the efficiency of electricity meter fault analysis.
[0081] To provide a clearer description of the method for rendering faulty components of an electricity meter provided in this application, the following will be combined with the attached Figure 7 and One A detailed embodiment is used for explanation. The detailed embodiment includes the following steps:
[0082] S701: Import multiple virtual bodies of electricity meter components, obtain the attribute data of the electricity meter, and adjust the proportions and formats of the multiple virtual bodies of electricity meter components according to the attribute data of the electricity meter. The virtual bodies of electricity meter components include virtual bodies of circuit boards.
[0083] S702: Invoke a preset physical engine to simulate the three-dimensional space collision of the virtual body of the circuit board, add object attributes to the virtual body of the circuit board, and combine the processed multiple virtual bodies of electricity meter components to obtain an initial electricity meter display model.
[0084] S703: According to the appearance data and internal structure data of the electricity meter in the attribute data, add texture attributes and material attributes to the initial electricity meter display model to obtain an electricity meter display model, and simulate the fault effects of the components in the electricity meter in a preset virtual modeling scenario based on the electricity meter display model.
[0085] S704: Obtain the circuit color of the electricity meter, and simulate the color, reflection effect, and interaction effect of the virtual body of the circuit board in the electricity meter display model in a preset virtual modeling scenario based on the circuit color of the electricity meter.
[0086] S705: Based on the fault effects of the components in the preset virtual modeling scenario, the color, reflection effect, and interaction effect of the virtual body of the circuit board in the preset virtual modeling scenario, construct an electricity meter fault application display scenario.
[0087] S706: Obtain the verification data of the electricity meter. The verification data includes the fault data of the electricity meter. Based on the fault data, determine the position data of the virtual body of the faulty component in the electricity meter display model, and based on the fault data, determine the fault type and fault degree of the virtual body of the faulty component.
[0088] S707: Based on the position data of the virtual body of the faulty component, add a high-light display identifier to the virtual body of the faulty component and the area to which the virtual body of the faulty component belongs, and according to the fault type and fault degree of the virtual body of the faulty component, add different color display identifiers to the virtual body of the faulty component and the virtual body of the faulty component.
[0089] For the electricity meter display model with highlighted display identifiers and different color display identifiers added, perform functional encapsulation with a blueprint to obtain an electricity meter blueprint, and perform real-time rendering on the electricity meter blueprint in the electricity meter fault application display scenario.
[0090] It should be understood that although the steps in the flowcharts involved in the above-described embodiments are shown in sequence according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless there is a clear indication in this article, the execution of these steps has no strict order limit, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-described embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily executed at the same moment, but can be executed at different moments. The execution order of these steps or stages is not necessarily sequential, but can be executed alternately or in turn with at least a part of other steps or steps or stages in other steps.
[0091] Based on the same inventive concept, an embodiment of the present application also provides an electricity meter fault component rendering device for implementing the above-mentioned electricity meter fault component rendering method. The solution provided by this device to solve the problem is similar to the solution described in the above method. Therefore, the specific limitations in one or more embodiments of the electricity meter fault component rendering device provided below can refer to the limitations on the electricity meter fault component rendering method in the above text, and will not be repeated here.
[0092] In one embodiment, as Figure 8 shown, an electricity meter fault component rendering device 800 is provided, including: a model construction module 810, a scenario construction module 820, a data acquisition module 830, a component positioning module 840, and a model rendering module 850, where:
[0093] The model construction module 810 is used to import multiple electricity meter component virtual bodies and construct an electricity meter display model based on the multiple electricity meter component virtual bodies.
[0094] The scenario construction module 820 is used to construct an electricity meter fault application display scenario based on the electricity meter display model.
[0095] The data acquisition module 830 is used to acquire the verification data of the electricity meter, and the verification data includes the fault data of the electricity meter.
[0096] The component positioning module 840 is used to determine the position data of the fault component virtual body in the electricity meter display model based on the fault data.
[0097] The model rendering module 850 is used to render the virtual body of the faulty component and the area to which the virtual body of the faulty component belongs in the power meter display model based on the position data and fault data of the virtual body of the faulty component in the power meter fault application display scenario.
[0098] In one embodiment, the power meter faulty component rendering device 800 is further used to determine the fault type and fault degree of the virtual body of the faulty component based on the fault data. The model rendering module 850 is further used to render the virtual body of the faulty component and the area to which the virtual body of the faulty component belongs in the power meter display model based on the position data, fault type, and fault degree of the virtual body of the faulty component.
[0099] In one embodiment, the model rendering module 850 is further used to add a highlight display identifier to the virtual body of the faulty component and the area to which the virtual body of the faulty component belongs based on the position data of the virtual body of the faulty component. According to the fault type and fault degree of the virtual body of the faulty component, different color display identifiers are added to the virtual body of the faulty component and the virtual body of the faulty component. The power meter display model with the highlight display identifier and different color display identifiers added is functionally encapsulated with a blueprint to obtain a power meter blueprint. In the power meter fault application display scenario, the power meter blueprint is rendered in real time.
[0100] In one embodiment, the scene construction module 820 is further used to obtain the circuit color of the power meter, simulate the fault effect of the components in the power meter in a preset virtual modeling scenario based on the power meter display model, simulate the color, reflection effect, and interaction effect of the circuit board virtual body in the power meter display model in a preset virtual modeling scenario based on the circuit color of the power meter, and construct a power meter fault application display scenario based on the fault effect of the components in the preset virtual modeling scenario, the color, reflection effect, and interaction effect of the circuit board virtual body in the preset virtual modeling scenario.
[0101] In one embodiment, the model construction module 810 is further used to obtain the attribute data of the power meter, adjust the proportion and format of multiple virtual bodies of power meter components according to the attribute data of the power meter. The virtual bodies of power meter components include the virtual body of the circuit board, call a preset physical engine to simulate the three-dimensional space collision of the virtual body of the circuit board, add object attributes to the virtual body of the circuit board, and combine the processed multiple virtual bodies of power meter components to obtain an initial power meter display model. According to the power meter appearance data and power meter internal structure data in the attribute data, texture attributes and material attributes are added to the initial power meter display model to obtain a power meter display model.
[0102] Each module in the above power meter fault component rendering device can be implemented in whole or in part by software, hardware, or a combination thereof. Each of the above modules can be embedded in the processor of the computer device in hardware form or independent of it, or stored in the memory of the computer device in software form, so that the processor can call and execute the operations corresponding to each of the above modules.
[0103] In one embodiment, a computer device is provided. The computer device can be a server, and its internal structure diagram can be as Figure 9 shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, abbreviated as I / O), and a communication interface. Among them, the processor, the memory, and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data such as virtual bodies of power meter components. The input / output interface of the computer device is used to exchange information between the processor and external devices. The communication interface of the computer device is used to communicate with external terminals through a network connection. When the computer program is executed by the processor, it implements a method for rendering power meter fault components.
[0104] Those skilled in the art can understand that Figure 9 the structure shown in
[0105] is only a block diagram of some structures related to the solution of this application, and does not constitute a limitation on the computer device to which the solution of this application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine some components, or have different component arrangements.
[0106] In one embodiment, a computer device is provided, including a memory and a processor. A computer program is stored in the memory, and when the processor executes the computer program, it implements the steps in the embodiment of the above method for rendering power meter fault components.
[0107] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by the processor, it implements the steps in the embodiment of the above method for rendering power meter fault components.
[0108] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use, and processing of relevant data need to comply with the relevant laws, regulations, and standards of relevant countries and regions.
[0109] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above methods. Among them, any reference to a memory, database, or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memories. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc. The databases involved in the embodiments provided in this application can include at least one of relational databases and non-relational databases. Non-relational databases can include distributed databases based on blockchain, etc., without limitation. The processors involved in the embodiments provided in this application can be general-purpose processors, central processors, graphics processors, digital signal processors, programmable logic devices, data processing logics based on quantum computing, etc., without limitation.
[0110] The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity of description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as the scope recorded in this specification.
[0111] The above-described embodiments merely represent several implementation manners of the present application. The description thereof is relatively specific and detailed, but it should not be construed as a limitation to the patent scope of the present application. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present application, several modifications and improvements can still be made, and these all fall within the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the appended claims.
Claims
1. A method for rendering faulty components of an electric energy meter, characterized in that: The method comprises: Importing multiple virtual bodies of electric energy meter components, and constructing an electric energy meter display model based on the multiple virtual bodies of the electric energy meter components; Based on the electric energy meter display model, construct an electric energy meter fault application display scenario; Acquiring verification data of the electric energy meter, wherein the verification data includes fault data of the electric energy meter; Based on the fault data, determining the position data of the virtual body of the faulty component in the electric energy meter display model; In the electric energy meter fault application display scenario, the faulty component virtual body and the area to which the faulty component virtual body belongs in the electric energy meter display model are rendered based on the position data of the faulty component virtual body and the fault data.
2. The method according to claim 1, characterized in that Before rendering the virtual body of the faulty component and the region to which the virtual body of the faulty component belongs in the electric energy meter display model, the method further includes: Based on the fault data, determining the fault type and fault degree of the faulty component virtual body; The rendering of the virtual body of the faulty component and the region to which the virtual body of the faulty component belongs in the electric energy meter display model based on the position data of the virtual body of the faulty component and the fault data includes: Based on the position data of the virtual body of the faulty component, the fault type and the fault degree, the virtual body of the faulty component and the area to which the virtual body of the faulty component belongs in the electric energy meter display model are rendered.
3. The method according to claim 2, characterized in that In the electric energy meter fault application display scenario, based on the position data of the fault component virtual body, the fault type and the fault degree, rendering the fault component virtual body and the area to which the fault component virtual body belongs in the electric energy meter display model includes: Based on the position data of the virtual body of the faulty component, a highlight display mark is added to the virtual body of the faulty component and the area to which the virtual body of the faulty component belongs; According to the fault type and fault degree of the faulty component virtual body, adding different color display marks to the faulty component virtual body and the faulty component virtual body; Performing functional encapsulation on the electric energy meter display model to which the highlight display mark and the different color display marks are added using a blueprint to obtain an electric energy meter blueprint; In the electric energy meter fault application display scenario, the electric energy meter blueprint is rendered in real time.
4. The method according to any one of claims 1 to 3, characterized in that: The method of constructing an electric energy meter fault application display scenario based on the electric energy meter display model includes: Obtaining the circuit color of the electric energy meter; Based on the electric energy meter display model, simulating the failure effects of components in the electric energy meter in a preset virtual modeling scenario; Based on the circuit color of the electric energy meter, simulate the color, reflection effect and interaction effect of the virtual body of the circuit board in the electric energy meter display model in the preset virtual modeling scene; Based on the fault effects of the components in the preset virtual modeling scene, the color of the circuit board virtual body in the preset virtual modeling scene, the reflection effect and the interaction effect, an electric energy meter fault application display scene is constructed.
5. The method according to any one of claims 1 to 3, characterized in that: The step of constructing an electric energy meter display model based on the plurality of virtual electric energy meter components includes: Obtaining attribute data of the electric energy meter; According to the attribute data of the electric energy meter, adjusting the proportion and format of a plurality of virtual bodies of electric energy meter components, wherein the virtual bodies of electric energy meter components include a virtual body of a circuit board; Calling a preset physical engine to simulate the three-dimensional space collision of the circuit board virtual body and adding object attributes to the circuit board virtual body; Combining the processed multiple virtual bodies of the electric energy meter components to obtain an initial electric energy meter display model; According to the electric energy meter appearance data and the electric energy meter internal structure data in the attribute data, texture attributes and material attributes are added to the initial electric energy meter display model to obtain the electric energy meter display model.
6. A device for rendering faulty components of an electric energy meter, characterized in that: The device comprises: A model building module, used for importing a plurality of virtual bodies of electric energy meter components, and building an electric energy meter display model based on the plurality of virtual bodies of the electric energy meter components; A scenario construction module, used to construct an electric energy meter fault application display scenario based on the electric energy meter display model; A data acquisition module, used to acquire verification data of the electric energy meter, wherein the verification data includes fault data of the electric energy meter; A component positioning module, used to determine the position data of the virtual body of the faulty component in the electric energy meter display model based on the fault data; The model rendering module is used to render the virtual body of the faulty component and the area to which the virtual body of the faulty component belongs in the electric energy meter display model based on the position data of the virtual body of the faulty component and the fault data in the electric energy meter fault application display scenario.
7. The device according to claim 6, characterized in that The scene construction module is also used to obtain the circuit color of the electric energy meter, simulate the failure effects of the components in the electric energy meter in a preset virtual modeling scene based on the electric energy meter display model, simulate the color, reflection effect and interaction effect of the virtual body of the circuit board in the electric energy meter display model in the preset virtual modeling scene based on the circuit color of the electric energy meter, and construct an electric energy meter failure application display scene based on the failure effects of the components in the preset virtual modeling scene, the color of the virtual body of the circuit board in the preset virtual modeling scene, the reflection effect and the interaction effect.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.