Method and device for generating information card of object, equipment and medium
By receiving page addresses to obtain elements and automatically generate information cards using semantic analysis and machine learning models, the problem of inefficient generation of information cards in the prior art is solved, and efficient information card generation is achieved.
Patent Information
- Application Number
- CN202311845331.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-28
- Publication Date
- 2025-07-01
AI Technical Summary
The prior art requires a lot of manual labor in the process of generating information cards, resulting in inefficiency.
Retrieve page elements by receiving page addresses, determine object attributes using semantic analysis and machine learning models, and automatically generate information cards.
The information card generation process is simplified, efficiency is improved, and manual labor is reduced.
Smart Images

Figure CN120234481A_ABST
Abstract
Description
Technical Field
[0001] Exemplary implementations of the present disclosure generally relate to image processing, and particularly to methods, apparatuses, devices, and computer-readable storage media for generating information cards of objects. Background Art
[0002] Image processing technologies have been widely applied in multiple fields, and can generate information cards for various objects to provide summary information of the objects in a visual manner. Here, the object can have multiple meanings. For example, in an item management system, information cards can be generated for each item to represent the name, type, etc. of the item; in a project management system, information cards can be generated for each project to describe the project name, summary, etc. However, the existing process of generating information cards involves a large amount of manual labor, and it is expected to generate information cards of objects in a simpler and more effective manner. Summary of the Invention
[0003] In a first aspect of the present disclosure, a method for generating an information card of an object is provided. In this method, in response to receiving a page address of a page including a set of attributes of a target object, a set of page elements in the page is obtained. Based on the set of page elements, a set of attributes of the target object is determined. Based on the set of attributes, an information card of the target object is generated.
[0004] In a second aspect of the present disclosure, an apparatus for generating an information card of an object is provided. The apparatus includes: an obtaining module configured to obtain a set of page elements in a page in response to receiving a page address of a page including a set of attributes of a target object; a determining module configured to determine a set of attributes of the target object based on the set of page elements; and a generating module configured to generate an information card of the target object based on the set of attributes.
[0005] In a third aspect of the present disclosure, an electronic device is provided. The electronic device includes: at least one processing unit; and at least one memory, the at least one memory being coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit, the instructions, when executed by the at least one processing unit, causing the electronic device to execute the method according to the first aspect of the present disclosure.
[0006] In a fourth aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored, and the computer program, when executed by a processor, causes the processor to implement the method according to the first aspect of the present disclosure.
[0007] It should be understood that the content described in this content part is not intended to define the key features or important features of the implementations of the present disclosure, nor is it used to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. Description of the Drawings
[0008] In the following, with reference to the accompanying drawings and in light of the following detailed description, the above and other features, advantages, and aspects of various implementations of the present disclosure will become more apparent. In the drawings, the same or similar reference numerals denote the same or similar elements, where:
[0009] Figure 1 A block diagram of an application environment according to an exemplary implementation of the present disclosure is shown;
[0010] Figure 2 A block diagram of an information card for generating an object according to some implementations of the present disclosure is shown;
[0011] Figure 3 A block diagram of filling data into a template to generate an information card according to some implementations of the present disclosure is shown;
[0012] Figure 4 A block diagram of the correspondence between a page and a template according to some implementations of the present disclosure is shown;
[0013] Figure 5 A block diagram of a generation page for generating an information card according to some implementations of the present disclosure is shown;
[0014] Figure 6 A block diagram of presenting a generated information card to a user according to some implementations of the present disclosure is shown;
[0015] Figure 7 A flowchart of a method for generating an information card for an object according to some implementations of the present disclosure is shown;
[0016] Figure 8 A block diagram of an apparatus for generating an information card for an object according to some implementations of the present disclosure is shown; and
[0017] Figure 9 A block diagram of a device capable of implementing multiple implementations of the present disclosure is shown. Detailed Implementations
[0018] Implementations of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain implementations of the present disclosure are shown in the drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as limited to the implementations set forth herein. Instead, these implementations are provided to more thoroughly and completely understand the present disclosure. It should be understood that the drawings and implementations of the present disclosure are for exemplary purposes only and are not intended to limit the scope of protection of the present disclosure.
[0019] In the description of the implementation manners of the present disclosure, the term "including" and its like terms should be understood as open inclusion, that is, "including but not limited to". The term "based on" should be understood as "at least partially based on". The term "an implementation manner" or "the implementation manner" should be understood as "at least one implementation manner". The term "some implementation manners" should be understood as "at least some implementation manners". There may also be other explicit and implicit definitions hereinafter. As used herein, the term "model" may represent the association relationship between various data. For example, the above-mentioned association relationship can be obtained based on various technical solutions known currently and / or to be developed in the future.
[0020] It can be understood that the data involved in the present technical solution (including but not limited to the data itself, the acquisition or use of the data) should comply with the requirements of the corresponding laws, regulations and related provisions.
[0021] It can be understood that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, usage scopes, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained through appropriate means according to the relevant laws and regulations.
[0022] For example, when responding to receiving an active request from the user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be executed will require the acquisition and use of the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, an application program, a server or a storage medium that executes the operation of the technical solution of the present disclosure according to the prompt message.
[0023] As an optional but non-limiting implementation manner, the manner of sending a prompt message to the user in response to receiving an active request from the user can be, for example, in the form of a pop-up window, and the prompt message can be presented in text in the pop-up window. In addition, the pop-up window can also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0024] It can be understood that the above process of notifying and obtaining the user's authorization is only illustrative and does not limit the implementation manners of the present disclosure, and other manners that meet the relevant laws and regulations can also be applied to the implementation manners of the present disclosure.
[0025] The term "in response to" used herein represents the state in which the corresponding event occurs or the condition is satisfied. It will be understood that the execution timing of the subsequent action executed in response to the event or condition and the time when the event occurs or the condition is established are not necessarily strongly correlated. For example, in some cases, the subsequent action can be executed immediately when the event occurs or the condition is established; while in other cases, the subsequent action can be executed after a period of time after the event occurs or the condition is established.
[0026] Example environment
[0027] Image processing technology has been widely applied in multiple fields and can generate information cards for various objects to visually provide summary information of the objects. In the following, the application environment for generating information cards of objects will be described by taking item management as an example. Figure 1 FIG. 100 is a block diagram showing an application environment according to an exemplary implementation of the present disclosure. As Figure 1 shown, the information card 120 can be a control in the user interface 110 of an application. The application here can be various types of applications, such as including but not limited to social applications, video applications, short video applications, and so on.
[0028] During the operation of the end user of the application, the information card 120 can be provided in the user interface 110. When the user clicks on the information card 120, the user can be guided to open the page corresponding to the information card 120. As Figure 1 shown, the information card 120 can be an image, and the image includes various relevant information of an object (for example, a backpack). Here, the object can be, for example, an item for sale on an online sales website, and each object can have its own page. In the existing technical solutions for generating the information card 120, it is necessary to manually extract information from the page and make the information card 120. When there are a large number of objects, it will generate a huge workload. At this time, it is expected to generate information cards of objects in a more convenient and effective manner.
[0029] Summary of generating information card
[0030] To at least partially solve the deficiencies in the prior art, according to an exemplary implementation of the present disclosure, a method for generating an information card of an object is proposed. Refer to Figure 2 Describe the overview according to an exemplary implementation of the present disclosure, Figure 2 FIG. 200 is a block diagram showing a method for generating an information card of an object according to some implementations of the present disclosure. As Figure 2 shown, the page address 210 of the page 220 including a set of attributes of the target object can be received. In this example, the object can represent the item for sale "backpack", and the page 220 can be the page for selling the "backpack" on an online sales website.
[0031] Further, a set of page elements 230 in page 220 can be obtained. The page elements 230 can be various elements defined in page 220, such as images, texts, videos, links, and so on. A set of attributes 240 of the target object can be determined based on the set of page elements 230, such as the image, name of the item, and so on. Subsequently, an information card 120 of the target object can be generated based on the set of attributes 240.
[0032] Using the example implementation of the present disclosure, various attributes of an object can be directly extracted from the page of the object, so that an information card can be automatically generated using the extracted various attributes. In this way, a large amount of manual labor is not involved in the process of generating the information card, but only the page address 210 pointing to the object needs to be input, and the information card can be automatically generated based on the information in the page 220 corresponding to the page address 210.
[0033] Detailed process of generating information card
[0034] The overview of generating the information card has been described, and various details will be described below. According to an example implementation of the present disclosure, in the process of obtaining a set of page elements in a page, the code in the page can be analyzed to extract various structured information defined in the page. In one example, the extracted structured information can be managed according to the structure shown in Table 1 below:
[0035] Table 1 Extracted Structured Information
[0036]
[0037]
[0038]
[0039] As shown in Table 1, lines 1-7 show the title (i.e., title) of the extracted page, and the style of the title is width = 375 and height = 1224. Lines 8-91 show the information of other page elements in the page. For example, lines 7-62 show the content (i.e., content) in the page, and the content can include multiple parts: the image (i.e., img) shown in lines 7-18, the link (i.e., link) shown in lines 19-33, the video (i.e., video) shown in lines 34-47, and the text (i.e., text) shown in lines 48-62. Further, lines 63-91 show the components (i.e., component) in the page, which can include multiple components: the plug-in (i.e., swiper) shown in lines 63-77, and the image shown in lines 78-91, and so on.
[0040] Various extraction techniques that are currently known and / or will be developed in the future can be used to extract various page elements from a page. In this way, information in multiple aspects can be extracted from the page, thereby providing a data basis for determining various attributes of an object. It should be understood that Table 1 only schematically shows an example for storing the extracted information. Alternatively and / or additionally, other ways can be used to store the extracted information.
[0041] According to an example implementation of the present disclosure, in order to determine a set of attributes of a target object based on a set of page elements. Specifically, a set of attributes can be determined based on at least any one of the following: semantic analysis of a set of page elements, a machine learning model that describes the association relationship between a set of page elements and a set of attributes. By using the example implementation of the present disclosure, various ways can be fully utilized to extract the attributes of the target object, thereby improving the efficiency of generating an information card.
[0042] Specifically, semantic analysis can be performed on the data structure shown in Table 1, and then the corresponding attributes can be determined. For example, the corresponding attributes can be found based on information such as each keyword in the page. In the context of the present disclosure, a set of attributes can include at least any one of the following: the name, description, image, brand, price, selling points, etc. of the target object. Specifically, keywords such as "name" and "price" can be searched in the text to determine the corresponding attributes. For another example, an image located in a prominent position on the page can be used as the image of the object. For yet another example, it can be identified whether the content in the image is consistent with the name of the object, and then the image of the object can be determined. In this way, the various attributes of the object can be determined in a simple and effective manner, thereby facilitating the insertion of various information into the information card.
[0043] According to an example implementation of the present disclosure, the various attributes of an object can be determined based on a machine learning model. For example, a pre-trained machine learning model can be obtained, and this model can describe the association relationship between a set of page elements and a set of attributes. For example, a training process can be performed using labeled page samples. At this time, when the data shown in Table 1 is input into the trained model, information such as the name, description, image, brand, price, selling points, etc. of the target object can be received from the model. In this way, the powerful processing ability of the machine learning model can be fully utilized to determine the various attributes of the object in a more accurate manner. Alternatively and / or additionally, the above two ways can be used to perform cross-validation in order to determine the attributes of the target object in a more accurate manner.
[0044] According to an example implementation of the present disclosure, the extracted respective attributes can be stored in a variety of functional ways, and the respective attributes can be stored in the data structure shown in Table 2. In Table 2, the extracted respective attributes can be stored in respective fields. For example, the name of the object, "backpack", can be stored in the title field "title", the price of the object, "199.00", can be stored in the price field "price", the description of the object, "cowhide material...", can be stored in the description field "description", the image of the object can be stored in the image field "image", and so on.
[0045] Table 2 Attribute Information
[0046]
[0047] According to an example implementation of the present disclosure, a template can be used to specify the layout of the information card. Refer to Figure 3 for more details about the template, which Figure 3 shows a block diagram 300 of filling data into a template to generate an information card according to some implementations of the present disclosure. As Figure 3 shown on the left side, the template 310 can include: a background image 370, and a set of insertion positions corresponding to a set of attributes respectively. Specifically, the background image 370 can represent the background of the information card. The image of the object can be inserted at the image position 320, the name of the object can be inserted at the name position 330, the price of the object can be inserted at the price position 340, the brand of the object can be inserted at the brand position 350, the description of the object can be inserted at the description position 360, and so on.
[0048] According to an example implementation of the present disclosure, the respective positions can be defined in a variety of ways. For example, for the image position 320, the position (x0, y0) of the upper left corner of the image in the template 310 can be specified, and the width and height of the image can be specified. Alternatively and / or additionally, the position (x0, y0) of the upper left corner of the image and the position (x1, y1) of the lower right corner of the image can be specified.
[0049] Furthermore, when generating the information card of the target object, a set of attributes can be inserted at a set of insertion positions to generate the information card of the target object. At this time, a mapping relationship can be established between the respective fields shown in Table 2 and the respective positions in the template 310, so as to facilitate inserting the corresponding attributes at the respective positions. As Figure 3The generated information card 370 is shown on the right. At this time, the corresponding attributes have been inserted into each position. In this way, during the process of managing the information card, only the extracted attributes need to be inserted into the corresponding positions, thus simplifying the process of generating the information card. Further, when it is desired to adjust the layout of the information card, the background image, insertion positions, and corresponding attributes in the template can be adjusted, so as to modify the information card with higher efficiency.
[0050] According to an exemplary implementation of the present disclosure, one or more candidate templates can be predefined. For example, a simple template and a detailed template can be established. At this time, the simple template can only include the image and price of the object, and the detailed template can include more information such as the image, description, price, etc. of the object. When generating the information card, a template for specifying the layout of the information card can be obtained, and then the information card of the target object can be generated based on the template. By using the exemplary implementation of the present disclosure, the layout of each item in the information card can be specified in advance, thus facilitating the display of various information related to the target object.
[0051] According to an exemplary implementation of the present disclosure, the corresponding template can be selected based on the page type of the page. Specifically, based on a set of page elements, the page type of the page can be determined to establish multiple candidate templates. Here, the page type includes at least any one of the following: single object type, multi-object type, home page type. See Figure 4 for more details. Figure 4 FIG. 400 is a block diagram showing the correspondence between pages and templates according to some implementations of the present disclosure.
[0052] As Figure 4 shown, the single object type 410 indicates that the page of the object only involves a single object. For example, an item "backpack". The multi-object type 420 indicates that the page of the object involves multiple objects. For example, multiple items "backpack" and "handbag", etc. The home page type 430 indicates the home page of a certain store of the object, and the home page can provide an entrance to access multiple items, etc. Corresponding templates can be predefined for different types of pages. For example, template 412 can be specified for the single object type 410, template 422 can be specified for the multi-object type 420, and template 432 can be specified for the home page type 430, etc. At this time, the attribute information shown in Table 2 can be extended to Table 3. In Table 3, the page type field "page_type" can specify the page type.
[0053] Table 3 Attribute Information
[0054]
[0055] Further, a template matching the page type can be selected from multiple candidate templates. According to an exemplary implementation of the present disclosure, a corresponding template can be automatically selected based on the page type of the page input by the user. Using the exemplary implementation of the present disclosure, multiple candidate templates can be pre-customized for different types of pages. In this way, various types of pages can be presented in different layouts, so that the information card can provide more information in a more suitable layout.
[0056] According to an exemplary implementation of the present disclosure, an interactive interface for receiving a page address can be provided. Refer to Figure 5 for more details. The Figure 5 shows a block diagram 500 of a page for generating an information card according to some implementations of the present disclosure. As Figure 5 shown, a generation page 510 can be provided, and the interaction between the user and the generation page 510 can be detected. For example, when it is detected that the user has entered a page address into the input box 520, the method described above can be executed to extract the attributes of the target object from the page indicated by the page address and then generate a corresponding information card.
[0057] According to an exemplary implementation of the present disclosure, the user can enter one or more page addresses in the input box 520. It should be understood that the generation page 510 is only illustrative. Alternatively and / or additionally, the page address can be received in other ways. For example, the user can drag a file including one or more page addresses to the input box 520, etc. Alternatively and / or additionally, the user can enter the entry address of an online shopping website in the input box 520 and specify the hierarchical range of the pages to be traversed. At this time, corresponding information cards will be generated for the objects in multiple pages belonging to the hierarchical range. Using the exemplary implementation of the present disclosure, the user can be allowed to generate one or more information cards at a time when needed, thereby improving the generation efficiency.
[0058] According to an exemplary implementation of the present disclosure, a corresponding template can be automatically selected based on the specified page type, or the user can be allowed to manually select a template for the information card. Specifically, an interactive interface for selecting a template can be provided, and when an interaction with the interactive interface is detected, the template corresponding to the interaction is selected from multiple candidate templates. Using the exemplary implementation of the present disclosure, the user is allowed to select the template they expect, so that the generated information card is more in line with the user's expectations. Alternatively and / or additionally, the user can be allowed to verify whether the automatically selected template is suitable for the page of the item, so as to generate an information card that is more in line with the user's expectations.
[0059] It should be understood that the generated page 510 described above can be a page in an application management tool. For example, the application management tool can be used to determine which object information cards are to be generated. At this time, the user can be a user of the application management tool, such as an administrator of the application, etc.
[0060] According to an example implementation of the present disclosure, each generated information card can be stored in a repository to provide a matching information card to the end user of the application. According to an example implementation of the present disclosure, the generated information card can be sent to the client device running the application to provide a page in response to detecting an interaction with the information card. Figure 6 A block diagram 600 showing the presentation of generated information cards to a user according to some implementations of the present disclosure is shown. As Figure 6 shown, in the user interface 610 of the application, an information card 620 can be provided to the end user of the application. The information card 620 can be generated, for example, based on Figure 4 the page of the multi-object type 420. At this time, the information card 620 can involve multiple objects, such as images of a backpack and a handbag. When it is detected that the end user clicks on the information card 620, the corresponding page can be opened to provide a sales page for multiple items.
[0061] According to an example implementation of the present disclosure, the target object can include at least any one of the following: physical items and virtual items. It should be understood that the process of generating information cards has been described above only by taking physical items as an example of the object. Alternatively and / or additionally, the object can further include virtual items, such as audio, video, games, applications, pages, etc. Specifically, during the process of the end user using the application, the corresponding information card can be provided at the client device running the application. For example, when the user is watching a video of a sports game, an information card pointing to the news page related to the sports game can be provided; when the user is watching a movie trailer, an information card pointing to the movie ticket purchase website can be provided, etc. By using the example implementation of the present disclosure, information cards can be generated for more types of objects, thereby providing richer information to the end user.
[0062] According to an example implementation of the present disclosure, before presenting an information card, the information card can be updated based on the content that the user is browsing. Suppose the user is browsing content with bright colors. At this time, the background image in the template can be updated to bright colors; suppose the user is browsing content with dull colors. At this time, the background image in the template can be updated to dull colors. In this way, the information card can be presented in the application in a more coordinated manner. According to an example implementation of the present disclosure, the background image in the information card can be updated based on the interface style of the application. In this way, the same information card can be shared among multiple different applications. In this way, the process of generating and managing the information card can be simplified.
[0063] Using the example implementation of the present disclosure, an information card generation tool can be used to create information cards for one or more objects. In this way, a large amount of manual labor is not involved in the process of generating the information card, but only the page address pointing to the object needs to be input, and the information card can be automatically generated based on the information in the page corresponding to the page address.
[0064] Example process
[0065] Figure 7 A flowchart of a method 700 for generating an information card for an object according to some implementations of the present disclosure is shown. At block 710, a page address of a page including a set of attributes of a target object is received. If the page address is received, the method proceeds to block 720. At block 720, a set of page elements in the page is obtained. At block 730, based on the set of page elements, a set of attributes of the target object is determined. At block 740, an information card for the target object is generated based on the set of attributes.
[0066] According to an example implementation of the present disclosure, generating an information card for a target object further includes: obtaining a template for specifying the layout of the information card; and generating an information card for the target object based on the template.
[0067] According to an example implementation of the present disclosure, obtaining a template for specifying the layout of the information card includes: determining the page type of the page based on a set of page elements, where the page type includes at least any one of the following: single object type, multi-object type, home page type; and selecting a template that matches the page type from multiple candidate templates.
[0068] According to an example implementation of the present disclosure, obtaining a template for specifying the layout of the information card includes: providing an interactive interface for selecting a template; and in response to detecting an interaction with the interactive interface, selecting a template corresponding to the interaction from multiple candidate templates.
[0069] According to an example implementation of the present disclosure, determining a set of attributes of a target object based on a set of page elements includes: determining a set of attributes based on at least any one of the following: semantic analysis of a set of page elements, a machine learning model describing the association relationship between a set of page elements and a set of attributes.
[0070] According to an example implementation of the present disclosure, a template includes: a background image, and a set of insertion positions respectively corresponding to a set of attributes, and generating an information card of a target object includes: inserting a set of attributes at a set of insertion positions to generate an information card of the target object.
[0071] According to an example implementation of the present disclosure, the method 700 further includes: providing an interaction interface for receiving a page address; and in response to detecting an interaction with the interaction interface, executing the method.
[0072] According to an example implementation of the present disclosure, the method 700 further includes: sending an information card to a client device to provide a page in response to detecting an interaction with the information card.
[0073] According to an example implementation of the present disclosure, a set of page elements includes at least any one of the following: an image, text, a video, a link, a component, and a set of attributes includes at least any one of the following: the name, description, image, brand, price of the target object.
[0074] According to an example implementation of the present disclosure, the target object includes at least any one of the following: an entity item and a virtual item.
[0075] Example device and equipment
[0076] Figure 8 A block diagram of a device 800 for generating an information card of an object according to some implementations of the present disclosure is shown. The device 800 includes: an acquisition module 810 configured to acquire a set of page elements in a page in response to receiving a page address of a page including a set of attributes of a target object; a determination module 820 configured to determine a set of attributes of the target object based on the set of page elements; and a generation module 830 configured to generate an information card of the target object based on the set of attributes.
[0077] According to an example implementation of the present disclosure, the generation module further includes: a template acquisition module configured to acquire a template for specifying the layout of the information card; and a generation module based on the template configured to generate an information card of the target object based on the template.
[0078] According to an example implementation of the present disclosure, the template acquisition module includes: a type determination module configured to determine the page type of a page based on a set of page elements, where the page type includes at least any one of the following: single object type, multi-object type, home page type; and a selection module configured to select a template that matches the page type from a plurality of candidate templates.
[0079] According to an example implementation of the present disclosure, the template acquisition module includes: a providing module configured to provide an interactive interface for selecting a template; and an interaction-based selection module configured to select a template corresponding to the interaction from a plurality of candidate templates in response to detecting an interaction with respect to the interactive interface.
[0080] According to an example implementation of the present disclosure, the determination module is further configured to determine a set of attributes based on at least any one of the following: semantic analysis of a set of page elements, a machine learning model describing the association relationship between a set of page elements and a set of attributes.
[0081] According to an example implementation of the present disclosure, the template includes: a background image, and a set of insertion positions corresponding to a set of attributes respectively, and the generation module further includes: an insertion module inserts a set of attributes at a set of insertion positions to generate an information card of a target object.
[0082] According to an example implementation of the present disclosure, the apparatus further includes: a receiving module configured to provide an interactive interface for receiving a page address; and a detection module configured to execute the method in response to detecting an interaction with respect to the interactive interface.
[0083] According to an example implementation of the present disclosure, the apparatus further includes: sending an information card to a client device to provide a page in response to detecting an interaction with the information card.
[0084] According to an example implementation of the present disclosure, a set of page elements includes at least any one of the following: an image, text, video, link, component, and a set of attributes includes at least any one of the following: the name, description, image, brand, price of a target object.
[0085] According to an example implementation of the present disclosure, the target object includes at least any one of the following: an entity item and a virtual item.
[0086] Figure 9 The block diagram of a device 900 capable of implementing multiple implementations of the present disclosure is shown. It should be understood that Figure 9 The shown computing device 900 is merely exemplary and should not constitute any limitation to the functions and scope of the implementations described herein. Figure 9The computing device 900 shown can be used to implement the methods described above.
[0087] As Figure 9 shown, the computing device 900 is in the form of a general-purpose computing device. The components of the computing device 900 can include, but are not limited to, one or more processors or processing units 910, a memory 920, a storage device 930, one or more communication units 940, one or more input devices 950, and one or more output devices 960. The processing unit 910 can be an actual or virtual processor and is capable of performing various processes according to the programs stored in the memory 920. In a multi-processor system, multiple processing units execute computer-executable instructions in parallel to improve the parallel processing ability of the computing device 900.
[0088] The computing device 900 generally includes multiple computer storage media. Such media can be any available media accessible to the computing device 900, including but not limited to volatile and non-volatile media, removable and non-removable media. The memory 920 can be a volatile memory (such as registers, caches, random access memory (RAM)), a non-volatile memory (such as read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory), or some combination thereof. The storage device 930 can be a removable or non-removable medium and can include machine-readable media, such as a flash drive, a magnetic disk, or any other medium that can be used to store information and / or data (such as training data for training) and can be accessed within the computing device 900.
[0089] The computing device 900 can further include additional removable / non-removable, volatile / non-volatile storage media. Although not shown in Figure 9 it, a disk drive for reading from or writing to a removable, non-volatile magnetic disk (such as a "floppy disk") and an optical disk drive for reading from or writing to a removable, non-volatile optical disk can be provided. In these cases, each drive can be connected to a bus (not shown) by one or more data media interfaces. The memory 920 can include a computer program product 925 having one or more program modules that are configured to perform the various methods or actions of the various implementations of the present disclosure.
[0090] The communication unit 940 enables communication with other computing devices through a communication medium. Additionally, the functions of the components of the computing device 900 can be implemented in a single computing cluster or multiple computer machines that are capable of communicating through a communication connection. Thus, the computing device 900 can operate in a networked environment using a logical connection with one or more other servers, network personal computers (PCs), or another network node.
[0091] The input device 950 may be one or more input devices, such as a mouse, a keyboard, a trackball, etc. The output device 960 may be one or more output devices, such as a display, a speaker, a printer, etc. The computing device 900 may also communicate with one or more external devices (not shown) as needed through the communication unit 940. The external devices such as a storage device, a display device, etc., communicate with one or more devices that enable a user to interact with the computing device 900, or communicate with any device that enables the computing device 900 to communicate with one or more other computing devices (e.g., a network card, a modem, etc.). Such communication may be performed via an input / output (I / O) interface (not shown).
[0092] According to an exemplary implementation of the present disclosure, there is provided a computer-readable storage medium having computer-executable instructions stored thereon, wherein the computer-executable instructions are executed by a processor to implement the method described above. According to an exemplary implementation of the present disclosure, there is also provided a computer program product, the computer program product being tangibly stored on a non-transitory computer-readable medium and including computer-executable instructions, and the computer-executable instructions being executed by a processor to implement the method described above. According to an exemplary implementation of the present disclosure, there is provided a computer program product having a computer program stored thereon, and when the program is executed by a processor, the method described above is implemented.
[0093] Aspects of the present disclosure are described herein with reference to the flowcharts and / or block diagrams of methods, apparatuses, devices, and computer program products implemented according to the present disclosure. It should be understood that each block of the flowcharts and / or block diagrams, and the combinations of blocks in the flowcharts and / or block diagrams, can be implemented by computer-readable program instructions.
[0094] These computer-readable program instructions may be provided to a processing unit of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus, thereby producing a machine such that when these instructions are executed by the processing unit of the computer or other programmable data processing apparatus, a device is produced that implements the functions / actions specified in one or more blocks of the flowcharts and / or block diagrams. These computer-readable program instructions may also be stored in a computer-readable storage medium, and these instructions cause a computer, a programmable data processing apparatus, and / or other devices to work in a specific manner. Thus, the computer-readable medium storing the instructions includes a manufactured article, which includes instructions for implementing various aspects of the functions / actions specified in one or more blocks of the flowcharts and / or block diagrams.
[0095] Computer-readable program instructions may be loaded onto a computer, other programmable data processing apparatus, or other devices, causing a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other devices to generate a computer-implemented process, so that the instructions executed on the computer, other programmable data processing apparatus, or other devices implement the functions / actions specified in one or more boxes of the flowchart and / or block diagram.
[0096] The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various implementations of the present disclosure. In this regard, each box in the flowchart or block diagram may represent a module, a segment of a program, or a part of an instruction, which contains one or more executable instructions for implementing the specified logical function. In some alternative implementations, the functions noted in the boxes may occur in a different order than noted in the figures. For example, two consecutive boxes may in fact be executed substantially in parallel, or they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each box in the block diagrams and / or flowcharts, and combinations of boxes in the block diagrams and / or flowcharts, can be implemented by a dedicated hardware-based system that performs the specified functions or actions, or by a combination of dedicated hardware and computer instructions.
[0097] The various implementations of the present disclosure have been described above. The above description is exemplary, not exhaustive, and is not limited to the disclosed implementations. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described implementations. The choice of terms used herein is intended to best explain the principles of the implementations, the practical application, or the improvement of technologies in the market, or to enable other ordinary skill in the art to understand the various implementation manners disclosed herein.
Claims
1. A method for generating an information card of an object, comprising: Upon receiving a page address of a page including a set of attributes of a target object, obtaining a set of page elements in the page; Based on the set of page elements, determining the set of attributes of the target object; And Based on the set of attributes, generating an information card of the target object.
2. The method according to claim 1, wherein generating the information card of the target object further comprises: Obtaining a template for specifying the layout of the information card; And Based on the template, generating the information card of the target object.
3. The method according to claim 2, wherein obtaining the template for specifying the layout of the information card comprises: Based on the set of page elements, determining the page type of the page, the page type including at least any one of the following: single object type, multi-object type, home page type; And Selecting the template that matches the page type from a plurality of candidate templates.
4. The method according to claim 2, wherein obtaining the template for specifying the layout of the information card comprises: Providing an interactive interface for selecting the template; And In response to detecting an interaction with the interactive interface, selecting the template corresponding to the interaction from a plurality of candidate templates.
5. The method according to claim 1, wherein determining the set of attributes of the target object based on the set of page elements comprises: Determining the set of attributes based on at least any one of the following: semantic analysis of the set of page elements, a machine learning model describing the association relationship between a set of page elements and a set of attributes.
6. The method according to claim 2, wherein the template comprises: Background image, and a set of insertion positions respectively corresponding to the set of attributes, and generating the information card of the target object includes: inserting the set of attributes at the set of insertion positions to generate the information card of the target object.
7. The method according to claim 1, further comprising: Providing an interactive interface for receiving the page address; And In response to detecting an interaction with the interactive interface, executing the method.
8. The method according to claim 1, further comprising: Sending the information card to a client device so as to provide the page in response to detecting an interaction with the information card.
9. The method according to claim 1, wherein the set of page elements includes at least any one of the following: image, text, video, link, component, and the set of attributes includes at least any one of the following: name, description, image, brand, price of the target object.
10. The method according to claim 1, wherein the target object includes at least any one of the following: physical item and virtual item.
11. An apparatus for generating an information card of an object, comprising: An obtaining module configured to obtain a set of page elements in the page upon receiving a page address of a page including a set of attributes of a target object; A determining module configured to determine the set of attributes of the target object based on the set of page elements; And A generating module configured to generate an information card of the target object based on the set of attributes.
12. An electronic device, comprising: at least one processing unit; and at least one memory, the at least one memory being coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit, the instructions, when executed by the at least one processing unit, causing the electronic device to perform the method according to any one of claims 1 to 11.
13. A computer-readable storage medium having stored thereon a computer program, the computer program, when executed by a processor, causing the processor to implement the method according to any one of claims 1 to 11.