CN113297519A - Comment data generation method and device, electronic equipment and computer storage medium - Google Patents

Comment data generation method and device, electronic equipment and computer storage medium Download PDF

Info

Publication number
CN113297519A
CN113297519A CN202010949667.1A CN202010949667A CN113297519A CN 113297519 A CN113297519 A CN 113297519A CN 202010949667 A CN202010949667 A CN 202010949667A CN 113297519 A CN113297519 A CN 113297519A
Authority
CN
China
Prior art keywords
user
target image
page
comment
comment data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010949667.1A
Other languages
Chinese (zh)
Inventor
魏永振
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN202010949667.1A priority Critical patent/CN113297519A/en
Publication of CN113297519A publication Critical patent/CN113297519A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9577Optimising the visualization of content, e.g. distillation of HTML documents

Abstract

The embodiment of the invention provides a comment data generation method, a comment data generation device, electronic equipment and a computer storage medium, wherein the comment data generation method comprises the following steps: responding to a trigger operation of a user on a page; acquiring a target image determined by a user on a page; based on the target image, comment data including the target image is generated. According to the scheme of the embodiment of the invention, the page is directly operated to generate the comment data containing the target image, and the user does not need to store the page or the target image in the page as the image in advance and then perform subsequent comment operation, so that the user operation is more convenient and faster, the user operation burden is reduced, and the comment efficiency of the user is improved.

Description

