Comment generation method and device

By generating and using the scenario code marking review content of the target interface, the problem of the function of the existing technical review function is low, credible, and low, and achieve higher comment security and user trust.

CN113504853BActive Publication Date: 2025-01-28VIVO MOBILE COMM HANGZHOU CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110772815.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-08
Publication Date
2025-01-28
Estimated Expiration
2041-07-08

AI Technical Summary

Technical Problem

The security and credibility of the existing technology comment function is low, and there is market chaos in some applications making fake comments, which misleads consumers and is not very safe and credible.

Method used

By generating the scenario code based on the unique identification information based on the target interface of the electronic device, and use the scene code to mark the review content when submitting a comment, realize the comment generation, and improve the safety and credibility of the comment.

Benefits of technology

Through the effective use of the system -level interface control recognition capability analysis interface layout to achieve comment generation, improve the security and credibility of the comment, avoid comments and fakes, and enhance the user's trust.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113504853B_ABST
    Figure CN113504853B_ABST
Patent Text Reader

Abstract

The present application discloses a comment generation method and device, which belongs to the field of communication technology. The comment generation method comprises: generating a scene code of the target interface based on the unique identification information of the target interface of the electronic device; obtaining the user's comment content on the target interface, marking the comment content with the scene code, and obtaining the marked comment content as the target comment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of communication technology, and specifically relates to a comment generation method and device. Background Art

[0002] At present, the data of the comment function of various third-party applications such as shopping / video / information are managed and controlled by the third-party applications' own data management background. There is a market chaos in which some applications make false comments, which will mislead consumers and their security and credibility are not high. Summary of the invention

[0003] The purpose of the embodiments of the present application is to provide a comment generation method and device that can solve the problem of low security and credibility of the comment function in the prior art.

[0004] In a first aspect, an embodiment of the present application provides a comment generation method, the method comprising:

[0005] Based on the unique identification information of the target interface of the electronic device, generating a scene code of the target interface;

[0006] The user's comment content for the target interface is obtained, and the comment content is marked with the scene code, and the marked comment content is obtained as the target comment.

[0007] In a second aspect, an embodiment of the present application provides a comment generation device, including:

[0008] A scene code generation module, used to generate a scene code of a target interface based on unique identification information of the target interface of the electronic device;

[0009] The comment generation module is used to obtain the user's comment content on the target interface, mark the comment content with the scene code, and obtain the marked comment content as the target comment.

[0010] In a third aspect, an embodiment of the present application provides an electronic device, which 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 method described in the first aspect.

[0011] 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 steps of the method described in the first aspect are implemented.

[0012] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.

[0013] In an embodiment of the present application, a scene code of the display interface is generated based on the unique identification information of the display interface, and the user's comment content is marked with the scene code when the user submits the comment. By effectively using the system-level interface control recognition capability to analyze the interface layout, comment generation can be achieved, which has higher security and reliability. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] Figure 1 A flowchart of a method for generating comments provided in an embodiment of the present application;

[0015] Figure 2 It is one of the display interfaces of comments in the comment generation method provided in the embodiment of the present application;

[0016] Figure 3 The second display interface of comments in the comment generation method provided according to the embodiment of the present application;

[0017] Figure 4 The third display interface of comments in the comment generation method provided in the embodiment of the present application;

[0018] Figure 5 A schematic diagram of the structure of a review generating device provided in an embodiment of the present application;

[0019] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0020] Figure 7 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application. DETAILED DESCRIPTION

[0021] 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.

[0022] 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.

[0023] The embodiment of the present application aims at the problem of low security reliability of the prior art. The scene code of the display interface is generated according to the unique identification information of the display interface, and the scene code is used to mark the user's comment content when the user submits the comment. The comment generation can be realized by effectively using the system-level interface control recognition capability to analyze the interface layout, and the security reliability is higher. The comment generation method and device provided by the embodiment of the present application are described in detail below with reference to the accompanying drawings through specific embodiments and their application scenarios.

[0024] Figure 1 This is a flowchart of the comment generation method provided in the embodiment of the present application. The method can be executed by a terminal with input and display functions, etc. It is a user comment interaction method based on the system-level interface control recognition capability. By using the system-level capability to analyze the interface layout, users are allowed to comment and communicate in any application interface, and the comments are uniformly managed in the background. Figure 1 As shown, the method includes:

