Card generation method and device, electronic equipment and storage medium

By obtaining and loading card generation data generated by real-time network data to card templates, the problem of unintuitive information display is solved, and the intuitive display of real-time network data and user-friendly information viewing experience is realized.

CN119440684APending Publication Date: 2025-02-14GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202310968846.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-02
Publication Date
2025-02-14

AI Technical Summary

Technical Problem

The existing information display method is not intuitive enough to display information, and it is difficult to effectively display real-time network data.

Method used

By obtaining card generation data in a specified data format generated based on real-time network data and loading it into the corresponding card template to generate target cards, realizing intuitive display of real-time network data.

Benefits of technology

Real-time network data is displayed in the form of cards, which improves the user's information viewing experience and facilitates users to quickly obtain the required information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119440684A_ABST
    Figure CN119440684A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a card generation method and device, electronic equipment and a storage medium. The method comprises the following steps: acquiring card generation data, wherein the card generation data is data in a specified data format generated based on real-time network data; and loading the card generation data into a corresponding card template to generate a target card. By means of the mode, the real-time network data can be displayed in a card mode, and a user can check the real-time network data conveniently.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of computer technology, and specifically relates to a card generation method, device, electronic device and storage medium. Background Art

[0002] With the rapid development of the Internet, users can view various types of information provided by various applications through electronic devices. However, the related information display methods are not intuitive enough. Summary of the invention

[0003] In view of the above problems, the present application proposes a card generation method, device, electronic device and storage medium to improve the above problems.

[0004] In a first aspect, an embodiment of the present application provides a card generation method, the method comprising: obtaining card generation data, the card generation data being data in a specified data format generated based on real-time network data; loading the card generation data into a corresponding card template to generate a target card.

[0005] In a second aspect, an embodiment of the present application provides a card generation device, which includes: a data acquisition unit, used to acquire card generation data, wherein the card generation data is data in a specified data format generated based on real-time network data; and a card generation unit, used to load the card generation data into a corresponding card template to generate a target card.

[0006] In a third aspect, an embodiment of the present application provides an electronic device, comprising one or more processors and a memory; one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the above-mentioned method.

[0007] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a program code is stored, wherein the above method is executed when the program code is run.

[0008] The embodiment of the present application provides a card generation method, device, electronic device and storage medium. Card generation data is obtained, and the card generation data is data in a specified data format generated based on real-time network data, and then the card generation data is loaded into a corresponding card template to generate a target card. Through the above method, real-time network data can be displayed in the form of a card, which is convenient for users to view. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] In order to more clearly illustrate the technical solutions in the embodiments of the present application, 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 application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0010] Figure 1 A flowchart of a card generation method proposed in an embodiment of the present application is shown;

[0011] Figure 2 A schematic diagram of a first scenario in an embodiment of the present application is shown;

[0012] Figure 3 A schematic diagram of a second scenario in an embodiment of the present application is shown;

[0013] Figure 4 A schematic diagram of a third scenario in an embodiment of the present application is shown;

[0014] Figure 5 A schematic diagram showing a stacked display of multiple target cards in one embodiment of the present application is shown;

[0015] Figure 6 A schematic diagram showing a plurality of target cards after switching of the stacked display in one embodiment of the present application is shown;

[0016] Figure 7 A flowchart of a card generation method proposed in another embodiment of the present application is shown;

[0017] Figure 8 A schematic diagram of a target card in another embodiment of the present application is shown;

[0018] Fig. 9 A schematic diagram of a target card in another embodiment of the present application is shown;

[0019] Fig.10 A schematic diagram of a target card in another embodiment of the present application is shown;

[0020] Fig.11 A schematic diagram of a target card in another embodiment of the present application is shown;

[0021] Fig.12 A schematic diagram of a target card in another embodiment of the present application is shown;

[0022] Fig.13 A schematic diagram of a target card in another embodiment of the present application is shown;

[0023] Fig.14 A schematic diagram of a target card in another embodiment of the present application is shown;

[0024] Fig.15 A schematic diagram of a target card in another embodiment of the present application is shown;

[0025] Fig.16 A schematic diagram of a target card in another embodiment of the present application is shown;

[0026] Fig.17 A flowchart of a card generation method proposed in another embodiment of the present application is shown;

[0027] Fig.18 A schematic diagram showing a method of inputting keywords in yet another embodiment of the present application is shown;

[0028] Fig.19 A schematic diagram showing a target card generated in yet another embodiment of the present application is shown;

[0029] Fig. 20 A schematic diagram of inputting a voice control instruction in another embodiment of the present application is shown;

