CN111344735B - Picture editing method, mobile terminal and readable storage medium - Google Patents

Picture editing method, mobile terminal and readable storage medium Download PDF

Info

Publication number
CN111344735B
CN111344735B CN201780096734.6A CN201780096734A CN111344735B CN 111344735 B CN111344735 B CN 111344735B CN 201780096734 A CN201780096734 A CN 201780096734A CN 111344735 B CN111344735 B CN 111344735B
Authority
CN
China
Prior art keywords
editing
target
picture
user
module
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.)
Active
Application number
CN201780096734.6A
Other languages
Chinese (zh)
Other versions
CN111344735A (en
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.)
Shenzhen Transsion Communication Co Ltd
Original Assignee
Shenzhen Transsion 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 Shenzhen Transsion Communication Co Ltd filed Critical Shenzhen Transsion Communication Co Ltd
Publication of CN111344735A publication Critical patent/CN111344735A/en
Application granted granted Critical
Publication of CN111344735B publication Critical patent/CN111344735B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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

Abstract

Provided are a picture editing method, a mobile terminal, and a readable storage medium, the picture editing method including the steps of: acquiring an editing target and graphic elements of the editing target; matching the graphic elements in the picture to be edited according to the graphic elements of the editing target; and setting the graphic elements matched with the editing target as a target module, and editing and storing the target module. According to the invention, after the part of the picture which is required to be edited by the user is acquired through recognition, the part which is required to be edited is set as the target module, the target module is independent of the whole picture, the user can edit the target module independently, and after the editing is finished, the target module is stored, and the original content in the picture can be replaced by the target module after the storage, so that the purpose of accurately editing the part of the picture is achieved.

Description