[0025] Step 101: Generate a scene code of a target interface based on unique identification information of the target interface of the electronic device.

[0026] It can be understood that the embodiment of the present application can first obtain the unique identification information of a specific interface (such as the interface currently displayed on the desktop) of an electronic device (such as a user's smart phone, tablet computer, etc.), and the specific interface can be called the target interface. Among them, the unique identification information is the information that can uniquely identify and determine the target interface.

[0027] Afterwards, at the system level of the electronic device, a unique character string can be generated based on the unique identification information of the target interface. The character string corresponds to the scene displayed by the target interface and can be called the scene code of the target interface.

[0028] Optionally, generating the scene code of the target interface includes: obtaining the Activity code and the value of the title view control of the target interface, and generating the scene code of the target interface based on the Activity code and the value of the title view control, or performing image recognition on a screenshot of the target interface or identifying the title of the playback window in the target interface to obtain the unique identification information of the target interface, and generating the scene code based on the unique identification information.

[0029] It can be understood that for the display interface of third-party applications, the corresponding Activity code on the mobile terminal is usually unique, and the name or code of the title view control of the page is also unique. When the value of the title view control is determined, it will be displayed as the corresponding content in the display interface, so the scene code of the display interface can be generated in the form of Activity code plus the value of the title view control.

[0030] That is to say, the scene code of this type of display interface can be composed of two parts, namely, the Activity code and the value of the title view control (which can be referred to as the title value for short). Display interfaces with the same scene code can communicate with each other.

[0031] Among them, the Activity code can uniquely locate a display interface. For example, the homepage of a telecommunications enterprise application on a mobile terminal corresponds to the Activity code com.sinovatech.unicom.basic.ui.activity.MainActivity. Then users can comment on the homepage of the telecommunications enterprise application, and the comments can be communicated with each other.

[0032] The title value indicates the title of the displayed page. For example, most of the pages in a telecommunications company's application are in H5 format, and the corresponding native interface is the same, that is, the corresponding Activity code is the same. If H5 pages for different business purposes directly communicate with each other, there is a problem that the comment content does not correspond to the business scenario. Therefore, it is necessary to increase the title content as a scene distinction, and only the same title content can communicate with each other. For example, a telecommunications company's "Balance Query" and "Remaining Call Charge" are both H5 pages. The difference is that the values ​​of the webdetail_title_textview control (that is, the title view control numbered webdetail_title_textview) are "Balance Query" and "Remaining Call Charge" respectively.

[0033] Among them, the title value is allowed to be empty. When the title ID is not configured, it means that the corresponding Activity code no longer needs to be subdivided into secondary scenes, such as the homepage of a telecommunications company's application.

[0034] For display interfaces that are not marked with Activity codes, the display interfaces are marked according to the title of the display page or the displayed image. That is, a screenshot of the current display interface can be taken, and image recognition can be performed on the screenshot image to obtain unique identification information corresponding to the target interface. Alternatively, the title displayed in the playback window of the target interface can be read, and information on the title can be identified to obtain unique identification information corresponding to the target interface. Afterwards, a scene code corresponding to the scene displayed on the target interface is generated based on the unique identification information.

[0035] Step 102, obtaining the user's comment content on the target interface, marking the comment content with the scene code, and obtaining the marked comment content as the target comment.

[0036] It can be understood that when a user inputs a comment content for a target interface through a terminal, the embodiment of the present application can obtain the comment content using the comment data management background. Afterwards, the embodiment of the present application can mark the comment content using the scene code of the target interface generated in the above steps, and the new comment obtained is the marked comment content, and the marked comment content can be called the target comment, so as to distinguish comments of different scenes according to different scene codes, and submit the comment to the corresponding scene code when submitting the comment.

[0037] In an embodiment of the present application, a scene code of the display interface is generated based on the unique identification information of the display interface, and the user's comment content is marked with the scene code when the user submits the comment. By effectively using the system-level interface control recognition capability to analyze the interface layout, comment generation can be achieved, which has higher security and reliability.

[0038] Optionally, when generating the scene code based on the Activity code and the value of the title view control, the method further includes: configuring a display interface whitelist list, the display interface whitelist list including at least the Activity code and the unique number of the title view control of the display interface that supports comments.

[0039] It can be understood that, according to the above embodiment, for the display interface of a third-party application, a display interface whitelist list can be configured and generated in advance, and the display interface whitelist list lists the Activity codes and unique numbers of the title view controls of all display interfaces that support the comment generation function of the embodiment of the present application. In other words, the embodiment of the present application can maintain a database of a whitelist list of display interfaces that support comments in the background, and when the scene needs to be divided by title, the unique code of the title view control needs to be entered at the same time. As shown in Table 1, this is an example of a display interface whitelist list according to an embodiment of the present application.

[0040] Table 1: Example of a display interface whitelist according to an embodiment of the present application

[0041]

[0042] In Table 1, the description note is a text description of the corresponding scene code, which is convenient for developers to retrieve the corresponding display interface information. The Activity code can uniquely locate a display interface. For example, the homepage of a telecommunications enterprise application on a mobile terminal corresponds to the Activity code com.sinovatech.unicom.basic.ui.activity.MainActivity, so users can comment on the homepage of a telecommunications enterprise application, and the comments can be communicated.

[0043] The title ID means that if the same interface corresponds to multiple scenarios, the ID of the title view control needs to be entered. For example, most of the pages in a telecommunications company's application are in H5 format, and the corresponding native interface is the same, that is, the corresponding Activity code is the same. If H5 pages for different business purposes directly communicate with each other, there is a problem that the comment content does not correspond to the business scenario. Therefore, it is necessary to add title content as a scene distinction, and only the same title content can communicate with each other. For example, a telecommunications company's "Balance Query" and "Remaining Call Charge" are both H5 pages. The difference is that the values ​​of the webdetail_title_textview control are "Balance Query" and "Remaining Call Charge", respectively. The two scenarios should not share a set of comments.

[0044] Optionally, generating the scene code of the target interface based on the Activity code and the value of the title view control includes: retrieving a display interface whitelist based on the Activity code of the target interface and the number of the title view control, and generating the scene code of the target interface based on the Activity code and the value of the title view control when a corresponding display interface Activity code and unique number of the title view control are matched in the display interface whitelist.

[0045] The display interface whitelist is a pre-configured list that includes at least the Activity code of the display interface supporting comments and the unique number of the title view control.

[0046] It can be understood that before generating the scene code of the target interface based on the Activity code of the target interface and the value of the title view control, the embodiment of the present application first searches the display interface whitelist list for matching Activity code and title view control number information based on the Activity code of the target interface and the number of the title view control.

[0047] If the corresponding Activity code and unique number of the title view control are matched in the display interface whitelist, it means that the target interface supports the system-level comment function of the embodiment of the present application. Therefore, the scene code of the target interface can be generated according to the value of the Activity code and the title view control of the target interface. Otherwise, it means that the target interface does not support the comment function of the present application, and the scene code of the target interface will not be generated, and the corresponding comment will not be generated.

[0048] The embodiment of the present application configures a display interface whitelist in advance, and only allows comments on the display interface when there is matching information in the scene code of the target interface in the display interface whitelist, thereby better protecting the user's information security and freeing the user from being disturbed.

[0049] Optionally, the comment generation method described in the embodiment of the present application further includes: obtaining at least one target comment marked with the scene code; and displaying the at least one target comment in a preset area on the desktop of the electronic device.

[0050] It can be understood that the embodiment of the present application can extract one or more target comments with the same scene code mark (i.e., marked with the same scene code) from the data management background according to the same scene code, and then display these comments in a preset area on the desktop of the user's electronic device according to a preset display method. Optionally, the embodiment of the present application can start the comment function of the present application according to the user operation, or it can start the comment function of the present application by itself. When starting the comment function according to the user operation, the embodiment of the present application needs to pre-set a shortcut operation to start the comment function, such as a sliding operation according to a preset sliding trajectory, a double-clicking operation on a preset position on the desktop, or placing the electronic device horizontally. Afterwards, the embodiment of the present application monitors whether the user has performed an operation consistent with the preset shortcut operation. If so, the comment function and the corresponding display function are enabled.

[0051] Optionally, during the process of a user using a third-party application, the embodiment of the present application can automatically analyze whether the interface the user is currently in is in the configured display interface whitelist. If the current interface belongs to the display interface whitelist, the comment content corresponding to the target interface is extracted and displayed according to a certain interaction.

[0052] Optionally, in the embodiment of the present application, based on the comments displayed on the target interface, users can also exchange comments, like comments and post comments. Comment exchange, that is, replying to comments, can be implemented using existing technologies, such as clicking on a comment, popping up an input box, entering the reply content in the input box, and posting it.

[0053] The embodiment of the present application displays comments marked with the same scene code, so that user comment data under the same scene code can be interconnected, and the interactivity is stronger.

[0054] Optionally, displaying the at least one target comment in a preset area on the desktop of the electronic device includes: displaying a pop-up panel in an edge area on the desktop of the electronic device, and displaying the at least one target comment on the pop-up panel.

[0055] It can be understood that when the target comments under the same scene code are displayed, the embodiment of the present application can be displayed in the form of a pop-up panel in the edge area of ​​the terminal. That is, a pop-up panel can be displayed at the top, bottom, left or right edge of the terminal (such as a mobile phone), and the comments under the scene code of the extracted target interface can be displayed in the pop-up panel. For example, the bottom pop-up panel can be used for display.

[0056] The embodiment of the present application displays comments in the edge area of ​​the electronic device desktop through a pop-up panel, which displays rich content without affecting the user's normal use of the application, thereby improving user participation.

[0057] Optionally, the preset area on the desktop of the electronic device displays the at least one target comment, including: displaying a partial area of ​​a pop-up panel in the edge area of ​​the desktop of the electronic device, and displaying part of the at least one target comment in the partial area of ​​the pop-up panel; the comment generation method also includes: receiving a first input from a user to the partial area of ​​the pop-up panel; in response to the first input, increasing the display area of ​​the pop-up panel; and displaying the at least one target comment in the enlarged pop-up panel.

[0058] It can be understood that when using a pop-up panel to display comments, Figure 2 As shown, this is one of the display interfaces of comments in the comment generation method provided according to an embodiment of the present application. The successfully extracted user comment content for the target interface can be displayed in a pop-up panel in the desktop edge area (such as the bottom) of the electronic device with a small part leaking out, which will not affect the user's normal use of the application.

[0059] If the user is interested in the comment, the pop-up panel can be operated in accordance with the preset operation, such as dragging, single-clicking, double-clicking, etc. After the user operates the pop-up panel, the terminal can obtain the operation and use it as the user's first input. Afterwards, the display range of the pop-up panel can be enlarged according to the user's first input, and more detailed comment content can be displayed in the enlarged pop-up panel. For example, Figure 2 As shown, the user can drag the pop-up panel at the bottom of the terminal desktop to enlarge the system-level comment interface, which can be enlarged to full screen at most, making it easier to browse more comment content.

[0060] Optionally, in the initial state, the embodiment of the present application does not display the comments on the target interface. When the user wants to comment on the target interface or wants to view the comments about the target interface, the user can perform operations consistent with the preset operation form on the desktop of the electronic device. Figure 3 As shown, this is the second display interface of the comments in the comment generation method provided according to the embodiment of the present application. When a third-party application is displayed on the desktop of the electronic device, the user can drag out the comment interface of the embodiment of the present application by swiping up the desktop. At this time, the comment interface can be displayed in the form of a pop-up panel at the bottom of the electronic device desktop.

[0061] Optionally, the preset area on the desktop of the electronic device displays the at least one target comment, including: displaying the at least one target comment in the form of a bullet screen carousel scrolling in the top status bar area on the desktop of the electronic device.

[0062] It can be understood that when the embodiment of the present application displays the comments obtained under the same scene code, it can also be displayed in the form of a bullet screen carousel scrolling at the top of the electronic device desktop. For example, as shown in Figure 4, it is a third display interface of comments in the comment generation method provided according to the embodiment of the present application. For the comment content of the target interface that is successfully extracted, it is displayed in the form of a bullet screen in a scrolling carousel at the top status bar.

[0063] The embodiment of the present application displays comments in the form of a scrolling carousel on the top bar, which can fully utilize the free space in the status bar and cause minimal interference to users.

[0064] Optionally, the comment generation method described in the embodiment of the present application further includes: receiving a second input from a user regarding the at least one target comment displayed in the top status bar area; and in response to the second input, displaying a detailed list of the at least one target comment in a pop-up window.

[0065] It can be understood that, in the case of displaying the comments of the target interface in a scrolling carousel in the top status bar in the form of a bullet screen, if the user wants to comment on the target interface or is interested in the displayed comments, the user can operate (for example, click or drag, etc.) the comment content of the status bar. After the user operates the comment content of the status bar, the embodiment of the present application can read the user's operation and use it as the user's second input. Afterwards, when the embodiment of the present application determines that the user's second input matches the preset operation form, the display area of ​​the comments will be expanded in the form of a pop-up window, and a detailed list of comments will be displayed in the expanded display area.

[0066] It is understandable that the embodiment of the present application needs to preset the operation form for the comments in advance, and only when the user's operation matches the preset operation form will the comment details be displayed in response to the user's operation.

[0067] Optionally, displaying the at least one target comment in a preset area on the desktop of the electronic device includes: displaying the at least one target comment in a full-screen bullet screen manner on the desktop of the electronic device.

[0068] It can be understood that the embodiments of the present application can also display comment barrages in full screen mode. This display format can maximize the degree of communication with users and is more suitable for scenes such as watching movies. Taking the scenario where an application such as a local player that does not support barrages implements system-level comments when playing offline videos as an example, when playing local videos, the embodiments of the present application can read the video title of the player and obtain the name of the film and television based on the video title; or, take a screenshot of the player playback screen, and obtain the name of the film and television through image recognition, thereby generating a scene code based on the recognized film and television name. Afterwards, the corresponding film and television name is mapped according to the scene code, and the comment content of the corresponding film and television is extracted for scrolling display in the form of full-screen barrages to achieve film and television communication.

[0069] The embodiment of the present application can maximize the communication with the user by displaying the user comments on the target interface in the form of a full-screen bullet screen.

[0070] Optionally, the comment generation method described in the embodiment of the present application further includes: receiving a third input from a user regarding a first comment in the at least one target comment; popping up an input box in response to the third input; receiving additional comment content entered by the user in the input box, marking the additional comment content with the scene code, and associating the marked additional comment content with the first comment.

[0071] It can be understood that, based on the display of user comments in the above embodiments, when a user sees a comment of interest and wants to communicate further, the user can perform an operation consistent with the preset operation (such as clicking, long pressing, etc.) on the comment, where the comment can be referred to as the first comment. Afterwards, the embodiment of the present application can obtain the user's operation, and the operation can be referred to as the user's third input.

[0072] Afterwards, the embodiment of the present application may display an input box in the form of a pop-up box. After seeing the displayed input box, the user may enter the viewpoint or idea that he or she wants to express in the input box, which may be referred to as the user's additional comment content.

[0073] Afterwards, the embodiment of the present application can obtain the additional comment content input by the user, and mark the additional comment content with the scene code of the generated target interface to generate the marked additional comment content. Then, the embodiment of the present application associates the marked additional comment content with the above-mentioned first comment and displays it. For example, the additional comment content is displayed in the next level chapter of the first comment.

[0074] The embodiment of the present application makes the comment process more interactive by providing an additional comment function.

[0075] It should be noted that the comment generation method provided in the embodiment of the present application can be executed by a comment generation device or a control module in the comment generation device for executing the comment generation method. In the embodiment of the present application, the comment generation device provided in the embodiment of the present application is described by taking the comment generation method executed by the comment generation device as an example.

[0076] The structure of the comment generation device in the embodiment of the present application is as follows: Figure 5 As shown, it is a structural schematic diagram of the comment generation device provided in an embodiment of the present application. The device can be used to implement the comment generation process in the above-mentioned comment generation method embodiments. The device includes: a scene code generation module 501 and a comment generation module 502.

[0077] Among them, the scene code generation module 501 is used to generate the scene code of the target interface based on the unique identification information of the target interface of the electronic device; the comment generation module 502 is used to obtain the user's comment content on the target interface, and use the scene code to mark the comment content, and obtain the marked comment content as the target comment.

[0078] Optionally, the scene code generation module, when used to generate the scene code of the target interface, is used to:

[0079] Acquire the Activity code and the value of the title view control of the target interface, and generate the scene code of the target interface based on the Activity code and the value of the title view control,

[0080] or,

[0081] Perform image recognition on the screenshot of the target interface or recognize the title of the play window in the target interface to obtain the unique identification information of the target interface, and generate the scene code based on the unique identification information.

[0082] Optionally, the comment generation device described in the embodiment of the present application further includes:

[0083] A comment acquisition module, used to acquire at least one target comment marked with the scene code;

[0084] The first display module is used to display the at least one target comment in a preset area on the desktop of the electronic device.

[0085] Optionally, the first display module is used to:

[0086] A pop-up panel is displayed in an edge area on the desktop of the electronic device, and the at least one target comment is displayed on the pop-up panel.

[0087] Optionally, the first display module, when used to display the pop-up panel and display the at least one target comment on the pop-up panel, is used to:

[0088] Displaying a partial area of ​​the pop-up panel in an edge area on the desktop of the electronic device, and displaying a partial target comment of the at least one target comment in the partial area of ​​the pop-up panel;

[0089] The comment generating device further comprises:

[0090] A first receiving module, configured to receive a first input from a user on a partial area of ​​the pop-up panel;

[0091] A first processing module, configured to increase a display area of ​​the pop-up panel in response to the first input;

[0092] The second display module is used to display the at least one target comment in the enlarged pop-up panel.

[0093] Optionally, the first display module is used to:

[0094] The at least one target comment is displayed in a top status bar area on the desktop of the electronic device in the form of a bullet screen carousel scrolling.

[0095] Optionally, the comment generation device described in the embodiment of the present application further includes:

[0096] A second receiving module, configured to receive a second input from a user regarding the at least one target comment displayed in the top status bar area;

[0097] A third display module is used to display a detailed list of the at least one target comment in a pop-up window in response to the second input.

[0098] Optionally, the first display module is used to:

[0099] The at least one target comment is displayed on the desktop of the electronic device in a full-screen bullet screen manner.

[0100] Optionally, the comment generation device described in the embodiment of the present application further includes:

[0101] A third receiving module, configured to receive a third input from a user regarding a first comment in the at least one target comment;

[0102] A second processing module, configured to pop up an input box in response to the third input;

[0103] A fourth receiving module, used to receive additional comment content input by the user in the input box;

[0104] The third processing module is used to mark the additional comment content with the scene code, and associate the marked additional comment content with the first comment.

[0105] Optionally, when the scene code generation module is used to generate the scene code based on the Activity code and the value of the title view control, the device further includes:

[0106] The configuration module is used to configure a display interface whitelist, wherein the display interface whitelist at least includes an Activity code and a unique number of a title view control of a display interface that supports comments.

[0107] Optionally, the scene code generation module is used to:

[0108] Based on the Activity code of the target interface and the number of the title view control, the display interface whitelist is retrieved, and when the Activity code of the corresponding display interface and the unique number of the title view control are matched in the display interface whitelist, the scene code of the target interface is generated based on the value of the Activity code and the title view control;

[0109] The display interface whitelist is a pre-configured list that includes at least the Activity code of the display interface supporting comments and the unique number of the title view control.

[0110] The comment generation 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.

[0111] The comment generation 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.

[0112] The comment generation device provided in the embodiment of the present application can achieve Figures 1 to 4 To avoid repetition, the various processes implemented by the method embodiment are not described here.

[0113] Alternatively, if Figure 6 As shown, an embodiment of the present application also provides an electronic device 600, including a processor 601, a memory 602, and a program or instruction stored in the memory 602 and executable on the processor 601. When the program or instruction is executed by the processor 601, each process of the above-mentioned comment generation method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.

[0114] 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.

[0115] Figure 7 The hardware structure diagram of an electronic device for implementing the embodiment of the present application is shown in FIG. The electronic device 700 includes, but is not limited to, a radio frequency unit 701, a network module 702, an audio output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, an interface unit 708, a memory 709, and a processor 710.

[0116] Those skilled in the art will appreciate that the electronic device 700 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 710 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Figure 7 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.

[0117] Among them, the processor 710 is used to generate a scene code of the target interface based on the unique identification information of the target interface of the electronic device; obtain the user's comment content on the target interface, and use the scene code to mark the comment content, and obtain the marked comment content as the target comment.

[0118] In an embodiment of the present application, a scene code of the display interface is generated based on the unique identification information of the display interface, and the user's comment content is marked with the scene code when the user submits the comment. By effectively using the system-level interface control recognition capability to analyze the interface layout, comment generation can be achieved, which has higher security and reliability.

[0119] Optionally, the processor 710 is further configured to obtain the Activity code and the value of the title view control of the target interface, and generate a scene code of the target interface based on the Activity code and the value of the title view control.

[0120] or,

[0121] Perform image recognition on the screenshot of the target interface or recognize the title of the play window in the target interface to obtain the unique identification information of the target interface, and generate the scene code based on the unique identification information.

[0122] Optionally, the processor 710 is further configured to obtain at least one target comment marked with the scene code;

[0123] The display unit 706 is configured to display the at least one target comment in a preset area on the desktop of the electronic device.

[0124] The embodiment of the present application displays comments marked with the same scene code, so that user comment data under the same scene code can be interconnected, and the interactivity is stronger.

[0125] Optionally, the display unit 706 is configured to display a pop-up panel in an edge area on the desktop of the electronic device, and display the at least one target comment on the pop-up panel.

[0126] The embodiment of the present application displays comments in the edge area of ​​the electronic device desktop through a pop-up panel, which displays rich content without affecting the user's normal use of the application, thereby improving user participation.

[0127] Optionally, the display unit 706 is configured to display a partial area of ​​the pop-up panel in an edge area on the desktop of the electronic device, and to display a partial target comment of the at least one target comment in the partial area of ​​the pop-up panel;

[0128] A user input unit 707, configured to receive a first input from a user on a partial area of ​​the pop-up panel;

[0129] The processor 710 is further configured to increase a display area of ​​the pop-up panel in response to the first input;

[0130] The display unit 706 is further configured to display the at least one target comment in the enlarged pop-up panel.

[0131] Optionally, the display unit 706 is used to display the at least one target comment in the top status bar area on the desktop of the electronic device in the form of a bullet screen carousel scrolling.

[0132] The embodiment of the present application displays comments in the form of a scrolling carousel on the top bar, which can fully utilize the free space in the status bar and cause minimal interference to users.

[0133] Optionally, the user input unit 707 is further configured to receive a second input from a user regarding the at least one target comment displayed in the top status bar area;

[0134] The display unit 706 is further configured to display a detailed list of the at least one target comment in a pop-up window in response to the second input.

[0135] Optionally, the display unit 706 is further configured to display the at least one target comment in a full-screen bullet screen manner on the desktop of the electronic device.

[0136] The embodiment of the present application can maximize the communication with the user by displaying the user comments on the target interface in the form of a full-screen bullet screen.

[0137] Optionally, the user input unit 707 is further configured to receive a third input from a user on a first comment in the at least one target comment; and receive additional comment content input by the user in the input box;

[0138] The processor 710 is further configured to, in response to the third input, pop up an input box; and mark the additional comment content using the scene code, and associate the marked additional comment content with the first comment.

[0139] The embodiment of the present application makes the comment process more interactive by providing an additional comment function.

[0140] Optionally, the processor 710 is further configured to configure a display interface whitelist, wherein the display interface whitelist includes at least an Activity code and a unique number of a title view control of a display interface that supports comments.

[0141] Optionally, the processor 710 is further configured to retrieve the display interface whitelist based on the Activity code of the target interface and the number of the title view control, and generate a scene code of the target interface based on the Activity code and the value of the title view control when the Activity code and the unique number of the title view control of the corresponding display interface are matched in the display interface whitelist;

[0142] The display interface whitelist is a pre-configured list that includes at least the Activity code of the display interface supporting comments and the unique number of the title view control.

[0143] The embodiment of the present application configures a display interface whitelist in advance, and only allows comments on the display interface when there is matching information in the scene code of the target interface in the display interface whitelist, thereby better protecting the user's information security and freeing the user from being disturbed.

[0144] It should be understood that in the embodiment of the present application, the input unit 704 may include a graphics processor (Graphics Processing Unit, GPU) 7041 and a microphone 7042, and the graphics processor 7041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 706 may include a display panel 7061, and the display panel 7061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 707 includes a touch panel 7071 and other input devices 7072. The touch panel 7071 is also called a touch screen. The touch panel 7071 may include two parts: a touch detection device and a touch controller. Other input devices 7072 may include, but are not limited to, a physical keyboard, a function key (such as a volume control button, a switch button, etc.), a trackball, a mouse, and a joystick, which will not be repeated here. The memory 709 can be used to store software programs and various data, including but not limited to applications and operating systems. The processor 710 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the modem processor may not be integrated into the processor 710.

[0145] 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, each process of the above-mentioned comment generation method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0146] 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.