[0030] Fig.21 A structural block diagram of a card generating device proposed in an embodiment of the present application is shown;

[0031] Fig. 22 A structural block diagram of an electronic device for executing a card generation method according to an embodiment of the present application is shown;

[0032] Fig.23 A storage unit in an embodiment of the present application is shown for storing or carrying a program code for implementing a card generation method according to an embodiment of the present application. DETAILED DESCRIPTION

[0033] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0034] With the rapid development of the Internet, users can view various types of information provided by various applications through electronic devices. The inventor found in the study of related information display methods that when displaying information, the information is generally displayed directly on the search interface.

[0035] Therefore, the inventor proposes the card generation method, device, electronic device and storage medium in the present application. Card generation data is obtained, and the card generation data is data in a specified data format generated based on real-time network data crawled by a search engine, and then the card generation data is loaded into a corresponding card template to generate a target card. Through the above method, real-time network data can be displayed in the form of a card, which is convenient for users to view.

[0036] The embodiments of the present application will be described in detail below with reference to the accompanying drawings.

[0037] See also Figure 1 , a card generation method provided in an embodiment of the present application is applied to an electronic device, the method comprising:

[0038] Step S110: Acquire card generation data, where the card generation data is data in a specified data format generated based on real-time network data.

[0039] In an embodiment of the present application, the card generation data determines the display content of the card template, and the card generation data is data of a specified data format generated based on real-time network data. Among them, the real-time network data is network data obtained in real time, and the network data here can be any type of data. Optionally, the real-time network data can be network data from different applications obtained in real time, or the real-time network data can be network data sent by other electronic devices obtained in real time, or the real-time network data can also be network data obtained in real time from different browsing websites / search engines. Among them, the real-time network data can be text data, picture data / image data, video data, table data or web page data, etc., which are not specifically limited here.

[0040] Optionally, in the case where the real-time network data is network data sent by other electronic devices, when the electronic device needs to obtain the real-time network data, it can send a data acquisition request to other electronic devices with which a communication connection has been established, and when the other electronic devices receive the data acquisition instruction sent by the electronic device, they respond to the data acquisition instruction and return the real-time network data to the electronic device. Among them, after responding to the data acquisition instruction of the electronic device, the other electronic devices can obtain the real-time network data through a search engine, or the other electronic devices can also obtain the real-time network data through other methods, which are not specifically limited here.

[0041] In the embodiment of the present application, the specified data format is a pre-set data format that can load real-time network data into a card template. Different card templates may correspond to different specified data formats.

[0042] As a method, key data can be obtained from real-time network data, and the obtained key data can be converted into data in a specified data format to obtain card generation data.

[0043] Specifically, when obtaining key data from real-time network data, the real-time network data can be input into a pre-trained key data extraction model to obtain key data corresponding to the real-time network data output by the key data extraction model. The key data extraction model can be a natural language processing model or an image processing model, which is not specifically limited here.

[0044] Optionally, in the embodiment of the present application, different real-time network data may correspond to different designated data formats. Different real-time network data may refer to different sources of real-time network data; or different real-time network data may refer to different types of real-time network data. Different sources may refer to different applications or browsing websites.

[0045] The specified data format may include multiple data formats. Specifically, the specified data format may include a customized data format and a universal data format. When converting the real-time network data into the card generation data of the specified data format, the real-time network data may be converted into the universal data format while converting the real-time network data into the customized data format, so that when the card generation data based on the customized data format cannot generate a corresponding card, the corresponding card may be generated based on the card generation data in the universal data format, so that the real-time network data may be displayed in real time in the form of a card.

[0046] As a method, when different real-time network data refers to real-time network data coming from different applications, a customized data format may be pre-set for each application, wherein the customized data formats corresponding to different applications may be different.

[0047] After obtaining the real-time network data from different applications, the network data from different applications can be converted into customized data formats corresponding to the different applications.

[0048] As another way, when different real-time network data refer to real-time network data originating from different applications, a customized data format can be set in advance for the application according to the priority of the application, wherein the customized data formats corresponding to applications of different priorities may be different, and the customized preset formats corresponding to applications of the same priority are the same.

[0049] After obtaining real-time network data from different applications, the priority of the application from which the real-time network data comes can be determined first, and then the real-time network data from the application of the corresponding priority can be converted into a customized data format corresponding to the priority.

[0050] The priority of the application can be preset, and of course the priority of the application can be dynamically adjusted according to the frequency of use of the application in a preset time period.

