WO2022089209A1 - 一种图片评论的处理方法、装置、电子设备和存储介质 - Google Patents

一种图片评论的处理方法、装置、电子设备和存储介质 Download PDF

Info

Publication number
WO2022089209A1
WO2022089209A1 PCT/CN2021/123525 CN2021123525W WO2022089209A1 WO 2022089209 A1 WO2022089209 A1 WO 2022089209A1 CN 2021123525 W CN2021123525 W CN 2021123525W WO 2022089209 A1 WO2022089209 A1 WO 2022089209A1
Authority
WO
WIPO (PCT)
Prior art keywords
comment
target
picture
location
party
Prior art date
Application number
PCT/CN2021/123525
Other languages
English (en)
French (fr)
Inventor
陈政力
黄逸琛
常一非
黄创亮
魏灿荣
Original Assignee
腾讯科技(深圳)有限公司
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 腾讯科技(深圳)有限公司 filed Critical 腾讯科技(深圳)有限公司
Publication of WO2022089209A1 publication Critical patent/WO2022089209A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/60Editing figures and text; Combining figures or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/40Scaling of whole images or parts thereof, e.g. expanding or contracting

Definitions

  • the present application relates to the field of computer technology, and in particular, to a method, apparatus, electronic device and storage medium for processing a picture comment.
  • Embodiments of the present application provide a method, device, electronic device, and storage medium for processing a picture comment, so as to improve the pertinence of the picture comment and enhance the comment effect.
  • a comment editing page including a first picture display area and a comment editing area is displayed, and the first picture display area displays the enlargement of the partial area Picture, the comment content to be published for the local area is displayed in the comment editing area;
  • a first picture display page containing the target picture is displayed, and the first picture display page displays the comment published on the partial area.
  • a location identifier, and the identity of the commenter who posted the comment are displayed, and the comment published on the partial area.
  • the comment content After receiving a comment publishing request for publishing the comment content to be published in the local area, the comment content is stored in association with the identity identifier, and the requesting party is notified, so that the requesting party can display the target image containing the target image.
  • a first picture display page where the first picture display page displays the location identifier of the comment published for the local area and the identity identifier of the commenter associated with the comment.
  • a first response unit configured to display the enlarged target picture in response to an enlargement operation for the target picture published by the commented party
  • the second response unit is configured to display a comment editing page including a first picture display area and a comment editing area in response to a preset comment operation triggered by a local area in the enlarged target picture, in the first picture display area Displaying an enlarged picture of the partial area, and displaying the comment content to be published for the partial area in the comment editing area;
  • a third response unit configured to display a first picture display page containing the target picture in response to a comment publishing operation for publishing the comment content in the local area, where the first picture display page displays a The location identifier of the comment posted in the local area, and the identity identifier of the commenter who posted the comment.
  • the first association unit is configured to, after receiving the enlargement request for the target picture published by the reviewee, obtain the picture identifier of the target picture and the enlargement ratio information for the target picture, and use the enlargement ratio information stored in association with the picture identification;
  • the second association unit is configured to acquire the display information of the partial area and the identity of the commenting party after receiving the comment request for the partial area in the enlarged target picture, and combine the display information and the identity associated with the picture identification;
  • the notification unit is configured to, after receiving a comment publishing request for publishing the comment content to be published in the local area, save the comment content in association with the identity identifier, and notify the requesting party, so that the requesting party displays the content containing The first image display page of the target image, where the position identifier of the comment published for the local area and the identity identifier of the commenter associated with the comment are displayed on the first image display page.
  • An electronic device provided by an embodiment of the present application includes a processor and a memory, wherein the memory stores a program code, and when the program code is executed by the processor, the processor is caused to execute any one of the above The steps of the processing method for image comments.
  • Embodiments of the present application provide a computer program product or computer program, where the computer program product or computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium.
  • the processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the steps of any one of the above-mentioned methods for processing image comments.
  • An embodiment of the present application provides a computer-readable storage medium, which includes program code, when the program product runs on an electronic device, the program code is used to cause the electronic device to perform any of the above-mentioned processing of a picture comment steps of the method.
  • 1A is a schematic diagram of an image content label in an embodiment of the application.
  • FIG. 1B is a schematic diagram of a picture content label in another embodiment of the present application.
  • FIG. 2 is a schematic diagram of an application scenario in an embodiment of the present application
  • FIG. 3 is a schematic flowchart of a method for processing a picture comment in an embodiment of the present application
  • FIG. 4 is a schematic diagram of a target picture in an embodiment of the present application.
  • 5A is a schematic diagram of a comment editing page in an embodiment of the present application.
  • 5B is a schematic diagram of a first picture display page in an embodiment of the application.
  • 5C is a schematic diagram of a first picture display page in another embodiment of the present application.
  • 6A is a schematic diagram of a second image display page in an embodiment of the present application.
  • 6B is a schematic diagram of a comment details page in an embodiment of the present application.
  • 6C is a schematic diagram of a second picture display page in another embodiment of the present application.
  • FIG. 7 is a schematic diagram of a second picture display page in another embodiment of the present application.
  • 8A is a schematic diagram of a chat page in an embodiment of the application.
  • 8B is a schematic diagram of a chat page in another embodiment of the present application.
  • 8C is a schematic diagram of a chat page in another embodiment of the present application.
  • FIG. 9 is a schematic diagram of a personal details page in an embodiment of the application.
  • FIG. 10 is a schematic diagram of a personal details page in another embodiment of the application.
  • FIG. 11A is a schematic diagram of a local area introduction in an embodiment of the present application.
  • 11B is a schematic flowchart of a process of enlarging and initializing a picture in an embodiment of the present application
  • FIG. 12 is a schematic flowchart of a processing method for a picture comment in another embodiment of the present application.
  • FIG. 13 is a schematic diagram of a sequence flow diagram of interaction implementation in an embodiment of the present application.
  • 15 is a schematic diagram of the composition and structure of an apparatus for processing a picture comment in another embodiment of the present application.
  • 16 is a schematic structural diagram of a hardware composition of an electronic device to which an embodiment of the present application is applied;
  • FIG. 17 is a schematic structural diagram of a hardware composition of an electronic device to which another embodiment of the present application is applied.
  • Application that is, application program: It is a computer program that can complete one or more businesses, generally has a visual display interface, and can interact with users.
  • electronic maps and calendars can be called applications.
  • some applications need to be installed on the terminal device used by the user before they can be used, and some applications do not need to be installed, for example, various small programs, web pages, etc. in some social applications.
  • the applet does not need to be downloaded and installed to use, and the user can open the application by scanning or searching.
  • Application operation interface It is the medium for interaction and information exchange between the application system and the user. It realizes the conversion between the internal form of information and the form acceptable to human beings. The purpose is to enable users to operate the application conveniently and efficiently to achieve a two-way interaction to complete the work that you want to accomplish with the application.
  • the application operation interface includes human-computer interaction and a graphical user interface
  • the specific application operation interface includes a picture display page, a comment editing page, a comment details page, a personal details page, a chat page, and the like.
  • different application operation interfaces are used to display different contents to the user, so as to realize different information interaction between the user and the application.
  • Image display page A user-oriented page used to display images to users.
  • at least one target picture can be displayed on the picture display page, and in addition, the location identifiers of the comments published by each commenter and the identity of the commenter who posted the comment can be displayed at a specific location.
  • Comment editing page a user-oriented page for editing comments to be published.
  • the comment editing page includes, in addition to a comment editing area for the user to edit comment content, a picture display area for displaying an enlarged picture corresponding to the comment content to be published.
  • the enlarged image is obtained by enlarging a certain local area in the target image.
  • Comment Details Page A user-facing page for displaying comments.
  • the comment details page also includes a picture display area for displaying enlarged pictures, and further includes a comment display area for displaying comment details. In this way, when viewing the comment details page, the user can intuitively view the details in the commented local area in the target image and the content of the comment.
  • Location Marker Refers to the marking at the location where the comment is posted in the image.
  • the user may comment at specific positions in the picture, and thus, position markers may be displayed at these specific positions where the user posts comments to prompt the commentee.
  • the location identifiers of multiple comment notifications can be aggregated and displayed in the same picture. Users can see that their pictures have been commented on by many people, and can intuitively feel which area of the enlarged image is the most popular according to the location identifiers.
  • Reviewed Party and Reviewed Party are relative concepts.
  • the commented party refers to the party that publishes the picture
  • the commenter refers to the party that comments on the pictures posted by the commented party.
  • the commented party can publish the target picture in the target application, and the commenting party can comment on the target picture.
  • the identity of the commenter is related to the location identifier, and can be displayed to the user along with the location identifier. For example, if a commenter posts a comment at a certain position in the target image, the position identifier and the commenter's identity mark can be marked at that position, and the commented party is prompted to post a comment at that position. Comment.
  • users of social networking sites or instant messaging tools often post pictures about their life on their social networking sites or instant messaging tools, and users' friends can comment on the pictures posted by users on social networking sites or instant messaging tools. Comments, users can also comment on pictures posted by their friends on their respective social networking sites or instant messaging tools, so that users can interact with their friends by posting pictures and commenting.
  • the social networking site or instant messaging tools When publishing content such as pictures on social networking sites or instant messaging tools, the social networking site or instant messaging tools will also establish a comment area for these contents on the posting page of the pictures, and users can post comments by leaving a message in the comment area. Comments on the image, and these comments will be kept on the page for other users to view. For users, actions such as replying to comments can also be performed.
  • the user can only discuss the whole picture, and there is no way to clearly indicate which details of the picture are aimed at.
  • the master state before publishing the image, can also put its own content label on the comment position of the image, as shown in FIG. 1A and FIG. 1B .
  • the master mode refers to the party who takes the initiative to take action, such as the user who posts pictures and comments.
  • the page shown in FIG. 1A is the editing state of the commented party before publishing the picture.
  • the commented party can add a content label to the picture, such as "going out on weekends
  • the page shown in FIG. 1B is the display page after the commented party publishes the picture.
  • the embodiments of the present application provide a method, apparatus, electronic device, and storage medium for processing a picture comment.
  • a user comments on a picture when he can zoom in on the details in a local area of the picture, and comment on a specific position in the picture, and after commenting, leave a mark on the comment position, thereby It makes the picture comments more targeted and interesting, realizes a more natural combination between comments and pictures, makes it easy for users to view the comment content and the details of the pictures being commented on, and makes the comments more targeted, which is conducive to improving The interactivity of both sides of the comment enhances the comment effect.
  • FIG. 2 it is a schematic diagram of an application scenario of an embodiment of the present application.
  • the application scenario diagram includes two terminal devices 210 and one server 230 , and the application operation interface 220 can be logged in through the terminal devices 210 . Communication between the terminal device 210 and the server 230 may be performed through a communication network.
  • the application operation interface 220 may be a picture display page, a comment editing page, a comment details page, a chat page, or a personal details page.
  • the target application on the terminal device 210 used by user A responds to user A the comment publishing operation, send a comment publishing request to the server 230, the comment publishing request may carry the comment content and the information of the corresponding commenting party (including the identity of the commenting party, commenting location information, etc.), so that the server 230 will The comment content is reviewed.
  • a notification can be returned according to the comment publishing request, indicating that the comment content is successfully published.
  • the server 230 may not review the comment content, but only store the information in association with the picture identifier of the target picture.
  • the target application on the terminal device 210 used by user B requests a comment to the server 230, and the server 230 can send to the target application each comment content corresponding to the picture identifier including the target picture and
  • the above target application can display comments at each comment location, so that user B and other users can view the comments posted by user A.
  • the communication network is a wired network or a wireless network.
  • the terminal device 210 and the server 230 may be directly or indirectly connected through wired or wireless communication, which is not limited in this application.
  • the terminal device 210 is an electronic device used by the user, and the electronic device may be a personal computer, a mobile phone, a tablet computer, a notebook, an e-book reader, a smart home, etc. with certain computing capabilities and running an instant messaging class. Computer equipment for software and websites or social software and websites.
  • Each terminal device 210 communicates with the server 230 through a wireless network.
  • the server 230 may be an independent physical server, a server cluster or a distributed system composed of multiple physical servers, or a cloud service, cloud database, cloud computing, Cloud servers for basic cloud computing services such as cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms.
  • each terminal device may have a target application installed, and the target application may be an application associated with image sharing, such as a Meitu application, a photo sharing application, an image commenting application, and the like.
  • the application involved in the embodiments of the present application may be software, or a client such as a web page, applet, etc., and the server is an application server corresponding to the software or the webpage, applet, etc., and the specific type of the client is not limited.
  • FIG. 3 is an implementation flowchart of a method for processing a picture comment provided by an embodiment of the present application, which is applied to the terminal device 210, and the specific implementation process of the method includes the following steps S31-S33:
  • the terminal device responds to the trigger operation of viewing the target picture published by the commentee, and displays the picture shown in Figure 4. page shown.
  • FIG. 4 is a schematic diagram of a target picture in an embodiment of the present application.
  • the prompt information shown in FIG. 4 "Click any position of 'Hoo' to attract the attention of 'Ta'" means that the user can click on any position in the picture to trigger a preset comment operation, and then comment. Alternatively, the user can tap to go back without commenting on the target image.
  • the preset comment operation in the embodiment of the present application may also be a gesture trigger, a double-click trigger, a long-press trigger, etc., which is not specifically limited here.
  • click is taken as an example for illustration.
  • the comment content may be text content, or may be pictures, expressions, links, etc., which are not specifically limited here.
  • the user can comment on a specific position in the picture published by others, so that the comment and the picture are combined more naturally.
  • the user when a user comments on a specific position where a picture is published, the user can also zoom in and drag the picture, adjust the specific detail position, and comment on the specific position.
  • commenting on a specific position of the picture refers to commenting on a certain coordinate position in the picture, the position and content of the comment will be recorded, and when displayed to other users, the comment content and the relative position in the picture are retained .
  • the specific implementation is as follows:
  • the terminal device displays a comment editing page including a first picture display area and a comment editing area in response to a preset comment operation for the target comment location triggered by a partial area of the target picture, and the first picture display area displays the zoom in the partial area.
  • FIG. 5A is a schematic diagram of a comment editing page in an embodiment of the present application.
  • the area in the rectangular frame S51 shown at the top of FIG. 5A is the first picture display area, and the picture displayed in this area is the enlarged picture of the partial area of the target picture selected by the user, which is the target image selected by the user. Part of the picture is enlarged.
  • the area in the dotted box S52 is the comment editing area, and the user can input the comment content to be published in this area.
  • an upper limit of the number of words may be set, for example, the upper limit of the number of words for the comment content is required to be 100 words.
  • the user when viewing a target image posted by others, the user can zoom in and drag with two fingers, click on a specific position, call up a comment input box, and then edit the comment content to be published in the comment input box.
  • the user zooms in on the leg of the target image, clicks on the shoe, generates a mark, and brings up the comment input box, and the user can enter the text content and publish it.
  • the content of the comment to be published can be edited at the "Fill in the details and comment and send "Hoo", and the other party will receive it".
  • the terminal in response to a preset comment operation triggered for the target comment position in the target picture, sends a comment request to the server (referring to the target application server) for the target comment position in the target picture published by the party being commented on , after receiving the comment request, the server obtains the picture identifier of the target image, the comment location information of the target comment location, and the identity identifier of the commenter, and associates and saves the identity identifier, the comment location information, and the image identifier.
  • the target commenting position is the position on the shoe clicked by the user
  • the commenting party is Xiaobai.
  • the server when the user performs operations such as zooming in and dragging the picture, the server also needs to further obtain the zoom ratio information of the local area, the center position information of the center position in the local area, the display size information of the local area, etc., The magnification ratio information, the center position information, and the display size information are associated with the comment position information and saved.
  • the user Xiaobai enlarged the leg of the target picture, so it is necessary to further determine the display size information of the enlarged leg area of the user, including the length and width of the area, the coordinates of the center position of the area, and the scaled up scale compared to the original target image.
  • the terminal device executes the following step S33.
  • FIG. 5B is a schematic diagram of a first picture display page in an embodiment of the present application.
  • the position of the target comment on the page displays the position identifier of the comment posted by the user Xiaobai on the picture, such as the love peach pattern shown on the left side of the dotted box S53, and the avatar (identity identifier) of the user Xiaobai, such as This is shown on the right side of the dotted box S53.
  • the target comment position in the embodiment of the present application refers to a specific position.
  • the terminal device in response to a comment publishing operation of publishing comment content at the target comment location, sends a comment posting request for publishing the comment content to be published at the target comment location in the local area to the server, and the server sends the comment posting request to the server.
  • save the comment content in association with the ID and notify the commenter that the target application that Xiaobai has logged in to has successfully published the comment.
  • the target application logged in by the commenter Xiaobai can display the page shown in FIG. 5B .
  • the user can change the location identifier when posting a picture comment, and what is listed in the illustration in this application is the default love peach pattern.
  • pattern marks such as lightning, flowers, diamonds and other patterns.
  • the terminal device displays multiple types of location identifiers in response to a comment publishing operation for posting comment content at the target comment location; in response to a triggering operation for selecting the location identifier of the target type, displays a first image display page containing the target image, the first image In the display page, the target comment position is displayed with the target type position identification.
  • the user can also directly change the location identifier on the first picture display page.
  • the user can display the page shown in FIG. 5C by long-pressing the location marker at the target comment position.
  • Various pre-configured location markers are displayed in the dotted box above the currently displayed location marker, except for the love peach pattern.
  • it also includes triangles, five-pointed stars, etc.
  • the user can choose one of these types except the love peach pattern as the target type, and can also customize the location identification, such as hand-painted by the user, or selected from the album, etc. .
  • the location identifier in the first picture display page can be switched to the location identifier of the target type.
  • the server after receiving the comment posting request, the server will also send a notification message to the target application logged in by the commented party Huaweing, notifying Huaweing that someone has posted a new comment.
  • the terminal device when the reviewee is viewing the target image, displays a second image display page containing the target image in response to the triggering operation of the review for viewing the target image, and each comment position in the second image display page is displayed.
  • the location identifier of the comment posted on the target image and the identity identifier of the commenter associated with the location identifier are displayed.
  • FIG. 6A is a schematic diagram of a second picture display page in an embodiment of the present application.
  • Position marks are displayed at the two comment positions in the schematic diagram, indicating that there are currently two comments on the target image.
  • Two reviews currently displayed on this page one for bags and one for shoes.
  • a position identification with a love peach pattern and an avatar of an associated commenting party are also displayed at each commenting position.
  • the terminal device displays a comment details page including a second picture display area and a first comment display area in response to a comment viewing operation for the target comment location, and the second picture display area displays the information associated with the target comment location.
  • the user can click on any comment location or the location identifier or identity identifier of the location to trigger a viewing operation to view the corresponding comment.
  • the review operation for the comment on the target comment position can be triggered, and the comment details page including the second picture display area and the first comment display area is displayed, see FIG. 6B
  • FIG. 6B it is a schematic diagram of a comment details page in the embodiment of the application, and an enlarged picture of a local area associated with the target comment position is displayed in the second picture display area S61, that is, the leg part in the target picture is displayed. Enlarged, the comment content associated with the target comment position is displayed in the first comment display area S62.
  • the shoes in S61 may also be marked with a position identification, such as the love peach pattern in FIG. 6B, and the avatar of the commenter.
  • the same comment location may also display the location identifiers of comments published by multiple commenters and the identifiers of the commenters associated with each location identifier; at this time, the user wants to view a certain location at the target comment location When commenting, click on the corresponding commenter ID.
  • FIG. 6C is a schematic diagram of yet another second picture display page in the embodiment of the present application.
  • the terminal device responds to the target comment by passing the target comment position.
  • the viewing operation triggered by the party's identity identification, displays the comment details page including the second picture display area and the first comment display area, the second picture display area displays the enlarged picture of the local area associated with the target comment location, and the The location displays the identity of the target commenter, and the first comment display area displays the comment content published by the target commenter at the target comment location, as shown in FIG. 6B .
  • the number of comments can be further displayed behind the commenter's ID.
  • information such as the content of each comment and the comment time may also be displayed in the comment display area on the comment details page shown in FIG. 6B , which is not specifically limited here.
  • the master mode in addition to the master mode being able to edit the content at a specific position of his own picture, other users can also specify the position when editing the content, publish comments for the specific position, and also zoom in on the picture to adjust more specific details. Location. You can also enlarge the picture when making a comment notification. When the picture is displayed to the outside world, the guest can also enlarge the comment part on the picture for viewing.
  • the master mode refers to the party who takes the initiative to take action, such as the user who posts pictures and comments.
  • the guest state refers to the party who received the action or notification, such as the user who received the comment message, and the user who received the picture message.
  • a comment reply control is also displayed in the first comment display area.
  • the commented party and the commenting party can pay attention to each other, and the two parties are successfully matched, and the page shown on the right side of Figure 7 is displayed, and S70 in the page is the comment Reply control.
  • the terminal device displays the first chat page including the second comment display area and the comment reply area in response to the trigger operation of the commented party on the comment reply control, and the second comment display area displays the comment target The content of the comment posted at the target comment location.
  • the comment content published by the commenting party for the target comment location is displayed, and the user can also enter the comment content in the comment reply area S82. Reply information for the comment content.
  • the terminal displays the reply information in the second comment display area in response to the reply information edited by the commented party through the comment reply area for the comment content published by the commenter at the target comment location, as shown in FIG. 8B .
  • the terminal displays the reply information in the second comment display area in response to the reply information edited by the commented party through the comment reply area for the comment content published by the commenter at the target comment location, as shown in FIG. 8B .
  • there is a small topic on the chat page "Let's deepen your understanding by guessing the other party's occupation first!”, and the small topic guides the commenter to chat with the commented party to improve the interaction between the two parties.
  • the comment content posted by the commenter for the target comment location displayed in the second comment display area may be in the form of a comment message card, and the comment message card displays the target picture and the commenter posted to the target comment location. comments.
  • the comment message card can directly display the target picture and the comment posted by the commenter on the target picture to the user, which can be displayed to the commentee more intuitively, and guide the commentee to reply to the comment. .
  • the first comment display area also displays the commenter's identification, so the commented party can also view the commenter's personal details page by clicking on the commenter's identification.
  • the terminal device can respond to the triggering operation for the commenter's identity and send a message to the server for The request is triggered by the reviewer's identity identifier, and the server feeds back the reviewer's personal details to the target application logged in by the reviewer, and then the target application logged in by the reviewer displays the reviewer's personal details page, and the personal details page displays comments.
  • FIG. 9 is a schematic diagram of a personal details page in the embodiment of the application
  • the personal homepage of the commenter "Xiaobai" is displayed in the figure, that is, the personal details page, and the user Xiaobai is displayed on the page.
  • the commented party can match with the commenting party Xiaobai, and jump to the page shown in Figure 10.
  • the page indicates that the commented party and the commenting party are successfully matched, and Enter the chat page between the two parties by clicking the control at S100 in FIG. 10 . That is, the terminal device displays the second chat page between the commenting party and the commented party in response to the triggering operation for the chat control.
  • the implementations related to the page triggered and displayed by the commented party listed in the embodiments of the present application are also applicable to the commenting party. That is, the reviewer and the reviewer can also view comments, related matching, chat, etc., to ensure the interaction between the reviewers.
  • the specific implementation method can refer to the above-mentioned embodiment, which is not specifically limited here. In the embodiment of this application, the main It is illustrated by taking the commented party as an example.
  • the interaction between the commenting party and the commented party can be realized.
  • FIG. 11A is a schematic diagram related to the introduction of a local area in an embodiment of the present application.
  • the terminal device first needs to upload the relevant information of the target image enlarged by the user, specifically including the current enlargement ratio r (that is, the enlargement ratio information above), the local area center coordinates x1 and y1 (that is, the above-mentioned enlargement ratio information). center position information), comment position coordinates x2 and y2 (ie, the comment position information above), original picture size, width w1 and height h1 (ie, original size information), and so on.
  • the server After receiving the information, the server performs amplification and initialization on the picture when receiving comments.
  • FIG. 11B which is a schematic flowchart of the process of amplifying and initializing the picture in the embodiment of the present application, the specific implementation process includes the following steps S111- S113 (pictured):
  • S111 Obtain the enlarged size information of the enlarged target image according to the original size information and the enlargement ratio information of the target image;
  • this step refers to calculating the width and height of the enlarged target image: w2 and h2 according to the original target image sizes w1 and h1 and the enlargement ratio r.
  • S112 Obtain the reference position information of the reference point on the enlarged target picture according to the enlarged size information, the center position information, and the display size information of the local area;
  • the local area center coordinates x1 and y1 calculate the upper left corner coordinate x3 of the enlarged target image and y3.
  • the point at the upper left corner of the enlarged target picture is the reference point.
  • S113 Feed back the reference position information and the enlarged size information to the requester, so that the requester draws the enlarged target picture in the local area according to the reference position information and the enlarged size information, and draws the target in the local area according to the comment position information The location id of the comment location.
  • the requesting party may be the target application used by the reviewing party, or may be the target application used by other reviewing parties who want to view relevant comments.
  • the requester can draw the enlarged image in the display area according to the upper left corner coordinates x3 and y3, width w2 and height h2 of the enlarged target image, and draw the commenter's avatar in the display area according to the comment position coordinates x2 and y2.
  • the server or the terminal device may further determine whether there is a special situation, and further perform special situation processing when there is a special situation. Two possible special cases are listed below:
  • the adjusted reference position information is adjusted to meet the preset position conditions by adjusting the reference position information; and the comment position information and the enlarged size information are adjusted at the same time.
  • x3 and y3 of the upper left corner of the calculated enlarged target image are greater than 0, it is regarded as an abnormal value, that is, the preset position condition is not met.
  • the processing scheme is as follows: x3 and y3 can be adjusted to be less than or equal to 0 by means of translation, and at the same time, the width w2 and height h2 of the enlarged image, and the comment position coordinates x2 and y2 can be adjusted.
  • Special case 2 It is determined that the target comment position cannot appear in the local area according to the central position information.
  • the reference position information of the reference point on the enlarged target picture is adjusted so that the adjusted target comment position can appear in the local area.
  • the processing solution is: the coordinates x3 and y3 of the upper left corner of the enlarged target image can be adjusted by means of translation to ensure that x2 and y2 are within the display area.
  • the position information and magnification ratio of the content can be effectively recorded, which is flexible and simple.
  • users can quickly locate text content and restore pictures. Allow users to customize the location of the message more precisely, and display it to the user who receives it.
  • an implementation flowchart of another image comment processing method provided by an embodiment of the present application is applied to the server 230, and the specific implementation process of the method includes the following steps S121-S123:
  • S122 After receiving the comment request for the local area in the enlarged target picture, obtain the display information of the local area and the identity identifier of the commenter, and associate and save the display information and the identity identifier with the image identifier;
  • the center position information of the center position in the local area, the display size information of the local area, the comment position information of the target comment position in the local area, etc. belong to the display information of the local area, except for obtaining the center position information of the center position in the local area , and the position information of the four vertices can also be obtained, which is not specifically limited here.
  • the method further includes:
  • the target application logged in by the commented party After receiving the review request for the comment at the target comment location, return the comment content and identification associated with the comment location information to the target application logged in by the commented party, so that the target application logged in by the commented party displays the display including the second picture. area and the comment details page of the first comment display area, the second picture display area displays an enlarged image of the local area associated with the target comment location, and the first comment display area displays the comment content associated with the target comment location.
  • the first comment display area also displays a comment reply control; the method further includes:
  • the first chat page in the display area and the comment reply area, and the second comment display area displays the comment content published by the commenter for the target comment location;
  • the first comment display area also displays the identity of the commenting party; the method further includes:
  • the display information of the partial area includes the center position information of the center position in the partial area, the comment position information of the comment position in the partial area, and the display size information of the partial area; notify the requester, so that the requester can display the target image containing the target image.
  • the first picture display page of the first picture display page, the target comment position in the first picture display page displays the position identification of the comment published on the target picture, and the identity identification of the commenter associated with the comment, specifically including:
  • the method further includes:
  • the method further includes:
  • the reference position information of the reference point on the enlarged target image is adjusted so that the adjusted target comment position can appear in the local area.
  • the user can select a specific position to comment on a picture published by others, and when publishing a comment on a specific position of the picture, the user can zoom in and drag the picture to adjust specific details. Location.
  • the commented party receives a comment on a specific position of the picture, he can view the enlarged position of the comment on the original picture and the related comment content, which is beneficial to improve the pertinence of the picture comment and enhance the comment effect.
  • the interaction between the terminal device and the server will be described in detail below with reference to FIG. 13 , where the terminal device has a target application, and the server refers to the target application server.
  • FIG. 13 it is an interaction sequence diagram of a method for processing a picture comment.
  • the specific implementation process of the method includes the following steps S1301-S1314:
  • Step S1301 the target application displays the target image in response to the triggering operation of viewing the target image published by the reviewee;
  • Step S1302 The target application displays a comment editing page including a first picture display area and a comment editing area in response to a preset comment operation triggered by a partial area of the target picture for the target comment location, and the partial area is a partial area in the target picture. obtained by enlarging the area, the first picture display area displays the picture in the local area;
  • Step S1303 the target application sends a comment request to the server for the target comment position in the target picture published by the commented party;
  • Step S1304 After receiving the comment request, the server obtains the picture identifier of the target image in the comment request, the comment location information of the target comment location and the identity identifier of the commenting party, and associates and saves the identity identifier, the comment location information and the image identifier;
  • Step S1305 the target application displays the comment content to be published for the target comment location in response to the comment content edited in the comment editing area;
  • Step S1306 the target application, in response to a comment publishing operation for publishing comment content at the target comment location, sends a comment release request to the server for publishing the to-be-published comment content at the target comment location;
  • Step S1307 After receiving the comment publishing request, the server stores the comment content in association with the ID, and notifies the target application;
  • Step S1308 the target application displays a first picture display page containing the target picture, and the position of the comment posted on the target picture and the identity of the commenter who posted the comment are displayed at the target comment position in the first picture display page;
  • Step S1309 the target application, in response to the triggering operation for viewing comments on the target picture, sends a trigger request for viewing comments on the target picture to the server;
  • Step S1310 After receiving the trigger request, the server queries the comment location information of each comment location associated with the picture identifier in the trigger request, as well as the commenter's identity identifier associated with each comment location, and feeds back to the target logged in by the commented party. application;
  • Step S1311 The target application displays a second image display page containing the target image, and each comment position in the second image display page displays the location identifier of the comment published on the target image and the identity identifier of the commenter associated with the location identifier. ;
  • Step S1312 the target application, in response to the viewing operation for the comment at the target comment location, sends a request for viewing the comment at the target comment location to the server;
  • Step S1313 After receiving the review request for the comment at the target comment location, the server returns the comment content and identity associated with the comment location information to the target application logged in by the commented party;
  • Step S1314 The target application displays a review details page including a second image display area and a first review display area, the second image display area displays an enlarged image of a local area associated with the target review location, and the first review display area displays the target The comment content associated with the comment location.
  • FIG. 13 is a brief introduction to a user commenting at a specific location and viewing comments at a specific location, and the specific implementation can refer to the foregoing embodiment, which is not specifically limited herein.
  • FIG. 14 is a schematic structural diagram of a picture comment processing apparatus 1400 in an embodiment of the present application, which may include the following units:
  • the first response unit 1401 is configured to display the enlarged target picture in response to the enlargement operation on the target picture published by the commented party;
  • the second response unit 1402 is configured to display a comment editing page including a first picture display area and a comment editing area in response to a preset comment operation triggered by a partial area in the enlarged target picture, and the first picture display area displays The enlarged picture of the local area, and the comment content to be published for the local area is displayed in the comment editing area;
  • the third response unit 1403 is configured to display a first picture display page containing the target picture in response to a comment publishing operation for publishing comment content for the local area, and the first picture display page displays the location identifier of the comment published for the local area , and the identity of the commenter who posted the comment
  • the apparatus further comprises:
  • the fourth response unit 1404 is configured to, after the third response unit 1403 responds to the comment publishing operation for publishing the comment content in the local area, in response to the triggering operation of viewing the comment of the target picture, displaying the second picture display page containing the target picture, Each comment position in the second picture display page is displayed with the position identification of the comment published on the target picture and the identity identification of the commenter associated with the position identification, wherein the comment position is the position where the commenter publishes the comment in the local area;
  • a comment details page including a second picture display area and a first comment display area is displayed, the second picture display area displays an enlarged picture of the local area associated with the target comment location, and the first comment display area is displayed.
  • a comment display area displays comment content associated with the target comment location.
  • the same comment location displays the location identifiers of comments published by multiple commenters and the identifiers of the commenters associated with each location identifier; the fourth response unit 1404 is specifically used for:
  • a comment details page including a second picture display area and a first comment display area is displayed, and the second picture display area displays a part associated with the target comment location
  • the enlarged picture of the area, and the identity of the target commenter is displayed at the target comment position, and the comment content published by the target commenter at the target comment position is displayed in the first comment display area.
  • the first comment display area also displays a comment reply control; the fourth response unit 1404 is also used for:
  • a first chat page including a second comment display area and a comment reply area is displayed, and the second comment display area displays the comment content published by the commenter for the target comment position;
  • the reply information is displayed in the second comment display area.
  • the fourth response unit 1404 is specifically used for:
  • a comment message card for the commenter is displayed, and the comment message card displays the target picture and the comment content published by the commenter for the target comment location.
  • the first comment display area also displays the identity of the commenter; the fourth response unit 1404 is also used for:
  • the personal details page of the commenter is displayed, and the personal details page of the commenter and the chat controls are displayed on the personal details page;
  • a second chat page between the commenting party and the commented party is displayed.
  • the third response unit 1403 is specifically used for:
  • a first image display page containing the target image is displayed, and the location identifier of the target type is displayed at the target comment position in the first image display page.
  • FIG. 15 is a schematic structural diagram of a picture comment processing apparatus 1500 in an embodiment of the present application, which may include:
  • the first associating unit 1501 is configured to, after receiving an enlargement request for a target image published by the commented party, obtain the image identifier of the target image and the enlargement ratio information for the target image, and store the enlargement ratio information in association with the image identifier. ;
  • the second associating unit 1502 is configured to, after receiving a comment request for a local area in the enlarged target picture, acquire the display information of the local area and the identity of the commenter, and associate the display information and identity with the picture identity save;
  • the notification unit 1503 is configured to, after receiving a comment publishing request for publishing the comment content to be published in the local area, save the comment content in association with the identity identifier, and notify the requesting party, so that the requesting party displays the first image display containing the target image
  • the first picture display page displays the location identifier of the comment published for the local area and the identity identifier of the commenter associated with the comment.
  • the apparatus further comprises:
  • the first feedback unit 1504 is configured to send a notification message to the target application logged in by the commented party after the notification unit 1503 associates and saves the comment content with the identity identifier;
  • the target application logged in by the commented party After receiving the review request for the comment at the target comment location, return the comment content and identification associated with the comment location information to the target application logged in by the commented party, so that the target application logged in by the commented party displays the display including the second picture. area and the comment details page of the first comment display area, the second picture display area displays an enlarged image of the local area associated with the target comment location, and the first comment display area displays the comment content associated with the target comment location.
  • the first comment display area also displays the identity of the commenting party; the device further includes:
  • the second feedback unit 1505 is configured to, after receiving the trigger request for the identity of the reviewer, feed back the personal details of the reviewer to the target application logged in by the reviewee, so that the target application logged in by the reviewer displays the reviewer's personal details.
  • Personal details page displays the personal details of the commenter.
  • the display information of the local area includes the center position information of the center position in the local area, the comment position information of the target comment position in the local area, and the display size information of the local area;
  • the notification unit 1503 is specifically used for:
  • the apparatus further comprises:
  • the first adjustment unit 1506 is configured to adjust the reference position information to meet the preset position conditions by adjusting the reference position information when the reference position information does not meet the preset position conditions; and adjust the comment position information and the enlarged size information at the same time.
  • the apparatus further comprises:
  • the second adjustment unit 1507 is configured to adjust the reference position information of the reference point on the enlarged target picture when it is determined according to the center position information that the target comment position cannot appear in the local area, so that the adjusted target comment position can appear in a local area.
  • each module or unit
  • the functions of each module may be implemented in one or more software or hardware.
  • aspects of the present application may be implemented as a system, method or program product. Therefore, various aspects of the present application can be embodied in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software aspects, which may be collectively referred to herein as implementations "circuit", “module” or "system”.
  • the embodiments of the present application further provide an electronic device.
  • the electronic device can be used for transfer control of resource objects.
  • the electronic device may be a server, such as server 230 shown in FIG. 2 .
  • the structure of the electronic device may be as shown in FIG. 16 , including a memory 1601 , a communication module 1603 and one or more processors 1602 .
  • the memory 1601 is used to store computer programs executed by the processor 1602 .
  • the memory 1601 may mainly include a stored program area and a stored data area, wherein the stored program area may store the operating system and the programs required for running the instant messaging function, etc.; the stored data area may store various instant messaging information and operation instruction sets.
  • the memory 1601 may be a volatile memory (volatile memory), such as random-access memory (RAM); the memory 1601 may also be a non-volatile memory (non-volatile memory), such as read-only memory, flash memory memory (flash memory), hard disk drive (HDD) or solid-state drive (SSD); or memory 1601 is capable of carrying or storing desired program code in the form of instructions or data structures and can be accessed by Any other medium accessed by the computer, but not limited to this.
  • the memory 1601 may be a combination of the above-described memories.
  • the processor 1602 may include one or more central processing units (CPUs) or be digital processing units, or the like.
  • the processor 1602 is configured to implement any one of the above-mentioned processing methods for image comments applied to the server 230 when invoking the computer program stored in the memory 1601 .
  • the communication module 1603 is used to communicate with the terminal device and other servers.
  • the specific connection medium between the memory 1601, the communication module 1603, and the processor 1602 is not limited in the embodiments of the present application.
  • the memory 1601 and the processor 1602 are connected through a bus 1604 in FIG. 16 , and the bus 1604 is represented by a thick line in FIG. 16 .
  • the connection between other components is only for schematic illustration, not for be limited.
  • the bus 1604 can be divided into an address bus, a data bus, a control bus, and the like. For ease of presentation, only one thick line is shown in FIG. 16, but it does not mean that there is only one bus or one type of bus.
  • a computer storage medium is stored in the memory 1601, and computer-executable instructions are stored in the computer storage medium, and the computer-executable instructions are used to implement the image comment processing method in the embodiment of the present application.
  • the processor 1602 is configured to execute any one of the above-mentioned processing methods for image comments applied to the server 230, as shown in FIG. 12 .
  • the electronic device may also be other electronic devices, such as the terminal device 210 shown in FIG. 2 .
  • the structure of the electronic device may be as shown in FIG. 17 , including: a communication component 1710 , a memory 1720 , a display unit 1730 , a camera 1740 , a sensor 1750 , an audio circuit 1760 , a Bluetooth module 1770 , a processor 1780 and other components.
  • the communication component 1710 is used to communicate with the server.
  • a WiFi (Wireless Fidelity, circuit wireless fidelity) module may be included, and the WiFi module belongs to a short-distance wireless transmission technology, and the electronic device can help the user to send and receive information through the WiFi module.
  • Memory 1720 may be used to store software programs and data.
  • the processor 1780 executes various functions and data processing of the terminal device 210 by running software programs or data stored in the memory 1720 .
  • Memory 1720 may include high speed random access memory, and may also include nonvolatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
  • the memory 1720 stores an operating system that enables the terminal device 210 to run. In the present application, the memory 1720 may store an operating system and various application programs, and may also store codes for executing any one of the processing methods for image comments applied to the terminal device 210 in the embodiments of the present application.
  • the display unit 1730 may also be used to display information edited by the user or information provided to the user and a graphical user interface (GUI) of various menus of the terminal device 210.
  • the display unit 1730 may include a display screen 1732 disposed on the front of the terminal device 210 .
  • the display screen 1732 may be configured in the form of a liquid crystal display, a light emitting diode, or the like.
  • the display unit 1730 may be used to display the application operation page 220 in this embodiment of the present application.
  • the display unit 1730 can also be used to receive edited numerical or character information, and generate signal input related to user settings and function control of the terminal device 210. User touch actions on or near it, such as clicking a button, dragging a scroll box, etc.
  • the touch screen 1731 may cover the display screen 1732, or the touch screen 1731 and the display screen 1732 may be integrated to realize the input and output functions of the terminal device 210, which may be referred to as touch screen after integration.
  • the display unit 1730 can display application programs and corresponding operation steps.
  • the camera 1740 can be used to capture still images, and the user can send the images captured by the camera 1740 to the user of the other party in the chat through the target application.
  • the number of cameras 1740 may be one or multiple.
  • the object is projected through the lens to generate an optical image onto the photosensitive element.
  • the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CMOS complementary metal-oxide-semiconductor
  • the terminal device may further include at least one sensor 1750 , such as an acceleration sensor 1751 , a distance sensor 1752 , a fingerprint sensor 1753 , and a temperature sensor 1754 .
  • the terminal device may also be configured with other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, light sensors, and motion sensors.
  • the audio circuit 1760 , the speaker 1761 , and the microphone 1762 may provide an audio interface between the user and the terminal device 210 .
  • the audio circuit 1760 can transmit the electrical signal converted from the received audio data to the speaker 1761, and the speaker 1761 converts it into a sound signal and outputs it.
  • the terminal device 210 may also be configured with volume buttons for adjusting the volume of the sound signal.
  • the microphone 1762 converts the collected sound signal into an electrical signal, which is received by the audio circuit 1760 and then converted into audio data, and then outputs the audio data to the communication component 1710 to be sent to, for example, another terminal device 210, or the audio data Output to memory 1720 for further processing.
  • the bluetooth module 1770 is used to exchange information with other bluetooth devices having bluetooth modules through the bluetooth protocol.
  • the terminal device can establish a Bluetooth connection with a wearable electronic device (such as a smart watch) that also has a Bluetooth module through the Bluetooth module 1770, so as to perform data interaction.
  • a wearable electronic device such as a smart watch
  • the processor 1780 is the control center of the terminal device, and uses various interfaces and lines to connect various parts of the entire terminal, and executes the operation of the terminal device by running or executing the software programs stored in the memory 1720 and calling the data stored in the memory 1720.
  • the processor 1780 may include one or more processing units; the processor 1780 may also integrate an application processor and a baseband processor, wherein the application processor mainly processes the operating system, user interface and application programs, etc.
  • the processor mainly handles wireless communication. It can be understood that the above-mentioned baseband processor may not be integrated into the processor 1780.
  • the processor 1780 may run an operating system, an application program, a user interface display and a touch response, and the image comment processing method in the embodiment of the present application.
  • the processor 1780 is coupled to the display unit 1730 .
  • various aspects of the image comment processing method provided by the present application can also be implemented in the form of a program product, which includes program code, and when the program product runs on a computer device, the program code is used for
  • the computer device is caused to execute the steps in the above-described processing method for a picture comment applied to the terminal device 210 according to various exemplary embodiments of the present application.
  • the computer device may execute the steps shown in FIG. 3 .
  • the program product may employ any combination of one or more readable media.
  • the readable medium may be a readable signal medium or a readable storage medium.
  • the readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or a combination of any of the above. More specific examples (non-exhaustive list) of readable storage media include: electrical connections with one or more wires, portable disks, hard disks, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disk read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
  • the program product of embodiments of the present application may employ a portable compact disc read only memory (CD-ROM) and include program code, and may be executed on a computing device.
  • CD-ROM portable compact disc read only memory
  • the program product of the present application is not limited thereto, and in this document, a readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with a command execution system, apparatus, or device.
  • a readable signal medium may include a propagated data signal in baseband or as part of a carrier wave, carrying readable program code therein. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing.
  • a readable signal medium can also be any readable medium other than a readable storage medium that can transmit, propagate, or transport a program for use by or in connection with a command execution system, apparatus, or device.
  • Program code embodied on a readable medium may be transmitted using any suitable medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
  • the aforementioned program can be stored in a computer-readable storage medium, and when the program is executed, execute Including the steps of the above method embodiment; and the aforementioned storage medium includes: a mobile storage device, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk and other various A medium on which program code can be stored.
  • ROM read-only memory
  • RAM random access memory
  • magnetic disk or an optical disk and other various A medium on which program code can be stored.
  • the above-mentioned integrated units in the embodiments of the present application are implemented in the form of software function modules and sold or used as independent products, they may also be stored in a computer-readable storage medium.
  • the computer software products are stored in a storage medium and include several instructions for A computer device (which may be a personal computer, a server, or a network device, etc.) is caused to execute all or part of the methods described in the various embodiments of the embodiments of this application.
  • the aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic disk or an optical disk and other mediums that can store program codes.
  • the user can intuitively view the details in the commented local area in the target picture, and comment on a specific position in the enlarged partial area of the picture, so that the picture comment is more targeted.
  • the position identification and the identity identification of the commenting party can be further displayed at the position, so as to combine the comment with the original picture more naturally, making the comment more intuitive. It is beneficial to improve the interaction between the two sides of the comment and enhance the comment effect.

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Information Transfer Between Computers (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本申请涉及计算机技术领域,尤其涉及一种图片评论的处理方法、装置、电子设备和存储介质。其中,方法包括:响应于针对被评论方已发布的目标图片的放大操作,显示放大后的目标图片;响应于通过放大后的目标图片中的局部区域触发的预设评论操作,显示包含第一图片显示区域以及评论编辑区域的评论编辑页面,第一图片显示区域中显示局部区域的放大图片,评论编辑区域中显示针对局部区域待发布的评论内容;响应于针对局部区域发布评论内容的评论发布操作,显示包含目标图片的第一图片展示页面,第一图片展示页面中显示有针对局部区域所发布的评论的位置标识,以及发布评论的评论方的身份标识。

Description

一种图片评论的处理方法、装置、电子设备和存储介质
本申请要求于2020年10月27日提交中国专利局、申请号为202011164528.4、名称为“一种图片评论的处理方法、装置、电子设备和存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及计算机技术领域,尤其涉及一种图片评论的处理方法、装置、电子设备和存储介质。
背景技术
随着互联网技术的迅速发展,人们能够通过互联网进行各种各样的互动。用户分享图片和进行评论已经成为一种流行的互动方式,并且大家越来越注重图片的质量和细节。
然而,目前针对图片的文字评论,只能和图片分开进行展示。例如,当人们想对某个图片发布意见时,可以在图片下方的评论区进行评论,因而针对图片的评论只能展示在评论区里。例如,在图片下方的评论区内一条条展示评论内容,如果有用户想了解针对图片的某个位置的评论则必须浏览所有的评论内容,因此这种评论内容的展示方式很不形象直观,使得评论效果不佳。
发明内容
本申请实施例提供一种图片评论的处理方法、装置、电子设备和存储介质,用以提高图片评论的针对性,增强评论效果。
本申请实施例提供的第一种图片评论的处理方法,包括:
响应于针对被评论方已发布的目标图片的放大操作,显示放大后的所述目标图片;
响应于通过放大后的目标图片中的局部区域触发的预设评论操作,显示包含第一图片显示区域以及评论编辑区域的评论编辑页面,所述第一图片显示区域中显示所述局部区域的放大图片,所述评论编辑区域中显示针对所述局部区域待发布的所述评论内容;
响应于针对所述局部区域发布所述评论内容的评论发布操作,显示包含所述目标图片的第一图片展示页面,所述第一图片展示页面中显示有针对所述局部区域所发布的评论的位置标识、以及发布所述评论的评论方的身份标识。
本申请实施例提供的第二种图片评论的处理方法,包括:
接收到针对被评论方已发布的目标图片的放大请求后,获取所述目标图片的图片标识、以及针对所述目标图片的放大比例信息,并将所述放大比例信息与所述图片标识关联保存;
接收到针对放大后的目标图片中的局部区域的评论请求后,获取所述局部区域的显示信息和评论方的身份标识,并将所述显示信息和所述身份标识与所述图片标识进行关联保存;
接收到针对所述局部区域发布待发布的评论内容的评论发布请求后,将所述评论内容与所述身份标识关联保存,并通知请求方,以使所述请求方显示包含所述目标图片的第一图片展示页面,所述第一图片展示页面中显示有针对所述局部区域所发布的评论的位置标识、以及与所述评论关联的所述评论方的身份标识。
本申请实施例提供的第一种图片评论的处理装置,包括:
第一响应单元,用于响应于针对被评论方已发布的目标图片的放大操作,显示放大后的所述目标图片;
第二响应单元,用于响应于通过放大后的目标图片中的局部区域触发的预设评论操作,显示包含第一图片显示区域以及评论编辑区域的评论编辑页面,所述第一图片显示区域中显示所述局部区域的放大图片,所述评论编辑区域中显示针对所述局部区域待发布的所述评论内容;
第三响应单元,用于响应于针对所述局部区域发布所述评论内容的评论发布操作,显示包含所述目标图片的第一图片展示页面,所述第一图片展示页面中显示有针对所述局部区域所发布的评论的位置标识、以及发布所述评论的评论方的身份标识。
本申请实施例提供的第二种图片评论的处理装置,包括:
第一关联单元,用于接收到针对被评论方已发布的目标图片的放大请求后,获取所述目标图片的图片标识、以及针对所述目标图片的放大比例信息,并将所述放大比例信息与所述图片标识关联保存;
第二关联单元,用于接收到针对放大后的目标图片中的局部区域的评论请求后,获取所述局部区域的显示信息和评论方的身份标识,并将所述显示信息和所述身份标识与所述图片标识进行关联保存;
通知单元,用于接收到针对所述局部区域发布待发布的评论内容的评论发布请求后,将所述评论内容与所述身份标识关联保存,并通知请求方,以使所述请求方显示包含所述目标图片的第一图片展示页面,所述第一图片展示页面中显示有针对所述局部区域所发布的评论的位置标识、以及与所述评论关联的所述评论方的身份标识。
本申请实施例提供的一种电子设备,包括处理器和存储器,其中,所述存储器存储有程序代码,当所述程序代码被所述处理器执行时,使得所述处理器执行上述任意一种图片评论的处理方法的步骤。
本申请实施例提供一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。计算机设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机设备执行上述任意一种图片评论的处理方法的步骤。
本申请实施例提供一种计算机可读存储介质,其包括程序代码,当所述程序产品在电子设备上运行时,所述程序代码用于使所述电子设备执行上述任意一种图片评论的处理方法的步骤。
本申请的其它特征和优点将在随后的说明书中阐述,并且,部分地从说明书中变得显而易见,或者通过实施本申请而了解。本申请的目的和其他优点可通过在所写的说明书、权利要求书、以及附图中所特别指出的结构来实现和获得。
附图简要说明
此处所说明的附图用来提供对本申请的进一步理解,构成本申请的一部分,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:
图1A为本申请一实施例中的图片内容标签的示意图;
图1B为本申请另一实施例中的图片内容标签的示意图;
图2为本申请实施例中的一种应用场景的示意图;
图3为本申请一实施例中的图片评论的处理方法的流程示意图;
图4为本申请实施例中的一种目标图片的示意图;
图5A为本申请实施例中的一种评论编辑页面的示意图;
图5B为本申请一实施例中的第一图片展示页面的示意图;
图5C为本申请另一实施例中的第一图片展示页面的示意图;
图6A为本申请一实施例中的第二图片展示页面的示意图;
图6B为本申请实施例中的一种评论详情页面的示意图;
图6C为本申请另一实施例中的第二图片展示页面的示意图;
图7为本申请另一实施例中的第二图片展示页面的示意图;
图8A为本申请一实施例中的聊天页面的示意图;
图8B为本申请另一实施例中的聊天页面的示意图;
图8C为本申请另一实施例中的聊天页面的示意图;
图9为本申请一实施例中的个人详情页面的示意图;
图10为本申请另一实施例中的个人详情页面的示意图;
图11A为本申请实施例中的一种有关局部区域介绍的示意图;
图11B为本申请实施例中的对图片进行放大初始化的过程的流程示意图;
图12为本申请另一实施例中的图片评论的处理方法的流程示意图;
图13为本申请实施例中的交互实现时序流程示意图;
图14为本申请一实施例中的图片评论的处理装置的组成结构示意图;
图15为本申请另一实施例中的图片评论的处理装置的组成结构示意图;
图16为应用本申请一实施例的电子设备的一个硬件组成结构示意图;
图17为应用本申请另一实施例的电子设备的一个硬件组成结构示意图。
具体实施方式
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请技术方案的一部分实施例,而不是全部的实施例。基于本申请文件中记载的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请技术方案保护的范围。
下面对本申请实施例中涉及的部分概念进行介绍。
应用,即应用程序:是可以完成某项或多项业务的计算机程序,一般具有可视的显示界面,能与用户进行交互,比如电子地图和日历等都可以称为应用。其中,有些应用需要用户安装到所使用的终端设备上才可以使用,有些则并不需要进行安装,例如,某些社交应用中的各个小程序、网页等。小程序不需要下载安装即可使用,用户扫一扫或者搜一下即可打开应用。
应用操作界面:是应用系统和用户之间进行交互和信息交换的媒介,它实现信息的内部形式与人类可以接受形式之间的转换,目的是使得用户能够方便有效率地去操作应用以达成双向之交互,完成所希望借助应用完成之工作。在本申请实施例中,应用操作界面包含了人机交互与图形用户接口,具体的应用操作界面包括图片展示页面、评论编辑页面、评论详情页面、个人详情页面、聊天页面等。其中,不同的应用操作界面用于向用户展示不同的内容,实现用户与应用之间不同的信息交互。
图片展示页面:一种面向用户的,用于向用户展示图片的页面。在本申请实施例中,图片展示页面中可以展示至少一张目标图片,此外还可在特定位置处展示各个评论方所发 布的评论的位置标识、以及发布评论的评论方的身份标识。
评论编辑页面:一种面向用户的,用于编辑待发布的评论内容的页面。在本申请实施例中,评论编辑页面除了包括用于用户编辑评论内容的评论编辑区域之外,还包括用于显示待发布的评论内容所对应的放大图片的图片显示区域。其中,放大图片是对目标图片中的某一局部区域进行放大得到的。
评论详情页面:一种面向用户的,用于展示评论的页面。在本申请实施例中,评论详情页面也包括用于显示放大图片的图片显示区域,此外还包括用于显示评论详情的评论展示区域。这样,用户在查看评论详情页面时,就可以直观地查看目标图片中被评论的局部区域内的细节、以及评论的内容。
位置标识:指在图片中有发布评论的位置处进行的标记。在本申请实施例中,用户可以在图片中的特定位置进行评论,因而可在用户发布评论的这些特定位置处显示位置标识来提示被评论方。并且,多条评论通知的位置标识可以聚合展示在同一张图里,用户可以看到自己的图片被多人留言,并且根据位置标识可以直观感受到哪个图片放大的区域最受欢迎等。
被评论方、评论方和身份标识:评论方和被评论方是相对的概念。其中,被评论方是指发布图片的一方,而评论方是指对被评论方发布的图片进行评论的一方。在本申请实施例中,被评论方可在目标应用中发布目标图片,而评论方则可对目标图片进行评论。评论方的身份标识是与位置标识相关的,可以跟随位置标识一同展示给用户。比如某一评论方在目标图片中的某一位置发布一条评论,即可在该位置处标记位置标识、以及该评论方的身份标识,并提示被评论方某评论方在该位置处发布了一条评论。
下面对本申请实施例的设计思想进行简要介绍:
目前,随着网络通信技术的不断发展,为了增强用户与网站或应用之间的互动,一些网站或者应用会提供评论功能,使得用户在通过智能终端使用这些网站或者应用时,能够针对感兴趣内容发布评论,或者,查看其他用户对感兴趣内容的评论。
例如,社交网站或即时通信工具的用户往往会在自己的社交网站或即时通信工具中发布有关自己生活点滴的图片,而用户的好友们可以对用户在社交网站或即时通信工具中发布的图片进行评论,用户也可以对好友们在他们各自的社交网站或即时通信工具中发布的图片进行评论,从而通过发布图片和进行评论,使用户与好友们进行互动。在社交网站或即时通信工具上发布图片等内容的同时,社交网站或即时通信工具还会在图片的发布页上建立一个针对这些内容的评论区域,用户可以通过在该评论区域内留言来发布对图片的评论,而这些评论将被保留在网页上供其他用户查看。对于用户来说,还可以对所查看评论执行回复等操作。但是,在相关技术中,用户只能针对图片整体进行讨论,没办法明确地指明针对的是图片的哪个细节。
另外,在一些美化图片软件中,主人态在发布图片之前,也可在图片的评论位置上打上自己的内容标签,如图1A和图1B所示。主人态是指主动发出动作的一方,比如发布图片、发出评论的用户。图1A中所示的页面为被评论方在发布图片之前的编辑状态,被评论方可在图片中添加内容标签,例如“周末出去玩|1次”,另外还可进一步设置配乐、贴纸等。图1B所示的页面是被评论方发布图片之后的展示页面。在该页面中显示有两条内容标签,即主人态编辑发布的内容,但是在发布图片之后就不能进行放大或再添加内容,也不能给别人的图片留言。其他用户只能看到图片的某个位置上有内容,无法放大,也无法进行互动。
有鉴于此,本申请实施例提出了一种图片评论的处理方法、装置、电子设备和存储介 质。在本申请实施例中,用户在对图片进行留言评论时,可以对图片局部区域内的细节进行放大,并对图片中的特定位置进行评论,且在评论之后,在评论位置留下标记,从而使图片评论更有针对性和趣味性,实现了评论和图片之间更自然的结合,使得用户可以很方便地查看评论内容以及被评论的图片细节,使得评论更具有针对性,进而有利于提高评论双方的交互性,增强评论效果。
以下结合说明书附图对本申请的实施例进行说明,应当理解,此处所描述的实施例仅用于说明和解释本申请,并不用于限定本申请,并且在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。
如图2所示,其为本申请实施例的应用场景示意图。该应用场景图中包括两个终端设备210和一个服务器230,可通过终端设备210登录应用操作界面220。终端设备210与服务器230之间可以通过通信网络进行通信。
在本申请实施例中,应用操作界面220可以是图片展示页面、评论编辑页面、评论详情页面、聊天页面或个人详情页面。例如用户A(评论方)通过终端设备210登录目标应用后,对用户B(被评论方)所发布的目标图片进行评论,此时用户A所使用的终端设备210上的目标应用响应于用户A的评论发布操作,向服务器230发送评论发布请求,该评论发布请求可以携带有评论内容及其对应的评论方的信息(包括评论方的身份标识、评论位置信息等),以使服务器230对该评论内容进行审核,若该评论内容的审核通过,则可以依据该评论发布请求返回通知,表示该评论内容发布成功。或者,服务器230也可以不审核评论内容,只将这些信息与目标图片的图片标识关联保存。接着,在用户B想要查看评论时,用户B所使用的终端设备210上的目标应用向服务器230请求评论,服务器230可以向该目标应用发送包括目标图片的图片标识对应的各条评论内容以及评论位置信息、评论方的身份标识等信息,而上述目标应用可以在各个评论位置处显示评论,这样可以使用户B和其他用户均可以查看用户A发布的评论。
在一种实施方式中,通信网络是有线网络或无线网络。终端设备210以及服务器230可以通过有线或无线通信方式进行直接或间接地连接,本申请在此不做限制。
在本申请实施例中,终端设备210为用户使用的电子设备,该电子设备可以是个人计算机、手机、平板电脑、笔记本、电子书阅读器、智能家居等具有一定计算能力并且运行有即时通讯类软件及网站或者社交类软件及网站的计算机设备。各终端设备210通过无线网络与服务器230通信,服务器230可以是独立的物理服务器,也可以是多个物理服务器构成的服务器集群或者分布式系统,还可以是提供云服务、云数据库、云计算、云函数、云存储、网络服务、云通信、中间件服务、域名服务、安全服务、CDN(Content Delivery Network,内容分发网络)、以及大数据和人工智能平台等基础云计算服务的云服务器。
其中,每个终端设备中可以安装有目标应用,该目标应用可以是图片分享关联的应用,例如美图应用、图片分享应用、图片评论应用等。本申请实施例涉及的应用可以是软件,也可以是网页、小程序等客户端,服务器则是与软件或是网页、小程序等相对应的应用服务器,不限制客户端的具体类型。
参阅图3所示,其为本申请实施例提供的一种图片评论的处理方法的实施流程图,应用于终端设备210,该方法的具体实施流程包括如下步骤S31-S33:
S31:响应于针对被评论方已发布的目标图片的放大操作,显示放大后的目标图片;
S32:响应于通过放大后的目标图片中的局部区域触发的预设评论操作,显示包含第一图片显示区域以及评论编辑区域的评论编辑页面,第一图片显示区域中显示局部区域的放大图片,评论编辑区域中显示针对局部区域待发布的评论内容;
例如,某一用户小明通过目标应用发布了多张图片供他人浏览时,其他用户可以选中某一图片,此时终端设备响应于查看被评论方已发布的目标图片的触发操作,显示图4所示的页面。
参阅图4所示,其为本申请实施例中的一种目标图片的示意图。例如,图4中所示的提示信息“点击任意位置‘Hoo’一下,可以引起‘Ta’的注意”表示用户可以点击该图片中的任意位置触发预设评论操作,进而进行评论。另外,用户也可以轻触返回,不对目标图片进行评论。
例如,用户小白在目标图片中发布评论时,可以点击任意位置触发预设评论操作,也可以先对目标图片进行放大,查看目标图片中的细节,进而点击放大后的目标图片中的局部区域中的任意位置触发预设评论操作。当然,本申请实施例中的预设评论操作除了上述所列举的点击触发之外,也可以是手势触发或者是双击触发、长按触发等,在此不做具体限定。本申请实施例中都是以点击为例进行举例说明的。其中,评论内容可以是文字内容,也可以是图片、表情、链接等,在此也不做具体限定。
在本申请实施例中,用户可以在别人发布的图片中的特定位置进行评论,使评论和图片更自然的结合。在实施例中,用户在发布图片的特定位置进行评论时,也可以将图片进行放大和拖动,调整具体的细节位置,在特定位置上进行评论。其中,在图片的特定位置上进行评论是指就图片中的某个坐标位置进行评论,该评论的位置和内容都会被记录,并在展示给其他用户时,保留评论内容和图片中的相对位置。具体实现方式如下:
终端设备响应于通过目标图片的局部区域触发的针对目标评论位置的预设评论操作,显示包含第一图片显示区域以及评论编辑区域的评论编辑页面,第一图片显示区域中显示局部区域中的放大图片;用户查看该局部区域内的细节后,对某一细节进行详细的评论时,终端设备响应于用户在评论编辑区域中编辑的评论内容,显示针对目标评论位置待发布的评论内容。
参阅图5A所示,其为本申请实施例中的一种评论编辑页面的示意图。在图5A上方所示的矩形框S51中的区域即为第一图片显示区域,该区域中所显示的图片即为用户所选中的目标图片的局部区域的放大图片,是对用户所选中的目标图片中的局部进行放大得到的。虚线框S52中的区域为评论编辑区域,用户可在该区域内输入待发布的评论内容。如图5A所示,在用户输入待发布的评论内容时可以设置字数的上限,例如对评论内容的字数上限要求是100字。
在实施例中,用户查看他人发布的目标图片时,可以进行双指放大和拖动,点击特定的位置,调出评论输入框,进而在评论输入框中编辑待发布的评论内容。如图5A所示,用户放大了目标图片的腿部,并在鞋子上进行点击,生成标记,并调出评论输入框,用户可以输入文字内容后进行发布。如在图5A所示的“填写细节评论发送“Hoo”一下,对方会收到哦”处可以编辑待发布的评论内容。
在本申请实施例中,终端响应于针对目标图片中的目标评论位置触发的预设评论操作,向服务器(指目标应用服务器)发送针对被评论方已发布的目标图片中目标评论位置的评论请求,服务器在接收到评论请求后,获取目标图片的图片标识、以及目标评论位置的评论位置信息和评论方的身份标识,并将身份标识、评论位置信息以及图片标识进行关联保存。在上述实施例中,目标评论位置即为用户所点击的鞋子上的位置,评论方即为小白。
在实施例中,在用户对图片进行放大和拖动等操作的情况下,服务器还需要进一步获取局部区域的放大比例信息、局部区域内中心位置的中心位置信息、局部区域的显示尺寸信息等,将放大比例信息、中心位置信息以及显示尺寸信息与评论位置信息关联保存。
例如图5A所示,用户小白放大了目标图片的腿部,因而还需要进一步确定该用户放大的腿部区域的显示尺寸信息,具体包括该区域的长和宽、该区域中心位置的坐标、以及与原始的目标图片相比所放大的比例。
接下来,用户在编辑好待发布的评论内容之后,即可通过发布按钮(图5A未示出)或者回车键等快捷方式触发评论发布操作。此时,终端设备执行如下步骤S33。
S33:响应于针对局部区域发布评论内容的评论发布操作,显示包含目标图片的第一图片展示页面,第一图片展示页面中显示有针对局部区域所发布的评论的位置标识、以及发布评论的评论方的身份标识。
例如,用户小白触发评论发布操作后,即可显示图5B所示的页面。图5B为本申请实施例中的一种第一图片展示页面的示意图。该页面中的目标评论位置处显示有用户小白针对该图片所发布的评论的位置标识,如虚线框S53中左侧所示的爱心桃图案,以及用户小白的头像(身份标识),如虚线框S53右侧所示。本申请实施例中的目标评论位置是指某一特定位置。
在本申请实施例中,终端设备响应于在目标评论位置发布评论内容的评论发布操作,向服务器发送针对局部区域中的目标评论位置发布待发布的评论内容的评论发布请求,服务器该评论发布请求后,将评论内容与身份标识关联保存,并通知评论方小白所登录的目标应用已成功发布该条评论。进而,评论方小白所登录的目标应用可以显示如图5B所示的页面。
在实施例中,用户在发布图片评论时,可以更换位置标识,本申请图示中所列举的是默认的爱心桃图案。当然用户也可自己选取不同的图案标记,比如闪电、鲜花、钻石等图案。具体过程如下:
终端设备响应于在目标评论位置发布评论内容的评论发布操作,显示多种类型的位置标识;响应于选中目标类型的位置标识的触发操作,显示包含目标图片的第一图片展示页面,第一图片展示页面中的目标评论位置处显示有目标类型的位置标识。
在实施例中,用户也可以在第一图片展示页面中直接更改位置标识。例如用户通过长按目标评论位置处的位置标识,显示如图5C所示的页面,在当前所显示的位置标识的上方的虚线框中显示有各类预先配置好的位置标识,除了爱心桃图案之外,还包括三角形,五角星等,用户可以在除爱心桃图案之外的这些类型中选择一类作为目标类型,也可以自定义位置标识,例如由用户自己手绘,或从相册中选择等。在用户选中目标类型的位置标识之后,即可将第一图片展示页面中的位置标识切换为目标类型的位置标识。
在实施例中,服务器在接收到评论发布请求后,还会向被评论方小明所登录的目标应用发送通知消息,通知小明有人发布了新的评论。
在本申请实施例中,被评论方在查看目标图片时,终端设备响应于查看目标图片的评论的触发操作,显示包含目标图片的第二图片展示页面,第二图片展示页面中的各个评论位置显示有针对目标图片所发布的评论的位置标识、以及与位置标识关联的评论方的身份标识。
如图6A所示,其为本申请实施例中的一种第二图片展示页面的示意图。在该示意图中的两个评论位置处显示有位置标识,表示当前已有针对该目标图片的两条评论了。当前在该页面中显示的两个评论:一个位于包包处,一个位于鞋子处。另外在各个评论位置处还显示有爱心桃图案的位置标识、以及关联的评论方的头像。
在实施例中,在被评论方收到图片特定位置评论时,可以查看评论在原图片的放大位置,展示发布评论时放大的图片和位置,并可以查看评论的全部文字内容。具体实现过程 为:终端设备响应于针对目标评论位置的评论的查看操作,显示包含第二图片显示区域和第一评论展示区域的评论详情页面,第二图片显示区域显示有与目标评论位置关联的局部区域的放大图片,第一评论展示区域显示有目标评论位置关联的评论内容。
其中,用户可点击任一评论位置或该位置的位置标识或身份标识触发查看操作,查看相应的评论。例如当用户点击图6A所示的鞋子处的位置标识时,即可触发针对目标评论位置的评论的查看操作,显示包含第二图片显示区域和第一评论展示区域的评论详情页面,参阅图6B所示,其为本申请实施例中的一种评论详情页面的示意图,在第二图片显示区域S61中显示有与目标评论位置关联的局部区域的放大图片,即目标图片中的腿部部分的放大,第一评论展示区域S62中显示有目标评论位置关联的评论内容。其中目标评论位置是鞋子位置。另外,在S61中的鞋子上还可标记有位置标识,如图6B中的爱心桃图案,以及评论方的头像。
在实施例中,同一评论位置也可以显示有多个评论方所发布的评论的位置标识以及与各个位置标识关联的评论方的身份标识;此时,用户想要查看目标评论位置处的某一评论时,点击相应的评论方身份标识即可。
如图6C所示,其为本申请实施例中的又一种第二图片展示页面的示意图。在图6C中,鞋子处有两个评论方发布了评论,此时用户可以选择某一评论方作为目标评论方,点击该评论方的头像,此时终端设备响应于通过目标评论位置处目标评论方的身份标识触发的查看操作,显示包含第二图片显示区域和第一评论展示区域的评论详情页面,第二图片显示区域显示有与目标评论位置关联的局部区域的放大图片,且在目标评论位置显示有目标评论方的身份标识,第一评论展示区域显示有目标评论方在目标评论位置发布的评论内容,如图6B所示。
另外,当有一个评论方发布了多条评论时,还可以进一步在评论方身份标识的后面显示评论的数量。另外,还可以在图6B所示的评论详情页面中的评论展示区域内展示各条评论的内容以及评论时间等信息,在此不做具体限定。
在上述实施方式中,除了主人态能够在自己的图片特定位置上编辑内容外,其他用户在编辑内容时,也可以指定位置,发布针对特定位置的评论,还可以放大图片,来调整更具体的位置。在进行评论通知时也可以放大图片,图片对外展示时,客人态也可以将图片上的评论部分放大进行查看。其中主人态是指主动发出动作的一方,比如发布图片、发出评论的用户。客人态是指接受到动作或通知的一方,比如收到评论消息、收到图片消息的用户。
在实施例中,第一评论展示区域还显示有评论回复控件。当用户点击图7左侧所示的爱心时,即可使被评论方与评论方之间互相关注,双方匹配成功,显示如图7右侧所示的页面,该页面中的S70即为评论回复控件。
当用户点击评论回复控件时,终端设备响应于被评论方针对评论回复控件的触发操作,显示包括第二评论展示区域以及评论回复区域的第一聊天页面,第二评论展示区域显示有评论方针对目标评论位置所发布的评论内容。如图8A所示,在右侧所示的页面中的第二评论展示区域S81中显示有该评论方针对目标评论位置所发布的评论内容,另外用户还可在评论回复区域S82中输入针对该评论内容的答复信息。
此后,终端响应于被评论方通过评论回复区域编辑的针对评论方在目标评论位置所发布的评论内容的答复信息,在第二评论展示区域展示答复信息,如图8B所示。另外,在聊天页面中还显示有小话题“先通过猜一下对方职业加深了解吧!”,通过小话题来引导评论方与被评论方聊天,提高双方的交互性。
在实施例中,第二评论展示区域显示的评论方针对目标评论位置所发布的评论内容可以是评论消息卡片的形式,评论消息卡片中显示有目标图片、以及评论方针对目标评论位置所发布的评论内容。
如图8C所示,该评论消息卡片可以向用户直接展示出目标图片、以及评论方对该目标图片所发布的评论,更加直观地展示给被评论方,引导被评论方对这条评论进行答复。
在实施例中,第一评论展示区域还显示有评论方的身份标识,因而被评论方还可通过点击评论方的身份标识来查看评论方的个人详情页面。例如,用户点击图8A左侧所示的评论详情页面的评论展示区域中评论方“小白”的头像时,终端设备即可响应于针对该评论方的身份标识的触发操作,向服务器发送针对评论方的身份标识的触发请求,服务器向被评论方登录的目标应用反馈评论方的个人详情信息,进而被评论方登录的目标应用显示该评论方的个人详情页面,个人详情页面中显示有评论方的个人详情信息、以及聊天控件。参阅图9所示,其为本申请实施例中的一种个人详情页面的示意图,该图中显示有评论方“小白”的个人主页,即个人详情页面,该页面中显示有用户小白最新分享的图片、风格、年龄、居住城市、职业等信息。
被评论方通过点击图9所示的页面最下方的爱心,可以与评论方小白相互匹配,跳转至图10所示的页面,该页面中标识了被评论方与评论方匹配成功,并通过点击图10中的S100处的控件进入双方之间的聊天页面。即终端设备响应于针对聊天控件的触发操作,显示评论方与被评论方之间的第二聊天页面。
当然,本申请实施例中所列举的由被评论方触发所显示的页面相关的实施方式同样适用于评论方。即评论方与评论方之间也可相互查看评论,相关匹配,聊天等,保证评论方之间的交互,具体实现方式可以参见上述实施例,在此不做具体限定,本申请实施例中主要是以被评论方为例进行举例说明的。
在上述实施方式中,可以实现评论方与被评论方的互动。
参阅图11A所示,其为本申请实施例中的一种有关局部区域介绍的示意图。在本申请实施例中,终端设备首先需要上传用户放大后的目标图片的相关信息,具体包括当前放大比例r(即上文的放大比例信息)、局部区域中心坐标x1和y1(即上文的中心位置信息)、评论位置坐标x2和y2(即上文的评论位置信息)、原始图片大小宽度w1和高度h1(即原始尺寸信息)等。服务器接收到这些信息后,在接收评论时对图片进行放大初始化,参阅图11B所示,其为本申请实施例中的对图片进行放大初始化的过程的流程示意图,具体实现过程包括如下步骤S111-S113(图中):
S111:根据目标图片的原始尺寸信息以及放大比例信息,获得放大后的目标图片的放大尺寸信息;
结合图11A,该步骤是指根据原始的目标图片大小w1和h1、放大比例r,计算出放大后的目标图片的宽和高:w2和h2。
S112:根据放大尺寸信息、中心位置信息、以及局部区域的显示尺寸信息,获得位于放大后的目标图片上的参考点的参考位置信息;
结合图11A,根据放大后的目标图片的宽w2和高h2、局部区域中心坐标x1和y1、当前显示区域(指局部区域)大小w3和h3,计算出放大后的目标图片的左上角坐标x3和y3。其中,放大后的目标图片的左上角的点为参考点。
S113:将参考位置信息以及放大尺寸信息反馈给请求方,以使请求方根据参考位置信息与放大尺寸信息,在局部区域内绘制放大后的目标图片,以及根据评论位置信息在局部区域内绘制目标评论位置的位置标识。
在本申请实施例中,请求方可以是被评论方所使用的目标应用,也可以是其他想要查看相关评论的评论方所使用的目标应用。请求方可以根据放大后的目标图片的左上角坐标x3和y3、宽w2和高h2,绘制放大图片在显示区域内,根据评论位置坐标x2和y2,绘制评论方头像在显示区域内。
此外,在本申请实施例中,服务器或是终端设备还可以进一步判断是否存在特殊情况,在存在特殊情况时进一步进行特殊情况处理。如下列举了两种可能出现的特殊情况:
特殊情况1:参考位置信息不符合预设位置条件。
在本申请实施例中,当参考位置信息不符合预设位置条件时,通过调整参考位置信息,使调整后的参考位置信息符合预设位置条件;以及,同时调整评论位置信息和放大尺寸信息。
例如,当计算放大后的目标图片的左上角坐标x3和y3大于0时,视为异常值,即不符合预设位置条件。处理方案为:可通过平移等方式调整x3和y3小于或等于0,并同时调整图片放大后的宽w2和高h2、评论位置坐标x2和y2。
特殊情况2:根据中心位置信息确定目标评论位置不能出现在局部区域内。
其中,当根据中心位置信息确定目标评论位置不能出现在局部区域内时,调整放大后的目标图片上的参考点的参考位置信息,以使调整后的目标评论位置能够出现在局部区域内。
例如,当评论位置坐标x2和y2不能出现在显示区域时,处理方案为:可通过平移等方式调整放大后的目标图片的左上角坐标x3和y3,以保证x2和y2在显示区域内。
在上述实施方式中,基于上述位置和放大比例记录信息等,可以有效地记录内容的位置信息和放大比例,具有灵活和简单的特点。在实际项目中,用户可以快速对文字内容进行定位和图片还原。让用户可以更精确地自定义留言位置,并原样展示给收到的用户。
参阅图12所示,为本申请实施例提供的另一种图片评论的处理方法的实施流程图,应用于服务器230,该方法的具体实施流程包括如下步骤S121-S123:
S121:接收到针对被评论方已发布的目标图片的放大请求后,获取目标图片的图片标识、以及针对目标图片的放大比例信息,并将放大比例信息与图片标识关联保存;
S122:接收到针对放大后的目标图片中的局部区域的评论请求后,获取局部区域的显示信息和评论方的身份标识,并将显示信息和身份标识与图片标识进行关联保存;
其中,局部区域内中心位置的中心位置信息、局部区域的显示尺寸信息、局部区域中目标评论位置的评论位置信息等都属于局部区域的显示信息,除了获取局部区域内中心位置的中心位置信息外,还可获取四个顶点的位置信息,在此不做具体限定。
S123:接收到针对局部区域发布待发布的评论内容的评论发布请求后,将评论内容与身份标识关联保存,并通知请求方,以使请求方显示包含目标图片的第一图片展示页面,第一图片展示页面中显示有针对局部区域所发布的评论的位置标识、以及与评论关联的评论方的身份标识。
在实施例中,在将评论内容与身份标识关联保存之后,该方法还包括:
向被评论方登录的目标应用发送通知消息;
接收到查看目标图片的评论的触发请求后,查询与触发请求中的图片标识关联的各个评论位置的评论位置信息、以及与各个评论位置关联的评论方的身份标识,并反馈给被评论方登录的目标应用,以使被评论方登录的目标应用显示包含目标图片的第二图片展示页面,第二图片展示页面中的各个评论位置显示有针对目标图片所发布的评论的位置标识、以及与位置标识关联的评论方的身份标识;
接收到针对目标评论位置的评论的查看请求后,将与评论位置信息关联的评论内容和身份标识返回给被评论方登录的目标应用,以使被评论方登录的目标应用显示包含第二图片显示区域和第一评论展示区域的评论详情页面,第二图片显示区域显示有与目标评论位置关联的局部区域的放大图片,第一评论展示区域显示有目标评论位置关联的评论内容。
在实施例中,第一评论展示区域还显示有评论回复控件;该方法还包括:
接收到被评论方针对评论回复控件的触发请求后,将评论方针对目标评论位置所发布的评论内容反馈给被评论方登录的目标应用,以使被评论方登录的目标应用显示包括第二评论展示区域以及评论回复区域的第一聊天页面,第二评论展示区域显示有评论方针对目标评论位置所发布的评论内容;
接收到被评论方通过评论回复区域触发的答复请求后,获取被评论方编辑的针对评论方在目标评论位置所发布的评论内容的答复信息,并将答复信息反馈给评论方登录的目标应用,以使评论方登录的目标应用展示答复信息。
在实施例中,第一评论展示区域还显示有评论方的身份标识;该方法还包括:
接收到针对评论方的身份标识的触发请求后,向被评论方登录的目标应用反馈评论方的个人详情信息,以使被评论方登录的目标应用显示评论方的个人详情页面,个人详情页面中显示有评论方的个人详情信息。
在实施例中,局部区域的显示信息包括局部区域内中心位置的中心位置信息、局部区域中评论位置的评论位置信息和局部区域的显示尺寸信息;通知请求方,以使请求方显示包含目标图片的第一图片展示页面,第一图片展示页面中的目标评论位置显示有针对目标图片所发布的评论的位置标识、以及与评论关联的评论方的身份标识,具体包括:
根据目标图片的原始尺寸信息以及放大比例信息,获得放大后的目标图片的放大尺寸信息;
根据放大尺寸信息、中心位置信息、以及局部区域的显示尺寸信息,获得位于放大图片上的参考点的参考位置信息;
将参考位置信息以及放大尺寸信息反馈给请求方,以使请求方根据参考位置信息与放大尺寸信息,在局部区域内绘制放大图片,以及根据评论位置信息在局部区域内绘制目标评论位置的位置标识。
在实施例中,该方法还包括:
当参考位置信息不符合预设位置条件时,通过调整参考位置信息,使调整后的参考位置信息符合预设位置条件;以及,同时调整评论位置信息和放大尺寸信息。
在实施例中,该方法还包括:
当根据中心位置信息确定目标评论位置不能出现在局部区域内时,调整放大后的目标图片上的参考点的参考位置信息,以使调整后的目标评论位置能够出现在局部区域内。
需要说明的是,上述所列举的任意一种应用于服务器侧的图片评论的处理方法的具体实施方式可参见终端设备侧的说明,重复之处不再赘述。
由上述实施方式可知,在本申请实施例中,用户可以在别人发布的图片里,选择特定位置进行评论,且在发布图片特定位置评论时,可以将图片进行放大和拖动,调整具体的细节位置。当被评论方收到图片特定位置评论时,可以查看评论在原图片的放大位置、以及相关的评论内容,有利于提高图片评论的针对性,增强评论效果。
下面结合图13对终端设备与服务器之间的交互进行详细介绍,其中终端设备上有目标应用,服务器则是指目标应用服务器。
参阅图13所示,其为一种图片评论的处理方法的交互时序图。该方法的具体实施流 程包括如下步骤S1301-S1314:
步骤S1301:目标应用响应于查看被评论方已发布的目标图片的触发操作,显示目标图片;
步骤S1302:目标应用响应于通过目标图片的局部区域触发的针对目标评论位置的预设评论操作,显示包含第一图片显示区域以及评论编辑区域的评论编辑页面,局部区域是对目标图片中的局部区域进行放大得到的,第一图片显示区域中显示局部区域中的图片;
步骤S1303:目标应用向服务器发送针对被评论方已发布的目标图片中目标评论位置的评论请求;
步骤S1304:服务器接收到评论请求后,获取评论请求中目标图片的图片标识、以及目标评论位置的评论位置信息和评论方的身份标识,并将身份标识、评论位置信息以及图片标识进行关联保存;
步骤S1305:目标应用响应于在评论编辑区域中编辑的评论内容,显示针对目标评论位置待发布的评论内容;
步骤S1306:目标应用响应于在目标评论位置发布评论内容的评论发布操作,向服务器发送针对目标评论位置发布待发布的评论内容的评论发布请求;
步骤S1307:服务器接收到评论发布请求后,将评论内容与身份标识关联保存,并通知目标应用;
步骤S1308:目标应用显示包含目标图片的第一图片展示页面,第一图片展示页面中的目标评论位置处显示有针对目标图片所发布的评论的位置标识、以及发布评论的评论方的身份标识;
步骤S1309:目标应用响应于查看目标图片的评论的触发操作,向服务器发送查看目标图片的评论的触发请求;
步骤S1310:服务器接收到触发请求后,查询与触发请求中的图片标识关联的各个评论位置的评论位置信息、以及与各个评论位置关联的评论方的身份标识,并反馈给被评论方登录的目标应用;
步骤S1311:目标应用显示包含目标图片的第二图片展示页面,第二图片展示页面中的各个评论位置显示有针对目标图片所发布的评论的位置标识、以及与位置标识关联的评论方的身份标识;
步骤S1312:目标应用响应于针对目标评论位置的评论的查看操作,向服务器发送针对目标评论位置的评论的查看请求;
步骤S1313:服务器接收到针对目标评论位置的评论的查看请求后,将与评论位置信息关联的评论内容和身份标识返回给被评论方登录的目标应用;
步骤S1314:目标应用显示包含第二图片显示区域和第一评论展示区域的评论详情页面,第二图片显示区域显示有与目标评论位置关联的局部区域的放大图片,第一评论展示区域显示有目标评论位置关联的评论内容。
需要说明的是,图13是对用户在特定位置进行评论以及查看特定位置的评论的简单介绍,具体实现方式可参见上述实施例,在此不做具体限定。
基于相同的发明构思,本申请实施例还提供一种图片评论的处理装置。如图14所示,其为本申请实施例中的一种图片评论的处理装置1400的结构示意图,可以包括如下几个单元:
第一响应单元1401,用于响应于针对被评论方已发布的目标图片的放大操作,显示放大后的目标图片;
第二响应单元1402,用于响应于通过放大后的目标图片中的局部区域触发的预设评论操作,显示包含第一图片显示区域以及评论编辑区域的评论编辑页面,第一图片显示区域中显示局部区域的放大图片,评论编辑区域中显示针对局部区域待发布的评论内容;
第三响应单元1403,用于响应于针对局部区域发布评论内容的评论发布操作,显示包含目标图片的第一图片展示页面,第一图片展示页面中显示有针对局部区域所发布的评论的位置标识、以及发布评论的评论方的身份标识
在实施例中,装置还包括:
第四响应单元1404,用于在第三响应单元1403响应于针对局部区域发布评论内容的评论发布操作之后,响应于查看目标图片的评论的触发操作,显示包含目标图片的第二图片展示页面,第二图片展示页面中的各个评论位置显示有针对目标图片所发布的评论的位置标识、以及与位置标识关联的评论方的身份标识,其中评论位置为评论方在局部区域中发布评论的位置;
响应于针对目标评论位置的评论的查看操作,显示包含第二图片显示区域和第一评论展示区域的评论详情页面,第二图片显示区域显示有与目标评论位置关联的局部区域的放大图片,第一评论展示区域显示有目标评论位置关联的评论内容。
在实施例中,同一评论位置显示有多个评论方所发布的评论的位置标识以及与各个位置标识关联的评论方的身份标识;第四响应单元1404具体用于:
响应于通过目标评论位置处目标评论方的身份标识触发的查看操作,显示包含第二图片显示区域和第一评论展示区域的评论详情页面,第二图片显示区域显示有与目标评论位置关联的局部区域的放大图片,且在目标评论位置显示有目标评论方的身份标识,第一评论展示区域显示有目标评论方在目标评论位置发布的评论内容。
在实施例中,第一评论展示区域还显示有评论回复控件;第四响应单元1404还用于:
响应于被评论方针对评论回复控件的触发操作,显示包括第二评论展示区域以及评论回复区域的第一聊天页面,第二评论展示区域显示有评论方针对目标评论位置所发布的评论内容;
响应于被评论方通过评论回复区域编辑的针对评论方在目标评论位置所发布的评论内容的答复信息,在第二评论展示区域展示答复信息。
在实施例中,第四响应单元1404具体用于:
在第二评论展示区域中显示有针对评论方的评论消息卡片,评论消息卡片中显示有目标图片、以及评论方针对目标评论位置所发布的评论内容。
在实施例中,第一评论展示区域还显示有评论方的身份标识;第四响应单元1404还用于:
响应于针对评论方的身份标识的触发操作,显示评论方的个人详情页面,个人详情页面中显示有评论方的个人详情信息、以及聊天控件;
响应于针对聊天控件的触发操作,显示评论方与被评论方之间的第二聊天页面。
在实施例中,第三响应单元1403具体用于:
响应于在目标评论位置发布评论内容的评论发布操作,显示多种类型的位置标识;
响应于选中目标类型的位置标识的触发操作,显示包含目标图片的第一图片展示页面,第一图片展示页面中的目标评论位置处显示有目标类型的位置标识。
基于相同的发明构思,本申请实施例还提供一种图片评论的处理装置。如图15所示,其为本申请实施例中的一种图片评论的处理装置1500的结构示意图,可以包括:
第一关联单元1501,用于接收到针对被评论方已发布的目标图片的放大请求后,获取 目标图片的图片标识、以及针对目标图片的放大比例信息,并将放大比例信息与图片标识关联保存;
第二关联单元1502,用于接收到针对放大后的目标图片中的局部区域的评论请求后,获取局部区域的显示信息和评论方的身份标识,并将显示信息和身份标识与图片标识进行关联保存;
通知单元1503,用于接收到针对局部区域发布待发布的评论内容的评论发布请求后,将评论内容与身份标识关联保存,并通知请求方,以使请求方显示包含目标图片的第一图片展示页面,第一图片展示页面中显示有针对局部区域所发布的评论的位置标识、以及与评论关联的评论方的身份标识。
在实施例中,装置还包括:
第一反馈单元1504,用于在通知单元1503将评论内容与身份标识关联保存之后,向被评论方登录的目标应用发送通知消息;
接收到查看目标图片的评论的触发请求后,查询与触发请求中的图片标识关联的各个评论位置的评论位置信息、以及与各个评论位置关联的评论方的身份标识,并反馈给被评论方登录的目标应用,以使被评论方登录的目标应用显示包含目标图片的第二图片展示页面,第二图片展示页面中的各个评论位置显示有针对目标图片所发布的评论的位置标识、以及与位置标识关联的评论方的身份标识;
接收到针对目标评论位置的评论的查看请求后,将与评论位置信息关联的评论内容和身份标识返回给被评论方登录的目标应用,以使被评论方登录的目标应用显示包含第二图片显示区域和第一评论展示区域的评论详情页面,第二图片显示区域显示有与目标评论位置关联的局部区域的放大图片,第一评论展示区域显示有目标评论位置关联的评论内容。
在实施例中,第一评论展示区域还显示有评论方的身份标识;装置还包括:
第二反馈单元1505,用于接收到针对评论方的身份标识的触发请求后,向被评论方登录的目标应用反馈评论方的个人详情信息,以使被评论方登录的目标应用显示评论方的个人详情页面,个人详情页面中显示有评论方的个人详情信息。
在实施例中,局部区域的显示信息包括局部区域内中心位置的中心位置信息、局部区域中目标评论位置的评论位置信息和局部区域的显示尺寸信息;通知单元1503具体用于:
根据目标图片的原始尺寸信息以及放大比例信息,获得放大后的目标图片的放大尺寸信息;
根据放大尺寸信息、中心位置信息、以及局部区域的显示尺寸信息,获得位于放大图片上的参考点的参考位置信息;
将参考位置信息以及放大尺寸信息反馈给请求方,以使请求方根据参考位置信息与放大尺寸信息,在局部区域内绘制放大图片,以及根据评论位置信息在局部区域内绘制目标评论位置的位置标识。
在实施例中,装置还包括:
第一调整单元1506,用于当参考位置信息不符合预设位置条件时,通过调整参考位置信息,使调整后参考位置信息符合预设位置条件;以及,同时调整评论位置信息和放大尺寸信息。
在实施例中,装置还包括:
第二调整单元1507,用于当根据中心位置信息确定目标评论位置不能出现在局部区域内时,调整放大后的目标图片上的参考点的参考位置信息,以使调整后的目标评论位置能够出现在局部区域内。
为了描述的方便,以上各部分按照功能划分为各模块(或单元)分别描述。当然,在实施本申请实施例时可以把各模块(或单元)的功能在同一个或多个软件或硬件中实现。
在介绍了本申请示例性实施方式的图片评论的处理方法和装置之后,接下来,介绍根据本申请的另一示例性实施方式的电子设备。
所属技术领域的技术人员能够理解,本申请的各个方面可以实现为系统、方法或程序产品。因此,本申请的各个方面可以具体实现为以下形式,即:完全的硬件实施方式、完全的软件实施方式(包括固件、微代码等)、或硬件和软件方面结合的实施方式,这里可以统称为“电路”、“模块”或“系统”。
与上述方法实施例基于同一发明构思,本申请实施例中还提供了一种电子设备。该电子设备可以用于资源对象的转移控制。在一种实施例中,该电子设备可以是服务器,如图2所示的服务器230。在该实施例中,电子设备的结构可以如图16所示,包括存储器1601,通讯模块1603以及一个或多个处理器1602。
存储器1601,用于存储处理器1602执行的计算机程序。存储器1601可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统,以及运行即时通讯功能所需的程序等;存储数据区可存储各种即时通讯信息和操作指令集等。
存储器1601可以是易失性存储器(volatile memory),例如随机存取存储器(random-access memory,RAM);存储器1601也可以是非易失性存储器(non-volatile memory),例如只读存储器,快闪存储器(flash memory),硬盘(hard disk drive,HDD)或固态硬盘(solid-state drive,SSD);或者存储器1601是能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。存储器1601可以是上述存储器的组合。
处理器1602,可以包括一个或多个中央处理单元(central processing unit,CPU)或者为数字处理单元等等。处理器1602,用于调用存储器1601中存储的计算机程序时实现上述任意一种应用于服务器230的图片评论的处理方法。
通讯模块1603用于与终端设备和其他服务器进行通信。
本申请实施例中不限定上述存储器1601、通讯模块1603和处理器1602之间的具体连接介质。本公开实施例在图16中以存储器1601和处理器1602之间通过总线1604连接,总线1604在图16中以粗线表示,其它部件之间的连接方式,仅是进行示意性说明,并不引以为限。总线1604可以分为地址总线、数据总线、控制总线等。为便于表示,图16中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。
存储器1601中存储有计算机存储介质,计算机存储介质中存储有计算机可执行指令,计算机可执行指令用于实现本申请实施例的图片评论的处理方法。处理器1602用于执行上述任意一种应用于服务器230的图片评论的处理方法,如图12所示。
在另一种实施例中,电子设备也可以是其他电子设备,如图2所示的终端设备210。在该实施例中,电子设备的结构可以如图17所示,包括:通信组件1710、存储器1720、显示单元1730、摄像头1740、传感器1750、音频电路1760、蓝牙模块1770、处理器1780等部件。
通信组件1710用于与服务器进行通信。在一些实施例中,可以包括WiFi(Wireless Fidelity,电路无线保真)模块,WiFi模块属于短距离无线传输技术,电子设备通过WiFi模块可以帮助用户收发信息。
存储器1720可用于存储软件程序及数据。处理器1780通过运行存储在存储器1720的软件程序或数据,从而执行终端设备210的各种功能以及数据处理。存储器1720可以 包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。存储器1720存储有使得终端设备210能运行的操作系统。本申请中存储器1720可以存储操作系统及各种应用程序,还可以存储执行本申请实施例中任意一种应用于终端设备210的图片评论的处理方法的代码。
显示单元1730还可用于显示由用户编辑的信息或提供给用户的信息以及终端设备210的各种菜单的图形用户界面(graphical user interface,GUI)。具体地,显示单元1730可以包括设置在终端设备210正面的显示屏1732。其中,显示屏1732可以采用液晶显示器、发光二极管等形式来配置。显示单元1730可以用于显示本申请实施例中的应用操作页面220。
显示单元1730还可用于接收编辑的数字或字符信息,产生与终端设备210的用户设置以及功能控制有关的信号输入,具体地,显示单元1730可以包括设置在终端设备210正面的触摸屏1731,可收集用户在其上或附近的触摸操作,例如点击按钮,拖动滚动框等。
其中,触摸屏1731可以覆盖在显示屏1732之上,也可以将触摸屏1731与显示屏1732集成而实现终端设备210的输入和输出功能,集成后可以简称触摸显示屏。本申请中显示单元1730可以显示应用程序以及对应的操作步骤。
摄像头1740可用于捕获静态图像,用户可以将摄像头1740拍摄的图像通过目标应用发送给聊天对方的用户。摄像头1740可以是一个,也可以是多个。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给处理器1780转换成数字图像信号。
终端设备还可以包括至少一种传感器1750,比如加速度传感器1751、距离传感器1752、指纹传感器1753、温度传感器1754。终端设备还可配置有陀螺仪、气压计、湿度计、温度计、红外线传感器、光传感器、运动传感器等其他传感器。
音频电路1760、扬声器1761、麦克风1762可提供用户与终端设备210之间的音频接口。音频电路1760可将接收到的音频数据转换后的电信号,传输到扬声器1761,由扬声器1761转换为声音信号输出。终端设备210还可配置音量按钮,用于调节声音信号的音量。另一方面,麦克风1762将收集的声音信号转换为电信号,由音频电路1760接收后转换为音频数据,再将音频数据输出至通信组件1710以发送给比如另一终端设备210,或者将音频数据输出至存储器1720以便进一步处理。
蓝牙模块1770用于通过蓝牙协议来与其他具有蓝牙模块的蓝牙设备进行信息交互。例如,终端设备可以通过蓝牙模块1770与同样具备蓝牙模块的可穿戴电子设备(例如智能手表)建立蓝牙连接,从而进行数据交互。
处理器1780是终端设备的控制中心,利用各种接口和线路连接整个终端的各个部分,通过运行或执行存储在存储器1720内的软件程序,以及调用存储在存储器1720内的数据,执行终端设备的各种功能和处理数据。在一些实施例中,处理器1780可包括一个或多个处理单元;处理器1780还可以集成应用处理器和基带处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,基带处理器主要处理无线通信。可以理解的是,上述基带处理器也可以不集成到处理器1780中。本申请中处理器1780可以运行操作系统、应用程序、用户界面显示及触控响应,以及本申请实施例的图片评论的处理方法。另外,处理器1780与显示单元1730耦接。
在一些可能的实施方式中,本申请提供的图片评论的处理方法的各个方面还可以实现为一种程序产品的形式,其包括程序代码,当程序产品在计算机设备上运行时,程序代码 用于使计算机设备执行本说明书上述描述的根据本申请各种示例性实施方式的应用于终端设备210的图片评论的处理方法中的步骤,例如,计算机设备可以执行如图3中所示的步骤。
程序产品可以采用一个或多个可读介质的任意组合。可读介质可以是可读信号介质或者可读存储介质。可读存储介质例如可以是但不限于电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。
本申请的实施方式的程序产品可以采用便携式紧凑盘只读存储器(CD-ROM)并包括程序代码,并可以在计算装置上运行。然而,本申请的程序产品不限于此,在本文件中,可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被命令执行系统、装置或者器件使用或者与其结合使用。
可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了可读程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。可读信号介质还可以是可读存储介质以外的任何可读介质,该可读介质可以发送、传播或者传输用于由命令执行系统、装置或者器件使用或者与其结合使用的程序。
可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于无线、有线、光缆、RF等等,或者上述的任意合适的组合。
本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令关联的硬件来完成,前述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:移动存储设备、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。
或者,本申请实施例上述集成的单元如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机、服务器、或者网络设备等)执行本申请实施例各个实施例所述方法的全部或部分。而前述的存储介质包括:移动存储设备、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。
在本申请的上述实施例中,用户可以直观地查看目标图片中被评论的局部区域内的细节,对放大后的图片局部区域中的特定位置进行评论,使图片评论更有针对性。另外还可以在用户对图片中的特定位置进行评论之后,在该位置处进一步展示位置标识和评论方的身份标识,将评论和原图片进行更自然的结合,使评论更加直观。有利于提高评论双方的交互性,增强评论效果。
显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的精神和范围。这样,倘若本申请的这些更改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。

Claims (15)

  1. 一种图片评论的处理方法,由终端设备执行,该方法包括:
    响应于针对被评论方已发布的目标图片的放大操作,显示放大后的所述目标图片;
    响应于通过放大后的目标图片中的局部区域触发的预设评论操作,显示包含第一图片显示区域以及评论编辑区域的评论编辑页面,所述第一图片显示区域中显示所述局部区域的放大图片,所述评论编辑区域中显示针对所述局部区域待发布的所述评论内容;
    响应于针对所述局部区域发布所述评论内容的评论发布操作,显示包含所述目标图片的第一图片展示页面,所述第一图片展示页面中显示有针对所述局部区域所发布的评论的位置标识、以及发布所述评论的评论方的身份标识。
  2. 如权利要求1所述的方法,其中,在所述响应于针对所述局部区域发布所述评论内容的评论发布操作之后,所述方法还包括:
    响应于查看所述目标图片的评论的触发操作,显示包含所述目标图片的第二图片展示页面,所述第二图片展示页面中的各个评论位置显示有针对所述目标图片所发布的评论的位置标识、以及与所述位置标识关联的评论方的身份标识,其中评论位置为评论方在所述局部区域中发布评论的位置;
    响应于针对目标评论位置的评论的查看操作,显示包含第二图片显示区域和第一评论展示区域的评论详情页面,所述第二图片显示区域显示有与所述目标评论位置关联的局部区域的放大图片,所述第一评论展示区域显示有所述目标评论位置关联的评论内容。
  3. 如权利要求2所述的方法,其中,同一评论位置显示有多个评论方所发布的评论的位置标识以及与各个位置标识关联的评论方的身份标识;所述响应于针对目标评论位置的评论的查看操作,显示包含第二图片显示区域和第一评论展示区域的评论详情页面,具体包括:
    响应于通过所述目标评论位置处目标评论方的身份标识触发的查看操作,显示包含第二图片显示区域和第一评论展示区域的评论详情页面,所述第二图片显示区域显示有与所述目标评论位置关联的局部区域的放大图片,且在所述目标评论位置显示有所述目标评论方的身份标识,所述第一评论展示区域显示有所述目标评论方在所述目标评论位置发布的评论内容。
  4. 如权利要求2所述的方法,其中,所述第一评论展示区域还显示有评论回复控件;所述方法还包括:
    响应于所述被评论方针对所述评论回复控件的触发操作,显示包括第二评论展示区域以及评论回复区域的第一聊天页面,所述第二评论展示区域显示有所述评论方针对所述目标评论位置所发布的评论内容;
    响应于所述被评论方通过所述评论回复区域编辑的针对所述评论方在所述目标评论位置所发布的评论内容的答复信息,在所述第二评论展示区域展示所述答复信息。
  5. 如权利要求4所述的方法,其中,所述第二评论展示区域显示有所述评论方针对所述目标评论位置所发布的评论内容,具体包括:
    在所述第二评论展示区域中显示有针对所述评论方的评论消息卡片,所述评论消息卡片中显示有所述目标图片、以及所述评论方针对所述目标评论位置所发布的评论内容。
  6. 如权利要求2所述的方法,其中,所述第一评论展示区域还显示有所述评论方的身份标识;所述方法还包括:
    响应于针对所述评论方的身份标识的触发操作,显示所述评论方的个人详情页面,所 述个人详情页面中显示有所述评论方的个人详情信息、以及聊天控件;
    响应于针对所述聊天控件的触发操作,显示所述评论方与所述被评论方之间的第二聊天页面。
  7. 如权利要求1~6中任一项所述的方法,其中,所述响应于在所述目标评论位置发布所述评论内容的评论发布操作,显示包含所述目标图片的第一图片展示页面,具体包括:
    响应于在目标评论位置发布所述评论内容的评论发布操作,显示多种类型的位置标识;
    响应于选中目标类型的位置标识的触发操作,显示包含所述目标图片的第一图片展示页面,所述第一图片展示页面中的所述目标评论位置处显示有所述目标类型的位置标识。
  8. 一种图片评论的处理方法,由服务器执行,该方法包括:
    接收到针对被评论方已发布的目标图片的放大请求后,获取所述目标图片的图片标识、以及针对所述目标图片的放大比例信息,并将所述放大比例信息与所述图片标识关联保存;
    接收到针对放大后的目标图片中的局部区域的评论请求后,获取所述局部区域的显示信息和评论方的身份标识,并将所述显示信息和所述身份标识与所述图片标识进行关联保存;
    接收到针对所述局部区域发布待发布的评论内容的评论发布请求后,将所述评论内容与所述身份标识关联保存,并通知请求方,以使所述请求方显示包含所述目标图片的第一图片展示页面,所述第一图片展示页面中显示有针对所述局部区域所发布的评论的位置标识、以及与所述评论关联的所述评论方的身份标识。
  9. 如权利要求8所述的方法,其中,在所述将所述评论内容与所述身份标识关联保存之后,所述方法还包括:
    向所述被评论方登录的目标应用发送通知消息;
    接收到查看所述目标图片的评论的触发请求后,查询与所述触发请求中的图片标识关联的各个评论位置的评论位置信息、以及与各个评论位置关联的评论方的身份标识,并反馈给所述被评论方登录的目标应用,以使所述被评论方登录的目标应用显示包含所述目标图片的第二图片展示页面,所述第二图片展示页面中的各个评论位置显示有针对所述目标图片所发布的评论的位置标识、以及与所述位置标识关联的评论方的身份标识,其中评论位置为评论方在所述局部区域中发布评论的位置;
    接收到针对目标评论位置的评论的查看请求后,将与所述评论位置信息关联的评论内容和身份标识返回给所述被评论方登录的目标应用,以使所述被评论方登录的目标应用显示包含第二图片显示区域和第一评论展示区域的评论详情页面,所述第二图片显示区域显示有与所述目标评论位置关联的局部区域的放大图片,所述第一评论展示区域显示有所述目标评论位置关联的评论内容。
  10. 如权利要求9所述的方法,其中,所述第一评论展示区域还显示有评论回复控件;所述方法还包括:
    接收到所述被评论方针对所述评论回复控件的触发请求后,将所述评论方针对所述目标评论位置所发布的评论内容反馈给所述被评论方登录的目标应用,以使所述被评论方登录的目标应用显示包括第二评论展示区域以及评论回复区域的第一聊天页面,所述第二评论展示区域显示有所述评论方针对所述目标评论位置所发布的评论内容;
    接收到所述被评论方通过所述评论回复区域触发的答复请求后,获取所述被评论方编辑的针对所述评论方在所述目标评论位置所发布的评论内容的答复信息,并将所述答复信息反馈给所述评论方登录的目标应用,以使所述评论方登录的目标应用展示所述答复信息。
  11. 如权利要求9所述的方法,其中,所述第一评论展示区域还显示有所述评论方的 身份标识;所述方法还包括:
    接收到针对所述评论方的身份标识的触发请求后,向所述被评论方登录的目标应用反馈所述评论方的个人详情信息,以使所述被评论方登录的目标应用显示所述评论方的个人详情页面,所述个人详情页面中显示有所述评论方的个人详情信息。
  12. 一种图片评论的处理装置,包括:
    第一响应单元,用于响应于针对被评论方已发布的目标图片的放大操作,显示放大后的所述目标图片;
    第二响应单元,用于响应于通过放大后的目标图片中的局部区域触发的预设评论操作,显示包含第一图片显示区域以及评论编辑区域的评论编辑页面,所述第一图片显示区域中显示所述局部区域的放大图片,所述评论编辑区域中显示针对所述局部区域待发布的所述评论内容;
    第三响应单元,用于响应于针对所述局部区域发布所述评论内容的评论发布操作,显示包含所述目标图片的第一图片展示页面,所述第一图片展示页面中显示有针对所述局部区域所发布的评论的位置标识、以及发布所述评论的评论方的身份标识。
  13. 一种图片评论的处理装置,包括:
    第一关联单元,用于接收到针对被评论方已发布的目标图片的放大请求后,获取所述目标图片的图片标识、以及针对所述目标图片的放大比例信息,并将所述放大比例信息与所述图片标识关联保存;
    第二关联单元,用于接收到针对放大后的目标图片中的局部区域的评论请求后,获取所述局部区域的显示信息和评论方的身份标识,并将所述显示信息和所述身份标识与所述图片标识进行关联保存;
    通知单元,用于接收到针对所述局部区域发布待发布的评论内容的评论发布请求后,将所述评论内容与所述身份标识关联保存,并通知请求方,以使所述请求方显示包含所述目标图片的第一图片展示页面,所述第一图片展示页面中显示有针对所述局部区域所发布的评论的位置标识、以及与所述评论关联的所述评论方的身份标识。
  14. 一种电子设备,包括处理器和存储器,其中,所述存储器存储有程序代码,当所述程序代码被所述处理器执行时,使得所述处理器执行权利要求1~7中任一所述方法的步骤或权利要求8~11中任一所述方法的步骤。
  15. 一种计算机可读存储介质,包括程序代码,当所述程序代码在电子设备上运行时,所述程序代码用于使所述电子设备执行权利要求1~7中任一所述方法的步骤或权利要求8~11中任一所述方法的步骤。
