Information comparison method and electronic device
By extracting information classification data and attribute information in response to user touch operations on the terminal device and displaying the comparison page, the problem of cumbersome and time-consuming information comparison process in the existing technology is solved, and the efficiency and flexibility of information comparison are achieved. optimized user experience.
Patent Information
- Application Number
- CN202110733453.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-30
- Publication Date
- 2025-02-11
- Estimated Expiration
- 2041-06-30
AI Technical Summary
When comparing information in existing terminal devices, the process is cumbersome and time-consuming, and it is impossible to compare information efficiently, especially in cross-page and cross-application scenarios.
When displaying the first information page and the second information page, the corresponding information classification data and attribute information are extracted in response to the user's touch operation, and when receiving the third touch operation, the ratio of the two information pages is displayed. For pages, realize cross-page and cross-application comparison of information.
It improves the efficiency and flexibility of information comparison, optimizes the user experience, and enables users to compare information more conveniently.
Smart Images

Figure CN113360044B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of smart terminal technology, and specifically to an information comparison method and an electronic device. Background Art
[0002] At present, when using a terminal device, users usually compare the information objects displayed on the terminal device. For example, when shopping online, users often need to compare different commodities and make a choice after comparison. In order to compare different information objects, users need to find text descriptions or picture information of the same type of parameters or attributes between two or more pages containing different information objects, compare various parameters or attributes between the two information objects based on the text descriptions or picture information, so as to determine the comparison result of the two information objects, and perform subsequent operations according to the comparison result.
[0003] Since a large amount of information is displayed on the information object display page, for the comparison of different types of parameters or attributes, the user can only switch the display page back and forth continuously, and obtain the product parameters or attributes that he is concerned about by checking the key information one by one. The whole process is cumbersome and time-consuming, and the user cannot compare information efficiently. Summary of the invention
[0004] The embodiments of the present application provide an information comparison method and an electronic device, which can solve the technical problems of complicated and time-consuming information comparison process, realize information comparison across pages and applications, improve information comparison efficiency, increase flexibility, and optimize user experience.
[0005] In a first aspect, an embodiment of the present application provides an information comparison method, comprising:
[0006] When a first information page is displayed, in response to a first touch operation on the first information page, extracting information classification data corresponding to the first information page and attribute information included in the first information page;
[0007] When the second information page is displayed, in response to a second touch operation on the second information page, extracting information classification data corresponding to the second information page and attribute information included in the second information page;
[0008] In response to the received third touch operation, a comparison page of the first information page and the second information page is displayed, the comparison page including the information classification data and attribute information of the first information page and the information classification data and attribute information of the second information page.
[0009] In a second aspect, an embodiment of the present application provides an information comparison device, including:
[0010] an information identification module, configured to extract, in response to a first touch operation on a first information page when a first information page is displayed, information classification data corresponding to the first information page and attribute information contained in the first information page, and to extract, in response to a second touch operation on the second information page when a second information page is displayed, information classification data corresponding to the second information page and attribute information contained in the second information page;
[0011] The information display module is used to display a comparison page of the first information page and the second information page in response to the received third touch operation, wherein the comparison page includes information classification data and attribute information of the first information page and information classification data and attribute information of the second information page.
[0012] In a third aspect, an embodiment of the present application provides an electronic device, comprising a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the information comparison method as described in the first aspect.
[0013] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the information comparison method as described in the first aspect is implemented.
[0014] The above-mentioned information comparison method, device, electronic device and storage medium extract the information classification data corresponding to the first information page and the attribute information contained in the first information page in response to the first touch operation on the first information page when the first information page is displayed; extract the information classification data corresponding to the second information page and the attribute information contained in the second information page in response to the second touch operation on the second information page when the second information page is displayed; and display the comparison page of the first information page and the second information page in response to the received third touch operation, the comparison page includes the information classification data and attribute information of the first information page and the information classification data and attribute information of the second information page. By adopting the above-mentioned technical means, through the identification and comparison of information pages, the cross-page and cross-application comparison of various types of attribute information of information objects can be realized, which is convenient for user operation, improves the efficiency of information comparison, and optimizes the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 It is a flowchart of an information comparison method provided by an embodiment of the present application;
[0016] Figure 2 This is a schematic diagram of the interactive operation of enabling the global comparison function in an embodiment of the present application;
[0017] Figure 3 is a schematic diagram of the interactive operation of the floating button in an embodiment of the present application;
[0018] Figure 4 is a flow chart for detecting information classification data and attribute information in an embodiment of the present application;
[0019] Figure 5 Schematic diagram of keyword detection in an embodiment of the present application;
[0020] Figure 6 is a schematic diagram of the interactive operation of selecting and comparing commodities in an embodiment of the present application;
[0021] Figure 7 A schematic diagram showing the number of collected information pages displayed by the floating button in the embodiment of the present application;
[0022] Figure 8 This is a schematic diagram of a product comparison page in an embodiment of the present application;
[0023] Fig. 9 is a flow chart of capturing page fragment regions in an embodiment of the present application;
[0024] Fig.10 This is a flow chart of splicing and displaying page fragment areas in an embodiment of the present application;
[0025] Fig.11 This is a schematic diagram of a product comparison page in which fragmented areas of a page are spliced and displayed in an embodiment of the present application;
[0026] Fig.12 It is a structural schematic diagram of an information comparison device provided by an embodiment of the present application;
[0027] Fig.13 It is a structural schematic diagram of an electronic device provided by an embodiment of the present application.
[0028] Fig.14 It is a schematic diagram of the hardware structure of the electronic device according to the embodiment of the present application; DETAILED DESCRIPTION
[0029] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
[0030] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0031] The information comparison method provided in the embodiment of the present application aims to obtain the information classification data and attribute information of the information object by identifying and detecting the information page displayed on the screen, and then compare different information objects according to their information classification data and attribute information, so as to realize the cross-page and cross-application comparison of information and improve the efficiency of information comparison. For the traditional information comparison method, taking the comparison of product information as an example, users often need to compare different products when shopping online, and make a choice after comparison. When comparing product information, since the online shopping app does not support the comparison of product pages, the user can only switch back and forth between the two product pages to compare the product information. If the two product pages belong to different apps, the comparison of product information will be more complicated. The user needs to switch back and forth between different apps, find the text description of the same parameters on the product page and compare them one by one, and the whole process is time-consuming and laborious. For scenarios where multiple products need to be compared, the user operation will be more cumbersome, and the interactive experience will be relatively poor. Based on this, an information comparison method of the embodiment of the present application is provided to solve the technical problems of the cumbersome and time-consuming information comparison process of the existing terminal device.
[0032] The information comparison method provided in the embodiment of the present application is described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.
[0033] Figure 1 Schematic diagram of a flow chart of an information comparison method provided by an embodiment of the present application. Figure 1 , the information comparison method includes:
[0034] S110. When a first information page is displayed, in response to a first touch operation on the first information page, extract information classification data corresponding to the first information page and attribute information included in the first information page.
[0035] S120. When a second information page is displayed, in response to a second touch operation on the second information page, extract information classification data corresponding to the second information page and attribute information included in the second information page.
[0036] Specifically, when performing information comparison, the embodiment of the present application determines the relevant information of the information object by identifying the information page according to the information object to be compared. The information objects of at least two information pages are identified, and then the identified information pages are compared, so as to implement the information comparison method of the embodiment of the present application. Among them, the information object is the target for which information comparison is required. Depending on the comparison scenario, the information object can be a variety of different types of targets. For example, when shopping for goods on an online shopping app, the goods displayed on the product page are information objects, and by identifying the relevant information of the goods on the product page, it can be used to compare information between different goods.
[0037] When a user uses a terminal device to browse an information page displayed on the screen, and needs to compare information on the information object contained in the current information page, the terminal device is triggered to detect and identify the information page currently displayed on the screen through a related touch operation. The terminal device predefines the touch operation that triggers the detection and identification of the information page. When the received touch operation is a predefined touch operation that triggers the detection and identification of the information page, the information page currently displayed on the screen is detected and identified in response to the current user's touch operation to obtain the information classification data and attribute information of the corresponding information object in the information page. Among them, the information classification data identifies the type of information object, such as clothing, computers, cosmetics, mobile phones, etc. The attribute information is the specific attribute information of the corresponding information object in the information page. Taking clothing as an example, its attribute information may include size, color classification, style, brand, fabric and price, etc.
[0038] Based on the information page that has been detected and identified, an information object ID (Identity document) will be assigned to the information page, and the information object contained in the information page will be identified using the information object ID. Each information page is represented by an information object ID, and the information object ID is bound to the identified information classification data and attribute information and stored, so as to facilitate the subsequent selection of information pages based on the information object ID for information comparison. The information object ID can specifically be a unique number, or it can be a combination of the information classification data and number information of the corresponding information object. It can also be a text description information for identifying the information object identified for the information object. The embodiment of the present application does not impose fixed restrictions on the specific form of the information object ID, which will not be elaborated here.
[0039] Furthermore, when the user browses the information page displayed on the screen, for each information page that needs to be compared, the user performs the information classification data and attribute information collection operation of the above information page through the predefined touch operation on the screen. The information classification data and attribute information contained in each collected information page are bound and stored with the corresponding assigned information object ID. When the user needs to compare the information of more than two identified information pages, more than two information object IDs can be selected for information comparison.
[0040] Exemplarily, for the comparison of two information pages, it is necessary to collect the information classification data and attribute information of the corresponding information object through touch operation respectively. For the first information page, the user touches the current screen through a predefined touch operation, and the terminal device responds to the user's touch operation (defined as the first touch operation) to identify the information page displayed on the current screen (defined as the first information page), and obtains the information classification data and attribute information of the corresponding information object in the first information page. Similarly, for the second information page, the user touches the screen through a predefined touch operation, and the terminal device responds to the user's touch operation (defined as the second touch operation) to identify the information page displayed on the screen (defined as the second information page), and obtains the information classification data and attribute information of the corresponding information object in the second information page. Based on the corresponding information classification data and attribute information collected from the first information page and the second information page, the user selects the two information pages, and based on the relevant touch operation, the information comparison of the corresponding information objects in the two information pages can be triggered. It can be understood that, since the embodiment of the present application identifies the information page displayed on the screen in real time, it is used for subsequent information comparison. Then, no matter whether the information page is from the same application or different applications, the information page can be identified by the information comparison method of the embodiment of the present application, and the user can identify the information page and compare the information object by touching the information page, so as to realize the information comparison across applications of the embodiment of the present application, simplify the information comparison operation of the user, and optimize the user's experience. It should be noted that in the actual information comparison process, the first information page may include one or more pages, and similarly, the second information page may include one or more pages. According to the information objects to be compared according to actual needs, the user can adaptively choose to identify the information page to obtain the information classification data and attribute information of each information object for information comparison. Optionally, the information objects of the first information page and the second information page can be of the same type (i.e., the information classification data is the same) or of different types. The embodiment of the present application does not impose fixed restrictions on the number of information pages and the types of their information objects, which will not be described in detail here.
[0041] S130. In response to the received third touch operation, display a comparison page of the first information page and the second information page, wherein the comparison page includes information classification data and attribute information corresponding to the first information page and the second information page.
[0042] Furthermore, when the user needs to compare the identified product page, the information object ID list is called out through relevant interactive operations (such as touch, voice, etc.), and the information object ID list contains the information object IDs of each identified information page, and each information object ID represents an information page. The user can select several information object IDs on the information object ID list to trigger the information comparison of the selected information object IDs.
[0043] Exemplarily, for the comparison of two information pages, the user calls up and displays the information object ID list, which contains the information object IDs corresponding to the identified first information page and the second information page. The user selects the corresponding information object IDs of the first information page and the second information page, thereby triggering the information comparison of the two pages, and displays the comparison page of the information objects corresponding to the first information page and the second information page on the screen. Among them, the comparison page should contain the information classification data and attribute information of the two information objects previously collected corresponding to the first information page and the second information page. By displaying the information classification data and attribute information contained in the first information page and the second information page on the same comparison page, the information comparison method of the embodiment of the present application can be implemented, making the information comparison more simple and efficient, and optimizing the user's operating experience.
[0044] Optionally, when displaying the comparison page of the first information page and the second information page, the embodiment of the present application displays the comparison page in different comparison windows according to different types of information classification data. For example, for the information page corresponding to the identification of the "clothing" information classification data, its attribute information is displayed in the comparison window corresponding to the "clothing" information classification data, and for the information page corresponding to the identification of the "mobile phone" information classification data, its attribute information is displayed in the comparison window corresponding to the "mobile phone" information classification data. By comparing the information classification data contained in the two information pages, the attribute information of the corresponding objects identified by the two information pages is displayed based on the comparison results.
[0045] Among them, when the information classification data corresponding to the first information page and the second information page are the same, the attribute information of the first information page and the second information page are displayed in the same comparison window in the comparison page according to the type of the attribute information; when the information classification data of the first information page and the second information page are different, the attribute information of the first information page and the second information page are respectively displayed in different comparison windows in the comparison page according to the type of the attribute information.
[0046] It is understandable that, in the case of a large number of information objects to be compared, considering the display limitations of the screen, by setting multiple comparison windows, the attribute information of each information object is displayed in the corresponding comparison window according to the information classification data. Each comparison window can use the information classification data as a window identifier, so that the user can view the information objects of the corresponding information classification data according to the window identifier, and realize more refined information comparison. In addition, in the comparison window, according to the different types of attribute information, the attribute information is displayed one by one, so that a more refined global information comparison can be realized. By viewing the different types of attribute information of two information objects in the same comparison window, the difference between the two information objects can be understood, and the information comparison results of the two information objects can be intuitively known. For example, in the process of commodity selection, the user identifies the commodity page (i.e., information page) of the commodity according to the commodity to be compared. The user triggers the commodity page identification through the relevant touch operation, and extracts the information classification data and attribute information of the corresponding commodity page. Afterwards, when performing information comparison, based on the multiple commodity pages selected by the user for commodity comparison, the attribute information is displayed in the comparison window according to the different information classification data of these commodity pages. Among them, if the information classification data of the two product pages are the same, the attribute information identified by the two product pages is displayed in the same comparison window. If the information classification data of the two product pages are different, the attribute information identified by the product pages is displayed in different comparison windows respectively. In addition, according to the size of the screen display interface, only one comparison window of the comparison page can be displayed in the screen display interface, or all comparison windows can be displayed in the current screen display interface. In the case of displaying only one comparison window, the user can switch the comparison window through the window switching operation to switch to display other comparison windows of the comparison page in the screen display interface.
[0047] The following uses product information comparison as an example to provide an exemplary description of the information comparison method of an embodiment of the present application.
[0048] Among them, when users use terminal devices to shop online, they refer to Figure 2, scroll down the screen to bring up the quick center page, find the global comparison function application on the quick center page, and click the global comparison function application icon to turn on / off the global comparison function application. The global comparison function application can also be placed directly on the desktop of the terminal device. Users can turn on the global comparison function application by clicking the global comparison function application icon. For further information, refer to Figure 3 , after the global comparison function is turned on, a floating button will be displayed on the desktop. Figure 3 As shown, a floating button for global information comparison is displayed in the lower right corner of the screen. The user can call up the close option of the floating button through touch operations such as long pressing. By selecting close, the floating button disappears and the global comparison function is closed. In addition, by pressing and holding the floating button, the user can drag the floating button to any position on the screen. When the user clicks the floating button, the global comparison function is triggered to detect and identify the current screen display page, and extract the information classification data and various types of attribute information contained in the current screen display information page.
[0049] Optional, see Figure 4 ,The detection process of information classification data and attribute information includes:
[0050] S1101, detecting the first information page based on preset keywords, and obtaining keyword information contained in the first information page;
[0051] S1102: Determine information classification data corresponding to the first information page and attribute information included in the first information page according to the keyword information.
[0052] The embodiment of the present application performs keyword information detection on the information page based on preset keywords, determines the keyword information corresponding to the preset keywords, and then determines the information classification data and attribute information contained in the information page based on the keyword information. Keyword information detection can perform text detection on the information page based on OCR (text recognition) technology, compare the detected text information with the preset keywords, and determine the text information that matches the keywords as keyword information. There are many ways to detect and identify keyword information on the information page. The embodiment of the present application does not stipulate or limit the specific identification method, which will not be elaborated here.
[0053] Optionally, when performing keyword information detection, include:
[0054] S11011. Detect the first information page based on a first preset keyword, and obtain first keyword information included in the first information page;
[0055] S11012. Determine information classification data corresponding to the first information page based on the first keyword information;
[0056] S11013. Obtain a second preset keyword pre-bound to the information classification data, detect the first information page based on the second preset keyword, and determine second keyword information corresponding to the attribute information in the first information page.
[0057] For example, after the global comparison function is enabled, Figure 5 As shown, when a user browses a product page in a shopping app and takes a fancy to a certain product, he can click the floating button "PK". At this time, the global comparison function is applied based on the user's touch of the floating button, and the product type (i.e., information classification data) on the current product page is automatically identified based on keyword information detection, and the keyword information "clothing" is determined as the product type identified on the current product page. Further, based on the identified product type, different set keywords are used to identify and extract the product information (i.e., attribute information) on the current page. The set keywords corresponding to different product types are shown in Table 1 below:
[0058] Table 1: Keyword settings for each product type
[0059]
[0060] It should be noted that in actual applications, multiple keywords are needed to match a product information. For example, the keywords for product selling price may include "¥", "selling price", "price", "price" and "quote", etc. Moreover, the detection and recognition of keyword information requires not only the text data on the product page, but also the keyword information detection of the image data on the product page.
[0061] After the product page is identified based on keyword detection, preprocessing is performed based on the acquired keyword information, duplicate data is filtered and deduplicated, and the identified information of the same type is merged. The preprocessed information is then saved locally, and the product type and product information of each type of the corresponding product in the product page can be obtained. Furthermore, based on the product type and product information saved for the product on the corresponding product page, the embodiment of the present application generates a unique product ID corresponding to the product, identifies the corresponding product with this product ID, and binds the product ID to the product type and product information, which facilitates the subsequent extraction of product type and product information data.
[0062] When browsing the product page, users should click the floating button to identify the product page according to the product they actually need to compare, and obtain the product type and product information of the corresponding product. In this way, the product type and product information of the products that need to be compared can be collected one by one. After that, when the user needs to view the product comparison results, he can jump to the "My Comparison" page by long pressing the floating button or other touch operations. Figure 6As shown, a product ID list is displayed on the page. The product ID list contains the product IDs of all identified product pages. Users can select the product IDs that need to be compared, or delete the product IDs that do not need to be compared from the page. Optionally, for newly added product IDs, they can be selected by default to facilitate product comparison. And when the user exits the "My Comparison" page, refer to Figure 7 The number of products selected for comparison will be displayed in the upper right corner of the floating button "PK".
[0063] Furthermore, when the user selects the product ID to be compared on the "My Comparison" page and clicks the "Start Comparison" button, the global comparison function application will read the product type and product information data bound to the selected product ID from the local computer. Figure 8 , according to the different types of products participating in the comparison, the product information of the products is displayed in different comparison windows, and the product information is displayed row by row according to different types. Figure 8 As shown, area ① of the comparison page displays the product type and the number of products of the product type involved in the comparison, such as "clothing / 2", "mobile phone / 3" and "cosmetics / 4". Each product type corresponds to a comparison window, and users can click on different product types to switch the comparison window. For information that exceeds the screen display area, you can browse it by sliding left and right. Area ② is the type of product information, and area ③ is the information of each type of product involved in the comparison. The product information is displayed in columns according to different products, so that users can compare line by line according to the type of product information. Similarly, when the product information exceeds the screen display area, you can also slide left and right to browse. Optionally, set the close option "X" at the "brand" corresponding to each product. The user clicks the close option "X" to dynamically delete the product information of the corresponding product. When the product is deleted to 0, the corresponding product type in area ① is deleted.
[0064] In one embodiment, when the global comparison function is applied to identify a product page, the product image and / or size image contained in the product page is also detected, and the product image and / or size image are extracted as the corresponding type of product information. When the product comparison page is subsequently displayed, the product image and size image are displayed as the corresponding type of product information. Figure 8 As shown, corresponding to the two types of product information, "size" and "detailed display", size pictures and product pictures are used to represent the product information. Users can click on these pictures to enlarge them. This optimizes the display and comparison effect of product information, further optimizes the global comparison effect of product information in the embodiment of the present application, and realizes more refined product information comparison.
[0065] Optionally, in one embodiment, keyword information detection can be performed to intercept page fragment area images corresponding to the information page to represent various types of attribute information of the information object. Fig. 9 Taking the first information page as an example, the process of capturing the image of the page fragment area includes:
[0066] S1103, detecting the first information page based on preset keywords, and obtaining keyword information contained in the first information page;
[0067] S1104: Determine information classification data and a corresponding page fragment area image corresponding to the first information page according to the keyword information, and use the page fragment area image as attribute information of the first information page.
[0068] The capture of the page fragment area image of the second information page is also implemented according to the above-mentioned capture process of the page fragment area image. Specifically, after the keyword information contained in the information page is detected based on the set keywords, the information classification data of the current information page is first automatically identified based on the keyword information detection. Further, based on the identified information classification data, different set keywords are used to identify the attribute information on the current page. Based on the identified attribute information, different from the method of directly extracting the attribute information in the above-mentioned steps S1101 to S1102, this embodiment determines the location of the attribute information, takes a screenshot of the information page corresponding to the location of the attribute information, and captures the corresponding page fragment area image, and uses each captured page fragment area image as the attribute information of each type of the corresponding information object.
[0069] Correspondingly, based on the page fragment area images collected in the above steps S1103 to S1104, when comparing page displays later, refer to Fig.10 , taking the comparison of two information pages as an example, the process of displaying the comparison page of the first information page and the second information page includes:
[0070] S1301, splicing the page fragment area images of the first information page and the second information page into an attribute image according to a set order;
[0071] S1302: Display the attribute image in the comparison page.
[0072] Based on the information classification data and page fragment area images of each information page that have been collected, a comparison page of the first information page and the second information page is generated, and each page fragment area image of the corresponding information object is spliced into an attribute image according to a set splicing order. The attribute image contains various types of attribute information in the corresponding information page. In this way, when comparing two information pages, the difference between the two attribute images can be compared in parallel to determine the difference in the attribute information of the two, so as to achieve a more specific and refined information comparison effect.
[0073] For example, taking the comparison of product information as an example, when performing the comparison of product information, the global comparison function application is turned on and the floating button of the global comparison function application is clicked to identify the product page. When the user clicks the floating button on the product page, the product type of the page and the keyword information representing each type of product information are identified according to the keyword, and the page fragment area image is intercepted according to the area where the keyword information is located, and the page fragment area image is saved locally as each type of product information. For each product page that needs to be identified, the page fragment area image is intercepted in the above manner to represent its product information.
[0074] After that, when you select the products to be compared, Fig.11 As shown, on the comparison page, the page fragment area images representing the commodity information of each type of commodity are spliced in a set order and displayed as a long image, namely the attribute image. Among them, the commodity type of the commodity and the number of commodities of the commodity type participating in the comparison are displayed in area ① of the comparison page, such as "clothes / 2", "mobile phones / 3" and "cosmetics / 2". Each commodity type corresponds to a comparison window, and the user can click on different commodity types to switch the comparison window. For information exceeding the screen display area, it can be browsed by sliding left and right. Area ② is the type of commodity information, and area ③ is the attribute image corresponding to each commodity. The attribute image is spliced by the page fragment area image according to the arrangement order of the commodity information type in area ②. Each commodity uses a re-spliced attribute image to display its commodity information, and the position exceeding the screen display area can be slid to display, so as to realize the information comparison of the embodiment of the present application. The embodiment of the present application uses the page fragment area image to represent the attribute information of the information object, which can completely retain all the information details of the information object, ensure that the relevant data on the information page is not missed, and facilitate users to compare more detailed information.
[0075] In addition, it should be noted that the information comparison method of the embodiment of the present application not only compares commodities, but can also compare the contents of two pictures or two files according to actual needs. The embodiment of the present application does not impose fixed restrictions on the specific information objects to be compared, and will not be elaborated here.
[0076] In the above, when the first information page is displayed, in response to the first touch operation on the first information page, the information classification data corresponding to the first information page and the attribute information contained in the first information page are extracted; when the second information page is displayed, in response to the second touch operation on the second information page, the information classification data corresponding to the second information page and the attribute information contained in the second information page are extracted; in response to the received third touch operation, a comparison page of the first information page and the second information page is displayed, and the comparison page includes the information classification data and attribute information of the first information page and the information classification data and attribute information of the second information page. By adopting the above technical means, through the identification and comparison of information pages, the cross-page and cross-application comparison of various types of attribute information of information objects can be realized, which is convenient for user operation, improves the efficiency of information comparison, and optimizes the user experience.
[0077] It should be noted that the information comparison method provided in the embodiment of the present application can be executed by an information comparison device or a control module in the information comparison device for executing the information comparison method. In the embodiment of the present application, the information comparison device provided in the embodiment of the present application is described by taking the information comparison device executing the information comparison method as an example.
[0078] Fig.12 Schematic diagram of the structure of an information comparison device provided by an embodiment of the present application. Fig.12 As shown, the information comparison device includes: an information identification module 21 and an information display module 22.
[0079] The information identification module 21 is used to extract information classification data corresponding to the first information page and attribute information contained in the first information page in response to a first touch operation on the first information page when the first information page is displayed, and is used to extract information classification data corresponding to the second information page and attribute information contained in the second information page in response to a second touch operation on the second information page when the second information page is displayed;
[0080] The information display module 22 is used to display a comparison page of the first information page and the second information page in response to the received third touch operation, and the comparison page includes information classification data and attribute information of the first information page and information classification data and attribute information of the second information page.
[0081] Based on the above embodiment, the information display module 22 includes:
[0082] A window display unit is used to display the attribute information of the first information page and the second information page in the same comparison window in the comparison page according to the type of the attribute information when the information classification data corresponding to the first information page and the second information page are the same; and to display the attribute information of the first information page and the second information page respectively in different comparison windows in the comparison page according to the type of the attribute information when the information classification data corresponding to the first information page and the second information page are different.
[0083] Based on the above embodiment, the information identification module 21 is used to detect the first information page based on preset keywords to obtain the keyword information contained in the first information page; and determine the information classification data corresponding to the first information page and the attribute information contained in the first information page according to the keyword information.
[0084] Based on the above embodiment, the information identification module is used to detect the first information page based on a first preset keyword to obtain the first keyword information contained in the first information page; based on the first keyword information, determine the information classification data corresponding to the first information page; obtain the second preset keyword pre-bound to the information classification data, and detect the first information page based on the second preset keyword to determine the second keyword information corresponding to the attribute information in the first information page.
[0085] On the basis of the above embodiment, the information identification module 21 is also used to detect the first information page based on preset keywords to obtain the keyword information contained in the first information page; determine the information classification data corresponding to the first information page and the corresponding page fragment area image according to the keyword information, and use the page fragment area image as the attribute information of the first information page; detect the second information page based on preset keywords to obtain the keyword information contained in the second information page; determine the information classification data corresponding to the second information page and the corresponding page fragment area image according to the keyword information, and use the page fragment area image as the attribute information of the second information page.
[0086] The information display module 22 includes:
[0087] The splicing and displaying unit is used to splice the page fragment area images of the first information page and the second information page into attribute images according to a set order, and display the attribute images in the comparison page.
[0088] In the above, when the first information page is displayed, in response to the first touch operation on the first information page, the information classification data corresponding to the first information page and the attribute information contained in the first information page are extracted; when the second information page is displayed, in response to the second touch operation on the second information page, the information classification data corresponding to the second information page and the attribute information contained in the second information page are extracted; in response to the received third touch operation, a comparison page of the first information page and the second information page is displayed, and the comparison page includes the information classification data and attribute information of the first information page and the information classification data and attribute information of the second information page. By adopting the above technical means, through the identification and comparison of information pages, the cross-page and cross-application comparison of various types of attribute information of information objects can be realized, which is convenient for user operation, improves the efficiency of information comparison, and optimizes the user experience.
[0089] The information comparison device in the embodiment of the present application can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and the non-mobile electronic device can be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0090] The information comparison device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0091] The information comparison device provided in the embodiment of the present application can achieve Figures 1 to 11 To avoid repetition, the various processes implemented by the method embodiment are not described here.
[0092] Alternatively, if Fig.13As shown, an embodiment of the present application also provides an electronic device 30, including a processor 301, a memory 302, and a program or instruction stored in the memory 302 and executable on the processor 301. When the program or instruction is executed by the processor 301, each process of the above-mentioned information comparison method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0093] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
[0094] Fig.14 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.
[0095] The electronic device 30 includes but is not limited to components such as a processor 301 , a memory 302 , a user input unit 303 , and a display unit 304 .
[0096] Those skilled in the art will appreciate that the electronic device 30 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 301 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig.13 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0097] Among them, the processor 301 is used to, when displaying a first information page, extract the information classification data corresponding to the first information page and the attribute information contained in the first information page in response to a first touch operation on the first information page; when displaying a second information page, extract the information classification data corresponding to the second information page and the attribute information contained in the second information page in response to a second touch operation on the second information page; in response to a received third touch operation, display a comparison page of the first information page and the second information page, the comparison page including the information classification data and attribute information of the first information page and the information classification data and attribute information of the second information page.
[0098] Optionally, the processor 301 is further used to display the attribute information of the first information page and the second information page in the same comparison window in the comparison page according to the type of the attribute information when the information classification data corresponding to the first information page and the second information page are the same; and to respectively display the attribute information of the first information page and the second information page in different comparison windows in the comparison page according to the type of the attribute information when the information classification data corresponding to the first information page and the second information page are different.
[0099] Optionally, the processor 301 is further used to detect the first information page based on preset keywords to obtain keyword information contained in the first information page; and determine information classification data corresponding to the first information page and attribute information contained in the first information page according to the keyword information.
[0100] Optionally, the processor 301 is also used to detect the first information page based on a first preset keyword to obtain first keyword information contained in the first information page; based on the first keyword information, determine the information classification data corresponding to the first information page; obtain the second preset keyword pre-bound to the information classification data, and detect the first information page based on the second preset keyword to determine the second keyword information corresponding to the attribute information in the first information page.
[0101] Optionally, the processor 301 is also used to detect the first information page based on preset keywords to obtain keyword information contained in the first information page; determine the information classification data and the corresponding page fragment area image corresponding to the first information page according to the keyword information, and use the page fragment area image as the attribute information of the first information page; detect the second information page based on preset keywords to obtain keyword information contained in the second information page; determine the information classification data and the corresponding page fragment area image corresponding to the second information page according to the keyword information, and use the page fragment area image as the attribute information of the second information page; respectively splice the page fragment area images of the first information page and the second information page into an attribute image in a set order; and display the attribute image in the comparison page.
[0102] In summary, the electronic device provided in this embodiment extracts the information classification data corresponding to the first information page and the attribute information contained in the first information page in response to the first touch operation on the first information page when displaying the first information page; extracts the information classification data corresponding to the second information page and the attribute information contained in the second information page in response to the second touch operation on the second information page when displaying the second information page; and displays the comparison page of the first information page and the second information page in response to the received third touch operation, the comparison page includes the information classification data and attribute information of the first information page and the information classification data and attribute information of the second information page. By adopting the above technical means, through the identification and comparison of information pages, the cross-page and cross-application comparison of various types of attribute information of information objects can be realized, which is convenient for user operation, improves the efficiency of information comparison, and optimizes the user experience.
[0103] It should be understood that in the embodiment of the present application, the display unit 304 may include a display panel 3041, and the display panel 3041 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 303 includes a touch panel 3031 and other input devices 3032. The touch panel 3031 is also called a touch screen. The touch panel 3031 may include two parts: a touch detection device and a touch controller. Other input devices 3032 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), a trackball, a mouse, and a joystick, which are not repeated here. The memory 302 may be used to store software programs and various data, including but not limited to applications and operating systems. The processor 301 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and applications, etc., and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 301.
[0104] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned information comparison method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0105] The processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0106] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned information comparison method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0107] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0108] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0109] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0110] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. An information comparison method, characterized in that: include: When a first information page is displayed, in response to a first touch operation on the first information page, extracting information classification data corresponding to the first information page and attribute information included in the first information page; When the second information page is displayed, in response to a second touch operation on the second information page, extracting information classification data corresponding to the second information page and attribute information included in the second information page; In response to the received third touch operation, displaying a comparison page of the first information page and the second information page, the comparison page including the information classification data and attribute information of the first information page and the information classification data and attribute information of the second information page; The extracting of information classification data corresponding to the first information page and attribute information contained in the first information page includes: Detecting the first information page based on preset keywords to obtain keyword information contained in the first information page; determining information classification data and a corresponding page fragment area image corresponding to the first information page according to the keyword information, and using the page fragment area image as attribute information of the first information page; The extracting the information classification data corresponding to the second information page and the attribute information contained in the second information page includes: Detecting the second information page based on preset keywords, and obtaining keyword information contained in the second information page; determining information classification data and a corresponding page fragment area image corresponding to the second information page according to the keyword information, and using the page fragment area image as attribute information of the second information page; The display of the comparison page between the first information page and the second information page includes: splicing the page fragment area images of the first information page and the second information page into an attribute image in a set order; The attribute image is displayed in the comparison page.
2. The method according to claim 1, characterized in that The display of the comparison page between the first information page and the second information page includes: In the case where the information classification data corresponding to the first information page and the second information page are the same, displaying the attribute information of the first information page and the second information page in the same comparison window in the comparison page according to the type of the attribute information; When the information classification data of the first information page and the second information page are different, the attribute information of the first information page and the second information page are respectively displayed in different comparison windows in the comparison page according to the type of the attribute information.
3. The method according to claim 1 or 2, characterized in that: The extracting the information classification data corresponding to the first information page and the attribute information contained in the first information page includes: Detecting the first information page based on preset keywords to obtain keyword information contained in the first information page; The information classification data corresponding to the first information page and the attribute information contained in the first information page are determined according to the keyword information.
4. The method according to claim 3, characterized in that The detecting the first information page based on the preset keyword to obtain the keyword information contained in the first information page includes: Detecting the first information page based on a first preset keyword to obtain first keyword information contained in the first information page; Based on the first keyword information, determining information classification data corresponding to the first information page; A second preset keyword pre-bound to the information classification data is obtained, and the first information page is detected based on the second preset keyword to determine second keyword information corresponding to the attribute information in the first information page.
5. An information comparison device, characterized in that: include: an information identification module, configured to extract, in response to a first touch operation on a first information page when a first information page is displayed, information classification data corresponding to the first information page and attribute information contained in the first information page, and to extract, in response to a second touch operation on the second information page when a second information page is displayed, information classification data corresponding to the second information page and attribute information contained in the second information page; an information display module, configured to display a comparison page of the first information page and the second information page in response to a received third touch operation, the comparison page including information classification data and attribute information of the first information page and information classification data and attribute information of the second information page; The information identification module is further used to detect the first information page based on preset keywords to obtain keyword information contained in the first information page; determine information classification data and a corresponding page fragment area image corresponding to the first information page according to the keyword information, and use the page fragment area image as attribute information of the first information page; Detecting the second information page based on preset keywords to obtain keyword information contained in the second information page; determining information classification data and a corresponding page fragment area image corresponding to the second information page according to the keyword information, and using the page fragment area image as attribute information of the second information page; The information display module includes: The splicing and displaying unit is used to splice the page fragment area images of the first information page and the second information page into attribute images according to a set order, and display the attribute images in the comparison page.
6. The device according to claim 5, characterized in that The information display module includes: A window display unit is used to display the attribute information of the first information page and the second information page in the same comparison window in the comparison page according to the type of the attribute information when the information classification data corresponding to the first information page and the second information page are the same; and to display the attribute information of the first information page and the second information page respectively in different comparison windows in the comparison page according to the type of the attribute information when the information classification data corresponding to the first information page and the second information page are different.
7. The device according to claim 5 or 6, characterized in that The information identification module is used to detect the first information page based on preset keywords to obtain keyword information contained in the first information page; and determine information classification data corresponding to the first information page and attribute information contained in the first information page according to the keyword information.
8. An electronic device, characterized in that: It includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the information comparison method as described in any one of claims 1 to 4.
9. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, the steps of the information comparison method according to any one of claims 1 to 4 are implemented.
Citation Information
Patent Citations
Commodity information comparing method, commodity information comparing device and terminal equipment
CN106097072A
Commodity management method and device, computer device and storage medium
CN110189187A
Information display method and device and electronic device
CN112269504A