[0051] In the case where the priority of an application can be dynamically adjusted according to the usage frequency of the application within a preset time period, if the usage frequency of the application within the preset time period is lower than the usage frequency within the previous preset time period, then the priority of the application can be lowered, and conversely, if the usage frequency of the application within the preset time period is higher than the usage frequency within the previous preset time period, then the priority of the application can be raised. The preset time period is a pre-set time period for counting the usage frequency of the application, and the preset time periods corresponding to different applications can be set differently, and can be specifically set according to the user's usage habits of the application in the electronic device.

[0052] Optionally, a corresponding usage frequency range can be set for each priority level in advance. When the priority of an application needs to be determined, the usage frequency of the application within a preset time period can be determined first, and then the current priority level of the application can be determined based on the usage frequency of the application within the preset time period.

[0053] Step S120: Load the card generation data into the corresponding card template to generate a target card.

[0054] In the embodiment of the present application, the card template is a pre-set preliminary card basic framework, and the specific details of the card framework can be filled in according to the card generation data. A card is a form of information presented to a user by an electronic device, and the target card in the embodiment of the present application is used to present the acquired card generation data to the user.

[0055] Among them, multiple card templates can be pre-set. Specifically, multiple card templates can be pre-stored in a preset storage area. When the corresponding card template needs to be obtained after the card generation data is obtained, the corresponding card template can be obtained from the preset storage area. After the corresponding card template is obtained, the card generation data can be loaded into the obtained card template to fill the card template with the card generation data to generate a target card.

[0056] The plurality of card templates may include a plurality of customized card templates and a universal card template, wherein the customized card template may correspond to a customized data format, that is, one customized data format may correspond to at least one customized card template.

[0057] After obtaining the card generation data in the specified data format, the card template corresponding to the specified data format can be obtained, and then the card generation data can be loaded into the corresponding card template to generate the target card. Optionally, the operation of obtaining the card template can also be performed before obtaining the card generation data, or the operation of obtaining the card template and the operation of obtaining the card generation data can be performed simultaneously, which is not specifically limited here.

[0058] That is, after obtaining the card generation data in the specified data format, the specified data format can be matched with the data format supported by the card template, and then the card template supporting the specified data format can be used as the card template for loading the card generation data.

[0059] Optionally, when presetting the card template, a customized card template and a universal card template can be set for each application, and then after obtaining the card generation data from different applications, the card generation data from different applications can be loaded into the customized card template or universal card template corresponding to the corresponding application to generate the target card. Exemplarily, if the obtained card generation data comes from application A and application B, the card generation data from application A in the obtained card generation data can be loaded into the customized card template or universal card template corresponding to application A to generate the target card corresponding to application A; the card generation data from application B in the obtained card generation data can be loaded into the customized card template or universal card template corresponding to application B to generate the target card corresponding to application B.

[0060] When loading the card generation data into the corresponding card template, the following situations may occur: the card generation data cannot be normally loaded into the card template, or the card generation data can be normally loaded into the card template.

[0061] As one of the situations, if the card generation data cannot be loaded into the card template normally, it is usually because the data format is incompatible. For example, the data format of the card generation data is Markdown (a markup language that gives ordinary text content a certain format), and the data format supported in the card template is Html (Hypertext Markup Language). The two belong to different data formats. If the card generation data in Markdown format is loaded into a card template that supports Html data format, the card generation data will not be loaded into the corresponding card template normally.

[0062] At this time, the card generation data in the first data format can be converted into the card generation data in the second data format, and then the card generation data in the second data format can be loaded into the card template to generate the target card. The first data format can be understood as the original data format of the card generation data, and the second data format is the data format supported by the card template.

[0063] In an embodiment of the present application, a card template may only support one data format. If the first data format in the card generation data is incompatible with the second data format in the card template, the card generation data cannot be loaded into the card template. In order to complete the compatible loading of data, the first data format of the card generation data is converted to the second data format that is suitable for the card template. For example, the Markdown format is converted into the Html format, which is compatible with the card template. At this time, the card data converted into the second data format is loaded into the card template to generate the target card.

[0064] Optionally, a card template can also support multiple data formats. In the case where a card template can support multiple data formats, it may be rare that the card-generated data cannot be loaded normally into the corresponding card template, but there is also a very small possibility that the card-generated data cannot be loaded normally into the corresponding card template. At this time, you can choose to load the card-generated data into another matching card template, or you can choose to convert the data format of the card-generated data into any of the multiple data formats supported by the card template.