Comment data generation method and device, electronic equipment and computer storage medium
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a comment data generation method and device, electronic equipment and a computer storage medium.
Background
With the development of internet technology and mobile communication technology, a user can browse a lot of information in a website or an Application (APP) through the internet, and the user can add comments to the information during browsing.
In the related art, when a user makes a comment, the user can input a text comment and add an image for comment. However, in the process of implementing the above scheme, when a user adds an image for comment, the image needs to be saved locally, such as a local mobile phone album, and then the image saved locally needs to be edited, and finally the image is uploaded in a comment area for comment.
However, the above process of performing comments using images is complicated, and thus, a user operation burden is large and the comment efficiency is low.
Disclosure of Invention
In view of the above, embodiments of the present invention provide a method and an apparatus for generating comment data, an electronic device, and a computer storage medium, so as to solve some or all of the above problems.
According to a first aspect of the embodiments of the present invention, there is provided a method for generating comment data, including: responding to a trigger operation of a user on a page; acquiring a target image determined by a user on a page; based on the target image, comment data including the target image is generated.
According to a second aspect of the embodiments of the present invention, there is provided a comment data generation apparatus including: the triggering module is used for responding to the triggering operation of the user on the page; acquiring a target image determined by a user on a page; and the comment module is used for generating comment data comprising the target image based on the target image.
According to a third aspect of embodiments of the present invention, there is provided an electronic apparatus, including: the processor, the memory and the communication interface complete mutual communication through the communication bus; the memory is used for storing at least one executable instruction, and the executable instruction enables the processor to execute the operation corresponding to the comment data generation method of the first aspect.
According to a fourth aspect of embodiments of the present invention, there is provided a computer storage medium having stored thereon a computer program that, when executed by a processor, implements the method of generating comment data as in the first aspect.
The comment data generation method, the comment data generation device, the electronic equipment and the computer storage medium provided by the embodiment of the invention respond to the trigger operation of a user on a page; acquiring a target image determined by a user on a page; based on the target image, comment data including the target image is generated. According to the scheme of the embodiment of the invention, the page is directly operated to generate the comment data containing the target image, and the user does not need to store the page or the target image in the page as the image in advance and then perform subsequent comment operation, so that the user operation is more convenient and faster, the user operation burden is reduced, and the comment efficiency of the user is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the embodiments of the present invention, and it is also possible for a person skilled in the art to obtain other drawings based on the drawings.
Fig. 1 is a scene schematic diagram of a comment data generation method according to an embodiment of the present invention;
fig. 2 is a flowchart of a comment data generation method according to an embodiment of the present invention;
fig. 3A is a schematic diagram of an option effect according to an embodiment of the invention;
FIG. 3B is a schematic diagram illustrating another alternative effect provided by the first embodiment of the present invention;
fig. 3C is a schematic diagram illustrating another selection effect according to the first embodiment of the present invention;
fig. 4 is a schematic scene diagram of another comment data generation method according to an embodiment of the present invention;
fig. 5 is a flowchart of a comment data generation method according to a second embodiment of the present invention;
fig. 6A is a schematic diagram of a comment data display effect according to a second embodiment of the present invention;
fig. 6B is a schematic diagram of an identification information display effect according to a second embodiment of the present invention;
fig. 6C is a schematic view illustrating a wall-up cancellation effect according to a second embodiment of the present invention;
fig. 7 is a scene schematic diagram of a comment data generation method according to a second embodiment of the present invention;
fig. 8 is a structural diagram of a comment data generation apparatus according to a third embodiment of the present invention;
fig. 9 is a block diagram of an electronic device according to a fourth embodiment of the present invention.
Detailed Description
In order to make those skilled in the art better understand the technical solutions in the embodiments of the present invention, the technical solutions in the embodiments of the present invention will be described clearly and completely with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all embodiments. All other embodiments obtained by a person skilled in the art based on the embodiments of the present invention shall fall within the scope of the protection of the embodiments of the present invention.
The following further describes specific implementation of the embodiments of the present invention with reference to the drawings.
Example one
For convenience of understanding, a scenario in which the comment data generation method according to the first embodiment of the present invention is applied is described with reference to fig. 1, and fig. 1 is a scenario schematic diagram of the comment data generation method according to the first embodiment of the present invention, of course, fig. 1 is only an application scenario of the comment data generation method according to the first embodiment of the present invention, and the method is not only applicable to the scenario shown in fig. 1, and is only an exemplary description for convenience of understanding here. In fig. 1, the scene includes an electronic device 101 and a user 102, where the electronic device 101 may be a device with a display function, and the electronic device may be a smart phone, a tablet computer, a notebook computer, a smart speaker, or the like.
When the user 102 browses a page through the electronic device 101, the user 102 can trigger an image comment function through interaction with the electronic device 102, and the electronic device 101 responds to triggering operation of the user on the page, acquires a target image determined by the user on the page, and generates comment data containing the target image.
Referring to fig. 2, fig. 2 is a flowchart of a method for generating comment data according to an embodiment of the present invention, where the method may be applied to the scenario shown in fig. 1, and further, may be applied to the electronic device shown in fig. 1, that is, the electronic device serves as an execution subject of the method, and of course, this is merely an exemplary illustration, and in conjunction with the scenario shown in fig. 1, the method includes the following steps:
step 201, in response to a trigger operation of a user on a page, acquiring a target image determined by the user on the page.
It should be noted that, in the present invention, a triggering operation of a user on a page may trigger an image comment function, where an image comment refers to comment on a screenshot of the page (such as a target image described in this application), or, it may also be said that the screenshot of the page is added to the comment. The page may be a currently displayed page of the electronic device, which may contain at least one of text, images, video, and the like.
Here, two embodiments are listed to respectively explain how to acquire the target image:
optionally, in an embodiment of the present application, in response to a trigger operation of a user on a page; acquiring a target image determined by a user on a page; the method comprises the following steps: and responding to the selection operation of the user on the page to the target image, and acquiring the target image. The user directly obtains the target image through triggering operation, and the operation is more convenient.
Optionally, in another embodiment of the present application, acquiring a target image determined on a page by a user in response to a trigger operation of the user on the page includes: acquiring a moving track according to touch selection operation of a user on a page; determining a selection area in the page according to the movement track; and acquiring a target image according to the selected area in the page. Further, determining a selection area in the page according to the movement track comprises: determining the width, height and position of the selected area according to the moving track; and determining the selection area in the page according to the width, the height and the position of the selection area. The user can determine the selection area on the page through touch selection operation, and then the target image is acquired according to the selection area, so that the user operation is more convenient.
Optionally, in a further embodiment of the present application, in response to a user's trigger operation on a page; acquiring a target image determined by a user on a page, wherein the method comprises the following steps: responding to the triggering operation of a user on a page, and displaying a to-be-selected interface based on the current page; and responding to the selection operation of the user on the interface to be selected, and acquiring the target image. The user can obtain the target image by performing selection operation on the interface to be selected, so that the user can select the target image more accurately, and the comment effect is improved.
The interface to be selected comprises the current display page and is used for selecting. The interface to be selected can be an interception interface or a screenshot interface, and a user acquires a screenshot through an interception operation, namely a target image. For example, if the currently displayed page includes a video, the interface to be selected includes a video frame displayed on the currently displayed page at the moment when the image comment function is triggered; for another example, if the currently displayed page includes images and/or text, the interface to be selected includes the images and/or text displayed in the currently displayed page.
The triggering operation for the image comment may include a click operation, or a quick touch operation corresponding to the image comment, and may also include a voice interaction operation, a gesture interaction operation, and the like. Here, the manner of displaying the interface to be selected based on the current display page according to the triggering operation of the image comment on the current display page is respectively exemplified as follows:
optionally, in a first example, the currently displayed page may include an image comment option, and clicking the image comment option may trigger displaying of the interface to be selected, and then in response to a trigger operation of the user on the page, displaying the interface to be selected based on the current page includes: and responding to the clicking operation of the user on the image comment option on the page, and displaying the interface to be selected. Through clicking the image comment option, the image comment function can be triggered very intuitively and conveniently. It should be noted that the image comment option may be directly displayed in the shortcut option bar beside the comment input box, or the menu bar may be displayed when the menu option is clicked, and the image comment option is displayed in the menu bar.
Optionally, in a second example, in response to a trigger operation of a user on a page, displaying a to-be-selected interface based on the current page, including: and responding to the quick touch operation of the user on the image comment, and displaying the interface to be selected. The shortcut touch operation corresponding to the image comment may be a long-press screen, or a double-click (e.g., a simultaneous click of two fingers), or a double-click (e.g., a simultaneous double-click of two fingers), or the like. By using the quick touch operation, image comment options do not need to be displayed on the current display page, the current display page is not occupied, and the user operation is more convenient.
Optionally, in a third example, in response to a selection operation of a user on the interface to be selected, acquiring the target image includes: and responding to a voice control signal which is sent by the user and corresponds to the image comment, and displaying the interface to be selected. The user triggers the image comment function through voice interaction operation, and electronic equipment receives the voice control signal that the user produced through voice interaction operation, treats the selection interface according to the display of voice control signal, and user operation is more convenient, moreover, can also make user control electronic equipment's scope wider.
Optionally, in a fourth example, displaying, according to a triggering operation of an image comment on a currently displayed page, an interface to be selected based on the currently displayed page includes: and responding to the gesture control operation corresponding to the image comment, and displaying the interface to be selected. Wherein, gesture control operation includes but not limited to wave the hand about, the fist is rocked, the fist is held and two fingers are stretched out and are crooked twice simultaneously, and the user utilizes gesture control to trigger the image comment function more convenient.
The selection operation can be implemented in various ways, and three ways of obtaining the target image by different selection operations are exemplified here:
optionally, in a first implementation manner, the acquiring a target image in response to a selection operation of a user on a to-be-selected interface includes: acquiring a moving track according to touch selection operation of a user on an interface to be selected; determining a selection area in the interface to be selected according to the movement track; and acquiring a target image according to the selection area in the interface to be selected.
Further, determining a selection area in the interface to be selected according to the movement track, including: determining the width, height and position of the selected area according to the moving track; and determining the selection area in the interface to be selected according to the width, the height and the position of the selection area. Fig. 3A is a schematic diagram of a selection effect according to an embodiment of the present invention, as shown in fig. 3A, a user may perform circle selection on an interface to be selected through touch operation, an electronic device detects a touch movement trajectory, determines an upper boundary, a lower boundary, a left boundary, and a right boundary according to the movement trajectory, determines a selection area according to the upper boundary, the lower boundary, the left boundary, and the right boundary, and captures an object image in the interface to be selected according to the selection area. And the selection area is determined according to the moving track of the touch operation of the user, so that the user can select more flexibly.
It should be noted that a coordinate system may be established on the current display page, where an X axis of the coordinate system is parallel to a bottom edge of the current display page, and a Y axis of the coordinate system is parallel to a side edge of the current display page, and then a straight line parallel to the X axis and tangent to an edge of the uppermost end of the moving trajectory is an upper boundary; similarly, a straight line which is parallel to the X axis and is tangent to the edge of the lowest end of the moving track is the lower boundary; a straight line which is parallel to the Y axis and is tangent to the edge of the leftmost end of the moving track is a left boundary; and a straight line which is parallel to the Y axis and tangent to the edge of the rightmost end of the moving track is the right boundary. For example, the user may use a touch operation to draw a diagonal line from the top left vertex to the bottom right vertex, or a diagonal line from the top right vertex to the bottom left vertex, and the top boundary, the bottom boundary, the left boundary, and the bounded region may be determined according to the diagonal lines; alternatively, the user may draw a circle, or draw a half circle, etc. using a touch operation.
Optionally, in a second implementation manner, the acquiring a target image in response to a selection operation of a user on a to-be-selected interface includes: determining a selection area in the interface to be selected according to the position indicated by the clicking operation of the user on the interface to be selected and the width and the height of the preset selection area; and acquiring a target image according to the selection area in the interface to be selected. Fig. 3B is a schematic diagram of another selection effect provided in the first embodiment of the present invention, as shown in fig. 3B, the selection height and the selection width are both preset, and the user can obtain the target image only by selecting the selection position, so that the user operation is more convenient, and the images added in the comment are consistent in size and are convenient to display. Furthermore, if the user wants to select only a portion of an object, the determined selection width and selection height more easily reveal the portion the user wants to select. The specific setting of the selected height and the selected width can be set by those skilled in the art according to actual needs, and the embodiment of the present invention is not limited to this.
Optionally, in a third implementation manner, the acquiring a target image in response to a selection operation of a user on a to-be-selected interface includes: identifying and segmenting the target object in the interface to be selected according to the position indicated by the clicking operation of the user on the target object in the interface to be selected; and acquiring a target image according to the recognition and segmentation results. The target object is an object that the user wants to select, and may be an object, a collocation of the object, a segment of text, and the like in the target display page, and all the content displayed on the target display page may be the target object. Fig. 3C is a schematic view of another selection effect provided in the first embodiment of the present invention, as shown in fig. 3C, a user may click a target object on an interface to be selected, the electronic device identifies content displayed on the interface to be selected by using a neural network model, and segments the interface to be selected according to an identification result to obtain an image area where the target object is located. It should be noted that, if the interface to be selected includes an image, the identifying and segmenting includes image identifying and image segmenting, for example, the image included in the interface to be selected is identified and segmented into image regions of a plurality of objects; if the interface to be selected contains characters, the recognition and segmentation comprise character recognition and character segmentation, for example, the characters contained in the interface to be selected are recognized, segmented according to the meanings of the recognized characters, and segmented into a plurality of character paragraphs. By the mode, intelligent identification and segmentation can be carried out according to the clicking operation of the user, and the selected area, namely the area of the target object, is determined, so that the target image is obtained, and the user operation is more convenient and faster.
Step 202, based on the target image, generating comment data including the target image.
It should be noted that when the user obtains the target image through the selection operation, the target image may be edited, and after confirming that the input of the comment to be published is completed, the comment data is regenerated. Here, the process of generating comment data is explained by taking three examples:
optionally, in a first example, generating comment data including the target image based on the target image includes: and receiving input text information, and generating comment data according to the text information and the target image, wherein the comment data comprises the text information and the target image. Of course, comment data including text information and a target image may also be displayed in the comment display area. The user reviews the comments by combining the images and the characters, so that the content of the comments can be better explained, and the user experience is improved.
Optionally, in a second example, generating comment data including the target image based on the target image includes: displaying at least one comment sentence associated with the target image according to the target image; responding to the selection operation of the user on at least one comment statement, determining a target comment statement, and generating text information; and generating comment data according to the text information and the target image. After the user selects the target image, at least one comment sentence associated with the target image is recommended to the user, and the at least one comment sentence may include recommended wording, comment points, and the like. The user can add comments by selecting the comment sentences to be input from at least one comment sentence, and the user does not need to manually input characters, so that the user operation is more convenient.
Optionally, in a third example, generating, based on the target image, comment data including the target image includes: and receiving input voice information, and generating comment data according to the voice information and the target image, wherein the comment data comprises the voice information and the target image. It should be noted that, after the user inputs the voice, the identifier for playing the voice may be displayed, and if the identifier for playing the voice is clicked, the voice information may be played. Alternatively, the voice playback identification may be displayed on the target image. The user utilizes the pronunciation to comment, and the operation is more convenient, has reduced the area that comment data display occupy moreover.
Optionally, in an embodiment, the method further comprises: and displaying the comment data in the comment display area. It should be noted that the comment display area may be a part of the currently displayed page, or may be a separate page or window; the user may edit the comment in the comment display area, or may edit in an edit window or an edit area that is independent of the comment display area.
Additionally, optionally, the method further comprises: and in response to the comment input operation of the user, displaying the identification of the user in a manner of distinguishing the user from the user who does not perform the comment input operation. For a user who is performing comment input operation, the identification of the user is displayed in a distinguishing manner, so that other users can perform online communication with the user. Illustratively, the user identification is displayed distinctively, which may be the user identification displayed at the top of all the lines, or the user identification displayed at the top layer, or the user identification highlighted.
The users can comment on the webpage or the Application (English: Application, APP), and comment data of the users can also be uploaded to the cloud through the network, so that the users who browse the currently displayed page can see the comment data through respective terminal equipment. Here, the scenario shown in fig. 4 is taken as an example to be described in further detail in conjunction with steps 201 to 203. The scenario shown in fig. 4 is based on the scenario shown in fig. 1, and further shows a cloud terminal 103, the electronic device 101 may be connected to the cloud terminal 103 through a Network, and perform data interaction with the cloud terminal 103 through the Network, where in the present invention, the Network includes a Local Area Network (LAN), a Wide Area Network (WAN), and a mobile communication Network; such as the World Wide Web (WWW), Long Term Evolution (LTE) networks, 2G networks (2 th Generation Mobile Network), 3G networks (3 th Generation Mobile Network), 5G networks (5 th Generation Mobile Network), etc. Of course, this is merely an example and does not represent a limitation of the present invention. The cloud 102 may include various devices connected by a network, such as servers, relay devices, Device-to-Device (D2D) devices, and so forth. When the user 102 browses the current display page through the webpage or the APP, the cloud 103 sends the current display page to the electronic device 101, and the electronic device 101 displays the current display page to the user 102. The method includes the steps that a user 102 triggers an image comment function through interaction with the electronic equipment, the electronic equipment 101 displays a to-be-selected interface after receiving a triggering operation for image comment, the user 102 conducts a selecting operation on the to-be-selected interface, the electronic equipment obtains a target image according to the selecting operation of the user 102 on a target object, the user 102 can also input text information to the electronic equipment 101, the user 102 can click a confirmation button after completing comment to generate comment data containing the target image and the text information, the electronic equipment 101 can transmit the comment data to the cloud end 103, and the comment data are displayed in a comment display area. If other users access the current display page through the terminal device, the cloud 103 may also transmit the comment data to the terminal device when transmitting the current display page to the terminal device, so that the other users can view the comment data.
The comment data generation method provided by the embodiment of the invention responds to the trigger operation of a user on a page; acquiring a target image determined by a user on a page; based on the target image, comment data including the target image is generated. According to the scheme of the embodiment of the invention, the page is directly operated to generate the comment data containing the target image, and the user does not need to store the page or the target image in the page as the image in advance and then perform subsequent comment operation, so that the user operation is more convenient and faster, the user operation burden is reduced, and the comment efficiency of the user is improved.
Example two
Based on the comment data generation method described in the first embodiment, in the comment data generation method described in the second embodiment of the present invention, as shown in fig. 5, after step 202 described in the first embodiment, the method further includes the following steps:
step 203, responding to the trigger operation of the user to the display of the comment data in the associated area, and displaying the identification information of the comment data in the area where the target image is located on the page.
In the embodiment of the present invention, the displaying in the associated area may be a comment on-wall function, and the displaying in the associated area refers to displaying in an area where a comment object of comment data is located in the current display page. For example, the comment data includes an image of an object in the currently displayed page, and displaying the identification information, which may be displaying the comment data on the image of the object, in the associated area. Optionally, the method may further include: and receiving a trigger operation displayed in the associated area for the comment data, and generating the identification information of the comment data. The identification information may include a thumbnail of the target image in the comment data; if the comment data contains text information, the identification information may further include a part of or the entire content of the text information, or the identification information may include a keyword in the text information.
Optionally, the triggering operation displayed in the associated area may be to click a display option in the associated area, for example, in response to a triggering operation of the user on displaying the comment data in the associated area, displaying the identification information of the comment data in an area where the target image is located on the page, including: and responding to the click operation of the comment data on the display option in the associated area, and displaying the identification information of the comment data in the area where the target image is located on the page. It should be noted that each comment data may include a display option in the associated area. The options displayed in the associated area may be implemented in the form of virtual keys, for example, each piece of comment data has a virtual key for displaying the options in the associated area, and a user clicks the virtual key for displaying the options in the associated area, so that the corresponding comment data can be displayed in other display areas of the current display page except for the comment display area. Optionally, each user may see the option displayed in the associated area of the comment data sent by the user, and perform an operation of displaying the comment data sent by the user in the associated area.
It should be noted that, after the user triggers to display the associated area, the initial position of the display of the identification information of the comment data may be in the area where the target object is located. Further optionally, the user may move the position of the identification information, may also view the complete comment data by clicking the identification information, and may also cancel going to the wall, where three specific examples are listed, and an optional operation after displaying the identification information of the comment data is described respectively:
optionally, in the first example, after displaying the identification information of the comment data, the method further includes: and responding to the clicking operation of the user on the identification information of the comment data, and displaying the comment data in the comment display area. As shown in fig. 6A, after the user clicks the identification information, the complete comment data can be viewed in the comment display area. It should be noted that the size of the comment display area may be changed, for example, as shown in fig. 6A, after the comment data is generated, the comment display area is located in the lower half of the current display page, and after the user clicks the identification information of the comment data, the comment display area may be overlaid on the entire display interface, that is, after the user clicks the identification information of the comment data, the electronic device does not display the content of the current display page any more, but displays the comment data. Therefore, the user can conveniently view the comment data. Optionally, after the user displays the comment data in the associated area, the comment display area may not display the comment data any more, but only display the identification information of the comment data on the currently displayed page, and after the user clicks the identification information of the comment data, the comment display area displays the comment data again.
Optionally, after receiving a click operation on the identification information of the comment data, the method further includes: responding to the click operation of the user on the identification information of the comment data, and displaying the comment replied to the comment data in a comment display area; and/or displaying, in the comment display area, comment data other than the comment data for the target object included in the target image. After clicking the identification information, the user can not only check the complete comment data, but also check the comments replied to the comment data; other comments related to the target object may also be viewed. It should be noted that, if there are multiple other comments related to the target object, the multiple comments may be sorted according to the relevance to the target object. For example, the selection areas are sorted from large to small according to the overlapping areas of the selection areas corresponding to the comment data, or the selection areas are sorted from near to far according to the distances between the selection areas and the selection areas corresponding to the comment data, or the text information in the text and comment data is sorted from high to low in repetition degree. Illustratively, in one implementation, displaying, in the comment display area, comment data other than the comment data on the target object included in the target image includes: determining a region selected by a selection operation performed on a target object contained in the target image and each overlap region of the regions selected by the selection operation corresponding to each comment data in other comment data of the target object; and displaying other comment data in the comment display area according to the size sequence of the overlapped areas.
Optionally, in a second example, after displaying the identification information of the comment data, the method further includes: responding to a dragging operation or a rotating operation of the user on the identification information of the comment data; and adjusting the position of the identification information of the comment data, and displaying the identification information of the comment data after the position is adjusted. As shown in fig. 6B, the user may move the location of the identification information by a drag operation; the angle of the identification information can be adjusted through the rotating operation, so that the display of the identification information is more accordant with the aesthetic sense of a user.
Optionally, in a third example, after displaying the identification information of the comment data, the method further includes: and in response to the trigger operation of the user for canceling the comment data from being displayed in the associated area, removing the identification information of the comment data in the current display page. After the comment data is cancelled to be displayed in the associated area, the identification information of the comment data is not displayed on the current display page any more, namely the identification information of the comment data is removed, and the comment data is still displayed in the comment display area. As shown in fig. 6C, the cancellation of the display in the association area may be a cancellation of the function of going to the wall, and the user may cancel the display of the identification information of the comment data in the association area by clicking a cancel on-wall option; alternatively, the user may drag the identification information to the deletion area, thereby canceling the display of the identification information of the comment data in the associated area, and the deletion area may be located at any suitable position, such as the lowermost end or the uppermost end of the display interface.
With reference to step 203, as shown in fig. 7, fig. 7 is a scene schematic diagram of a comment data generation method according to a second embodiment of the present invention, a comment on-wall function is displayed in an associated area, a user 102 clicks a comment on-wall option, the electronic device 101 generates identification information of comment data according to the comment data, and the identification information is displayed in an area where a target image is located.
The comment data generation method provided by the embodiment of the invention responds to the trigger operation of the user on the comment data displayed in the associated area, and displays the identification information of the comment data in the area where the target image is located on the page. By the scheme of the embodiment of the invention, the user can display the identification information of the comment data in the area where the target image is located in the current display page by performing the operation of displaying the comment data in the associated area, the comment data and the target image are visually associated, the user can conveniently check the comment data, the identification information of the comment data is displayed in the area where the target object is located, the identification information is displayed more obviously, and the user experience is improved.
EXAMPLE III
In combination with the methods described in the first and second embodiments, a third embodiment of the present invention provides a comment data generation apparatus for executing the methods described in the first and second embodiments, and referring to fig. 8, the comment data generation apparatus 80 includes:
a triggering module 801, configured to respond to a triggering operation of a user on a page; acquiring a target image determined by a user on a page;
a comment module 803, configured to generate comment data including the target image based on the target image.
Optionally, in an implementation manner, the triggering module 801 is configured to, in response to a selection operation of a user on a page on a target image, acquire the target image.
Optionally, in an implementation manner, the triggering module 801 is configured to, in response to a selection operation of a user on an image included in a page to an image corresponding to a target product, acquire the target image.
Optionally, in an implementation manner, the triggering module 801 is configured to, in response to a triggering operation of a user on a page, display a to-be-selected interface based on a current page; and responding to the selection operation of the user on the interface to be selected, and acquiring the target image.
Optionally, in an implementation manner, the triggering module 801 is configured to display the interface to be selected in response to a click operation of a user on an image comment option on a page.
Optionally, in an implementation manner, the triggering module 801 is configured to display an interface to be selected in response to a shortcut touch operation of a user on an image comment.
Optionally, in an implementation manner, the triggering module 801 is configured to determine a selection area in the interface to be selected according to a position indicated by a click operation of a user on the interface to be selected and a width and a height of the preset selection area; and acquiring a target image according to the selection area in the interface to be selected.
Optionally, in an implementation manner, the triggering module 801 is configured to identify and segment a target object in the interface to be selected according to a position indicated by a click operation of a user on the target object in the interface to be selected; and acquiring a target image according to the recognition and segmentation results.
Optionally, in an implementation manner, the triggering module 801 is configured to obtain a moving track according to a touch selection operation of a user on a page; determining a selection area in the page according to the movement track; and acquiring a target image according to the selected area in the page.
Optionally, in an implementation manner, the triggering module 801 is configured to determine a width, a height, and a position of the selection area according to the movement track; and determining the selection area in the page according to the width, the height and the position of the selection area.
Optionally, in an implementation manner, the comment module 803 is further configured to display, in response to a trigger operation of a user on display of the comment data in the associated area, identification information of the comment data in an area where the target image is located on the page.
Optionally, in an implementation manner, the comment module 803 is further configured to display the comment data in the comment display area in response to a click operation of the user on the identification information of the comment data.
Optionally, in an implementation manner, the comment module 803 is further configured to display, in response to a click operation of a user on the identification information of the comment data, a comment replied to the comment data in the comment display area; and/or displaying, in the comment display area, comment data other than the comment data for the target object included in the target image.
Optionally, in an implementation manner, the comment module 803 is further configured to determine an area selected by a selection operation performed on a target object included in the target image, and each overlapping area of the areas selected by the selection operation corresponding to each comment data in other comment data of the target object; and displaying other comment data in the comment display area according to the size sequence of the overlapped areas.
Optionally, in an implementation manner, the comment module 803 is further configured to respond to a drag operation or a rotation operation of the user on the identification information of the comment data; and adjusting the position of the identification information of the comment data, and displaying the identification information of the comment data after the position is adjusted.
Optionally, in an implementation manner, the comment module 803 is further configured to remove, in response to a trigger operation of the user to cancel the comment data from being displayed in the associated area, the identification information of the comment data in the current display page.
Optionally, in an implementation manner, the comment module 803 is configured to receive input text information, and generate comment data according to the text information and a target image, where the comment data includes the text information and the target image.
The comment data generation device provided by the embodiment of the invention responds to the trigger operation of a user on a page; acquiring a target image determined by a user on a page; based on the target image, comment data including the target image is generated. According to the scheme of the embodiment of the invention, the page is directly operated to generate the comment data containing the target image, and the user does not need to store the page or the target image in the page as the image in advance and then perform subsequent comment operation, so that the user operation is more convenient and faster, the user operation burden is reduced, and the comment efficiency of the user is improved.
Example four
With reference to the methods described in the first embodiment and the second embodiment, a fourth embodiment of the present invention provides an electronic device, which is used for executing the methods described in the first embodiment and the second embodiment, and fig. 9 is a block diagram of the electronic device provided in the fourth embodiment of the present invention.
As shown in fig. 9, the electronic device 90 may include: a processor (processor)902, a communication Interface 904, a memory 906, and a communication bus 908.
Wherein:
processor 902, communication interface 904, and memory 906 complete the phase via communication bus 908
And communicating with each other.
A communication interface 904 for communicating with other electronic devices, such as a terminal device or a server.
The processor 902 is configured to execute the program 910, and may specifically execute relevant steps in the above-described method for generating comment data.
In particular, the program 910 may include program code that includes computer operating instructions.
The processor 902 may be a central processing unit CPU, or an Application Specific Integrated Circuit ASIC (Application Specific Integrated Circuit), or one or more Integrated circuits configured to implement embodiments of the present invention. The electronic device comprises one or more processors, which can be the same type of processor, such as one or more CPUs; or may be different types of processors such as one or more CPUs and one or more ASICs.
A memory 906 for storing a program 910. The memory 906 may comprise high-speed RAM memory, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
The program 910 may be specifically configured to cause the processor 902 to execute the methods described in the foregoing first and second embodiments.
For specific implementation of each step in the program 910, reference may be made to corresponding steps and corresponding descriptions in units in the above embodiment of the comment data generation method, which are not described herein again. It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described devices and modules may refer to the corresponding process descriptions in the foregoing method embodiments, and are not described herein again.
The electronic equipment provided by the embodiment of the invention responds to the trigger operation of a user on a page; acquiring a target image determined by a user on a page; based on the target image, comment data including the target image is generated. According to the scheme of the embodiment of the invention, the page is directly operated to generate the comment data containing the target image, and the user does not need to store the page or the target image in the page as the image in advance and then perform subsequent comment operation, so that the user operation is more convenient and faster, the user operation burden is reduced, and the comment efficiency of the user is improved.
EXAMPLE five
In combination with the methods described in the first and second embodiments, a fifth embodiment of the present invention provides a computer storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method described in any embodiment of the present invention.
The computer storage medium provided by the embodiment of the invention responds to the trigger operation of a user on a page; acquiring a target image determined by a user on a page; based on the target image, comment data including the target image is generated. According to the scheme of the embodiment of the invention, the page is directly operated to generate the comment data containing the target image, and the user does not need to store the page or the target image in the page as the image in advance and then perform subsequent comment operation, so that the user operation is more convenient and faster, the user operation burden is reduced, and the comment efficiency of the user is improved.
It should be noted that, according to the implementation requirement, each component/step described in the embodiment of the present invention may be divided into more components/steps, and two or more components/steps or partial operations of the components/steps may also be combined into a new component/step to achieve the purpose of the embodiment of the present invention.
The above-described method according to an embodiment of the present invention may be implemented in hardware, firmware, or as software or computer code storable in a recording medium such as a CD ROM, a RAM, a floppy disk, a hard disk, or a magneto-optical disk, or as computer code originally stored in a remote recording medium or a non-transitory machine-readable medium downloaded through a network and to be stored in a local recording medium, so that the method described herein may be stored in such software processing on a recording medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware such as an ASIC or FPGA. It is understood that the computer, processor, microprocessor controller or programmable hardware includes storage components (e.g., RAM, ROM, flash memory, etc.) that can store or receive software or computer code that, when accessed and executed by the computer, processor or hardware, implements the method of generating review data described herein. Further, when a general-purpose computer accesses code for implementing the generation method of comment data shown herein, execution of the code converts the general-purpose computer into a special-purpose computer for executing the generation method of comment data shown herein.
Those of ordinary skill in the art will appreciate that the various illustrative elements and method steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present embodiments.
The above embodiments are only for illustrating the embodiments of the present invention and not for limiting the embodiments of the present invention, and those skilled in the art can make various changes and modifications without departing from the spirit and scope of the embodiments of the present invention, so that all equivalent technical solutions also belong to the scope of the embodiments of the present invention, and the scope of patent protection of the embodiments of the present invention should be defined by the claims.