Picture editing method, mobile terminal and readable storage medium
Technical Field
The present invention relates to the field of graphics processing, and in particular, to a method for editing a picture, a mobile terminal, and a readable storage medium.
Background
With the development of technology, the shooting function of the mobile terminal is also becoming more and more mature, and the shooting function of the mobile terminal is one of the functions most commonly used by users, so that in order to make the photo effect better, the mobile terminal can edit the picture, but the current picture editing method is aimed at editing the whole picture, and when the users want to perform editing actions such as brightness adjustment, a filter, graffiti on the part of the picture, the whole picture is affected to a certain extent, so that the whole effect of the picture is reduced. Therefore, how to edit the picture locally without affecting the whole picture is an urgent problem to be solved.
Disclosure of Invention
The invention mainly aims to provide a picture editing method, a mobile terminal and a readable storage medium, which aim to solve the problem that adverse effects on the whole picture are difficult to avoid when the picture is locally edited.
In order to achieve the above object, the present invention provides a picture editing method comprising the steps of:
acquiring an editing target and graphic elements of the editing target;
matching the graphic elements in the picture to be edited according to the graphic elements of the editing target;
and setting the graphic elements matched with the editing target as a target module, and editing and storing the target module.
Optionally, the step of acquiring the editing target and the graphic element of the editing target includes:
displaying a pre-stored editing target selection list, and acquiring an editing target and graphic elements of the editing target based on an operation instruction acquired by the editing target selection list.
Optionally, the step of acquiring the editing target and the graphic element of the editing target based on the operation instruction acquired by the editing target selection list includes:
if an input instruction is detected in the options of the edit target selection list, the options of the detected input instruction are used as edit targets;
if the user-defined input instruction is received, generating an editing target by user-defined input.
Optionally, the step of matching the graphic elements in the picture to be edited according to the graphic elements of the editing target includes:
comparing the graphic elements of the editing target with the graphic elements of the graphic elements in the picture to be edited to obtain the similarity of the graphic elements;
when the similarity is greater than or equal to a preset similarity threshold, the graphic element is judged to be the graphic element matched with the editing target, wherein the graphic element matched with the editing target is the similar object of the editing target.
Optionally, when the similarity is greater than or equal to a preset similarity threshold, the step of determining that the graphic element is a graphic element matched with the editing target, where the graphic element matched with the editing target is a similar object of the editing target includes:
if the similar articles are not detected, outputting first prompt information to prompt the user that the similar articles are not detected;
if the similar articles are detected, outputting second prompt information to display the detected similar articles.
Optionally, the step of outputting the second prompt message to display the detected similar article if the similar article is detected includes:
if the number of the similar articles is a plurality of, outputting prompt information of whether to carry out merging editing.
Optionally, the step of outputting the prompt information of whether to perform the merge editing if the number of the similar objects is a plurality of includes:
if an instruction for not carrying out combined editing is received, setting each similar article as an independent editing module so as to carry out independent editing;
and if the instruction for carrying out the merging editing is received, outputting a merging editing list, and taking the similar objects subjected to the merging editing as an editing module for editing.
Optionally, the step of editing and saving the target module includes:
detecting whether a save instruction is received;
if the storage instruction is received, replacing the original graphic element with the edited target module;
and if the save instruction is not received, recovering the target module into an original graphic element, wherein the original graphic element is the target module before editing.
In addition, to achieve the above object, the present invention also provides a mobile terminal including: the image editing device comprises a memory, a processor and an image editing program which is stored in the memory and can be run on the processor, wherein the image editing program realizes the steps of the image editing method when being executed by the processor.
In addition, to achieve the above object, the present invention also provides a computer-readable storage medium storing a picture editing program which, when executed by a processor, implements the steps of the picture editing method as described above.
According to the picture editing method, when a user edits a picture, the picture can be identified according to the editing target which the user wants to locally edit, the identified editing target is set as an independent target module, and then the target module is edited, so that adverse effects on the whole picture when the user locally edits the picture are avoided. The user can accurately edit the picture locally, the effect of the whole picture is not affected, and the operability and the use experience of the user are improved.
Drawings
FIG. 1 is a schematic diagram of a terminal/device structure of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating an embodiment of a method for editing pictures according to the present invention;
FIG. 3 is a detailed flowchart of step S10 in another embodiment of the picture editing method of the present invention;
FIG. 4 is a detailed flowchart of step S30 in a further embodiment of the picture editing method according to the present invention;
FIG. 5 is a schematic diagram of a scene of the picture editing method according to the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention. As shown in fig. 1, fig. 1 is a schematic diagram of a terminal structure of a hardware running environment according to an embodiment of the present invention.
The terminal of the embodiment of the invention can be a smart phone, or can be a mobile terminal device with a display function, such as a tablet personal computer, an electronic book reader, an MP3 (Moving Picture Experts Group Audio Layer III, dynamic image expert compression standard audio layer 3) player, an MP4 (Moving Picture Experts Group Audio Layer IV, dynamic image expert compression standard audio layer 3) player, a portable computer and the like.
As shown in fig. 1, the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display, an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may further include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
Optionally, the terminal may also include a camera, an RF (Radio Frequency) circuit, a sensor, an audio circuit, a WiFi module, and so on. Among other sensors, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display screen according to the brightness of ambient light, and a proximity sensor that may turn off the display screen and/or the backlight when the mobile terminal moves to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and the direction when the mobile terminal is stationary, and the mobile terminal can be used for recognizing the gesture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; of course, the mobile terminal may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, and the like, which are not described herein.
It will be appreciated by those skilled in the art that the terminal structure shown in fig. 1 is not limiting of the terminal and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
As shown in fig. 1, an operating system, a network communication module, a user interface module, and a picture editing program may be included in the memory 1005 as one type of computer storage medium.
In the terminal shown in fig. 1, the network interface 1004 is mainly used for connecting to a background server and performing data communication with the background server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be configured to call a picture editing program stored in the memory 1005 and perform the following operations:
acquiring an editing target and graphic elements of the editing target;
matching the graphic elements in the picture to be edited according to the graphic elements of the editing target;
and setting the graphic elements matched with the editing target as a target module, and editing and storing the target module.
Further, the processor 1001 may call a picture editing program stored in the memory 1005, and further perform the following operations:
displaying a pre-stored editing target selection list, and acquiring an editing target and graphic elements of the editing target based on an operation instruction acquired by the editing target selection list.
Further, the processor 1001 may call a picture editing program stored in the memory 1005, and further perform the following operations:
if an input instruction is detected in the options of the edit target selection list, the options of the detected input instruction are used as edit targets;
if the user-defined input instruction is received, generating an editing target by user-defined input.
Further, the processor 1001 may call a picture editing program stored in the memory 1005, and further perform the following operations:
comparing the graphic elements of the editing target with the graphic elements of the graphic elements in the picture to be edited to obtain the similarity of the graphic elements;
when the similarity is greater than or equal to a preset similarity threshold, the graphic element is judged to be the graphic element matched with the editing target, wherein the graphic element matched with the editing target is the similar object of the editing target.
Further, the processor 1001 may call a picture editing program stored in the memory 1005, and further perform the following operations:
if the similar articles are not detected, outputting first prompt information to prompt the user that the similar articles are not detected;
if the similar articles are detected, outputting second prompt information to display the detected similar articles.
Further, the processor 1001 may call a picture editing program stored in the memory 1005, and further perform the following operations:
if the number of the similar articles is a plurality of, outputting prompt information of whether to carry out merging editing.
Further, the processor 1001 may call a picture editing program stored in the memory 1005, and further perform the following operations:
if an instruction for not carrying out combined editing is received, setting each similar article as an independent editing module so as to carry out independent editing;
and if the instruction for carrying out the merging editing is received, outputting a merging editing list, and taking the similar objects subjected to the merging editing as an editing module for editing.
Further, the processor 1001 may call a picture editing program stored in the memory 1005, and further perform the following operations:
detecting whether a save instruction is received;
if the storage instruction is received, replacing the original graphic element with the edited target module;
and if the save instruction is not received, recovering the target module into an original graphic element, wherein the original graphic element is the target module before editing.
Referring to fig. 2, a first embodiment of the present invention provides a picture editing method including:
step S10, obtaining an editing target and graphic elements of the editing target;
step S20, matching the graphic elements in the picture to be edited according to the graphic elements of the editing target;
and step S30, the graphic elements matched with the editing target are set as target modules, and the target modules are edited and saved.
Specifically, firstly, according to the edit target obtained by selecting or custom selecting from the edit target column by a user, after the edit target is obtained, the graphic element corresponding to the stored edit target is obtained (for example, the stored edit target has an automobile, and the graphic element corresponding to the stored automobile) and whether the edit target exists in the picture can be detected through the graphic element of the edit target (for example, the edit target input by the user is the automobile, the graphic element of the vehicle, such as the shape, the outline, the color and the like of the vehicle, is firstly obtained), namely, whether the edit target exists in the picture to be edited is matched through the graphic element of the edit target, so that the edit module containing the edit target is obtained. The editing module is different from the picture to be edited, and an independent editing interface exists, so that a user can independently edit an editing target in the target module, and the rest part of the picture to be edited is not influenced, and the aim that the user wants to edit a certain characteristic module in the picture to be edited is fulfilled.
At present, the mobile terminal is used for photographing a part of daily life, and with the development of the mobile terminal, the requirement of a user cannot be met by photographing only, and the post-processing and editing of pictures become one of the standards of the mobile terminal. Whether the editing of the pictures is convenient enough or the functions are powerful becomes a reference factor for the user to select the mobile terminal.
The picture editing method can divide the area which the user wants to edit in a modular way when the user edits the picture, so that the user can edit a certain module of the picture to be edited without influencing the rest of the picture, the user can edit details of some parts in detail and comprehensively in a personalized way when the user edits the picture, and the other parts of the picture are not required to be affected by the adverse effects of the editing, such as editing operations of adjusting brightness, scrawling in a large range and the like, which are very easy to edit the rest of the picture by mistake.
For example, the user has a picture with a person, a tree, two vehicles, and a background, and the user wants to edit the vehicles in the picture. If the editing function in the existing mobile terminal is used, the user can only edit the whole picture, and edit the person in the process of editing the whole picture, but in the process, the user can easily cause adverse effects such as some damages to other parts of the picture, for example, the user wants to doodle the person, and the editing in the form of doodling is difficult to carefully control the editing area, so that the other parts of the picture are also influenced when the doodling is very easy to cause, the whole effect of the picture is damaged, and the use experience of the user is very low. (A scene is shown in FIG. 5, wherein C1 is a tree in the picture to be edited, B1 is a person in the picture to be edited, A1 and A2 are two vehicles in the picture to be edited respectively. A is a pre-stored vehicle for matching the vehicles in the picture).
When a user wants to edit a picture, firstly, an edit target selected by the user in an edit target selection list or a user-defined input is obtained, and graphic elements of the edit target pre-stored corresponding to the edit target are obtained. According to the characteristics of the obtained editing target graphic elements, matching is carried out on the target module in the picture to be edited, when the similarity between the picture to be edited and the pre-stored editing target is greater than or equal to the minimum, the part of the graphic in the picture to be edited and the editing target can be judged to be similar objects, the similar objects are set as independent target modules (namely, independent of a new picture editing window of the picture to be edited), a user can independently edit the target modules in the target modules, after the editing of the target modules is completed, the content of the picture of the target modules is replaced with the target modules in the picture to be edited, and therefore independent editing of the target modules is achieved, and other contents of the picture to be edited cannot be affected by the editing.
By matching and independently editing the target module, a user can realize partial depth editing (such as graffiti) of the picture, and when the original editing method is used for performing the depth editing on the picture, the user worries that the picture to be edited is damaged due to some depth editing (such as changing the ground color, changing the brightness, performing the graffiti, and the like), so that the rest of the content in the picture is damaged, and the picture is limited when the picture is edited. Therefore, a satisfactory editing effect cannot be achieved, so that when a user wants to edit a target module of a broadaxe of a broadsword, other contents in the picture are influenced; if other contents of the picture are not affected, the target module cannot be edited in advance.
By the picture editing method, after a user inputs a target to be edited, the editing module is proposed, after the user independently edits the target module, the edited target module is replaced by the target module in the picture to be edited, the user can edit the target module without any trouble, usability of a picture editing function is improved, and user experience is improved.
Further, as shown in fig. 3, in step S10, the step of acquiring the editing target and the graphic element of the editing target includes:
step S11, displaying a pre-stored editing target selection list, and acquiring an editing target and graphic elements of the editing target based on an operation instruction acquired by the editing target selection list.
Specifically, a preset editing target is stored in the mobile terminal, a user can select a common editing target through an editing target selection list, and after the user selects the editing target, the editing target selected by the user and a graphic element corresponding to the editing target are obtained.
According to the picture editing method, the editing target which the user wants to edit is preferably acquired, and the editing target is also part of the picture to be edited. How to acquire the editing target from the picture to be edited requires that the graphic elements of the editing target be matched, and what the target module is required to be known first if the graphic elements of the target module are known. The mobile terminal stores some common editing targets for users to select when editing pictures (articles with higher frequency in daily life, such as clothes, bags, vehicles, buildings and the like), and stores graphic elements of the editing targets at the same time, so that the graphic elements corresponding to the editing targets can be quickly obtained as long as the editing targets of the users are obtained.
Specifically, after a user selects a picture to be edited, the mobile terminal prompts the user to select an editing target and displays a stored editing target selection list, so that the user can conveniently select the editing target in the editing target selection list. After the user selects the editing target in a clicking mode, the editing target selected by the user is obtained, and the corresponding pre-stored graphic elements are obtained, so that whether the editing target exists in the picture can be identified through the characteristics later. The editing target stored in the mobile terminal is displayed to the user for the user to select, so that the editing target of the user and the graphic elements thereof are rapidly obtained.
Further, in step S11, the step of acquiring the editing target and the graphic element of the editing target based on the operation instruction acquired by the editing target selection list includes:
step S111, if an input instruction is detected in the options of the edit target selection list, the options of the detected input instruction are used as edit targets;
step S112, if a custom input instruction is received, generating an editing target by custom input.
Specifically, an input instruction in the editing target selection list is acquired, and an editing target selected by a user is acquired. Or acquiring an editing target selected by a user through user-defined input.
Some items with high frequency of occurrence or use in daily life are stored in the editing target selection list in the mobile terminal, and basically can cover the use requirement of a general user, but few users cannot select editing targets (such as some very-used items or irregular items) from the editing target selection list. Thus, in addition to selection in the edit list, a user-defined selection can be made by the user to obtain an editing target. The user-defined selection is that the user directly selects the editing target in the picture to be edited (for example, the user defines an area in the picture to be edited, and the area is used as a target module). The editing target selection list provides a mode of selecting and self-defining to acquire the editing targets, so that the problem of selecting the editing targets by most users can be solved, and graphic elements corresponding to the editing targets can be acquired.
Further, the step S20 of matching the graphic elements in the picture to be edited according to the graphic elements of the editing target includes:
comparing the graphic elements of the editing target with the graphic elements of the graphic elements in the picture to be edited to obtain the similarity of the graphic elements;
when the similarity is greater than or equal to a preset similarity threshold, the graphic element is judged to be the graphic element matched with the editing target, wherein the graphic element matched with the editing target is the similar object of the editing target.
Specifically, after the editing target is obtained, the characteristics of the editing target are obtained according to the editing target, the characteristics are compared with the graphics in the picture to be edited in similarity, and whether the graphics are similar to the editing target or not is judged according to the comparison result.
After the graphic elements of the editing target are obtained (only the editing target is selected through the editing target selection list, and the custom selection is that the custom region is directly set as the target module, so that identification is not needed), and the feature of each graphic in the picture to be edited is compared with the feature of the editing target. The similarity is a reference value for measuring the same degree of the two pictures, and the similarity of the two pictures can be obtained by comparing the texture, the outline, the color and other information of the two pictures. Since the similarity of similar objects is often far greater than that of non-similar objects (for example, the similarity of similar objects is generally greater than or equal to 60%, and the similarity of non-similar objects is generally less than 60%), after the numerical value of the similarity is obtained, whether the similar objects are similar objects can be judged, if the similar objects are similar objects, the similar images with the editing target are judged to exist in the image to be edited.
Further, when the similarity is greater than or equal to a preset similarity threshold, determining that the graphic element is a graphic element matched with the editing target, wherein the step of determining that the graphic element matched with the editing target is a similar object of the editing target includes:
if the similar articles are not detected, outputting first prompt information to prompt the user that the similar articles are not detected;
if the similar articles are detected, outputting second prompt information to display the detected similar articles.
Specifically, different prompts are given to the user according to the number of the similar articles. If the similar objects are not detected (the objects to be edited are not edited in the pictures to be edited or the similarity is too low to be recognized), outputting prompt information, popping up a prompt interface, informing the user that the similar objects are not detected in the pictures to be edited, and inquiring whether the user selects the editing objects again or not. If the similar articles are identified, indicating that the editing targets exist in the pictures, and displaying the detected similar articles for the user to check.
After the identification is finished, if the similar objects are not identified, prompting the user, wherein the user can select to replace the pictures for re-editing, or the system can not effectively identify the similar objects in the pictures for various reasons, and the user can also change the selection mode (changing into a custom selection editing target) to select the editing target for editing the pictures. If the matching result is that similar articles exist, the similar articles in the picture to be edited are listed and displayed, and the matching result can be confirmed. According to the matching result, the prompt of the user and the processing of the picture are different, so that the method is more humanized and the operation is simpler and more convenient.
Further, if the similar article is detected, outputting a second prompt message to display the detected similar article, which comprises the following steps:
if the number of the similar articles is a plurality of, outputting prompt information of whether to carry out merging editing.
Specifically, according to the number of similar articles, different treatments are performed, and if only one target module exists, no special treatment exists. If the target modules are multiple, prompting the user whether to combine and edit the similar objects obtained by matching.
According to the different quantity of the similar objects in the picture, the processing modes edited by the user are also different. Because the target modules of the same type may have conditions of association or very close positions, the user needs to perform merge editing on multiple target modules (merge editing is to merge multiple similar objects into one similar object, and use one editing interface together), for example, in the process of editing pictures, the user may need to perform merge editing on the people of the group photo. The combined editing can greatly improve the editing efficiency of the user (for example, the number of people in a picture can reach more than tens of hundred people after taking a graduation picture, the editing efficiency is quite low if the user performs independent editing at the moment, the combined editing can rapidly perform unified editing on the same kind with the same editing purpose, the efficiency can be improved, the editing effect is consistent), meanwhile, the editing effect can be unified, and the user can perform efficient editing on a plurality of target modules without requiring high professional editing skills.
Further, if the number of the similar articles is plural, the step of outputting the prompt information of whether to perform the merge editing includes:
if an instruction for not carrying out combined editing is received, setting each similar article as an independent editing module so as to carry out independent editing;
and if the instruction for carrying out the merging editing is received, outputting a merging editing list, and taking the similar objects subjected to the merging editing as an editing module for editing.
Specifically, according to the received individual editing instruction or combined editing instruction, the target module is set as a corresponding individual or whole.
According to the quantity of the similar articles and the actual demand of the user for the picture editing, the similar articles can be combined, after receiving the instruction of combining and editing, the similar article list is displayed, the user selects the similar articles which are required to be combined in the list, after receiving the similar articles which are required to be combined and edited by the user, the similar articles are combined, and in the subsequent editing process, the combined similar articles are an editing similar article unit, and meanwhile, an editing window is shared. For example, like articles with 5 characters in one picture are A, B, C, D and E respectively, when the user edits the picture, the user wants to edit A separately, and B and C edit in a merging way, and D and E edit in a merging way. And after detecting that the like articles are multiple, prompting a user whether to carry out merging editing, after the user can select to carry out merging editing, selecting B and C from the like article list to carry out merging, and D and E are combined, and then merging the like articles selected to carry out merging editing (firstly selecting B and C to carry out merging editing and then selecting D and E to carry out merging editing).
Through the function of merging and editing, when a user edits a plurality of similar articles, the overall editing efficiency can be effectively improved, the merged similar articles can be flexibly selected, the use difficulty is reduced, and the use experience of the user is improved.
Further, as shown in fig. 4, in step S30, the step of setting the graphic element matching the editing target as the target module, and editing and saving the target module includes:
step S31, detecting whether a save instruction is received;
step S32, if a storage instruction is received, replacing the original graphic element with the edited target module;
if the save instruction is not received in step S33, the target module is restored to the original graphic element, where the original graphic element is the target module before editing.
Specifically, after the user completes editing the target module, whether to save the target module can be selected, and if the target module is saved, the target module is replaced with the editing target in the picture to be edited. If the target module is not saved, the editing target in the picture to be edited is unchanged.
After the editing is completed, the user can consider whether to save the edited target module according to the factors such as the final editing effect and the like. If the user selects to save the target module, the edited target module replaces the original image in the picture to be edited to form an edited picture. If the user does not save, the picture to be edited does not change.
By selecting whether to store the target module with enough editing, the user can flexibly select according to the editing effect, so that premature modification of the picture to be edited by the editing action of the target module is avoided, the original image of the picture to be edited is stored, the operation is more flexible and possible for the user, the use difficulty is effectively reduced, and the user use experience is improved.
The invention also provides a mobile terminal with the picture editing method.
The mobile terminal based on the picture editing method comprises the following steps: the image editing device comprises a memory, a processor and an image editing program which is stored in the memory and can be run on the processor, wherein the image editing program realizes the image editing method steps when being executed by the processor.
The method implemented when the picture editing program running on the processor is executed may refer to various embodiments of the picture editing method of the present invention, which are not described herein.
In addition, the embodiment of the invention also provides a computer readable storage medium.
The computer-readable storage medium of the present invention has stored thereon a picture editing program which, when executed by a processor, implements the steps of the picture editing method as described above.
The method implemented when the picture editing program running on the processor is executed may refer to various embodiments of the picture editing method of the present invention, which are not described herein.
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 system 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 system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as described above, comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (8)