[0065] After the target card is generated, the target card can be displayed. When displaying the target card, the target card can be displayed on the desktop or negative one screen of the electronic device. Among them, the negative one screen refers to sliding the screen to the right on the main screen of the electronic device until sliding to the user interface of the leftmost split screen. The negative one screen can be used to place some quick service functions and notification messages, such as global search, quick entry to a certain page of the application (payment code, WeChat, etc.), instant messages and reminders (express information, expenditure information, commuting conditions, taxi travel information, schedule information, etc.) and follow-up dynamics (football stands, basketball stands, stock information, etc.).

[0066] Optionally, when generating a target card, multiple target cards may be generated at the same time, and then the multiple target cards may be displayed by switching cards. The card switching method may be assumed to be a tap switch, referring to Figure 2 , Figure 2If a card switching instruction based on the upward sliding of target card 1 is detected, then target card 1 will slide upward and switch to the next target card. The switching process is referred to Figure 3 . Figure 3 Target card 1 continues to slide upward, and the next target card is target card 2, which also slides upward. The final technical effect of the sliding operation is shown in Figure 4 , target card 1 slides up and disappears, and target card 2 will be displayed on the currently displayed page.

[0067] Optionally, when displaying multiple target cards, the multiple target cards can also be displayed in a stacked manner. When displaying multiple target cards in a stacked manner, the target card that is stacked and displayed at the top layer of the currently displayed page can be switched by sliding or clicking to switch cards. Among them, when switching the target card that is stacked and displayed at the top layer of the currently displayed page by sliding or clicking to switch, click or slide once the target card that is displayed at the top layer of the currently displayed page, and the target card will switch to the bottom layer of the currently displayed page. Exemplary, such as Figure 5 As shown, in Figure 5 The target card 1, target card 2, target card 3, target card 4 and target card 5 are included. Currently, target card 1, target card 2, target card 3, target card 4 and target card 5 are stacked and displayed in the display page 101. Target card 1 is displayed on the top layer of the display page 101, and the target cards 2, target card 3, target card 4 and target card 5 are moved down one layer at a time. When a switching operation acting on target card 1 is detected, target card 1 is displayed in the layer where target card 5 was originally displayed, target card 2 is displayed in the layer where target card 1 was originally displayed, and the layers displayed by target card 2, target card 3, target card 4 and target card 5 are moved up one layer at a time. Figure 6 As shown, Figure 6 This is a schematic diagram after switching and displaying target card 1.

[0068] Optionally, when displaying multiple target cards, the multiple target cards may be divided into two parts for display, wherein one part of the target cards is displayed on the desktop of the electronic device, and the other part of the target cards is displayed on the negative one screen of the electronic device.

[0069] Of course, the generated multiple target cards may also be displayed in other ways, which are not specifically limited here.

[0070] In order to facilitate users to view various types of information, users can set cards corresponding to different types of information, so that the electronic device can display a certain type of information in units of cards, which is convenient for users to view information intuitively.

[0071] The present application provides a card generation method, which obtains card generation data, wherein the card generation data is data in a specified data format generated based on real-time network data crawled by a search engine, and then loads the card generation data into a corresponding card template to generate a target card. Through the above method, real-time network data can be displayed in the form of a card, which is convenient for users to view.

[0072] See also Figure 7 , a card generation method provided in an embodiment of the present application is applied to an electronic device, the method comprising:

[0073] Step S210: Acquire card generation data, where the card generation data is data in a specified data format generated based on real-time network data.

[0074] Step S220: Determine the current business scenario based on the card generation data.

[0075] In the embodiments of the present application, the business scenario is used to characterize the business that the acquired card-generated data will realize. For example, the business scenario can be sports events, daily jokes, carousel display of hot search lists, real-time exchange rates, real-time gold prices, today's almanac, financial stocks, horoscopes, holiday countdown, real-time hot news display, today's movie display, express delivery, weather, and running step counting, etc. Of course, the business scenario can also include many other scenarios, which are not specifically limited here.

[0076] As a method, the business scenario can be determined by identifying the card generated data. When the card generated data is identified to determine the business scenario, the business scenario can be determined by identifying key information in the card generated data, wherein the key information is information extracted to identify the business scenario.

[0077] As another way, the business scenario can be determined by the scenario identifier included in the card generation data. Specifically, when the card generation data is generated based on the real-time network data, the real-time network data can be identified to determine the business scenario corresponding to the real-time network data, so that when the corresponding card generation data is generated, the scenario identifier corresponding to the business scenario can be added to the card generation data, so that when it is necessary to determine the current business scenario corresponding to the card generation data, the current business scenario can be determined by the scenario identifier included in the card generation data. Among them, the scenario identifier is a pre-set identifier that can be used to identify the business scenario. For example, if the business scenario is a sports event scenario, the scenario identifier corresponding to the business scenario can be set to "TYSS".