[0147] 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 comment generation method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0148] 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.

[0149] 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.

[0150] 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 is essentially 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.

[0151] 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. A comment generation method, characterized in that: include: Based on the unique identification information of the target interface of the electronic device, generating a scene code of the target interface; Obtaining the user's comment content on the target interface, marking the comment content with the scene code, and obtaining the marked comment content as the target comment; The unique identification information includes an Activity code, and the unique identification information of the target interface based on the electronic device is used to generate a scene code of the target interface, including: Acquire the Activity code and the value of the title view control of the target interface, and generate the scene code of the target interface based on the Activity code and the value of the title view control; Alternatively, image recognition is performed on a screenshot of the target interface or the title of the playback window in the target interface is recognized to obtain the unique identification information of the target interface, and the scene code is generated based on the unique identification information.

2. The comment generation method according to claim 1, characterized in that: Also includes: Obtaining at least one target comment marked with the scene code; The at least one target comment is displayed in a preset area on the desktop of the electronic device.

3. The comment generation method according to claim 2, characterized in that: The displaying of the at least one target comment in a preset area on the desktop of the electronic device comprises: Displaying a partial area of ​​a pop-up panel in an edge area on the desktop of the electronic device, and displaying a partial target comment of the at least one target comment in the partial area of ​​the pop-up panel; The comment generation method further includes: receiving a first input from a user on a partial area of ​​the pop-up panel; In response to the first input, increasing the display area of ​​the pop-up panel; The at least one target comment is displayed in the enlarged pop-up panel.