1. A picture editing method, characterized in that the picture editing method comprises the steps of:
obtaining an editing target according to the selection or the custom selection of the user in the editing target selection list;
acquiring the graphic elements of the editing target;
comparing the graphic elements of the editing target with the graphic elements of the graphic elements in the picture to be edited to obtain the similarity of the graphic elements;
when the similarity is greater than or equal to a preset similarity critical value, judging the graphic element as the graphic element matched with the editing target, wherein the graphic element matched with the editing target is a similar object of the editing target;
if the similar articles are not detected, outputting first prompt information to prompt the user that the similar articles are not detected; and/or if the similar articles are detected, outputting second prompt information to display the detected similar articles;
the method comprises the steps that graphic elements matched with an editing target are set as a target module, the target module comprises the editing target, and a separate editing interface exists in the target module, so that a user can independently edit the editing target in the target module to realize local editing;
editing and storing the target module.
2. The picture editing method according to claim 1, wherein the step of acquiring the editing target and graphic elements of the editing target includes:
displaying a pre-stored editing target selection list, and acquiring an editing target and graphic elements of the editing target based on an operation instruction acquired by the editing target selection list.
3. The picture editing method as claimed in claim 2, wherein the step of acquiring the editing target and the graphic element of the editing target based on the operation instruction acquired by the editing target selection list comprises:
if an input instruction is detected in the options of the edit target selection list, the options of the detected input instruction are used as edit targets;
and/or if the custom input instruction is received, generating an editing target by custom input.
4. The picture editing method as claimed in claim 1, wherein the step of outputting a second prompt message to display the detected like items if the like items are detected comprises:
if the number of the similar articles is a plurality of, outputting prompt information of whether to carry out merging editing.
5. The picture editing method as claimed in claim 4, wherein the step of outputting the prompt information of whether to perform the merge editing if the number of the like articles is plural comprises:
if an instruction for not carrying out combined editing is received, setting each similar article as an independent editing module so as to carry out independent editing;
and/or if the instruction for carrying out the merging editing is received, outputting a merging editing list, and editing the similar objects which are merged and edited as an editing module.
6. A picture editing method according to any one of claims 1 to 3, wherein the step of setting a graphic element matching the editing target as a target module, and editing and saving the target module comprises:
detecting whether a save instruction is received;
if the storage instruction is received, replacing the original graphic element with the edited target module;
and/or if the save instruction is not received, restoring the target module to the original graphic element, wherein the original graphic element is the target module before editing.
7. A mobile terminal, the mobile terminal comprising: memory, a processor and a picture editing program stored on the memory and executable on the processor, which when executed by the processor implements the steps of the picture editing method according to any of claims 1 to 6.
8. A computer-readable storage medium, on which a picture editing program is stored, which when executed by a processor implements the steps of the picture editing method according to any of claims 1 to 6.
CN201780096734.6A 2017-09-13 2017-09-13 Picture editing method, mobile terminal and readable storage medium Active CN111344735B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/101630 WO2019051684A1 (en) 2017-09-13 2017-09-13 Picture editing method, mobile terminal, and readable storage medium