[0078] In an embodiment of the present application, since the card generation data may be acquired in real time from different applications or different search engines or different search websites, etc., multiple business scenarios may be determined when determining the current business scenario based on the card generation data.

[0079] Step S230: Obtain a card template corresponding to the current business scenario, wherein different business scenarios correspond to different card templates.

[0080] In the embodiment of the present application, different business scenarios correspond to different card templates, which may mean that different business scenarios correspond to different customized card templates. However, all business scenarios correspond to a common card template.

[0081] Therefore, when obtaining the card template corresponding to the current business scenario, first match the customized card template corresponding to the current business scenario, and then match the general card template if no corresponding customized card template is matched.

[0082] As a method, the card template includes a first card template and a second card template, and obtaining the card template corresponding to the current business scenario includes: matching the current business scenario with the first card template, wherein the first card template is a prefabricated card template; if there is no first card template matching the current business scenario, using the second card template as the card template corresponding to the current business scenario, wherein the second card template is a general card template.

[0083] In the embodiment of the present application, the above-mentioned prefabricated card template refers to a customized card template. The number of prefabricated card templates can include multiple, and the same universal card template can also include multiple.

[0084] In the case where there are multiple prefabricated card templates, each prefabricated card template may correspond to one business scenario, and each universal card template may correspond to multiple business scenarios or all business scenarios.

[0085] Furthermore, when no customized card template corresponding to the current business scenario is matched, when determining the universal card template that matches the current business scenario, all universal card templates that can match the current business scenario can be displayed, so that the user can select a universal card template from multiple universal templates as the card template corresponding to the current business scenario.

[0086] When displaying all universal card templates matching the current business scenario, the display style of each universal card template may be displayed in turn, so that the user may select the card template corresponding to the current business scenario according to the display style of the universal card template.

[0087] Step S240: Load the card generation data into the card template to generate a target card.

[0088] In the embodiment of the present application, since different business scenarios correspond to different card templates, after the card generation data is loaded into the card template corresponding to the business scenario, different target cards can be generated. For example, if the current business scenario is a sports event scenario, after the card generation data is loaded into the card template corresponding to the sports event scenario, the generated target card can be as follows: Figure 8 As shown, in Figure 8 The target card shown can display the score information of the two sides of the battle; if the current business scenario is the hot search list carousel display scenario, after loading the card generation data into the card template corresponding to the hot search list carousel display scenario, the generated target card can be as follows Fig. 9 As shown, in Fig. 9 The target card shown can display the top few hot searches with the highest popularity; if the current business scenario is a daily joke display scenario, after loading the card generation data into the card template corresponding to the daily joke display scenario, the generated target card can be as follows Fig.10 As shown, in Fig.10 The target card shown can display real-time date and real-time jokes; if the current business scenario is a real-time exchange rate display scenario, after loading the card generation data into the card template corresponding to the real-time exchange rate display scenario, the generated target card can be as follows Fig.11 As shown, in Fig.11 The target card shown can display the real-time exchange rate; if the current business scenario is the real-time gold price display scenario, after loading the card generation data into the card template corresponding to the real-time gold price display scenario, the generated target card can be as follows Fig.12 As shown, in Fig.12 The target card shown can display the real-time gold price, which can include information items such as the base gold price, retail price, and recycling price. If the current business scenario is the today's lunar calendar display scenario, after loading the card generation data into the card template corresponding to the today's lunar calendar display scenario, the generated target card can be as follows Fig.13 As shown, in Fig.13 The target card shown can display the specific information of today's lunar calendar; if the current business scenario is a financial stock scenario, after loading the card generation data into the card template corresponding to the financial stock scenario, the generated target card can be as follows Fig.14 As shown, in Fig.14 The target card shown can display specific stock index information, etc. If the current business scenario is a horoscope scenario, after loading the card generation data into the card template corresponding to the horoscope scenario, the generated target card can be as follows Fig.15 As shown, in Fig.15The target card shown can display the constellation to which today belongs, as well as related information items of the constellation, etc. If the current business scenario is a holiday countdown scenario, after loading the card generation data into the card template corresponding to the holiday countdown scenario, the generated target card can be as follows Fig.16 As shown, in Fig.16 The target card shown may display the number of days from today to each holiday, etc.

[0089] It can be seen from the target cards generated by the above different business scenarios that the card template corresponding to each business scenario has a different display style for the card generation data. The display style refers to the display style of the card template.