PCT/CN2021/123525 2020-10-27 2021-10-13 一种图片评论的处理方法、装置、电子设备和存储介质 WO2022089209A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011164528.4 2020-10-27
CN202011164528.4A CN112215924A (zh) 2020-10-27 2020-10-27 一种图片评论的处理方法、装置、电子设备和存储介质

Publications (1)

Publication Number Publication Date
WO2022089209A1 true WO2022089209A1 (zh) 2022-05-05

Family

ID=74057115

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/123525 WO2022089209A1 (zh) 2020-10-27 2021-10-13 一种图片评论的处理方法、装置、电子设备和存储介质

Country Status (2)

Country Link
CN (1) CN112215924A (zh)
WO (1) WO2022089209A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115086729A (zh) * 2022-06-10 2022-09-20 北京字跳网络技术有限公司 一种连麦展示方法、装置、电子设备、计算机可读介质
CN115237298A (zh) * 2022-06-20 2022-10-25 北京达佳互联信息技术有限公司 问答处理方法、装置、电子设备及存储介质

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112215924A (zh) * 2020-10-27 2021-01-12 腾讯科技(深圳)有限公司 一种图片评论的处理方法、装置、电子设备和存储介质
CN113377271A (zh) * 2021-05-31 2021-09-10 北京达佳互联信息技术有限公司 文本获取方法、装置、计算机设备及介质
CN113792208B (zh) * 2021-09-29 2023-06-20 腾讯科技(深圳)有限公司 基于网页的图片交互方法、装置、设备、介质及程序产品
CN114911395A (zh) * 2022-05-09 2022-08-16 北京字跳网络技术有限公司 页面交互方法、装置、设备及存储介质
CN116107684B (zh) * 2023-04-12 2023-08-15 天津中新智冠信息技术有限公司 页面放大处理方法及终端设备

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102169433A (zh) * 2010-02-26 2011-08-31 佳能株式会社 信息处理系统、信息处理装置及信息处理方法
US20150156147A1 (en) * 2013-09-13 2015-06-04 Tencent Technology (Shenzhen) Company Limited Method, system and apparatus for adding network comment information
CN104866180A (zh) * 2015-06-04 2015-08-26 张婳 一种图画评论方法及系统
CN104952095A (zh) * 2015-07-16 2015-09-30 成都九米乐科技有限公司 一种图片评论的标注方法和装置
CN105117108A (zh) * 2015-09-11 2015-12-02 百度在线网络技术(北京)有限公司 信息处理方法、装置及系统
CN111240543A (zh) * 2020-01-03 2020-06-05 腾讯科技(深圳)有限公司 一种评论方法、装置、计算机设备及存储介质
CN112215924A (zh) * 2020-10-27 2021-01-12 腾讯科技(深圳)有限公司 一种图片评论的处理方法、装置、电子设备和存储介质

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102169433A (zh) * 2010-02-26 2011-08-31 佳能株式会社 信息处理系统、信息处理装置及信息处理方法
US20150156147A1 (en) * 2013-09-13 2015-06-04 Tencent Technology (Shenzhen) Company Limited Method, system and apparatus for adding network comment information
CN104866180A (zh) * 2015-06-04 2015-08-26 张婳 一种图画评论方法及系统
CN104952095A (zh) * 2015-07-16 2015-09-30 成都九米乐科技有限公司 一种图片评论的标注方法和装置
CN105117108A (zh) * 2015-09-11 2015-12-02 百度在线网络技术(北京)有限公司 信息处理方法、装置及系统
CN111240543A (zh) * 2020-01-03 2020-06-05 腾讯科技(深圳)有限公司 一种评论方法、装置、计算机设备及存储介质
CN112215924A (zh) * 2020-10-27 2021-01-12 腾讯科技(深圳)有限公司 一种图片评论的处理方法、装置、电子设备和存储介质

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115086729A (zh) * 2022-06-10 2022-09-20 北京字跳网络技术有限公司 一种连麦展示方法、装置、电子设备、计算机可读介质
CN115086729B (zh) * 2022-06-10 2024-04-26 北京字跳网络技术有限公司 一种连麦展示方法、装置、电子设备、计算机可读介质
CN115237298A (zh) * 2022-06-20 2022-10-25 北京达佳互联信息技术有限公司 问答处理方法、装置、电子设备及存储介质

Also Published As

Publication number Publication date
CN112215924A (zh) 2021-01-12

Similar Documents

Publication Publication Date Title
WO2022089209A1 (zh) 一种图片评论的处理方法、装置、电子设备和存储介质
USRE49367E1 (en) Automated generation of recommended response messages
US10841265B2 (en) Apparatus and method for providing information
US11973613B2 (en) Presenting overview of participant conversations within a virtual conferencing system
US20240053879A1 (en) Object Drag Method and Device
US11943072B2 (en) Providing a room preview within a virtual conferencing system
US10762683B2 (en) Animation sequence associated with feedback user-interface element
EP3352438B1 (en) User terminal device for recommending response message and method therefor
CN105453612B (zh) 消息服务提供装置以及经由其提供内容的方法
US11158057B2 (en) Device, method, and graphical user interface for processing document
US20150134687A1 (en) System and method of sharing profile image card for communication
WO2021008334A1 (zh) 小程序的数据绑定方法、装置、设备及存储介质
US20170061609A1 (en) Display apparatus and control method thereof
WO2022252932A1 (zh) 电子文档的编辑方法、装置、设备及存储介质
WO2019213882A1 (zh) 互联终端出借本地处理能力
WO2018076269A1 (zh) 数据处理方法以及电子终端
US20220375137A1 (en) Presenting shortcuts based on a scan operation within a messaging system
US20240073166A1 (en) Combining individual functions into shortcuts within a messaging system
CN111596821B (zh) 消息展示方法、装置、计算机设备及存储介质
US20230393730A1 (en) User interface including multiple interaction zones
US20230410394A1 (en) Image display method and apparatus, device, and medium
US20240073050A1 (en) Presenting captured screen content within a virtual conferencing system
US20230050068A1 (en) Displaying a profile from a content feed within a messaging system
US20230063425A1 (en) Displaying content feeds within a messaging system
CN117874341A (zh) 关联关系的建立方法、装置、电子设备及存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21884938

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 25.09.2023)

122 Ep: pct application non-entry in european phase

Ref document number: 21884938

Country of ref document: EP

Kind code of ref document: A1