Publications (2)

Publication Number Publication Date
CN111344735A CN111344735A (en) 2020-06-26
CN111344735B true CN111344735B (en) 2023-08-08

Family

ID=65722201

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201780096734.6A Active CN111344735B (en) 2017-09-13 2017-09-13 Picture editing method, mobile terminal and readable storage medium

Country Status (2)

Country Link
CN (1) CN111344735B (en)
WO (1) WO2019051684A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112750181A (en) * 2021-01-22 2021-05-04 珠海优特电力科技股份有限公司 Graphic processing method and device, storage medium and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104951749A (en) * 2015-05-12 2015-09-30 三星电子(中国)研发中心 Image content recognition device and image content recognition method
CN105096363A (en) * 2015-06-30 2015-11-25 北京金山安全软件有限公司 Picture editing method and picture editing device
CN105139357A (en) * 2015-08-26 2015-12-09 深圳市金立通信设备有限公司 Image editing method and terminal
CN106339694A (en) * 2016-09-14 2017-01-18 北京金山安全软件有限公司 Image processing method and device and electronic equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101622316B1 (en) * 2015-03-13 2016-05-19 서울대학교산학협력단 System and method for providing video
CN105204850B (en) * 2015-08-31 2019-05-17 深圳市金立通信设备有限公司 A kind of image processing method and terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104951749A (en) * 2015-05-12 2015-09-30 三星电子(中国)研发中心 Image content recognition device and image content recognition method
CN105096363A (en) * 2015-06-30 2015-11-25 北京金山安全软件有限公司 Picture editing method and picture editing device
CN105139357A (en) * 2015-08-26 2015-12-09 深圳市金立通信设备有限公司 Image editing method and terminal
CN106339694A (en) * 2016-09-14 2017-01-18 北京金山安全软件有限公司 Image processing method and device and electronic equipment