[0090] These different display styles can be set when setting corresponding customized card templates for different business scenarios.

[0091] The present application provides a card generation method, which obtains card generation data, determines the current business scenario based on the card generation data, and then obtains a card template corresponding to the current business scenario, and then loads the card generation data into the card template to generate a target card. Through the above method, real-time network data can be displayed in the form of cards, which is convenient for users to view.

[0092] See also Fig.17 , a card generation method provided in an embodiment of the present application is applied to an electronic device, the method comprising:

[0093] Step S310: Acquire real-time network data.

[0094] In the embodiment of the present application, real-time network data refers to network data acquired in real time, and network data can be understood as all data that can be searched from the network.

[0095] In the embodiments of the present application, real-time network data can be obtained in a variety of ways.

[0096] As a way, in response to data acquisition instructions, real-time network data is crawled through a search engine.

[0097] The data acquisition instruction may be an instruction sent by other electronic devices, or the data acquisition instruction may be an instruction triggered when a designated application is detected to be running. The designated application may be an application pre-set to trigger real-time network data acquisition, such as a search application.

[0098] Alternatively, the data acquisition instruction may also be an instruction triggered by a user inputting a search keyword. For example, when a user inputs the keyword "NBA live" through the Baidu API, the data acquisition instruction may be triggered to obtain search results related to the input keyword "NBA live".

[0099] After detecting the data acquisition instruction, the electronic device can respond to the data acquisition instruction and then crawl real-time network data through a search engine.

[0100] When an electronic device crawls real-time network data through a search engine in response to a data acquisition instruction, the search engine may simultaneously return multiple search results related to the data acquisition instruction, and the user can select one search result from the multiple search results as the real-time network data acquired in an embodiment of the present application.

[0101] As another way, a custom keyword is obtained; and based on the custom keyword, real-time network data is obtained.

[0102] The custom keyword may be a pre-set keyword for triggering automatic generation of a target card through a customized card template. For example, the custom keyword may be a score, which is a keyword for triggering generation of a target card for a sports event score.

[0103] As a method, the custom keyword may be a pre-set keyword.

[0104] At this time, in an embodiment of the present application, each customized card template can correspond to one or more custom keywords, so that the electronic device can crawl real-time network data corresponding to the custom keywords in real time.

[0105] In order to trigger the automatic acquisition of real-time network data through custom keywords and generate corresponding target cards, multiple customized card templates can be loaded into the card template management module in advance. When the control control in the card template management module is in the on state, the electronic device can start a real-time search based on the custom keywords corresponding to each customized card template, and load the searched real-time network data into the corresponding customized card template to generate the corresponding target card.

[0106] As another way, the custom keyword can be a keyword input by the user in real time. In the case where the custom keyword is a keyword input by the user in real time, relevant real-time network data can be obtained according to the keyword input by the user in real time, and the relevant real-time network data can be loaded into the general card template to generate a corresponding target card. For example, the user can Fig.18The keyword input box 301 shown in the figure inputs the keyword "action movies released today", and when the "one-click generation service" control is clicked, the corresponding target card can be generated, such as Fig.19 As shown, Fig.19 The generated movie cards.

[0107] Optionally, in response to a voice control instruction, real-time network data corresponding to the voice control instruction is acquired.

[0108] In the embodiment of the present application, the electronic device can also support the user to generate a card by voice input. For example, Fig. 20 As shown, the voice control command "I want to watch NBA games" is input to invoke "Xiaobu Suggestions", and then a game card will be generated on the desktop or negative one screen of the electronic device.

[0109] Step S320: Obtain prompt information corresponding to the real-time network data.

[0110] In an embodiment of the present application, the prompt information is a prompt script designed based on real-time network data, and the prompt information is used to prompt the ChatGPT model to output card generation data in a specified data format. The prompt script can be understood as a prompt used to allow the ChatGPT model to enter a certain dialogue mode. In the ChatGPT model, the prompt script generally refers to an input text paragraph or phrase, which serves as the starting point or guide for generating the model output. The prompt script can be a question, a text description, a dialogue, or any form of text input. The ChatGPT model will generate the corresponding output text based on the context and semantic information provided by the prompt script.

[0111] In the embodiment of the present application, the prompt information corresponding to the real-time network data obtained in different scenarios may be different.

[0112] For example, in the party planning scenario, the prompt information may be:

[0113] You are an AI assistant. Your task is to generate data by outputting cards in the corresponding data format according to the user's input or instructions. The corresponding data format can include the following six information items: keywords, theme titles, dinner invitations, menu lists, shopping lists, and cooking methods.