Claims (24)

1. A method of generating comment data, comprising:
responding to a trigger operation of a user on a page;
acquiring a target image determined by a user on a page;
based on the target image, comment data including the target image is generated.
2. The method of claim 1, wherein the responding to a user trigger action on a page; acquiring a target image determined by a user on a page; the method comprises the following steps:
and responding to the selection operation of the user on the page to the target image, and acquiring the target image.
3. The method of claim 1, wherein the responding to a user trigger action on a page; acquiring a target image determined by a user on a page; the method comprises the following steps:
and responding to the selection operation of the user on the image contained in the page to the image corresponding to the target commodity, and acquiring the target image.
4. The method of claim 1, wherein the responding to a user trigger action on a page; acquiring a target image determined by a user on a page, wherein the method comprises the following steps:
responding to the triggering operation of a user on a page, and displaying a to-be-selected interface based on the current page;
and responding to the selection operation of the user on the interface to be selected, and acquiring the target image.
5. The method of claim 4, wherein the displaying of the interface to be selected based on the current page in response to the user's trigger operation on the page comprises:
and responding to the clicking operation of the user on the image comment option on the page, and displaying the interface to be selected.
6. The method of claim 4, wherein the displaying of the interface to be selected based on the current page in response to the user's trigger operation on the page comprises:
and responding to the quick touch operation of the user on the image comment, and displaying the interface to be selected.
7. The method of claim 4, wherein the acquiring the target image in response to a selection operation of a user on the interface to be selected comprises:
determining the selection area in the interface to be selected according to the position indicated by the clicking operation of the user on the interface to be selected and the preset width and height of the selection area;
and acquiring the target image according to the selection area in the interface to be selected.
8. The method of claim 4, wherein the acquiring the target image in response to a selection operation of a user on the interface to be selected comprises:
identifying and segmenting the target object in the interface to be selected according to the position indicated by the clicking operation of the user on the target object in the interface to be selected;
and acquiring the target image according to the recognition and segmentation result.
9. The method of claim 1, wherein the acquiring the target image determined on the page by the user in response to the triggering operation of the user on the page comprises:
acquiring a moving track according to touch selection operation of a user on the page;
determining a selection area in the page according to the movement track;
and acquiring the target image according to the selected area in the page.
10. The method of claim 9, wherein the determining a selection area in the page according to the movement trajectory comprises:
determining the width, height and position of the selection area according to the movement track;
and determining the selection area in the page according to the width, the height and the position of the selection area.
11. The method of claim 1, wherein the method further comprises:
and responding to the triggering operation of the user on the display of the comment data in the associated area, and displaying the identification information of the comment data in the area where the target image is located on the page.
12. The method of claim 11, wherein the method further comprises:
and responding to the clicking operation of the user on the identification information of the comment data, and displaying the comment data in a comment display area.
13. The method of claim 12, wherein the method further comprises:
responding to the click operation of the user on the identification information of the comment data, and displaying the comment replied to the comment data in the comment display area; and/or displaying other comment data of the target object contained in the target image in addition to the comment data in the comment display area.
14. The method of claim 13, wherein said displaying, in the comment display area, comment data other than the comment data on the target object contained in the target image includes:
determining a region selected by the selection operation on a target object contained in the target image and each overlapping region of the regions selected by the selection operation corresponding to each comment data in other comment data of the target object;
and displaying the other comment data in the comment display area according to the size sequence of the overlapped areas.
15. The method of claim 11, wherein the method further comprises:
responding to a dragging operation or a rotating operation of the user on the identification information of the comment data; and adjusting the position of the identification information of the comment data, and displaying the identification information of the comment data after the position is adjusted.
16. The method of claim 11, wherein the method further comprises:
and in response to the triggering operation of the user for canceling the display of the comment data in the associated area, removing the identification information of the comment data in the current display page.
17. The method of claim 1, wherein the generating, based on the target image, comment data including the target image comprises:
receiving input text information, and generating comment data according to the text information and the target image, wherein the comment data comprises the text information and the target image.
18. The method of claim 1, wherein the generating, based on the target image, comment data including the target image comprises:
displaying at least one comment sentence associated with the target image according to the target image;
responding to the selection operation of the user on the at least one comment statement, determining a target comment statement, and generating text information;
and generating the comment data according to the text information and the target image.
19. The method of claim 1, wherein the generating, based on the target image, comment data including the target image comprises:
receiving input voice information, and generating comment data according to the voice information and the target image, wherein the comment data comprises the voice information and the target image.
20. The method of any one of claims 1-19, wherein the method further comprises:
and responding to the comment input operation of the user, and displaying the identification of the user different from the user who does not perform the comment input operation.
21. A method of generating comment data, comprising:
responding to the triggering operation of a user on the current display page, and displaying a to-be-selected interface based on the current page;
responding to the selection operation of a user on the image contained in the interface to be selected on the image corresponding to the target commodity, and acquiring the target image;
based on the target image, comment data including the target image is generated.
22. A generation apparatus of comment data, comprising:
the triggering module is used for responding to the triggering operation of the user on the page; acquiring a target image determined by a user on a page;
a comment module for generating comment data including the target image based on the target image.
23. An electronic device, comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction causes the processor to execute the operation corresponding to the comment data generation method in any one of claims 1-21.
24. A computer storage medium on which a computer program is stored, which program, when executed by a processor, implements the method of generating comment data according to any one of claims 1 to 21.
CN202010949667.1A 2020-09-10 2020-09-10 Comment data generation method and device, electronic equipment and computer storage medium Pending CN113297519A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010949667.1A CN113297519A (en) 2020-09-10 2020-09-10 Comment data generation method and device, electronic equipment and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010949667.1A CN113297519A (en) 2020-09-10 2020-09-10 Comment data generation method and device, electronic equipment and computer storage medium