4. The comment generation method according to claim 1, characterized in that: The generating the scene code of the target interface based on the Activity code and the value of the title view control includes: Based on the Activity code of the target interface and the number of the title view control, a display interface whitelist is retrieved, and when the Activity code of the corresponding display interface and the unique number of the title view control are matched in the display interface whitelist, a scene code of the target interface is generated based on the Activity code and the value of the title view control; The display interface whitelist is a pre-configured list that includes at least the Activity code of the display interface supporting comments and the unique number of the title view control.

5. A comment generation device, characterized in that: include: A scene code generation module, used to generate a scene code of a target interface based on unique identification information of the target interface of the electronic device; A comment generation module, used to obtain the user's comment content on the target interface, mark the comment content with the scene code, and obtain the marked comment content as the target comment; The unique identification information includes an Activity code, and the scene code generation module is specifically used to obtain the Activity code and the value of the title view control of the target interface, and generate the scene code of the target interface based on the Activity code and the value of the title view control; Alternatively, image recognition is performed on a screenshot of the target interface or the title of the playback window in the target interface is recognized to obtain the unique identification information of the target interface, and the scene code is generated based on the unique identification information.

6. The comment generation device according to claim 5, characterized in that: Also includes: A comment acquisition module, used to acquire at least one target comment marked with the scene code; The first display module is used to display the at least one target comment in a preset area on the desktop of the electronic device.

7. The comment generation device according to claim 6, characterized in that: The first display module is used for: Displaying a partial area of ​​a pop-up panel in an edge area on the desktop of the electronic device, and displaying a partial target comment of the at least one target comment in the partial area of ​​the pop-up panel; The comment generating device further comprises: A first receiving module, configured to receive a first input from a user on a partial area of ​​the pop-up panel; A first processing module, configured to increase a display area of ​​the pop-up panel in response to the first input; The second display module is used to display the at least one target comment in the enlarged pop-up panel.

8. The comment generation device according to claim 5, characterized in that: The scene code generation module is used to: Based on the Activity code of the target interface and the number of the title view control, a display interface whitelist is retrieved, and when the Activity code of the corresponding display interface and the unique number of the title view control are matched in the display interface whitelist, a scene code of the target interface is generated based on the Activity code and the value of the title view control; The display interface whitelist is a pre-configured list that includes at least the Activity code of the display interface supporting comments and the unique number of the title view control.

Citation Information

Patent Citations

  • User comment processing method, device, apparatus, and storage medium

    CN109543088A

  • Comment method and device, computer equipment and storage medium

    CN111240543A