[0114] In the travel planning scenario, the prompt information can be:

[0115] You are a rich travel guide. Your task is to provide information items such as travel types, transportation guides, precautions, attractions, food, etc. included in the real-time network data based on the real-time network data input by the user.

[0116] Of course, the above prompt information is just two examples. The prompt information corresponding to the party planning scenario and the travel planning scenario can also be other information, which is not specifically limited here.

[0117] In the embodiment of the present application, different prompt information can be pre-set for different business scenarios. After acquiring the real-time network data, the business scenario corresponding to the real-time network data can be identified, and then the prompt information corresponding to the business scenario can be acquired.

[0118] Optionally, the prompt information may also be generated in real time after real-time network data is acquired, which is not specifically limited here.

[0119] Step S330: Determine the card generation data based on the real-time network data and the prompt information.

[0120] In an embodiment of the present application, after acquiring the real-time network data, the capabilities of the ChatGPT large model can be called to read, extract, and organize the acquired real-time network data to generate card generation data in a specified data format.

[0121] Specifically, after obtaining the real-time network data and the prompt information corresponding to the real-time network data, the real-time network data and the prompt information can be input into the ChatGPT model to obtain the card generation data in a specified data format corresponding to the real-time network data output by the ChatGPT model.

[0122] For example, the input real-time network data may be network data related to NBA live broadcasts. The input prompt information may be "You are an AI assistant, and your task is to output the score of the current game and the next game based on the real-time network data input by the user."

[0123] After inputting the above real-time network data and prompt information into the ChatGPT model, the output card generation data can be:

[0124] {

[0125] "name":"NBA",

[0126] "time":"04-23 10:00",

[0127] "team1":"Lakers",

[0128] "score1":"58",

[0129] "team2":"Grizzlies",

[0130] "score2":"42"

[0131] },

[0132] {

[0133] "name":"NBA",

[0134] "time":"04-24 01:00",

[0135] "team1":"Knicks",

[0136] "score1":"0",

[0137] "team2":"Knights",

[0138] "score2":"0"

[0139] }

[0140] Step S340: Load the card generation data into the corresponding card template to generate a target card.

[0141] The present application provides a card generation method, which first obtains real-time network data, obtains prompt information corresponding to the real-time network data, and then determines card generation data based on the real-time network data and the prompt information, and loads the card generation data into the corresponding card template to generate a target card. Through the above method, users are supported to generate custom cards by inputting text or voice, which can meet the user's customized display needs.

[0142] See also Fig.21 , an embodiment of the present application provides a card generating device 400, the device 400 comprising:

[0143] The data acquisition unit 410 is used to acquire card generation data, where the card generation data is data in a specified data format generated based on real-time network data.

[0144] As a method, the data acquisition unit 410 is specifically used to acquire real-time network data; acquire prompt information corresponding to the real-time network data; and determine the card generation data based on the real-time network data and the prompt information.

[0145] As another way, the data acquisition unit 410 is specifically used to crawl real-time network data through a search engine in response to a data acquisition instruction.

[0146] As another way, the data acquisition unit 410 is specifically used to acquire custom keywords; based on the custom keywords, acquire real-time network data.

[0147] Optionally, the data acquisition unit 410 is specifically configured to acquire real-time network data corresponding to the voice control instruction in response to the voice control instruction.

[0148] The card generation unit 420 is used to load the card generation data into a corresponding card template to generate a target card.

[0149] As a method, the card generation unit 420 is specifically used to determine the current business scenario based on the card generation data; obtain a card template corresponding to the current business scenario, wherein different business scenarios correspond to different card templates; and load the card generation data into the card template to generate a target card.

[0150] Furthermore, the card generation unit 420 is also used to match the current business scenario with the first card template, wherein the first card template is a prefabricated card template; if there is no first card template matching the current business scenario, the second card template is used as the card template corresponding to the current business scenario, wherein the second card template is a general card template.

[0151] It should be noted that the device embodiment in the present application corresponds to the aforementioned method embodiment. The specific principles in the device embodiment can be found in the contents of the aforementioned method embodiment and will not be repeated here.

[0152] The following will be combined Fig. 22 An electronic device provided by the present application is described.

[0153] See also Fig. 22 Based on the above-mentioned card generation method and device, the embodiment of the present application also provides another electronic device 800 that can execute the above-mentioned card generation method. The electronic device 800 includes one or more (only one is shown in the figure) processors 802, a memory 804, an image processor 806, a camera 807 and a network module 806 that are coupled to each other. Among them, the memory 804 stores a program that can execute the content of the above-mentioned embodiment, and the processor 802 can execute the program stored in the memory 804.

