A diagram display method and device based on virtual objects
Through the virtual object-based chart display method, the information misunderstanding and omission caused by the single chart display method is solved, and the efficient transmission and utilization of chart information is achieved.
Patent Information
- Application Number
- CN202411117229.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-15
- Publication Date
- 2025-02-25
- Estimated Expiration
- 2044-08-15
AI Technical Summary
In the prior art, the display method of charts is single, which leads to users being prone to misunderstanding or missing information when browsing charts, which affects the efficient transmission and utilization of chart information.
Using a virtual object-based chart display method, by obtaining the data to be displayed and virtual objects are combined, the chart is generated, and the broadcast order and point are determined based on the layout information, the chart description text is broadcasted using the virtual object, and the chart vision is updated during the broadcast process. property.
It enriches the display methods of charts, ensures the accurate and comprehensive transmission of information, and improves users' understanding and utilization efficiency of chart content.
Smart Images

Figure CN118644579B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a method and device for displaying a chart based on a virtual object. Background Art
[0002] With the rapid development of artificial intelligence technology, highly customized models can be trained using artificial intelligence technology. These models can efficiently conduct in-depth mining and analysis of massive data and generate charts containing rich information. These charts provide strong support for corporate decision-making and daily information management.
[0003] However, these charts are presented in a single way, and users can only browse the charts and obtain information from them based on their personal understanding. Due to the different understanding abilities of different users, it is easy to misunderstand or miss the chart information, which in turn affects the efficient transmission and utilization of the chart information. Summary of the invention
[0004] In view of the above problems, the purpose of the present invention is to provide a method and device for displaying a chart based on virtual objects, which can enrich the display mode of the chart and ensure the efficient transmission and utilization of the chart information.
[0005] In order to solve the above technical problems, the present invention provides the following technical solutions:
[0006] In one aspect, the present invention provides a method for displaying a chart based on a virtual object, the method comprising:
[0007] Acquire data to be displayed and virtual objects to be displayed corresponding to the display request, wherein the data to be displayed includes a plurality of charts to be displayed and a chart description text corresponding to each of the charts to be displayed;
[0008] Combining all the charts to be displayed to generate a briefing to be displayed;
[0009] Based on the layout information of the to-be-displayed charts in the to-be-displayed briefing, determining the presentation order and presentation point of each to-be-displayed chart;
[0010] Display the briefing to be displayed, and control the virtual object to be displayed at the display point corresponding to the chart to be displayed according to the broadcasting order, and broadcast the chart description text corresponding to the chart to be displayed;
[0011] In the process of broadcasting the chart description text, the visual attributes of the to-be-displayed chart corresponding to the chart description text are updated using the broadcasting points.
[0012] Optionally, determining the presentation order and presentation point of each of the to-be-presented charts based on the layout information of the to-be-presented charts in the to-be-presented briefing includes:
[0013] Determine the presentation order according to the arrangement order of the plurality of charts to be presented in the preset direction in the briefing to be presented;
[0014] For each chart to be displayed in the briefing to be displayed, determining the previous chart to be displayed in the preset direction of the chart to be displayed as an adjacent chart;
[0015] Based on the distance between the chart to be displayed and the adjacent chart, a report point corresponding to the chart to be displayed is calculated.
[0016] Optionally, determining the presentation order according to the arrangement order of the plurality of charts to be presented in the briefing to be presented in a preset direction includes:
[0017] Determine a starting position in the presentation to be displayed according to a preset direction;
[0018] Obtaining the chart position of each chart to be displayed in the briefing to be displayed;
[0019] Calculating a first distance of the chart to be displayed using the starting position and the chart position;
[0020] Sorting the charts to be displayed according to the first distance to obtain a broadcast sequence;
[0021] The order of the to-be-displayed charts in the broadcast sequence is used as the broadcast order.
[0022] Optionally, the calculating the report point corresponding to the chart to be displayed based on the distance between the chart to be displayed and the adjacent chart includes:
[0023] For each chart to be displayed, calculating the distance between the chart to be displayed and an adjacent chart;
[0024] Calculating the difference between the spacing and the length of the adjacent charts in a preset direction to obtain an intermediate distance;
[0025] If the middle distance is less than the preset distance, adjusting the distance between the chart to be displayed and the adjacent chart until the middle distance is not less than the preset distance;
[0026] If the middle distance is not less than the preset distance, the broadcast point is determined from the right boundary of the adjacent chart in the preset direction.
[0027] Optionally, the chart description text includes key data and a broadcast text, and the displaying of the briefing to be displayed and the control of the virtual object to be displayed at the broadcast point corresponding to the chart to be displayed according to the broadcast order to broadcast the chart description text corresponding to the chart to be displayed include:
[0028] Determining a target broadcast chart from the plurality of charts to be displayed according to the broadcast order;
[0029] Determine a target expression from an expression library based on the data type of the data in the target broadcast chart and the key data corresponding to the target broadcast chart;
[0030] Control the virtual object to be displayed to broadcast the broadcast text corresponding to the target broadcast chart with the target expression at the broadcast point corresponding to the target broadcast chart;
[0031] If the broadcast text corresponding to the target broadcast chart has been broadcasted, the next target broadcast chart is determined based on the broadcast order, and the step of determining the target expression from the expression library based on the key data corresponding to the target broadcast chart is returned to execution until all charts to be displayed are used as target broadcast charts.
[0032] Optionally, the visual attribute of the chart to be displayed includes a size, and in the process of broadcasting the chart description text, updating the visual attribute of the chart to be displayed corresponding to the chart description text by using the broadcast point includes:
[0033] For each of the target broadcast charts, in the process of broadcasting the broadcast text corresponding to the target broadcast chart, calculating the broadcast size of the target broadcast chart based on the broadcast point position;
[0034] Updating the size of the target broadcast chart from the original size to the broadcast size;
[0035] Based on the broadcast progress of the broadcast text, updating the visual attributes of the chart elements in the target display chart;
[0036] If the broadcast text is finished, the size of the target broadcast chart is restored to the original size.
[0037] Optionally, the visual attribute of the chart element includes color, the broadcast text includes a plurality of key values, and the updating of the visual attribute of the chart element in the target display chart based on the broadcast progress of the broadcast text includes:
[0038] Based on the broadcast progress of the broadcast text, determining the key value currently being broadcast as the target value;
[0039] From the target display chart, determining the chart element corresponding to the target value as the target chart element;
[0040] Changing the color of the target chart element from an original color to a broadcast color, wherein the broadcast color is different from the original color;
[0041] If the key value is finished being reported, the color of the target chart element is restored to the original color.
[0042] Optionally, the obtaining the to-be-displayed data and the to-be-displayed virtual object corresponding to the display request includes:
[0043] Performing intent recognition processing on the display request to obtain a key intent, wherein the key intent includes an object description, a data range, and a chart type corresponding to the data range;
[0044] For each data range, a query request is generated by combining the data range and the architecture information of a preset database;
[0045] querying original display data from the preset data using the query request;
[0046] Generate the data to be displayed by using the original display data and the chart type;
[0047] A virtual object to be displayed that matches the object description is obtained from a preset object library.
[0048] Optionally, the generating the data to be displayed by using the original display data and the chart type includes:
[0049] Extracting chart data from the original display data, and generating a chart to be displayed based on the chart data and the chart type;
[0050] Performing data analysis on the chart data to obtain key data corresponding to the chart data;
[0051] Fusion of the chart data of the chart to be displayed and the key data to generate a report text corresponding to the chart to be displayed;
[0052] The key data and the broadcast text are determined as the chart description text.
[0053] On the other hand, the present invention also provides a virtual object-based chart display device, the device comprising:
[0054] An acquisition module, used to acquire data to be displayed and virtual objects to be displayed corresponding to the display request, wherein the data to be displayed includes a plurality of charts to be displayed and a chart description text corresponding to each of the charts to be displayed;
[0055] A generating module, used for combining all the charts to be displayed to generate a briefing to be displayed;
[0056] A determination module, configured to determine the presentation order and presentation point of each of the to-be-presented charts based on the layout information of the to-be-presented charts in the to-be-presented briefing;
[0057] A display and broadcast module, used for displaying the briefing to be displayed, and controlling the virtual object to be displayed to be at the broadcast point corresponding to the chart to be displayed according to the broadcast order, and broadcasting the chart description text corresponding to the chart to be displayed;
[0058] The visual updating module is used to update the visual attributes of the to-be-displayed chart corresponding to the chart description text by using the broadcasting points during the process of broadcasting the chart description text.
[0059] On the other hand, the present invention also provides an electronic device, including a processor and a memory, wherein the memory stores a plurality of instructions; the processor loads instructions from the memory to execute the steps in any virtual object-based chart display method provided by the present invention.
[0060] On the other hand, the present invention further provides a computer-readable storage medium storing a plurality of instructions, wherein the instructions are suitable for a processor to load to execute the steps in any virtual object-based chart display method provided by the present invention.
[0061] On the other hand, the present invention further provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the steps of any virtual object-based chart display method provided by the present invention.
[0062] The beneficial effects brought about by the technical solution provided by the present invention include at least:
[0063] The present invention can obtain multiple charts to be displayed corresponding to a display request, chart description texts corresponding to each chart to be displayed, and virtual objects to be displayed; combine all the charts to be displayed to automatically generate a briefing to be displayed, which is convenient and quick; use the layout information of the charts to be displayed in the briefing to be displayed to determine the broadcasting order and broadcasting points of the charts to be displayed; display the briefing to be displayed, and control the virtual objects to be displayed to be at the broadcasting points corresponding to the charts to be displayed according to the broadcasting order, and broadcast the corresponding chart description texts, which not only enriches the display method but also realizes accurate and comprehensive interpretation of chart information; in the process of broadcasting the chart description text, use the broadcasting points to update the visual attributes of the chart to be displayed corresponding to the chart description text, so that the display is more vivid and vivid, thereby ensuring the efficient transmission and utilization of chart information. BRIEF DESCRIPTION OF THE DRAWINGS
[0064] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0065] Figure 1 It is a schematic diagram of an application scenario of a virtual object-based chart display method provided by an embodiment of the present invention;
[0066] Figure 2 is a flowchart of a virtual object-based chart display method provided by an embodiment of the present invention;
[0067] Figure 3 is a schematic diagram of determining a broadcast order provided by an embodiment of the present invention;
[0068] Figure 4 is a schematic diagram of visual elements of an updated target broadcast chart provided by an embodiment of the present invention;
[0069] Figure 5 It is a schematic diagram of a virtual object to be displayed moving to the next broadcast point provided by an embodiment of the present invention;
[0070] Figure 6 is a structural schematic diagram of a virtual object-based chart display device provided by an embodiment of the present invention;
[0071] Figure 7 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0072] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0073] Business Intelligence (BI) refers to a tool that converts existing data in an enterprise into knowledge to help the enterprise make business decisions. With the development of artificial intelligence technology, big models have concretized strong data analysis capabilities. Therefore, big models can be used to analyze and mine data to produce corresponding charts and briefings to assist corporate decision-making. The inventor found in the study that the charts currently generated by BI are only directly displayed in the graphical user interface, and users browse the charts to obtain information. This display method is single and may lead to misunderstanding of information due to differences in personal understanding, affecting the transmission and utilization of chart information. Therefore, an embodiment of the present invention provides a chart display method and device based on virtual objects, which can enrich the chart display method while ensuring the efficient transmission and utilization of chart information.
[0074] It is understandable that in the specific implementation of the present invention, data related to user information, etc., needs to obtain user permission or consent, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.
[0075] For example, see Figure 1 , shows a schematic diagram of an application scenario of a diagram display method based on virtual objects. The application scenario may include a terminal 101 and a server 102, and data can be exchanged between the terminal 101 and the server 102 via a network. The terminal 101 may be a mobile phone, a tablet computer, a smart Bluetooth device, a computer, or other devices; the server 102 may be a single server or a server cluster consisting of multiple servers.
[0076] The user can send the corresponding display request to the server 102 through the terminal 101, and the server 102 obtains the corresponding data to be displayed and the virtual object to be displayed based on the display request, wherein the data to be displayed includes multiple charts to be displayed and the chart description text corresponding to each chart to be displayed; combine all the charts to be displayed to generate a briefing to be displayed; determine the broadcasting order and broadcasting points of the charts to be displayed based on the layout information of the charts to be displayed in the briefing to be displayed; display the briefing to be displayed, and control the virtual objects to be displayed to broadcast the chart description text corresponding to the chart to be displayed at the broadcasting points corresponding to the chart to be displayed according to the broadcasting order; in the process of broadcasting the chart description text, use the broadcasting points to update the visual attributes of the chart to be displayed corresponding to the chart description text. As an implementation method, the server 102 can generate a video, which includes the movement of the virtual objects to be displayed and the change of visual attributes, and then send the entire video to the terminal 101, so that the terminal 101 can display the video content through the graphical user interface to achieve efficient transmission of chart information.
[0077] As another implementation, the briefing to be displayed and the virtual object to be displayed may be sent to the terminal 101 together, and the server 102 sends instructions to the terminal 101 to control the movement of the virtual object to be displayed and the change of visual attributes.
[0078] Thus, the briefing to be displayed can be displayed in the graphical user interface on the terminal 101, and the content of each chart to be displayed can be broadcasted through the virtual object to be displayed, so as to facilitate efficient transmission and utilization of chart information.
[0079] In this embodiment, a diagram display method based on virtual objects is provided. Figure 2 As shown, the specific process of the virtual object-based chart display method can be as follows:
[0080] S110: Acquire data to be displayed and virtual objects to be displayed corresponding to the display request, wherein the data to be displayed includes a plurality of charts to be displayed and chart description texts corresponding to the charts to be displayed.
[0081] The display request is a request for triggering the display of a chart, and the display request may include relevant description information of the chart to be displayed. The display request may be initiated by the user, or automatically triggered by other programs. In the embodiment of the present invention, only the user actively initiates the display request as an example for description.
[0082] The display request may be in text form or in voice form, which is not specifically limited here. When a display request is received, the display request will be converted into text form for processing.
[0083] The data to be displayed refers to the data that ultimately needs to be presented. The data to be displayed may include the chart to be displayed and the corresponding chart description text. The chart to be displayed refers to a tool that displays data in a graphical manner, and the chart description text is a text used to explain the chart to be displayed.
[0084] The display methods of the chart to be displayed and the chart description text may be different. For example, the chart to be displayed may be displayed through a display screen, while the chart description text may be displayed through voice. Of course, the chart description text may be displayed through a graphical user interface while being displayed through voice. It should be noted that the graphical user interface is not limited to the display on the terminal device, but may also include a graphical user interface displayed by projection, a virtual space in virtual reality, etc.
[0085] The virtual object to be displayed is a virtual object used to be displayed together with the data to be displayed. The virtual object to be displayed can be a cartoon image or a human figure, and can be set according to actual needs. The chart to be displayed and the virtual object to be displayed can be displayed together in the graphical user interface, and the chart description text of the chart to be displayed can be broadcasted through the virtual object to improve the chart display effect.
[0086] As an implementation method, obtaining the data to be displayed and the virtual object to be displayed corresponding to the display request can be to perform intent recognition processing on the display request to obtain a key intent, where the key intent includes an object description, a data range, and a chart type corresponding to the data range; for each data range, a query request is generated in combination with the data range and the architecture information of a preset database; original display data is queried from the preset data using the query request; the data to be displayed is generated using the original display data and the chart type; and the virtual object to be displayed that matches the object description is obtained from a preset object library.
[0087] After obtaining the display request, the display request can be processed for intent recognition in order to understand the intent of the display request. Optionally, the display request can be input into a pre-trained intent recognition model, which can output key intents in the display request, such as object description, data range, and chart type corresponding to the data range.
[0088] The object description is the description of the virtual object to be displayed in the display request, such as men's formal wear, women's ancient costume, etc. The data range refers to the type of data to be displayed and the time range of the data, such as sales data from March to July. A data range corresponds to a chart type, that is, the data within the data range needs to be displayed using the chart corresponding to the chart type.
[0089] For example, the display request is: Please help me query the order data in the last three months and display it in a bar chart; based on the queried order data, use a pie chart to distinguish the proportion of new and old users, and use formal women to introduce the content. After intent recognition, the extracted key intents can have the object description of formal women; the data range can be the order data in the last three months, and the corresponding chart type is a bar chart; the data range can also be the number of new and old users in the order data, and the corresponding chart type is a pie chart.
[0090] The preset database is a database used to store original display data. The architecture information of the preset database may include the table name, column name, data constraints, etc. of each database table. Using the data range and the architecture information of the preset database, a query request, i.e., an SQL query statement, can be generated. The SQL query statement is then used to capture the corresponding data from the preset database, i.e., the original display data. Then, based on the original display data and the chart type, the data to be displayed is generated.
[0091] The data to be displayed includes the charts to be displayed and the chart description texts corresponding to the charts to be displayed. The charts to be displayed and the chart description texts corresponding to each chart to be displayed can be generated by using the original display data and the chart type.
[0092] As an implementation mode, generating the data to be displayed may be extracting chart data from the original display data, and generating the chart to be displayed based on the chart data and the chart type; performing data analysis processing on the chart data to obtain key data corresponding to the chart data; fusing the chart data of the chart to be displayed and the key data to generate a broadcast text corresponding to the chart to be displayed; and determining the key data and the broadcast text as the chart description text.
[0093] The original display data is usually unprocessed data, and needs to be integrated and processed to extract chart data. For example, the order data queried above is data in days. In order to better display this data, it is necessary to organize the data in months. Therefore, the order data needs to be integrated and calculated on a monthly basis to obtain monthly data.
[0094] The chart type can be used to obtain the corresponding chart template. By filling the chart data into the corresponding chart template, the corresponding chart to be displayed can be obtained. The chart to be displayed can be composed of chart elements. The chart element is each column in the bar chart and each sector in the pie chart. Each chart element corresponds to a piece of data in the chart data. The corresponding relationship can be preset. For example, the number of orders in April is 200, which corresponds to a column in the bar chart.
[0095] The extracted chart data is subjected to data analysis processing, and key data corresponding to the chart data can be obtained therefrom. The data analysis processing may include trend analysis processing, maximum value calculation, minimum value calculation, average value calculation, and the like. The corresponding key data may include data change trend, maximum value, minimum value, average value, and the like. Among them, the trend analysis processing may adopt linear regression or moving average method, which is not specifically limited here.
[0096] After obtaining the key data, the key data and the aforementioned chart data can be combined to generate a report text corresponding to the chart to be displayed. The report text can describe each piece of data in the chart to be displayed in detail so that the user can quickly understand the overall meaning of the chart and the meaning of each piece of data. As an implementation method, a fixed report template can be pre-set, and the report template can be provided with slots corresponding to the key data and chart data. The report text can be obtained by directly filling the key data and chart data into the report template.
[0097] As another implementation, a language model for generating the announcement text may be pre-trained, and the key data and the chart data may be input into the language model to generate the announcement text. The generated announcement text and the key data may together form the chart description text.
[0098] A plurality of candidate virtual objects can be pre-set in the preset object library, and corresponding descriptive words are set for the candidate virtual objects, the similarity between the object description and each descriptive word is calculated, and the candidate virtual object corresponding to the descriptive word with the highest similarity is selected as the virtual object to be displayed.
[0099] S120: Combine all the charts to be displayed to generate a presentation to be displayed.
[0100] By combining the above-generated charts to be displayed together, a briefing to be displayed can be obtained. As an implementation method, a briefing template for the briefing to be displayed can be pre-set, and the charts to be displayed can be filled into the briefing template to generate the briefing to be displayed. As another implementation method, the charts to be displayed can be randomly arranged according to a preset arrangement method to generate a briefing to be displayed. For example, the preset arrangement method can be a horizontal arrangement, and after all the charts to be displayed are arranged horizontally, a briefing to be displayed is obtained.
[0101] Optionally, the sizes of all the charts to be displayed can be set uniformly or randomly; similarly, the spacing between the charts to be displayed can be set to the same value or randomly as needed, which is not specifically limited here.
[0102] S130: Determine the presentation order and presentation point of each of the charts to be presented based on the layout information of the charts to be presented in the briefing to be presented.
[0103] Layout information refers to the arrangement and distribution of the charts to be displayed in the briefing to be displayed. The charts to be displayed can be arranged horizontally from left to right to form a briefing to be displayed, or can be arranged vertically from top to bottom to form a briefing to be displayed. The following will only use the horizontal arrangement from left to right as an example for explanation.
[0104] The presentation order is the order that needs to be followed when explaining the various charts to be displayed in the presentation. The presentation point is the position of the virtual object to be displayed in the presentation when explaining the chart to be displayed through the virtual object to be displayed. For each chart to be displayed in the presentation, its corresponding presentation order and presentation point can be determined.
[0105] As an implementation mode, determining the broadcast order and the broadcast point may be to determine the broadcast order based on the arrangement order of the multiple charts to be displayed in the briefing to be displayed in a preset direction; for each chart to be displayed in the briefing to be displayed, determining the previous chart to be displayed in the preset direction as an adjacent chart; and calculating the broadcast point corresponding to the chart to be displayed based on the distance between the chart to be displayed and the adjacent chart.
[0106] Each chart to be displayed in the briefing to be displayed is arranged according to a certain layout. For example, in the above example, each chart to be displayed can be arranged horizontally from left to right.
[0107] Optionally, when determining the broadcast order according to the arrangement order of the charts to be displayed in a preset direction, a starting position may be determined in the briefing to be displayed according to the preset direction; the chart position of each chart to be displayed in the briefing to be displayed is obtained; the first distance of the chart to be displayed is calculated using the starting position and the chart position; the charts to be displayed are sorted according to the first distance to obtain a broadcast sequence; and the order of the charts to be displayed in the broadcast sequence is used as the broadcast order.
[0108] The preset direction can be set according to actual needs. In the embodiment of the present invention, the preset direction is the direction from left to right in the presentation to be displayed. Using the preset direction, a starting position can be determined from the presentation to be displayed. For example, the left boundary of the presentation to be displayed can be determined first, and then the chart to be displayed closest to the left boundary is used as the boundary chart. A starting area is determined by the left boundary of the presentation to be displayed and the left boundary of the boundary chart. Any position in the starting area can be used as the starting position. Figure 3 , shows a schematic diagram of determining the broadcast order, where the dashed box is the starting area and point A is the starting position. Starting from the starting position, draw a straight line perpendicular to the left edge of the presentation to be displayed, and take the intersection of the left edge of each chart to be displayed and the straight line as the chart position. For example, Figure 3 There are two charts in the figure, point B is the chart position corresponding to the bar chart, and point C is the chart position corresponding to the pie chart.
[0109] The chart position and the starting position are coordinate positions in the same coordinate system, and then based on the chart position and the starting position, the straight-line distance between the starting position and the chart to be displayed is calculated and recorded as the first distance. The larger the first distance, the farther the chart to be displayed is from the starting position in the preset direction, and the smaller the first distance, the closer the chart to be displayed is from the starting position in the preset direction.
[0110] Then, the charts to be displayed can be sorted in order from the smallest to the largest first distance to obtain a broadcast sequence, and the order of the charts to be displayed in the broadcast sequence is the broadcast order. Figure 3 The length of line segment AC is the first distance between the pie chart and the starting position, and the length of line segment AB is the first distance between the bar chart and the starting position. Obviously, the length of line segment AC is greater than that of line segment AB, so Figure 3 The order of presentation of the charts to be displayed is bar chart, pie chart.
[0111] For each chart to be displayed in the presentation to be displayed, the previous chart to be displayed in the preset direction can be determined as an adjacent chart. Then the distance between the adjacent chart and the chart to be displayed can be calculated, and the broadcast point corresponding to the chart to be displayed can be calculated based on the distance.
[0112] For the first chart to be displayed in the preset direction, the position of the left edge of the presentation to be displayed can be used as the position of the corresponding adjacent chart to calculate the spacing. The spacing can be calculated by the chart position corresponding to the chart to be displayed and the chart position corresponding to the adjacent chart. For example, Figure 3 In the example, the spacing between a bar chart and the adjacent chart is the length of line segment AB, and the spacing between a bar chart and a pie chart is the length of line segment BC.
[0113] The report point corresponding to the chart to be displayed can be calculated by using the spacing between the chart to be displayed and the adjacent chart. For example, for each chart to be displayed, the spacing between the chart to be displayed and the adjacent chart is calculated; the difference between the spacing and the length of the adjacent chart in the preset direction is calculated to obtain the middle distance; if the middle distance is less than the preset distance, the spacing between the chart to be displayed and the adjacent chart is adjusted until the middle distance is not less than the preset distance; if the middle distance is not less than the preset distance, the report point is determined from the right border of the adjacent chart in the preset direction.
[0114] like Figure 3In the figure, the adjacent chart of the pie chart is a bar chart. When calculating the middle distance, the length of the line segment BC can be calculated, and then the length of the bar chart can be subtracted to obtain the middle distance. The preset distance can be a preset minimum middle distance. The preset distance can ensure that there is enough space when the size of the chart to be displayed is subsequently changed. The preset distance can be set according to actual needs and is not specifically limited here. If the middle distance is not less than the preset distance, the spacing between the chart to be displayed and the adjacent chart is readjusted until the middle distance is not less than the preset distance. If the middle distance is not less than the preset distance, the broadcast point is determined on the right border of the adjacent chart.
[0115] That is, when the middle distance is greater than or equal to the preset distance, the broadcast point can be directly determined on the right border of the adjacent chart. Figure 3 In the example, the adjacent chart of the pie chart is a bar chart, and the right boundary of the bar chart can be recorded as line segment DE, and the corresponding report point of the pie chart can be determined on line segment DE. As an implementation method, in order to make the display of the virtual object to be displayed more reasonable and beautiful, the intersection of the right boundary of the adjacent chart and the lower boundary of the brief to be displayed can be used as the report point. That is, the intersection E of the line segment DE and the lower boundary of the brief to be displayed is determined as the report point of the pie chart.
[0116] S140: Display the briefing to be displayed, and control the virtual object to be displayed to broadcast the chart description text corresponding to the chart to be displayed at the broadcast point corresponding to the chart to be displayed according to the broadcast order.
[0117] After determining the broadcasting point and broadcasting order, the briefing to be displayed and the virtual object to be displayed can be displayed together in the graphical user interface of the terminal. While displaying the briefing to be displayed, the virtual object to be displayed can be controlled to be displayed at the broadcasting point corresponding to the chart to be displayed according to the broadcasting order, and the chart description text corresponding to the chart to be displayed can be broadcast. By broadcasting the chart description text, the chart information can be accurately and comprehensively conveyed to the user, avoiding the user from missing or misunderstanding the chart information.
[0118] As an implementation method, this step may include: determining a target broadcast chart from the multiple charts to be displayed according to the broadcast order; determining a target expression from an expression library based on key data corresponding to the target broadcast chart; controlling the virtual object to be displayed to broadcast the broadcast text corresponding to the target broadcast chart with the target expression at the playback point corresponding to the target broadcast chart; if the broadcast text corresponding to the target broadcast chart has been broadcast, determining the next target broadcast chart based on the broadcast order, and returning to execute the step of determining the target expression from the expression library based on the key data corresponding to the target broadcast chart, until all charts to be displayed are used as target broadcast charts.
[0119] For multiple charts to be displayed, a target broadcast chart can be determined according to the broadcast order. For example, the first chart to be displayed that ranks first in the broadcast order can be determined as the target broadcast chart. The target broadcast chart is then processed.
[0120] Each chart to be displayed has a corresponding chart description text, which can include key data and broadcast text. Among them, key data can include data change trends, maximum values, minimum values, average values, etc., and the broadcast text is the text that introduces the chart to be displayed, which can also include key data.
[0121] By using the data type of the data in the target broadcast chart and its corresponding key data, the target expression can be determined from the pre-set expression library. The target expression is the expression that the virtual object to be displayed should have when broadcasting. As an implementation method, when determining the target expression, the data change trend in the key data can be first obtained, and the first emotion corresponding to the data change trend can be determined; then the second emotion can be determined based on the data type; the first emotion and the second emotion can be integrated to determine the target emotion; and then the target expression corresponding to the target emotion can be determined.
[0122] Data change trends can usually include three types, namely, an upward trend, a downward trend, or a stable trend. The upward trend can be set as a positive emotion, the downward trend can be set as a negative emotion, and the stable trend can be set as a neutral emotion in advance. Based on this setting, the first emotion can be obtained. The data type refers to the type of specific data displayed in the chart to be displayed. Common types may include order type, activity type, return type, etc. These data types can be associated with positive emotions, negative emotions, etc. in advance. For example, the data type with more data, the better it is can be a positive emotion, and the data type with more data, the worse it is can be a negative emotion. Based on this pre-setting, the second emotion corresponding to the data type can be determined.
[0123] If the first emotion and the second emotion are consistent, the target emotion is determined to be a positive emotion; if the first emotion and the second emotion are inconsistent and the first emotion is a neutral emotion, the target emotion is determined to be a neutral emotion; if the first emotion and the second emotion are inconsistent and the first emotion is not a neutral emotion, the target emotion is determined to be a negative emotion.
[0124] For example, if the number of orders is increasing, the first emotion and the second emotion are consistent, then the target emotion is positive. For another example, if the number of orders is decreasing, the first emotion and the second emotion are inconsistent, and the first emotion is not neutral, then the target emotion is negative.
[0125] There are multiple preset expressions in the expression library, each of which is associated with an emotion. Using the target emotion, the preset expressions associated with the target expression in the expression library can be used as candidate expressions, and then an expression can be randomly selected from the candidate expressions as the target expression.
[0126] After determining the target expression, the virtual object to be displayed can be controlled to be at the broadcast point corresponding to the target broadcast chart, and the broadcast text corresponding to the target broadcast chart can be broadcasted with the target expression. In addition, in order to make the broadcast more vivid, a target tone that matches the target expression can also be determined. For example, if the target expression is an expression corresponding to a positive emotion, the target tone can be brisk. For another example, if the target expression is an expression corresponding to a negative emotion, the target tone can be relatively low.
[0127] If the broadcast text corresponding to the target broadcast chart has been broadcasted, the next target broadcast chart can be determined based on the broadcast order, and the above operations can be continued for the target broadcast chart until all charts to be displayed are determined as target broadcast charts.
[0128] It should be noted that after determining the next target broadcast chart, the virtual object to be displayed can be moved from the current position to the broadcast point corresponding to the next target broadcast chart. As an implementation method, the virtual object to be displayed can be controlled to move from the current position to the next broadcast point. As another implementation method, the virtual object to be displayed can be controlled to disappear from the current position and appear at the next broadcast point.
[0129] S150. In the process of broadcasting the chart description text, the visual attributes of the chart to be displayed corresponding to the chart description text are updated using the broadcasting points.
[0130] In the process of broadcasting the text in the chart description text, in order to make the broadcast content and the visually displayed content have an echoing relationship to improve the overall chart display effect, the visual attributes of the corresponding chart to be displayed can be updated based on the broadcast point.
[0131] Visual attributes refer to the attributes that can be captured by human vision in the chart to be displayed, such as color, size, etc. For each target broadcast chart, in the process of broadcasting the broadcast text corresponding to the target broadcast chart, the size of the target broadcast chart can be updated using the broadcast points, so as to highlight the target broadcast chart in the briefing to be displayed. Specifically, for each of the target broadcast charts, in the process of broadcasting the broadcast text corresponding to the target broadcast chart, the broadcast size of the target broadcast chart is calculated based on the broadcast points; the size of the target broadcast chart is updated from the original size to the broadcast size; based on the broadcast progress of the broadcast text, the visual attributes of the chart elements in the target display chart are updated; if the broadcast text is finished, the size of the target broadcast chart is restored to the original size.
[0132] Generally, in order to make the target broadcast chart stand out in the presentation to be presented, the size of the target broadcast chart may be changed. The change may include enlarging or reducing the size. In the embodiment of the present invention, only enlarging the size is used as an example for description.
[0133] As an implementation method, when the broadcast text corresponding to the target broadcast chart is broadcasted, the virtual object to be displayed is at the broadcast point corresponding to the target broadcast chart. In order to avoid the enlarged target broadcast chart blocking the virtual object to be displayed, the broadcast size can be calculated based on the broadcast point. The broadcast size is the size of the enlarged target broadcast chart.
[0134] When calculating the broadcast size, the original size of the target broadcast chart can be obtained, and the original size includes length and width; the first length between the target broadcast chart and the broadcast point is calculated, and the difference between the length and the specified length is calculated to obtain the second length. The length in the broadcast size can be obtained by adding the second length to the length in the original size, and then the width in the broadcast size is calculated using the ratio of the length and width in the original size to obtain the broadcast size, and then the size of the target broadcast chart can be updated from the original size to the broadcast size.
[0135] The specified length is the length of the virtual object to be displayed in the preset direction. In determining the broadcast point, a preset distance is used. The preset distance is usually greater than the specified length to ensure that there is enough space for enlarging the target broadcast chart. Optionally, if the preset distance is not greater than the specified length, enlarging the target broadcast chart at this time will result in occluding the virtual object to be displayed. At this time, the size of the target broadcast chart can be enlarged by reducing the size of other charts to be displayed except the target broadcast chart.
[0136] For example, see Figure 4, showing a schematic diagram of visual elements of updating a target broadcast chart. The target broadcast chart is a bar chart, the broadcast point of the bar chart is the lower left corner of the briefing to be displayed, and the virtual object to be displayed is displayed at the broadcast point. The size and Figure 3 Compared with the original, the size is significantly larger, so that users can quickly know the target broadcast chart that is currently being broadcast.
[0137] The broadcast text may include explanation content corresponding to each data in the target broadcast chart, and the visual attributes of the corresponding chart elements in the target broadcast chart may be updated as the broadcast text is broadcast. The visual attributes of the chart elements may include color and size. In the embodiment of the present invention, color is used as an example for explanation.
[0138] The broadcast text may include multiple key values, which are the values displayed by the chart elements in the target broadcast chart. Optionally, based on the broadcast progress of the broadcast text, the key value currently being broadcasted may be determined as the target value; from the target display chart, the chart element corresponding to the target value may be determined as the target chart element; the color of the target chart element may be changed from the original color to the broadcast color, and the broadcast color is different from the original color; if the broadcast of the key value is completed, the color of the target chart element may be restored to the original color.
[0139] As the text is reported, each key value will be reported. The currently reported key value can be determined as the target value, and then the chart element corresponding to the target value can be determined as the target chart element. The original color of the target chart element is obtained, that is, the color of the target chart element before the color is changed. Any color different from the original color is used as the reported color, and then the color of the target chart element is changed to the reported color. When the key value is reported, the color of the target chart element is restored to the original color. For example, see Figure 4 , the data for April is currently being reported, the column corresponding to April can be changed from light gray to dark gray to indicate that the data for April is currently being reported.
[0140] It should be noted that after the chart description text corresponding to the bar chart is broadcasted, the virtual object to be displayed will move to the broadcast point corresponding to the next target broadcast chart, that is, point E, according to the broadcast order. Figure 5 , showing a schematic diagram of the virtual object to be displayed moving to the next broadcast point. At this time, the target broadcast chart is a pie chart, the size of the pie chart is enlarged, and the size of the bar chart is restored to its corresponding original size.
[0141] The virtual object-based chart display solution provided by the embodiment of the present invention can be applied to various scenarios where charts need to be displayed. For example, in the data analysis scenario, the user can directly input the data to be analyzed, and then obtain the corresponding chart information, and can explain the chart in detail through the virtual object. As the explanation content changes, the virtual object chart can move based on the change, making it more vivid and vivid, thereby ensuring the efficient transmission and utilization of chart information.
[0142] As can be seen from the above, the embodiment of the present invention can directly generate a briefing containing corresponding data according to the display request input by the user, and display and broadcast the briefing in combination with the virtual object. During the display process, as the text of the broadcast changes, the position of the virtual object can be automatically changed and the visual attributes of the corresponding elements in the chart can be changed, so that the user can intuitively know the content of the current broadcast. This method can automatically generate charts, which is faster and more accurate. The use of virtual object broadcasts to assist in the display of charts not only enriches the display method but also facilitates users to accurately understand the content of the chart, thereby ensuring the efficient transmission and use of chart information.
[0143] In order to better implement the above method, the embodiment of the present invention further provides a virtual object-based chart display device, which can be integrated in an electronic device, and the electronic device can be a terminal, a server, etc. Among them, the terminal can be a mobile phone, a tablet computer, a smart Bluetooth device, a laptop, a personal computer, etc.; the server can be a single server or a server cluster composed of multiple servers.
[0144] For example, in this embodiment, the method of the embodiment of the present invention will be described in detail by taking the virtual object-based chart display device specifically integrated in the server as an example.
[0145] For example, Figure 6 As shown, the virtual object-based chart display device 200 may include an acquisition module 210 , a generation module 220 , a determination module 230 , a display and broadcast module 240 , and a visual update module 250 .
[0146] An acquisition module 210 is used to acquire data to be displayed and virtual objects to be displayed corresponding to the display request, wherein the data to be displayed includes a plurality of charts to be displayed and a chart description text corresponding to each of the charts to be displayed;
[0147] A generating module 220, used for combining all the charts to be displayed to generate a briefing to be displayed;
[0148] A determination module 230, configured to determine the presentation order and presentation point of each of the to-be-presented charts based on the layout information of the to-be-presented charts in the to-be-presented briefing;
[0149] The display and broadcasting module 240 is used to display the briefing to be displayed, and control the virtual object to be displayed to broadcast the chart description text corresponding to the chart to be displayed at the broadcast point corresponding to the chart to be displayed according to the broadcasting order;
[0150] The visual updating module 250 is used to update the visual attributes of the to-be-displayed chart corresponding to the chart description text by using the broadcasting points during the process of broadcasting the chart description text.
[0151] In some embodiments, the determination module 230 is specifically used to: determine the broadcasting order according to the arrangement order of the multiple charts to be displayed in the presentation to be displayed in a preset direction;
[0152] For each chart to be displayed in the briefing to be displayed, determining the previous chart to be displayed in the preset direction of the chart to be displayed as an adjacent chart;
[0153] Based on the distance between the chart to be displayed and the adjacent chart, a report point corresponding to the chart to be displayed is calculated.
[0154] In some embodiments, the determination module 230 is specifically configured to:
[0155] Determine a starting position in the presentation to be displayed according to a preset direction;
[0156] Obtaining the chart position of each chart to be displayed in the briefing to be displayed;
[0157] Calculating a first distance of the chart to be displayed using the starting position and the chart position;
[0158] Sorting the charts to be displayed according to the first distance to obtain a broadcast sequence;
[0159] The order of the to-be-displayed charts in the broadcast sequence is used as the broadcast order.
[0160] In some embodiments, the determination module 230 is specifically configured to:
[0161] For each chart to be displayed, calculating the distance between the chart to be displayed and an adjacent chart;
[0162] Calculating the difference between the spacing and the length of the adjacent charts in a preset direction to obtain an intermediate distance;
[0163] If the middle distance is less than the preset distance, adjusting the distance between the chart to be displayed and the adjacent chart until the middle distance is not less than the preset distance;
[0164] If the middle distance is not less than the preset distance, the broadcast point is determined from the right boundary of the adjacent chart in the preset direction.
[0165] In some embodiments, the chart description text includes key data and broadcast text, and the display broadcast module 240 is specifically used to:
[0166] Determining a target broadcast chart from the plurality of charts to be displayed according to the broadcast order;
[0167] Determine a target expression from an expression library based on the data type of the data in the target broadcast chart and the key data corresponding to the target broadcast chart;
[0168] Control the virtual object to be displayed to broadcast the broadcast text corresponding to the target broadcast chart with the target expression at the broadcast point corresponding to the target broadcast chart;
[0169] If the broadcast text corresponding to the target broadcast chart has been broadcasted, the next target broadcast chart is determined based on the broadcast order, and the step of determining the target expression from the expression library based on the key data corresponding to the target broadcast chart is returned to execution until all charts to be displayed are used as target broadcast charts.
[0170] In some embodiments, the visual attributes of the chart to be displayed include size, and the visual update module 250 is specifically used to:
[0171] For each of the target broadcast charts, in the process of broadcasting the broadcast text corresponding to the target broadcast chart, calculating the broadcast size of the target broadcast chart based on the broadcast point position;
[0172] Updating the size of the target broadcast chart from the original size to the broadcast size;
[0173] Based on the broadcast progress of the broadcast text, updating the visual attributes of the chart elements in the target display chart;
[0174] If the broadcast text is finished, the size of the target broadcast chart is restored to the original size.
[0175] In some embodiments, the visual attributes of the chart elements include colors, and the visual update module 250 is specifically configured to:
[0176] Based on the broadcast progress of the broadcast text, determining the key value currently being broadcast as the target value;
[0177] From the target display chart, determining the chart element corresponding to the target value as the target chart element;
[0178] Changing the color of the target chart element from an original color to a broadcast color, wherein the broadcast color is different from the original color;
[0179] If the key value is finished being reported, the color of the target chart element is restored to the original color.
[0180] In some embodiments, the acquisition module 210 is specifically used to:
[0181] Performing intent recognition processing on the display request to obtain a key intent, wherein the key intent includes an object description, a data range, and a chart type corresponding to the data range;
[0182] For each data range, a query request is generated by combining the data range and the architecture information of a preset database;
[0183] querying original display data from the preset data using the query request;
[0184] Generate the data to be displayed by using the original display data and the chart type;
[0185] A virtual object to be displayed that matches the object description is obtained from a preset object library.
[0186] In some embodiments, the acquisition module 210 is specifically used to:
[0187] Extracting chart data from the original display data, and generating a chart to be displayed based on the chart data and the chart type;
[0188] Performing data analysis on the chart data to obtain key data corresponding to the chart data;
[0189] Fusion of the chart data of the chart to be displayed and the key data to generate a report text corresponding to the chart to be displayed;
[0190] The key data and the broadcast text are determined as the chart description text.
[0191] In specific implementation, the above modules can be implemented as independent entities, or can be arbitrarily combined and implemented as the same or several entities. The specific implementation of the above modules can be found in the previous method embodiments, which will not be repeated here.
[0192] As can be seen from the above, the virtual object-based chart display device provided in this embodiment can obtain multiple charts to be displayed corresponding to the display request, the chart description text corresponding to each chart to be displayed, and the virtual object to be displayed; combine all the charts to be displayed to automatically generate a briefing to be displayed, which is convenient and fast; use the layout information of the charts to be displayed in the briefing to be displayed to determine the broadcast order and broadcast points of the charts to be displayed; display the briefing to be displayed, and control the virtual objects to be displayed at the broadcast points corresponding to the charts to be displayed according to the broadcast order, and broadcast the corresponding chart description text, which not only enriches the display method but also realizes accurate and comprehensive interpretation of chart information; in the process of broadcasting the chart description text, use the broadcast points to update the visual attributes of the chart to be displayed corresponding to the chart description text, so that the display is more vivid, thereby ensuring the efficient transmission and utilization of chart information.
[0193] The embodiment of the present invention further provides an electronic device, which may be a terminal, a server, or the like. The terminal may be a mobile phone, a tablet computer, a smart Bluetooth device, a laptop computer, a personal computer, a vehicle-mounted device, a virtual reality device, or the like; the server may be a single server or a server cluster composed of multiple servers, or the like.
[0194] In some embodiments, the virtual object-based chart display device can also be integrated into multiple electronic devices. For example, the virtual object-based chart display device can be integrated into multiple servers, and the virtual object-based chart display method of the present invention can be implemented by multiple servers.
[0195] In this embodiment, the electronic device of this embodiment is a server as an example for detailed description, for example, Figure 7 As shown, it shows a schematic diagram of the structure of an electronic device involved in an embodiment of the present invention, specifically:
[0196] The electronic device may include components such as a processor 310 with one or more processing cores, a memory 320 with one or more computer-readable storage media, a power supply 330, an input module 340, and a communication module 350. Those skilled in the art will appreciate that Figure 4 The electronic device structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0197] The processor 310 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire electronic device. It executes various functions of the electronic device and processes data by running or executing software programs and / or modules stored in the memory 320, and calling data stored in the memory 320. In some embodiments, the processor 310 may include one or more processing cores; in some embodiments, the processor 310 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 310.
[0198] The memory 320 can be used to store software programs and modules. The processor 310 executes various functional applications and data processing by running the software programs and modules stored in the memory 320. The memory 320 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 320 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 320 may also include a memory controller to provide the processor 310 with access to the memory 320.
[0199] The electronic device also includes a power supply 330 for supplying power to various components. In some embodiments, the power supply 330 can be logically connected to the processor 310 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. The power supply 330 can also include any components such as one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, and power status indicators.
[0200] The electronic device may further include an input module 340, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls.
[0201] The electronic device may further include a communication module 350. In some embodiments, the communication module 350 may include a wireless module. The electronic device may perform short-range wireless transmission through the wireless module of the communication module 350, thereby providing the user with wireless broadband Internet access. For example, the communication module 350 may be used to help the user send and receive, browse web pages, and access streaming media.
[0202] Although not shown, the electronic device may further include a display unit, etc., which will not be described in detail herein. Specifically in this embodiment, the processor 310 in the electronic device will load the executable files corresponding to the processes of one or more application programs into the memory 320 according to the following instructions, and the processor 310 will run the application programs stored in the memory 320, thereby implementing the steps in the methods of the embodiments of the present invention.
[0203] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0204] As can be seen from the above, the electronic device provided by the present invention can obtain multiple charts to be displayed corresponding to the display request, the chart description text corresponding to each chart to be displayed, and the virtual object to be displayed; combine all the charts to be displayed to automatically generate a briefing to be displayed, which is convenient and fast; use the layout information of the charts to be displayed in the briefing to be displayed to determine the broadcast order and broadcast points of the charts to be displayed; display the briefing to be displayed, and control the virtual objects to be displayed at the broadcast points corresponding to the charts to be displayed according to the broadcast order, and broadcast the corresponding chart description text, which not only enriches the display method but also realizes accurate and comprehensive interpretation of chart information; in the process of broadcasting the chart description text, use the broadcast points to update the visual attributes of the chart to be displayed corresponding to the chart description text, so that the display is more vivid, thereby ensuring the efficient transmission and utilization of chart information.
[0205] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.
[0206] To this end, an embodiment of the present invention provides a computer-readable storage medium, in which a plurality of instructions are stored. The instructions can be loaded by a processor to execute the steps in any virtual object-based chart display method provided by the embodiment of the present invention.
[0207] The storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0208] According to one aspect of the present invention, a computer program product or computer program is provided, the computer program product or computer program including a computer program / instruction, the computer program / instruction being stored in a computer-readable storage medium. A processor of an electronic device reads the computer program / instruction from the computer-readable storage medium, and the processor executes the computer program / instruction, so that the electronic device executes the method provided in various optional implementations of the virtual object-based chart display provided in the above-mentioned embodiments.
[0209] Since the instructions stored in the storage medium can execute the steps in any virtual object-based chart display method provided in the embodiments of the present invention, the beneficial effects that can be achieved by any virtual object-based chart display method provided in the embodiments of the present invention can be achieved. Please refer to the previous embodiments for details and will not be repeated here.
[0210] The above is a detailed introduction to a virtual object-based chart display method and device provided in an embodiment of the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for technical personnel in this field, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A diagram display method based on virtual objects, characterized in that: The method comprises: Acquire data to be displayed and virtual objects to be displayed corresponding to the display request, wherein the data to be displayed includes a plurality of charts to be displayed and a chart description text corresponding to each of the charts to be displayed; Combining all the charts to be displayed to generate a briefing to be displayed; Based on the layout information of the to-be-displayed charts in the to-be-displayed briefing, determining the broadcasting order and broadcasting point of each to-be-displayed chart, including: determining a starting position in the to-be-displayed briefing according to a preset direction; obtaining the chart position of each to-be-displayed chart in the to-be-displayed briefing; calculating the first distance of the to-be-displayed chart using the starting position and the chart position; sorting the to-be-displayed charts according to the first distance to obtain a broadcasting sequence; using the order of the to-be-displayed charts in the broadcasting sequence as the broadcasting order; for each to-be-displayed chart in the to-be-displayed briefing, determining the previous to-be-displayed chart in the preset direction of the to-be-displayed chart as an adjacent chart; for each to-be-displayed chart, calculating the spacing between the to-be-displayed chart and the adjacent chart; calculating the difference between the spacing and the length of the adjacent chart in the preset direction to obtain the middle distance; if the middle distance is less than the preset distance, adjusting the spacing between the to-be-displayed chart and the adjacent chart until the middle distance is not less than the preset distance; if the middle distance is not less than the preset distance, determining the broadcasting point from the right border of the adjacent chart in the preset direction; Display the briefing to be displayed, and control the virtual object to be displayed at the display point corresponding to the chart to be displayed according to the broadcasting order, and broadcast the chart description text corresponding to the chart to be displayed; In the process of broadcasting the chart description text, the visual attributes of the to-be-displayed chart corresponding to the chart description text are updated using the broadcasting points.
2. The method according to claim 1, characterized in that The chart description text includes key data and a broadcast text, and the displaying of the briefing to be displayed and the control of the virtual object to be displayed at the broadcast point corresponding to the chart to be displayed according to the broadcast order to broadcast the chart description text corresponding to the chart to be displayed include: Determining a target broadcast chart from the plurality of charts to be displayed according to the broadcast order; Determine a target expression from an expression library based on the data type of the data in the target broadcast chart and the key data corresponding to the target broadcast chart; Control the virtual object to be displayed to broadcast the broadcast text corresponding to the target broadcast chart with the target expression at the broadcast point corresponding to the target broadcast chart; If the broadcast text corresponding to the target broadcast chart has been broadcasted, the next target broadcast chart is determined based on the broadcast order, and the process returns to the step of determining the target expression from the expression library based on the key data corresponding to the target broadcast chart, until all charts to be displayed are used as target broadcast charts.
3. The method according to claim 2, characterized in that The visual attribute of the chart to be displayed includes a size, and in the process of broadcasting the chart description text, updating the visual attribute of the chart to be displayed corresponding to the chart description text by using the broadcast point includes: For each of the target broadcast charts, in the process of broadcasting the broadcast text corresponding to the target broadcast chart, calculating the broadcast size of the target broadcast chart based on the broadcast point position; Updating the size of the target broadcast chart from the original size to the broadcast size; Based on the broadcast progress of the broadcast text, updating the visual attributes of the chart elements in the target broadcast chart; If the broadcast text is finished, the size of the target broadcast chart is restored to the original size.
4. The method according to claim 3, characterized in that The visual attribute of the chart element includes color, the report text includes a plurality of key values, and the updating of the visual attribute of the chart element in the target report chart based on the report progress of the report text includes: Based on the reporting progress of the reporting text, determining the key value currently being reported as the target value; From the target broadcast chart, determining the chart element corresponding to the target value as the target chart element; Changing the color of the target chart element from an original color to a broadcast color, wherein the broadcast color is different from the original color; If the key value is finished being reported, the color of the target chart element is restored to the original color.
5. The method according to claim 1, characterized in that The step of obtaining the data to be displayed and the virtual object to be displayed corresponding to the display request includes: Performing intent recognition processing on the display request to obtain a key intent, wherein the key intent includes an object description, a data range, and a chart type corresponding to the data range; For each data range, a query request is generated by combining the data range and the architecture information of a preset database; querying original display data from the preset data using the query request; Generate the data to be displayed by using the original display data and the chart type; A virtual object to be displayed that matches the object description is obtained from a preset object library.
6. The method according to claim 5, characterized in that The step of generating the data to be displayed by using the original display data and the chart type includes: Extracting chart data from the original display data, and generating a chart to be displayed based on the chart data and the chart type; Performing data analysis on the chart data to obtain key data corresponding to the chart data; Fusion of the chart data of the chart to be displayed and the key data to generate a report text corresponding to the chart to be displayed; The key data and the broadcast text are determined as the chart description text.
7. A diagram display device based on virtual objects, used to implement the method according to any one of claims 1 to 6, characterized in that: The device comprises: An acquisition module, used to acquire data to be displayed and virtual objects to be displayed corresponding to the display request, wherein the data to be displayed includes a plurality of charts to be displayed and a chart description text corresponding to each of the charts to be displayed; A generating module, used for combining all the charts to be displayed to generate a briefing to be displayed; A determination module, for determining the presentation order and presentation point of each chart to be displayed based on the layout information of the chart to be displayed in the briefing to be displayed, including: determining a starting position in the briefing to be displayed according to a preset direction; obtaining the chart position of each chart to be displayed in the briefing to be displayed; calculating the first distance of the chart to be displayed using the starting position and the chart position; sorting the charts to be displayed according to the first distance to obtain a presentation sequence; using the order of the charts to be displayed in the presentation sequence as the presentation order; for each chart to be displayed in the briefing to be displayed, determining the previous chart to be displayed in the preset direction of the chart to be displayed as an adjacent chart; for each chart to be displayed, calculating the spacing between the chart to be displayed and the adjacent chart; calculating the difference between the spacing and the length of the adjacent chart in the preset direction to obtain the middle distance; if the middle distance is less than the preset distance, adjusting the spacing between the chart to be displayed and the adjacent chart until the middle distance is not less than the preset distance; if the middle distance is not less than the preset distance, determining the presentation point from the right border of the adjacent chart in the preset direction; A display and broadcast module, used for displaying the briefing to be displayed, and controlling the virtual object to be displayed to be at the broadcast point corresponding to the chart to be displayed according to the broadcast order, and broadcasting the chart description text corresponding to the chart to be displayed; The visual updating module is used to update the visual attributes of the to-be-displayed chart corresponding to the chart description text by using the broadcasting points during the process of broadcasting the chart description text.
Citation Information
Patent Citations
Information broadcast video generation method and device, equipment and storage medium
CN117061785A
Chart generation method and device, equipment and storage medium
CN117851457A
Video generation method and device, computer equipment and storage medium
CN118052912A