Publications (1)

Publication Number Publication Date
CN113297519A true CN113297519A (en) 2021-08-24

Family

ID=77318248

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010949667.1A Pending CN113297519A (en) 2020-09-10 2020-09-10 Comment data generation method and device, electronic equipment and computer storage medium

Country Status (1)

Country Link
CN (1) CN113297519A (en)

Similar Documents

Publication Publication Date Title
US11592980B2 (en) Techniques for image-based search using touch controls
US20190073120A1 (en) Native overlay for rapid editing of web content
EP3050312B1 (en) Actionable content displayed on a touch screen
CN102754071B (en) There is equipment and the method for multiple application program display modes of the pattern comprising the display resolution with another equipment
US20170032554A1 (en) Modifying a graphic design to match the style of an input design
CN106484266A (en) A kind of text handling method and device
CN105144058A (en) Deferred placement prompt
CN103562835A (en) Web browser with quick site access user interface
US20140123036A1 (en) Touch screen display process
CN113741763A (en) Electronic book display method and device and electronic equipment
CN111553172A (en) Translation document display method, device, system and storage medium
CN110020279B (en) Page data processing method and device and storage medium
CN113297519A (en) Comment data generation method and device, electronic equipment and computer storage medium
CN113722630B (en) Method and equipment for presenting resource data in web page based on client rendering
CN110968236A (en) Screenshot method and device based on webpage
KR20150097250A (en) Sketch retrieval system using tag information, user equipment, service equipment, service method and computer readable medium having computer program recorded therefor
CN111796736B (en) Application sharing method and device and electronic equipment
EP3612921A1 (en) Enhanced inking capabilities for content creation applications
CN111796733B (en) Image display method, image display device and electronic equipment
CN114548040A (en) Note processing method, electronic device and storage medium
JP6091525B2 (en) Information processing apparatus and information input control program
KR102213861B1 (en) Sketch retrieval system, user equipment, service equipment, service method and computer readable medium having computer program recorded therefor
CN113552977A (en) Data processing method and device, electronic equipment and computer storage medium
KR20150093045A (en) Sketch Retrieval system, user equipment, service equipment and service method based on meteorological phenomena information and computer readable medium having computer program recorded therefor
KR102207514B1 (en) Sketch retrieval system with filtering function, user equipment, service equipment, service method and computer readable medium having computer program recorded therefor

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40057547

Country of ref document: HK