[0154] Among them, the processor 802 may include one or more processing cores. The processor 802 uses various interfaces and lines to connect various parts of the entire electronic device 800, and executes various functions and processes data of the electronic device 800 by running or executing instructions, programs, code sets or instruction sets stored in the memory 804, and calling data stored in the memory 804. Optionally, the processor 802 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 802 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 802, but may be implemented separately through a communication chip.

[0155] The memory 804 may include a random access memory (RAM) or a read-only memory (ROM). The memory 804 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 804 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc. The data storage area may also store data (such as a phone book, audio and video data, chat record data) created by the electronic device 800 during use.

[0156] The network module 806 is used to receive and send electromagnetic waves, realize the mutual conversion between electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices, such as communicating with electronic devices. The network module 806 may include various existing circuit elements for performing these functions, such as antennas, radio frequency transceivers, digital signal processors, encryption / decryption chips, user identity modules (SIM) cards, memories, etc. The network module 806 may communicate with various networks such as the Internet, corporate intranets, wireless networks, or communicate with other devices via wireless networks. The above-mentioned wireless networks may include cellular telephone networks, wireless local area networks, or metropolitan area networks. For example, the network module 806 may exchange information with a base station.

[0157] Please refer to Fig.23 , which shows a structural block diagram of a computer-readable storage medium provided in an embodiment of the present application. The computer-readable storage medium 900 stores program codes, which can be called by a processor to execute the method described in the above method embodiment.

[0158] The computer-readable storage medium 900 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer-readable storage medium 900 includes a non-transitory computer-readable storage medium. The computer-readable storage medium 900 has storage space for program code 910 that performs any method step in the above method. These program codes can be read from or written to one or more computer program products. The program code 910 can be compressed, for example, in an appropriate form.

[0159] The present application provides a card generation method, device, electronic device and storage medium, which obtains card generation data, which is data in a specified data format generated based on real-time network data crawled by a search engine, and then loads the card generation data into a corresponding card template to generate a target card. Through the above method, real-time network data can be displayed in the form of a card, which is convenient for users to view.

[0160] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation modes, which are merely illustrative rather than restrictive. Under the guidance of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the present invention and the claims, all of which are within the protection of the present invention.

Claims

1. A card generation method, characterized in that: The method comprises: Acquire card generation data, where the card generation data is data in a specified data format generated based on real-time network data; The card generation data is loaded into a corresponding card template to generate a target card.

2. The method according to claim 1, characterized in that The step of loading the card generation data into a corresponding card template to generate a target card includes: Determine the current business scenario based on the card generated data; Get the card template corresponding to the current business scenario, where different business scenarios have different corresponding card templates; The card generation data is loaded into the card template to generate a target card.

3. The method according to claim 2, characterized in that The card template includes a first card template and a second card template, and obtaining a card template corresponding to the current business scenario includes: Matching the current business scenario with the first card template, wherein the first card template is a prefabricated card template; If there is no first card template matching the current business scenario, the second card template is used as the card template corresponding to the current business scenario, wherein the second card template is a general card template.

4. The method according to claim 1, characterized in that The obtaining of card generation data includes: Get real-time network data; Obtaining prompt information corresponding to the real-time network data; The card generation data is determined based on the real-time network data and the prompt information.

5. The method according to claim 4, characterized in that The obtaining of real-time network data comprises: In response to the data acquisition instruction, real-time network data is crawled through the search engine.

6. The method according to claim 4, characterized in that The obtaining of real-time network data comprises: Get custom keywords; Based on the custom keywords, real-time network data is obtained.

7. The method according to claim 4, characterized in that The obtaining of real-time network data comprises: In response to the voice control instruction, real-time network data corresponding to the voice control instruction is acquired.

8. A card generating device, characterized in that: The device comprises: A data acquisition unit, used to acquire card generation data, wherein the card generation data is data in a specified data format generated based on real-time network data; The card generation unit is used to load the card generation data into the corresponding card template to generate a target card.

9. An electronic device, characterized in that: The method comprises one or more processors; one or more programs are stored in the memory and configured to execute the method according to any one of claims 1 to 7 by the one or more processors.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program code, wherein when the program code is executed by a processor, the method according to any one of claims 1 to 7 is executed.

Citation Information

Cited By

  • Interaction method, system and equipment for UI card generation

    CN121578918A

  • An interaction method, system and device for UI card generation

    CN121578918B