Also Published As

Publication number Publication date
WO2019051684A1 (en) 2019-03-21
CN111344735A (en) 2020-06-26

Similar Documents

Publication Publication Date Title
US11631275B2 (en) Image processing method and apparatus, terminal, and computer-readable storage medium
KR102558166B1 (en) Electronic device for adjusting an image including a plurality of objects and method for controlling thereof
CN107330859B (en) Image processing method and device, storage medium and terminal
CN110572706B (en) Video screenshot method, terminal and computer-readable storage medium
CN109495616B (en) Photographing method and terminal equipment
EP4273745A1 (en) Gesture recognition method and apparatus, electronic device, readable storage medium, and chip
CN109246474B (en) Video file editing method and mobile terminal
US20230245441A9 (en) Image detection method and apparatus, and electronic device
CN111213363A (en) Terminal photographing control method, mobile terminal and readable storage medium
CN109104578B (en) Image processing method and mobile terminal
CN107292817B (en) Image processing method, device, storage medium and terminal
CN110246110B (en) Image evaluation method, device and storage medium
CN108683845A (en) Image processing method, device, storage medium and mobile terminal
CN111353946B (en) Image restoration method, device, equipment and storage medium
CN111064888A (en) Prompting method and electronic equipment
CN111344735B (en) Picture editing method, mobile terminal and readable storage medium
CN110097570B (en) Image processing method and device
CN112437231A (en) Image shooting method and device, electronic equipment and storage medium
CN111147790A (en) Auxiliary function starting method, mobile terminal and computer readable storage medium
CN115423680A (en) Face makeup migration method, device and computer-readable storage medium
WO2015039567A1 (en) Method and user apparatus for window coloring
CN108829600B (en) Method and device for testing algorithm library, storage medium and electronic equipment
CN113870195A (en) Target map detection model training and map detection method and device
CN110012225B (en) Image processing method and device and mobile terminal
CN107194363B (en) Image saturation processing method and device, storage medium and computer equipment

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
GR01 Patent grant
GR01 Patent grant