CN113763512A - Method and device for processing screen shot image and electronic equipment - Google Patents

Method and device for processing screen shot image and electronic equipment Download PDF

Info

Publication number
CN113763512A
CN113763512A CN202111062997.XA CN202111062997A CN113763512A CN 113763512 A CN113763512 A CN 113763512A CN 202111062997 A CN202111062997 A CN 202111062997A CN 113763512 A CN113763512 A CN 113763512A
Authority
CN
China
Prior art keywords
information
image
processing
screenshot
layer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111062997.XA
Other languages
Chinese (zh)
Inventor
王勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202111062997.XA priority Critical patent/CN113763512A/en
Publication of CN113763512A publication Critical patent/CN113763512A/en
Pending legal-status Critical Current

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

Landscapes

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

Abstract

The embodiment of the application provides a method and a device for processing a screenshot image and electronic equipment, and belongs to the technical field of image processing. The method comprises the following steps: carrying out outline recognition on each piece of information in the first screenshot image, and determining an external frame of each piece of information; processing the first screenshot image according to the external frame of each piece of information to obtain a layer of each piece of information; receiving a first input of a target information layer in each information layer; in response to the first input, the target information layer is edited to generate a second screen capture image.

Description

Method and device for processing screen shot image and electronic equipment
Technical Field
The application relates to the technical field of image processing, in particular to a method and a device for processing a screen shot image and electronic equipment.
Background
When a lot of people take important events (such as checking into universities, winning games, finding work or marrying, etc.), they will send out a mood to a friend's circle, a microblog, a saying, etc., and harvest many congratulations on the social platform. When a publisher wants to leave a screenshot as a souvenir or share the screenshot to other people, if some smiling or malicious comments exist in the content of the screenshot, the screenshot commenting or sharing may be influenced.
In the related art, if a publisher wants to adjust comments in a screenshot, the publisher can only splice a plurality of screenshot images after repeatedly screenshot. Therefore, the existing screen capture function is complex to use in some scenes and needs to capture the screen for many times.
Disclosure of Invention
The embodiment of the application provides a method and a device for processing a screenshot image and electronic equipment, and solves the problems that the existing screenshot function is complex to use in some scenes and needs to be screenshot for many times.
In a first aspect, an embodiment of the present application provides a method for processing a screenshot image, including:
carrying out outline recognition on each piece of information in the first screenshot image, and determining an external frame of each piece of information;
processing the first screenshot image according to the external frame of each piece of information to obtain a layer of each piece of information;
receiving a first input of a target information layer in each information layer;
in response to the first input, the target information layer is edited to generate a second screen capture image.
In a second aspect, an embodiment of the present application provides a device for processing a screenshot image, including:
the identification module is used for carrying out outline identification on each piece of information in the first screenshot image and determining an external frame of each piece of information;
the processing module is used for processing the first screenshot image according to the external frame of each piece of information to obtain the layer of each piece of information;
the receiving module is used for receiving first input of a target information layer in each information layer;
and the editing module is used for responding to the first input and editing the target information layer to generate a second screen capture image.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executed on the processor, where the program or instructions, when executed by the processor, implement the steps of the method for processing a screenshot image provided in the first aspect.
In a fourth aspect, the embodiment of the application provides an electronic device, which includes the apparatus for processing the screenshot image provided in the second aspect.
In a fifth aspect, the present application provides a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method for processing a screenshot image as provided in the first aspect.
In a sixth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the steps of the method for processing a screenshot image as provided in the first aspect.
In the embodiment of the application, outline recognition is carried out on each piece of information in the first screenshot image, and an external frame of each piece of information is determined; processing the first screenshot image according to the external frame of each piece of information to obtain a layer of each piece of information; receiving a first input of a target information layer in each information layer; in response to the first input, the target information layer is edited to generate a second screen capture image. When a user needs to edit the target information in the first screen cut image, an editable layer of each piece of information can be formed through recognition and cutting processing. And by editing the layers of the target information, the functions of deleting, copying, adjusting the sequence and the like of at least one piece of target information are realized, and after the editing is finished, all the layers and the first screenshot image are combined to obtain an edited second screenshot image. On one hand, important and high-quality information can be reserved on the screen capture image without deleting the published original information on the platform. On the other hand, the user can carry out independent editing operation on the image layer of each piece of information, namely, the image layers of different pieces of information are processed in different editing modes, so that the complexity and the operation difficulty of screen capture are reduced, the possibility of misoperation is reduced, the limitation of the information editing function is overcome, the presenting effect of the second screen capture image is ensured, and the requirement of the user on the second screen capture image is met.
Drawings
FIG. 1 shows one of the flow diagrams of a method of processing a screenshot image according to one embodiment of the present application;
FIG. 2 illustrates a second flowchart of a method of processing a screenshot image according to an embodiment of the present application;
FIG. 3 shows a third flowchart of a method of processing a screenshot image according to an embodiment of the present application;
FIG. 4 shows a fourth flowchart of a method of processing a screenshot image according to an embodiment of the present application;
FIG. 5 shows a fifth flowchart of a method of processing a screenshot image according to an embodiment of the present application;
FIG. 6 shows six of a flow chart of a method of processing a screenshot image according to one embodiment of the present application;
FIG. 7 shows a seventh flowchart of a method of processing a screenshot image according to an embodiment of the present application;
FIG. 8 illustrates one of the electronic device display diagrams according to one embodiment of the present application;
FIG. 9 shows a second display schematic of an electronic device according to an embodiment of the present application;
FIG. 10 shows a third schematic view of a display of an electronic device according to an embodiment of the present application;
FIG. 11 illustrates a fourth display schematic of an electronic device according to one embodiment of the present application;
FIG. 12 shows a fifth display schematic of an electronic device according to an embodiment of the present application;
FIG. 13 shows a block diagram of a device for processing a screenshot image according to an embodiment of the present application;
FIG. 14 shows a block diagram of an electronic device according to an embodiment of the present application;
fig. 15 shows a hardware configuration block diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present disclosure.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
A method of processing a screen capture image, a device for processing a screen capture image, and an electronic apparatus according to some embodiments of the present application are described below with reference to fig. 1 to 15.
In an embodiment of the present application, fig. 1 shows one of flowcharts of a method for processing a screenshot image according to an embodiment of the present application, including:
102, carrying out outline identification on each piece of information in the first screenshot image, and determining an external frame of each piece of information;
illustratively, the electronic device may display the first screen image horizontally or vertically.
Specifically, the bounding box is the boundary of the minimum area where the information is located in the first screenshot image. The shape of the external frame can be reasonably set according to the requirements of users, and can be circular, quadrilateral, oval and the like, the external frame can contain all the content of a single piece of information, and the shape of the external frame is not specifically limited in the application.
Step 104, processing the first screenshot image according to the external frame of each piece of information to obtain a layer of each piece of information;
in this embodiment, the area where each piece of information is located is cut out from the first screenshot image according to the boundary of the outer frame, so as to form the layer of each piece of information. Therefore, each piece of information is separated in a content explosion mode to be changed into an editable layer, and a user can achieve the effect of meeting the requirements of screen capture through editing operations such as deletion, sequence change and the like of the target information layer needing to be modified.
It can be understood that each piece of information corresponds to each layer one to one, that is, only one piece of information is contained in one layer. And processing the first screenshot image, including cutting and repairing, and cutting out the area where each piece of information is located, namely the layer of each piece of information. And then, repairing the area of each piece of information on the first cut-screen image according to background parameters (such as brightness, contrast, light, background color and the like) around the area of each piece of information, so as to fill the segmented area with the background of the first cut-screen image, thereby ensuring the integrity of the first cut-screen image.
It is worth mentioning that in response to a third input to the electronic device, a processing interface is displayed, the processing interface including the first screenshot image. And simultaneously carrying out outline recognition on each piece of information in the first cut-screen image, namely using the third input as a control switch for triggering the editing mode of the first cut-screen image. Therefore, personalized control of screenshot comment editing is achieved, only the first screenshot image needing to be edited is divided, interference on users who do not want to edit comments is avoided, and the reduction of the calculation amount of the processor is facilitated.
Step 106, receiving a first input of a target information layer in each information layer;
the target information layer is a layer of information to be adjusted in the plurality of pieces of information. The first input is used for triggering editing operation and indicating an editing mode of the target information layer. The first input may include a click input, a key input, a slide input, and/or a press input. The key input includes, but is not limited to, a power key, a volume key, a single-click input of a main menu key, a double-click input, a long-press input, a combination key input, etc. to the electronic device. Of course, the first input may also be other operations of the electronic device by the user, and the operation manner in the embodiment of the present application is not particularly limited, and may be any realizable manner.
And step 108, responding to the first input, editing the target information layer to generate a second screen capture image.
In this embodiment, a first input of a user to a target information layer is received at an electronic device, an editing mode indicated by the user is determined in response to the first input, and the target information layer is edited according to the editing mode, so that adjustments such as deletion, copying, and sequence change of required information are realized. And after the layer editing is completed, combining all layers and the first screenshot image to form a second screenshot image after the editing. On one hand, important and high-quality information can be reserved on the screen capture image without deleting the published original information on the platform. On the other hand, the user can carry out independent editing operation on the image layer of each piece of information, namely, the image layers of different pieces of information are processed in different editing modes, so that the complexity and the operation difficulty of screen capture are reduced, the possibility of misoperation is reduced, the limitation of the information editing function is overcome, the presenting effect of the second screen capture image is ensured, and the requirement of the user on the second screen capture image is met.
In some possible designs, editing the target information layer includes at least one of the following editing modes: copying a target information layer, deleting the target information layer, moving the position of the target information layer in the first screen cut-off image, and adjusting the size of the target information layer. Therefore, multiple possible editing functions are provided for editing information, multiple editing requirements of users are met, and the use experience of the users is improved.
Specifically, the position of the moving target information layer in the first cut-screen image is not limited to adjusting the order of the target information layers, and the layout of the target information layers may also be changed. Taking the screenshot shown in fig. 8 as an example, after the first piece of comment information ("graceful") is moved to the second piece of comment information ("thank you" the star fire "team wins honor | for the home") according to the arrangement sequence from top to bottom, as shown in fig. 10, the arrangement sequence of the comment information is adjusted through a moving operation, or as shown in fig. 11, a plurality of pieces of comment information are alternately arranged by moving 5 pieces of comment information, so that the attractiveness of the layout is improved.
It is understood that a response function for triggering editing by the first input is defined for the electronic device in advance, and the response function indicates a triggering rule with at least one editing mode. And when first input of a user to the target information layer is received, matching the first input with the trigger rule, and when the first editing input meets the trigger rule, responding to the first input and editing the target information layer in an editing mode corresponding to the trigger rule. For example, if the rule is defined that double-click of a layer represents deleting a layer, when the user performs double-click on a target information layer, the target information layer is deleted. For another example, if the rule is defined that the dragged layer represents the position of the moving layer, when the user presses and slides the target information layer, the target information layer is moved to the end position of the sliding track to change the arrangement sequence of the information. Of course, the rule may also be that the layer is clicked to display the editing control after the first screenshot is pressed for a specified time, the layer is edited through the editing control, and the like.
Further, an editing control may be displayed on each layer, a first input to the target information layer is an operation on the editing control on the target information layer, for example, as shown in fig. 8, each piece of comment information in a long screenshot (a first screenshot image) is identified, each piece of comment information may be edited as an independent layer, the editing control 802 of the layer is displayed on each layer, and a corresponding layer may be deleted by clicking the editing control 802, that is, comment information in the long screenshot may be deleted.
Specifically, for example, as shown in fig. 9, the user clicks the edit control 802 to remove content or malicious comments which the screenshot does not want to show, and additionally, drags the comment information to move the position of the comment information, thereby adjusting the comment sequence, arranging important and quality comments in front, and if the user clicks the save button to confirm that the editing is completed, the edited screenshot (second screenshot image) shown in fig. 10 is formed. Storing the edited picture to the local; and if the cancel button is clicked, canceling the editing operation, and returning to a friend circle (or saying, microblog) interface. As shown in fig. 12, the user may also press and hold the expansion or reduction control at the upper right corner of the comment information to slide, so as to enlarge the comment information that needs to be highlighted.
Of course, after the second screen capture image is generated, the second screen capture image may also be displayed on the screen of the electronic device so as to view the final editing effect. If the user suddenly finds that the second screen capture image has a problem and needs to be modified, the editing and the adjustment can be carried out continuously like the steps.
It should be noted that the method for processing the screenshot image is applicable to electronic devices, and the electronic devices include, but are not limited to, a mobile terminal, a tablet computer, a notebook computer, a wearable device, a vehicle-mounted terminal, and the like.
In some possible designs, after the second screenshot image is obtained, the second screenshot image may be adjusted according to a preset image template, where the preset image template includes parameters such as an image size, a filter, and a rotation angle. Therefore, the second screen capture image can be edited quickly, and the editing effect is improved.
In an embodiment of the present application, taking a plurality of pieces of comment information related to published content as an example of information in a first screenshot image, that is, the first screenshot image includes the published content and the plurality of pieces of comment information, fig. 2 shows a second flowchart of a processing method of a screenshot image according to an embodiment of the present application, and includes:
step 202, receiving a second input of the release content;
the release content, that is, the information released by the user on the platform, may include contents such as pictures, videos, and texts. Similarly, the comment information may include contents such as pictures, videos, and texts.
Step 204, responding to the second input, and determining the area where the released content and the plurality of pieces of comment information are located as a screen capture area;
and step 206, screenshot is carried out on the interface according to the screenshot area, and a first screenshot image is generated.
In this embodiment, when the user needs to capture the published content and the pieces of comment information related to the published content, the user may trigger a screen capture function of the electronic device through the second input to the published content. Meanwhile, the published content is used as a screen capture starting point, the last piece of comment information is used as a screen capture end point, and a screen capture area where the published content and the plurality of pieces of comment information are located is determined, wherein the screen capture area contains the complete published content and all relevant comment information. At the moment, screenshot is conducted on an interface, used for displaying the release content and the plurality of pieces of comment information, of the electronic equipment according to the screenshot area, and a first screenshot image is generated. Even if too much comment information exceeds the display range of the screen of the electronic equipment, the published content and all comment information can be captured in a long screenshot mode, so that the first screenshot image is not limited to the content displayed on the screen of the electronic equipment, and the content required by the user can be captured to the maximum extent.
In an embodiment of the present application, in case of moving the position of the target information layer in the first cut-screen image or deleting the target information layer, the step of editing the target information layer includes: determining an arrangement order of the plurality of pieces of comment information in the first screenshot image; moving or deleting the target information layer; and moving the layers of the comment information behind the comment information corresponding to the target information layer in the arrangement sequence in sequence according to the arrangement sequence.
In this embodiment, it is considered that the background region of the first screen cut image may occur due to moving the target information layer or deleting the target information layer, which is not favorable for the layout of the image. Therefore, the arrangement sequence of the plurality of pieces of comment information in the first screenshot image is determined, and after the image layer is moved or deleted, the image layers of the comment information behind the comment information corresponding to the target information image layer are sequentially moved according to the arrangement sequence to fill the background area. Therefore, dynamic adaptive adjustment of the plurality of pieces of comment information is achieved, the layout of the plurality of pieces of comment information is more regular and orderly, and the display effect of the edited second screenshot image is better.
For example, taking the screenshot shown in fig. 8 as an example, after the third piece of comment information ("what is dazzled") is deleted through an editing operation according to the arrangement sequence from top to bottom and the first piece of comment information ("nice to the sky" the team wins the honor of the house ") is moved to the second piece of comment information (" thank you "the star fire" makes a lot of honor for the house "), as shown in fig. 10, the fourth and fifth pieces of comment information automatically move upward to supplement the background area from which the third piece of comment information is deleted, so that the image layout is more regular and beautiful. Similarly, as shown in fig. 12, the second comment information is expanded, and at this time, the third comment information, the fourth comment information, and the fifth comment information move downward in sequence, so that the expanded second comment information is prevented from blocking the third comment information.
In an embodiment of the present application, fig. 3 shows a third flowchart of a method for processing a screenshot image according to an embodiment of the present application, including:
step 302, in the case that a plurality of pieces of comment information exist in first text information matching the first preset text, adding image noise to the first text information.
The image noise includes random noise or moire noise, which is high-frequency interference occurring on a photosensitive element of a digital camera or a scanner, and causes a color high-frequency stripe to appear on the image. Since the moire pattern is irregular, there is no apparent regularity in shape. Generally, the moire pattern generated when photographing is in the form of concentric circles to form a plurality of circular rings. Random noise, also known as background noise, refers to unnecessary or unwanted interference information present in the image data, accumulated from a large number of fluctuating perturbations that are randomly generated in time, and is noise that cannot be predicted at a given instant.
In this embodiment, a first preset text, that is, a text that is easy to expose the user privacy information when sharing the screenshot image, is preset, for example, the name and the phone number of the reviewer. In the process of editing the first screenshot image, image recognition is performed on the first screenshot image so as to obtain the content of each piece of comment information in the first screenshot image. And determining whether the private text content exists in the plurality of pieces of comment information by comparing each piece of comment information with the first preset text. If the first text information matched with the first preset text exists, adding a shielding effect to the first cut-screen image in a mode of adding image noise to the first text information so as to hide the first text information. Therefore, the content in the first screenshot image cannot be completely displayed in the edited second screenshot image, information leakage caused by visual recognition is prevented, and the image sharing safety is guaranteed.
In an embodiment of the present application, fig. 4 shows a fourth flowchart of a method for processing a screenshot image according to an embodiment of the present application, including:
and 402, outputting prompt information under the condition that second text information matched with a second preset text exists in the plurality of pieces of comment information.
And the prompt information is used for prompting to edit the second text information.
In this embodiment, a second preset text, that is, a text content that the user does not want to display, is preset. In the process of editing the first screenshot image, image recognition is performed on the first screenshot image so as to obtain the content of each piece of comment information in the first screenshot image. And determining whether the plurality of pieces of comment information have contents which may not be needed by the user by comparing each piece of comment information with the second preset text. If the plurality of pieces of comment information exist in the second text information matched with the second preset text, the fact that the contents which are possibly uninterested by the user exist in the first screenshot image is shown, and the comment information does not need to appear in the screenshot image or need not to be arranged at an obvious position of the screenshot image. And outputting prompt information to remind the user of editing the second text information. Therefore, the comment information needing to be edited is determined by the user, the time for the user to check and distinguish the comment information is shortened, the editing efficiency of the screen shot image is improved, and particularly the use experience of the user is improved under the condition that the number of the comment information is large.
Specifically, the text content in the first screenshot image can be recognized and extracted by means of an OCR (Optical Character Recognition) algorithm or the like.
In an embodiment of the present application, fig. 5 shows a fifth flowchart of a method for processing a screenshot image according to an embodiment of the present application, including:
step 502, carrying out error correction processing on a plurality of pieces of comment information, and determining wrongly written characters and target characters corresponding to the wrongly written characters in the plurality of pieces of comment information;
and step 504, replacing the wrongly written characters with target characters.
In the embodiment, after the text content of each piece of comment information is identified, the wrongly written words in the comment information are identified and corrected through the error correction model, so that the correctness of the text information is ensured, the culture level of a user is favorably embodied, and the use requirement of the user on the screen shot image is met.
For example, the word "tea for fun" may be corrected to "fun".
The embodiment of the present application does not limit the specific method of error correction processing.
In an embodiment of the present application, fig. 6 shows a sixth flowchart of a method for processing a screenshot image according to an embodiment of the present application, including:
step 602, receiving a fourth input to the electronic device;
step 604, responding to the fourth input, and executing a first processing operation on the edited target information layer.
Wherein the first processing operation comprises a undo operation or a resume operation.
In this embodiment, during the editing process of the target information layer, the user generally needs to perform a multi-step editing operation. If the effect of the executed editing operation is not satisfactory, the user can cancel or restore the edited target information layer by the second input of the electronic equipment, which is beneficial to improving the information editing efficiency.
Further, in the case where there are many editing operations, it is considered that the image editing speed is seriously affected by performing the undo or reinstate operation one by one. To this end, in response to the second input, a cancel or restore window is displayed, and the user can input the number of steps in the cancel or restore window, at which the cancel or restore operation is required, by which the electronic device automatically performs the cancel or restore operation. Therefore, one-key cancel or recovery of multi-step editing operation is realized, and the editing speed is further improved.
In an embodiment of the present application, fig. 7 shows a seventh flowchart of a method for processing a screenshot image according to an embodiment of the present application, including:
step 702, receiving a fifth input to the electronic device;
and step 704, responding to a fifth input, and sending a second screen capture image corresponding to the fifth input to the target position.
Wherein the target location may be another electronic device or a server in communication with the electronic device. When the target position is other electronic equipment, the second screen capture image is sent to the other electronic equipment, namely the second screen capture image is shared; and when the target position is the server, sending the second screen capture image, namely uploading the second screen capture image.
In this embodiment, after the target information layer is edited, a sharing operation of the second screen capture image is triggered by a fifth input to the second screen capture image, so that the user can conveniently remember or share the second screen capture image with others.
In one embodiment of the present application, as shown in fig. 13, a device 1300 for processing a screenshot image includes: the identification module 1302, the identification module 1302 is configured to perform outline identification on each piece of information in the first screenshot image, and determine an external frame of each piece of information; the processing module 1304 is, where the processing module 1304 is configured to process the first screenshot image according to the external frame of each piece of information, so as to obtain a layer of each piece of information; a receiving module 1306, configured to receive a first input of a target information layer in each information layer; and an editing module 1308, where the editing module 1308 is configured to edit the target information layer in response to the first input, so as to generate a second screen capture image.
In this embodiment, when the user needs to edit the target information in the first cut-screen image, an editable layer of each piece of information can be formed through the recognition and cutting process. And by editing the layers of the target information, the functions of deleting, copying, adjusting the sequence and the like of at least one piece of target information are realized, and after the editing is finished, all the layers and the first screenshot image are combined to obtain an edited second screenshot image. On one hand, important and high-quality information can be reserved on the screen capture image without deleting the published original information on the platform. On the other hand, the user can carry out independent editing operation on the image layer of each piece of information, namely, the image layers of different pieces of information are processed in different editing modes, so that the complexity and the operation difficulty of screen capture are reduced, the possibility of misoperation is reduced, the limitation of the information editing function is overcome, the presenting effect of the second screen capture image is ensured, and the requirement of the user on the second screen capture image is met.
Optionally, the first screenshot image includes the post content and a plurality of pieces of comment information related to the post content, and the receiving module 1306 is further configured to receive a second input to the post content; the apparatus 1300 for processing a screenshot image further includes: a determination module (not shown in the figure) for determining, as a screen capture area, an area where the posting content and the plurality of pieces of comment information are located, in response to the second input; and the screen capture module (not shown in the figure) is used for capturing the screen of the interface according to the screen capture area to generate a first screen capture image.
Optionally, the apparatus 1300 for processing a screenshot image further includes: and a noise adding module (not shown in the figure) for adding image noise on the first text information in the case that the plurality of pieces of comment information exist in the first text information matching the first preset text.
Optionally, the apparatus 1300 for processing a screenshot image further includes: and the prompting module (not shown in the figure) is used for outputting prompting information under the condition that a plurality of pieces of comment information have second text information matched with the second preset text, and the prompting information is used for prompting the editing of the second text information.
Optionally, the editing module 1308 is further configured to copy the target information layer; and/or deleting the target information layer; and/or the position of the moving target information layer in the first screenshot image; and/or adjusting the size of the target information layer.
Optionally, the apparatus 1300 for processing a screenshot image further includes: the error correction module (not shown in the figure) is used for carrying out error correction processing on the plurality of pieces of comment information and determining wrongly written words and target words corresponding to the wrongly written words in the plurality of pieces of comment information; and replacing the wrongly written characters with the target characters.
Optionally, the receiving module 1306 is further configured to receive a fourth input to the electronic device; the editing module 1308 is further configured to, in response to a fourth input, perform a first processing operation on the edited target information layer; wherein the first processing operation comprises a undo operation or a resume operation.
Optionally, the receiving module 1306 is further configured to receive a fifth input to the electronic device; the apparatus 1300 for processing a screenshot image further includes: and a transmission module (not shown in the figure) for responding to the fifth input, and sending the second screen capture image corresponding to the fifth input to the target position.
In this embodiment, when each module of the apparatus 1300 for processing a screenshot image executes its own function, the step of implementing the method for processing a screenshot image in any embodiment of the first aspect is implemented, and therefore, the apparatus 1300 for processing a screenshot image also includes all the beneficial effects of the method for processing a screenshot image in any embodiment of the first aspect, which are not described herein again.
The device for processing the screenshot image in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in the terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a personal computer (personal computer, PC), a Television (TV), a self-service machine, and the like, and the embodiments of the present application are not limited in particular.
The processing device of the screenshot image in the embodiment of the application can be a device with an operating system. The operating system may be an Android operating system (Android), an iOS operating system, or an operating system of other capabilities, which is not specifically limited in the embodiments of the present application.
In an embodiment of the present application, an electronic device is provided in an embodiment of the present application, and the electronic device includes a processing apparatus for a screenshot image. Therefore, the electronic device includes all the advantages of the device for processing the screenshot image provided in any of the above embodiments, which are not described herein again.
In one embodiment of the present application, as shown in fig. 14, there is provided an electronic device 1400 comprising: the processor 1404, the memory 1402, and the program or the instructions stored in the memory 1402 and executed on the processor 1404, the program or the instructions implementing the steps of the method for processing the screenshot image provided in any of the above embodiments when executed by the processor 1404, and therefore, the electronic device 1400 includes all the advantages of the method for processing the screenshot image provided in any of the above embodiments, which are not described herein again.
It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic device and the non-mobile electronic device described above.
Fig. 15 is a schematic hardware configuration diagram of an electronic device 1500 for implementing an embodiment of the present application. The electronic device 1500 includes, but is not limited to: a radio frequency unit 1501, a network module 1502, an audio output unit 1503, an input unit 1504, a sensor 1505, a display unit 1506, a user input unit 1507, an interface unit 1508, a memory 1509, and a processor 1510.
Those skilled in the art will appreciate that the electronic device 1500 may also include a power supply (e.g., a battery) for powering the various components, which may be logically coupled to the processor 1510 via a power management system to perform functions such as managing charging, discharging, and power consumption via the power management system. The electronic device structure shown in fig. 15 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
The processor 1510 is configured to perform contour recognition on each piece of information of the first screenshot image, and determine an external frame of each piece of information; processing the first screenshot image according to the external frame of each piece of information to obtain a layer of each piece of information; a user input unit 1507 for receiving a first input of a target information layer in a layer for each piece of information; processor 1510 is further configured to edit the target information layer to generate a second screen capture image in response to the first input.
In this embodiment, when the user needs to edit the target information in the first cut-screen image, an editable layer of each piece of information can be formed through the recognition and cutting process. And by editing the layers of the target information, the functions of deleting, copying, adjusting the sequence and the like of at least one piece of target information are realized, and after the editing is finished, all the layers and the first screenshot image are combined to obtain an edited second screenshot image. On one hand, important and high-quality information can be reserved on the screen capture image without deleting the published original information on the platform. On the other hand, the user can carry out independent editing operation on the image layer of each piece of information, namely, the image layers of different pieces of information are processed in different editing modes, so that the complexity and the operation difficulty of screen capture are reduced, the possibility of misoperation is reduced, the limitation of the information editing function is overcome, the presenting effect of the second screen capture image is ensured, and the requirement of the user on the second screen capture image is met.
Further, the first screenshot image includes a post content and a plurality of pieces of comment information related to the post content, and the user input unit 1507 is also configured to receive a second input for the post content; the processor 1510 is further configured to determine, as a screen capture area, an area where the posting content and the plurality of pieces of comment information are located, in response to a second input; and carrying out screenshot on the interface according to the screenshot area to generate a first screenshot image.
Further, the processor 1510 is further configured to add image noise on the first text information in a case where there are a plurality of pieces of comment information and the first text information matching the first preset text.
Further, the processor 1510 is further configured to output a prompt message for prompting editing of the second text message in a case where there are a plurality of pieces of comment information and the second text message matching the second preset text.
Further, processor 1510 is further configured to copy the destination information layer; and/or deleting the target information layer; and/or the position of the moving target information layer in the first screenshot image; and/or adjusting the size of the target information layer.
Further, the processor 1510 is further configured to perform error correction processing on the multiple pieces of comment information, and determine wrongly written words and target words corresponding to the wrongly written words in the multiple pieces of comment information; and replacing the wrongly written characters with the target characters.
Further, the user input unit 1507 is also used to receive a fourth input to the electronic device; processor 1510 is further configured to perform a first processing operation on the edited target information layer in response to a fourth input; wherein the first processing operation comprises a undo operation or a resume operation.
Further, the user input unit 1507 is also used to receive a fifth input to the electronic device; the radio frequency unit 1501 is configured to send, in response to a fifth input, a second screenshot image corresponding to the fifth input to the target location.
It should be understood that, in the embodiment of the present application, the input Unit 1504 may include a Graphics Processing Unit (GPU) 1541 and a microphone 1542, and the Graphics Processing Unit 1541 processes image data of a still picture or a video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 1506 may include a display panel 1561, and the display panel 1561 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1507 includes a touch panel 1571 and other input devices 1572. Touch panel 1571, also referred to as a touch screen. Touch panel 1571 may include two portions, a touch detection device and a touch controller. Other input devices 1572 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 1509 may be used to store software programs as well as various data including, but not limited to, application programs and an operating system. The processor 1510 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 1510.
In one embodiment of the present application, there is provided a read storage medium having stored thereon a program or instructions which, when executed by a processor, implement the steps of the method of processing a screenshot image as provided in any one of the above embodiments.
In this embodiment, the storage medium can implement each process of the method for processing a screenshot image provided in the embodiment of the present application, and can achieve the same technical effect, and details are not repeated here to avoid repetition.
The processor is the processor in the communication device in the above embodiment. The Read-storage medium includes a computer-readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each process of the above-mentioned screenshot image processing method embodiment, and can achieve the same technical effect, and the description is omitted here to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (11)

1. A method for processing a screenshot image, comprising:
carrying out outline recognition on each piece of information in the first screenshot image, and determining an external frame of each piece of information;
processing the first screenshot image according to the external frame of each piece of information to obtain a layer of each piece of information;
receiving a first input of a target information layer in each information layer;
and responding to the first input, editing the target information layer to generate a second screen capture image.
2. The method for processing the screenshot image according to claim 1, wherein the first screenshot image includes a post content and a plurality of pieces of comment information related to the post content, and further comprising:
receiving a second input to the published content;
in response to the second input, determining an area where the published content and the plurality of pieces of comment information are located as a screen capture area;
and carrying out screenshot on the interface according to the screenshot area to generate the first screenshot image.
3. The method for processing the screen shot image according to claim 2, further comprising:
and in the case that the plurality of pieces of comment information exist in first text information which is matched with a first preset text, adding image noise on the first text information.
4. The method for processing the screen shot image according to claim 2, further comprising:
and outputting prompt information under the condition that second text information matched with a second preset text exists in the plurality of pieces of comment information, wherein the prompt information is used for prompting the editing of the second text information.
5. The method for processing the screen shot image according to any one of claims 1 to 4, wherein the editing the target information layer comprises:
copying the target information layer; and/or
Deleting the target information layer; and/or
Moving the position of the target information layer in the first screenshot image; and/or
And adjusting the size of the target information layer.
6. A device for processing a screen shot image, comprising:
the identification module is used for carrying out outline identification on each piece of information in the first screenshot image and determining an external frame of each piece of information;
the processing module is used for processing the first screenshot image according to the external frame of each piece of information to obtain a layer of each piece of information;
the receiving module is used for receiving first input of a target information layer in each information layer;
and the editing module is used for responding to the first input and editing the target information layer to generate a second screen capture image.
7. The apparatus for processing screenshot image according to claim 6, wherein the first screenshot image includes a post content and a plurality of pieces of comment information related to the post content, and the receiving module is further configured to receive a second input for the post content;
a determining module, configured to determine, in response to the second input, an area where the published content and the plurality of pieces of comment information are located as a screen capture area;
and the screen capture module is used for capturing a screen of the interface according to the screen capture area to generate the first screen capture image.
8. The apparatus for processing a screen shot image according to claim 7, further comprising:
and the noise adding module is used for adding image noise to the first text information under the condition that the plurality of pieces of comment information have the first text information matched with the first preset text.
9. The apparatus for processing a screen shot image according to claim 7, further comprising:
and the prompt module is used for outputting prompt information under the condition that the plurality of pieces of comment information have second text information matched with a second preset text, wherein the prompt information is used for prompting the editing of the second text information.
10. The apparatus for processing a screen shot image according to any one of claims 6 to 9,
the editing module is further used for copying the target information layer; and/or
Deleting the target information layer; and/or
Moving the position of the target information layer in the first screenshot image; and/or
And adjusting the size of the target information layer.
11. An electronic device comprising a processor, a memory and a program or instructions stored on the memory and executable on the processor, the program or instructions, when executed by the processor, implementing the steps of the method of processing a screenshot image according to any of claims 1-5.
CN202111062997.XA 2021-09-10 2021-09-10 Method and device for processing screen shot image and electronic equipment Pending CN113763512A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111062997.XA CN113763512A (en) 2021-09-10 2021-09-10 Method and device for processing screen shot image and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111062997.XA CN113763512A (en) 2021-09-10 2021-09-10 Method and device for processing screen shot image and electronic equipment

Publications (1)

Publication Number Publication Date
CN113763512A true CN113763512A (en) 2021-12-07

Family

ID=78794795

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111062997.XA Pending CN113763512A (en) 2021-09-10 2021-09-10 Method and device for processing screen shot image and electronic equipment

Country Status (1)

Country Link
CN (1) CN113763512A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114253449A (en) * 2021-12-09 2022-03-29 北京鸿合爱学教育科技有限公司 Screen capturing method, device, equipment and medium
CN114637563A (en) * 2022-03-08 2022-06-17 维沃移动通信有限公司 Information input method and device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106406690A (en) * 2016-08-25 2017-02-15 深圳市金立通信设备有限公司 Method and terminal for adjusting display through screenshot
CN106791022A (en) * 2016-11-30 2017-05-31 努比亚技术有限公司 A kind of mobile terminal and screenshot method
CN107678644A (en) * 2017-09-18 2018-02-09 维沃移动通信有限公司 A kind of image processing method and mobile terminal
CN108986009A (en) * 2018-06-11 2018-12-11 北京三快在线科技有限公司 Generation method, device and the electronic equipment of picture
CN111966259A (en) * 2020-08-31 2020-11-20 维沃移动通信有限公司 Screenshot method and device and electronic equipment
CN112181252A (en) * 2020-09-29 2021-01-05 维沃移动通信(杭州)有限公司 Screen capturing method and device and electronic equipment
CN112306590A (en) * 2019-07-30 2021-02-02 腾讯科技(深圳)有限公司 Screenshot generating method and related device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106406690A (en) * 2016-08-25 2017-02-15 深圳市金立通信设备有限公司 Method and terminal for adjusting display through screenshot
CN106791022A (en) * 2016-11-30 2017-05-31 努比亚技术有限公司 A kind of mobile terminal and screenshot method
CN107678644A (en) * 2017-09-18 2018-02-09 维沃移动通信有限公司 A kind of image processing method and mobile terminal
CN108986009A (en) * 2018-06-11 2018-12-11 北京三快在线科技有限公司 Generation method, device and the electronic equipment of picture
CN112306590A (en) * 2019-07-30 2021-02-02 腾讯科技(深圳)有限公司 Screenshot generating method and related device
CN111966259A (en) * 2020-08-31 2020-11-20 维沃移动通信有限公司 Screenshot method and device and electronic equipment
CN112181252A (en) * 2020-09-29 2021-01-05 维沃移动通信(杭州)有限公司 Screen capturing method and device and electronic equipment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114253449A (en) * 2021-12-09 2022-03-29 北京鸿合爱学教育科技有限公司 Screen capturing method, device, equipment and medium
CN114637563A (en) * 2022-03-08 2022-06-17 维沃移动通信有限公司 Information input method and device
CN114637563B (en) * 2022-03-08 2024-05-28 维沃移动通信有限公司 Information input method and device

Similar Documents

Publication Publication Date Title
CN111612873B (en) GIF picture generation method and device and electronic equipment
US20150277686A1 (en) Systems and Methods for the Real-Time Modification of Videos and Images Within a Social Network Format
CN112860163B (en) Image editing method and device
CN113763512A (en) Method and device for processing screen shot image and electronic equipment
CN111601012B (en) Image processing method and device and electronic equipment
CN112269522A (en) Image processing method, image processing device, electronic equipment and readable storage medium
CN112738403A (en) Photographing method, photographing apparatus, electronic device, and medium
CN112162803A (en) Message display method and device and electronic equipment
US20140181745A1 (en) Image capture
CN112929494B (en) Information processing method, information processing apparatus, information processing medium, and electronic device
CN111857474B (en) Application program control method and device and electronic equipment
CN112788178A (en) Message display method and device
WO2017193343A1 (en) Media file sharing method, media file sharing device and terminal
CN115037874A (en) Photographing method and device and electronic equipment
CN113779293A (en) Image downloading method, device, electronic equipment and medium
CN114245017A (en) Shooting method and device and electronic equipment
CN111639474A (en) Document style reconstruction method and device and electronic equipment
CN112288835A (en) Image text extraction method and device and electronic equipment
CN112256179A (en) Text processing method and device
CN112492206B (en) Image processing method and device and electronic equipment
CN113691856A (en) Bullet screen generation method and device, electronic equipment and readable storage medium
WO2024083017A1 (en) Content presentation method and apparatus, device, and storage medium
CN116761047A (en) Video processing method and device
CN112040054A (en) Image generation method and device and electronic equipment
CN116108299A (en) Display method, display device, electronic equipment and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination