CN109089042B - Image processing mode identification method and device, storage medium and mobile terminal - Google Patents

Image processing mode identification method and device, storage medium and mobile terminal Download PDF

Info

Publication number
CN109089042B
CN109089042B CN201811006136.8A CN201811006136A CN109089042B CN 109089042 B CN109089042 B CN 109089042B CN 201811006136 A CN201811006136 A CN 201811006136A CN 109089042 B CN109089042 B CN 109089042B
Authority
CN
China
Prior art keywords
image
image processing
target image
processing mode
target
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
CN201811006136.8A
Other languages
Chinese (zh)
Other versions
CN109089042A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201811006136.8A priority Critical patent/CN109089042B/en
Publication of CN109089042A publication Critical patent/CN109089042A/en
Application granted granted Critical
Publication of CN109089042B publication Critical patent/CN109089042B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • H04M1/72439User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for image or video messaging

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the application discloses an image processing mode identification method and device, a storage medium and a mobile terminal. The method comprises the following steps: the method comprises the steps of obtaining a post-processed target image, analyzing a candidate image processing mode corresponding to the target image, conducting reverse processing on the target image according to the analyzed candidate image processing mode to restore the target image to obtain a restored image, and determining the candidate image processing mode as the target image processing mode corresponding to the target image when the restoration degree corresponding to the restored image meets a preset requirement. By adopting the technical scheme, the embodiment of the application can utilize the mobile terminal to automatically identify the processing mode of the processed image, and when the user sees the favorite post-processing image, the mobile terminal can be utilized to identify the image processing mode, so that the functions of the mobile terminal are enriched, and the intelligent degree of the mobile terminal is improved.

Description

Image processing mode identification method and device, storage medium and mobile terminal
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to an image processing mode identification method, an image processing mode identification device, a storage medium and a mobile terminal.
Background
At present, the photographing function has become a standard configuration of most mobile terminals, and a terminal user can record the good moment around the user at any time through the portable mobile terminal.
With the rapid development of the intellectualization of the mobile terminal, the mobile terminal has an image processing function under the photographing function, and can help a user to easily and rapidly photograph a post-processed photo. However, as the image processing functions become more abundant, the image processing methods become more diversified, but the image processing functions of the mobile terminal are still not perfect, and improvement is needed.
Disclosure of Invention
The embodiment of the application provides an image processing mode identification method, an image processing mode identification device, a storage medium and a mobile terminal, which can identify a processing mode of a processed image.
In a first aspect, an embodiment of the present application provides an image processing method, including:
acquiring a post-processed target image;
analyzing a candidate image processing mode corresponding to the target image;
performing reverse processing on the target image according to the analyzed candidate image processing mode to restore the target image to obtain a restored image;
and when the restoration degree corresponding to the restored image meets a preset requirement, determining the candidate image processing mode as a target image processing mode corresponding to the target image.
In a second aspect, an embodiment of the present application provides an image processing method recognition apparatus, including:
the target image acquisition module is used for acquiring a post-processed target image;
the processing mode analysis module is used for analyzing a candidate image processing mode corresponding to the target image;
the reverse processing module is used for performing reverse processing on the target image according to the analyzed candidate image processing mode so as to restore the target image to obtain a restored image;
and the target mode determining module is used for determining the candidate image processing mode as the target image processing mode corresponding to the target image when the reduction degree corresponding to the reduced image meets the preset requirement.
In a third aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements an image processing manner identification method according to an embodiment of the present application.
In a fourth aspect, an embodiment of the present application provides a mobile terminal, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the computer program to implement the image processing manner identification method according to the embodiment of the present application.
According to the image processing mode identification scheme provided by the embodiment of the application, the post-processed target image is obtained, the candidate image processing mode corresponding to the target image is analyzed, the target image is reversely processed according to the analyzed candidate image processing mode so as to restore the target image, the restored image is obtained, and when the restoration degree corresponding to the restored image meets the preset requirement, the candidate image processing mode is determined as the target image processing mode corresponding to the target image. Through adopting above-mentioned technical scheme, can utilize mobile terminal to carry out the discernment of processing mode to the image after handling automatically, when the user sees the post-processing image that oneself likes, can utilize mobile terminal to discern the image processing mode that its adopted, richen mobile terminal's function, promote mobile terminal's intelligent degree.
Drawings
Fig. 1 is a schematic flowchart of an image processing method identification method according to an embodiment of the present application;
fig. 2 is a schematic flowchart of another image processing method identification method according to an embodiment of the present application;
fig. 3 is a schematic flowchart of another image processing method identification method according to an embodiment of the present application;
fig. 4 is a block diagram of an image processing method identification apparatus according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of another mobile terminal according to an embodiment of the present application.
Detailed Description
The technical scheme of the application is further explained by the specific implementation mode in combination with the attached drawings. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting of the application. It should be further noted that, for the convenience of description, only some of the structures related to the present application are shown in the drawings, not all of the structures.
Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the steps as a sequential process, many of the steps can be performed in parallel, concurrently or simultaneously. In addition, the order of the steps may be rearranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Fig. 1 is a flowchart illustrating an image processing method according to an embodiment of the present disclosure, where the method may be performed by an image processing method identification apparatus, where the apparatus may be implemented by software and/or hardware, and may be generally integrated in a mobile terminal. As shown in fig. 1, the method includes:
and 101, acquiring a post-processed target image.
For example, the mobile terminal in the embodiment of the present application may include mobile devices such as a mobile phone, a tablet computer, an electronic album, and a multimedia player.
At present, a mobile terminal generally has a photographing function, a camera arranged in the mobile terminal can truly record characters or scenery and the like in real life, real photos often have some flaws, such as whelk growing on the face of a character, dark shooting environment light, or advertisements attached to a building, and the like, and many factors can cause that the photographed photos are not beautiful enough and cannot meet aesthetic requirements of users. Therefore, many users desire some beautification processing to the real photo to remove or weaken the effect of real defects, and these beautification processing operations may be referred to as post-processing, or simply post-processing.
In the embodiment of the present application, the specific source of the post-processed target image is not limited, and may be generally selected by a user. For example, a user may select an image subjected to post-processing from an album as a target image, the user may select a beautified photo shared by a friend from a social application program such as a WeChat or a microblog as the target image, and the user may download the image from a network as the target image. The user can determine whether an image has been post-processed based on his or her own experience.
And 102, analyzing a candidate image processing mode corresponding to the target image.
The embodiment of the present application does not limit the specific analysis method. The purpose of the analysis is to preliminarily infer which image processing manner or manners the target image may be obtained from the original image. The candidate image processing mode may be one or more.
For example, the image processing method in the embodiment of the present application may include the image processing algorithm, and the image processing algorithm may include, for example, a skin-polishing algorithm, a skin-whitening algorithm, a face-thinning algorithm, a bright-eye algorithm, an anti-acne algorithm, a wrinkle-removing algorithm, a filter algorithm, a makeup algorithm, a hair style-changing algorithm, a mosaic algorithm, a light-filling algorithm, a contrast algorithm, a saturation algorithm, a sharpening algorithm, a background blurring algorithm, a high-dynamic-range image algorithm, and the like. In addition, for different image processing algorithms, there may be different calling modes, such as an object acted by the algorithm (e.g., a certain object or a certain position in the image), parameter adjustment in the algorithm (e.g., buffing strength or level of the buffing algorithm), and the like. In addition, the call to the image processing algorithm package may be a call to the image processing algorithm package, and different image processing algorithm packages may have different calling modes. In the embodiment of the application, all image processing algorithms can be independently packaged and then stored in the preset storage unit in the form of algorithm packages, and each algorithm package corresponds to one calling mode, so that the change of one image processing algorithm does not affect program codes of other image processing algorithms, and the stability of the system is improved. When at least two image processing algorithms are involved in the image processing method, different calling orders of the algorithms may form different final images. Optionally, the image processing manner includes the image processing algorithm, and an algorithm calling manner and/or an algorithm calling sequence. The candidate image processing mode can be understood as an image processing algorithm related to the analyzed target image, and an algorithm calling mode and/or an algorithm calling sequence.
And 103, performing reverse processing on the target image according to the analyzed candidate image processing mode to restore the target image to obtain a restored image.
In the embodiment of the present application, it is analyzed that the target image is obtained by the corresponding original image through the action of the candidate image processing manner, and then the reverse processing may be understood as eliminating the action effect of the candidate image processing manner by using an image processing manner with an effect opposite to that of the candidate image processing manner, so as to try to restore the target image back to the original image. However, since the candidate image processing method is obtained by analysis and is not necessarily accurate, the image obtained by performing the reverse processing on the target image is different from the original image, and is referred to as a restored image for distinction.
For example, assuming that the original image is a and the target image is B, it is analyzed that a may be processed by the candidate image processing method to obtain B. The candidate image processing method may be, for example, sequentially calling a whitening algorithm to perform whitening at a second level (generally, the higher the level is, the whiter the original image), calling a face-thinning algorithm to perform face-thinning at a first level (generally, the higher the level is, the thinner the face is compared with the original image), and calling a background blurring algorithm to perform background blurring at a third level (generally, the higher the level is, the larger the background blurring area is and/or the higher the blurring degree is compared with the original image). Then, when performing the inverse processing on B according to the candidate image processing manner, background blurring may be eliminated for the third level degree by using a sharpening processing or pixel filling manner, a face-thinning algorithm is invoked to perform negative face-thinning of the first level degree (for example, if a value of a parameter involved in the first level degree is 5, a value of the parameter in the negative first level degree is-5), and finally, a whitening algorithm is invoked to perform negative whitening of the second level degree (for example, if the skin color is brightened by 50 in the second level degree, the skin color is shaded by 50 in the negative second level), and the like.
Optionally, when the candidate image processing modes include at least two types, for each candidate image processing mode, performing reverse processing on the target image according to the current candidate image processing mode to restore the target image, so as to obtain a current restored image. That is, the number of the obtained restored images is at least two, and each candidate image processing method corresponds to one restored image.
And 104, when the restoration degree corresponding to the restored image meets a preset requirement, determining the candidate image processing mode as a target image processing mode corresponding to the target image.
In the embodiment of the present application, the preset requirement for the restoration degree may be determined by the mobile terminal itself, or may be determined by the user. For example, the mobile terminal may evaluate the authenticity of the restored image, and when the authenticity is greater than a preset authenticity threshold, the restoration degree is considered to meet a preset requirement. When the authenticity is evaluated, the real image of a person, a scene or an object contained in the target image can be referred to, the real image can be obtained from the mobile terminal locally or from the network, then the difference between the image and the real image is compared and restored, and the difference is less and the authenticity is higher. For example, the restored image may be displayed to a user, the user determines whether the restoration degree meets an internal requirement according to the subjective impression, if so, the user feeds back to the mobile terminal (for example, clicking an option indicating that the restoration is successful), and after receiving the feedback that the restoration is successful, the mobile terminal may determine that the restoration degree corresponding to the restored image meets a preset requirement.
Optionally, when there are at least two restored images, the restoration degrees corresponding to the at least two restored images may be compared, and the restored image with the highest restoration degree is determined to be the restored image meeting the preset requirement.
The image processing method provided in the embodiment of the application obtains a post-processed target image, analyzes a candidate image processing mode corresponding to the target image, performs reverse processing on the target image according to the analyzed candidate image processing mode to restore the target image to obtain a restored image, and determines the candidate image processing mode as the target image processing mode corresponding to the target image when the restoration degree corresponding to the restored image meets a preset requirement. Through adopting above-mentioned technical scheme, can utilize mobile terminal to carry out the discernment of processing mode to the image after handling automatically, when the user sees the post-processing image that oneself likes, can utilize mobile terminal to discern the image processing mode that its adopted, richen mobile terminal's function, promote mobile terminal's intelligent degree.
In some embodiments, the analyzing the candidate image processing manner corresponding to the target image includes: identifying a target processing object contained in the target image; acquiring a historical real image corresponding to the target processing object; and comparing the target image with the historical real image, and analyzing a candidate image processing mode corresponding to the target image according to a comparison result. The advantage of this is that the candidate image processing modes can be analyzed more accurately. Wherein, the target processing objects can be one or at least two. For example, the subject may be determined according to the area ratio of the subject in the target image and/or a preset composition rule, the subject may be determined as a target processing object, and the preset composition rule may be determined according to a composition skill common in the field of photography. For example, if the target image includes 3 persons, one of the persons has a complete face and occupies half of the area of the target image and is located at the center of the target image, the person can be determined as the target processing object. After the target processing object is determined, image recognition can be carried out on the target processing object, a specific person or object is recognized, and a historical real image of the person or object (called the target object for short) with the identity consistent with that of the target processing object is searched locally or through a network in the mobile terminal. The history real image may be an image which is photographed once and contains the target object and is not subjected to post-processing. By comparing the target image with the corresponding historical real image, which positions of the original image are likely to pass through which image processing modes to obtain the target image can be analyzed according to the comparison result.
In some embodiments, the analyzing the candidate image processing manner corresponding to the target image includes: acquiring shooting information corresponding to the target image; the shooting information comprises at least one of shooting parameters, shooting time, shooting place and shooting environment; and analyzing the target image by using the shooting information to obtain a candidate image processing mode corresponding to the target image. The advantage of this arrangement is that the candidate image processing mode can be analyzed more accurately with reference to the real shooting information of the target image. For a photo taken by the mobile terminal itself, the mobile terminal usually records shooting parameters (such as exposure time, white balance, etc.) corresponding to the photo, shooting time (which may be precise date and time, or approximate time period of day or night, etc.), shooting location and shooting environment (such as ambient light brightness, weather conditions, etc.), and when the target image is a shot photo obtained from an album of the mobile terminal, the mobile terminal can locally read the corresponding shooting information. Generally, images distributed by friends on the network are distributed while sharing shooting parameters, shooting time, shooting location, and the like, and a corresponding shooting environment and the like can be determined according to the shooting time, the shooting location, weather records on the network, and the like. By referring to the shooting information, whether the scenery or the scene contained in the target image is real or not can be estimated, and if the scenery or the scene is not real, the effect of the target image can be achieved through which image processing modes can be analyzed. For example, the shooting environment displayed in the target image is a cloudy day, the shooting time can be determined to be a sunny day according to the shooting time and the shooting location in combination with the corresponding weather history, the effect of the cloudy day can be analyzed to be obtained through image processing, and then the image processing mode corresponding to the effect of the cloudy day can be determined to be a candidate image processing mode.
In some embodiments, the candidate image processing modes may also be determined by combining the above two modes. Illustratively, the analyzing the candidate image processing mode corresponding to the target image includes: identifying a target processing object contained in the target image, acquiring a historical real image corresponding to the target processing object, acquiring shooting information corresponding to the target image, comparing the target image with the historical real image, and analyzing a candidate processing mode corresponding to the target image according to a comparison result and the shooting information. The advantage of setting up like this is, synthesize and consider multiple factor, can analyze out the candidate image processing mode more accurately.
In some embodiments, when the restoration degree corresponding to the restored image meets a preset requirement, determining the candidate image processing manner as a target image processing manner corresponding to the target image includes: displaying the restored image; and when a restoration success confirmation instruction is received, determining that the restoration degree corresponding to the restored image meets a preset requirement, and determining the candidate image processing mode as a target image processing mode corresponding to the target image. The advantage of this setting is that can confirm by the user according to subjective impression whether the reduction degree satisfies the requirement of inner heart, more conforms to user's demand. In addition, the user may be familiar with the characters or scenes contained in the target image, whether the reduction degree meets the requirement can be quickly confirmed, the judging steps of the mobile terminal are saved, and the power consumption of the mobile terminal can be reduced.
In some embodiments, the obtaining a post-processed target image comprises: and acquiring an image published by the contact from the social application program as an acquired post-processed target image. The advantage of this arrangement is that it is suitable for the user's usual usage scenario. Generally, contacts in social application programs are people with which users are familiar, portrait beautification is one of the most common post-processing, many users like to beautify their photos and then publish the photos to share with friends, when the users see the photos shared by the friends, if the users like the beautification mode of the photos of the friends, the photos of the friends can be selected as target images, and the image processing mode adopted by the friends is analyzed by using a mobile terminal, so that the subsequent use is facilitated.
In some embodiments, after determining the candidate image processing manner as the target image processing manner corresponding to the target image, the method further includes: acquiring an image to be processed, and post-processing the image to be processed by using the target image processing mode; or, the target image processing mode is saved as an image processing template; or sharing the target image processing mode through a network. The method has the advantages that after the target image processing mode is determined, the same post-processing can be carried out on other images by using the target image processing mode, the beautifying effect corresponding to the target image is achieved simply and quickly, and the user requirements are met. The user can directly use the target image processing mode to carry out post-processing on the selected image to be processed, and the target image processing mode can be stored as a template and even shared by other people, so that the target image processing mode can be more widely applied.
Fig. 2 is a schematic flowchart of another image processing method identification method according to an embodiment of the present application, where the method includes the following steps:
step 201, obtaining the post-processed target image according to the selection operation of the user.
For example, an image processing mode recognition function or an application program may be added to the mobile terminal, and when the user enters the function or the application program, the user clicks an "select image" button, and then selects a target image to be recognized from a gallery or an album, and after clicking "determine", the image selected by the user is determined as the target image. The method can be suitable for the image processed by the user, and the user may forget how to process the image at the moment due to long time, and the mobile terminal can help the user to remember the image; the method can also be applied to storing the images in a gallery or an album after the user sees the interested images, so that the images can be selected conveniently by utilizing the functions or the application programs.
For example, an image processing mode identification option may also be added under an image browsing function in the mobile terminal, so as to facilitate selection by the user, and the image browsing function may be integrated in a gallery or an album, or may be integrated in other applications, such as a social application like WeChat. For example, after seeing an image that is desired to be subjected to image processing mode recognition, the user may press the image for a long time to pop up an "image processing mode recognition" option, and when the user clicks the option, the image is taken as a target image.
Step 202, identifying a target processing object contained in the target image.
And step 203, acquiring a historical real image corresponding to the target processing object.
And 204, comparing the target image with the historical real image, and analyzing at least two candidate image processing modes corresponding to the target image according to a comparison result.
Each candidate image processing mode comprises an analyzed related image processing algorithm, an algorithm calling mode and an algorithm calling sequence.
And step 205, for each candidate image processing mode, performing reverse processing on the target image according to the current candidate image processing mode to restore the target image to obtain at least two restored images.
And step 206, measuring the reduction degree corresponding to each reduced image, determining that the reduced image with the highest reduction degree meets the preset requirement, and determining the candidate image processing mode corresponding to the reduced image as the target image processing mode corresponding to the target image.
For example, for each restored image, the current restored image may be compared with the historical real image, and the restored image with the smallest difference from the historical real image may be determined as the restored image with the highest degree of restoration.
And step 207, saving the target image processing mode as an image processing template, and sharing the image processing template through a network.
According to the image processing mode identification method provided by the embodiment of the application, when a user sees an interested post-processed image, the user can independently select the image as a target image, the mobile terminal can automatically identify a target processing object in the target image and acquire a historical real image corresponding to the target processing object, various candidate image processing modes are analyzed through comparison, the target image is reversely processed according to the candidate image processing modes to obtain a plurality of restored images, the candidate image processing mode corresponding to the restored image with the highest restoration degree is determined as the identified target image processing mode, the target image processing modes are stored and shared, and the target image processing modes are widely applied.
Fig. 3 is a schematic flowchart of another image processing method according to an embodiment of the present application, where the method includes:
step 301, acquiring an image published by a contact from a social application program as a post-processed target image.
For example, the social applications may include applications such as wechat, microblog and QQ, and the wechat is used as an example for the following description. Assuming that a user finds that a friend scarlet of the user issues a photo shot by the user at the seaside when browsing a circle of friends, the place of shooting is shown in an XX beach park below the photo, the user observes that the scarlet in the photo has a difference from the actual situation of the user (such as different face shapes, different mouth shapes, different eye sizes, different skin colors, and the like), and the sea water and the blue sky are more beautiful than the actual scenery in the XX beach park (such as the sea water in the XX beach park is actually cloudy and the photo is very clear), the beautification treatment of the scarlet can be considered, the treated photo is very beautiful, and the user wants to know which treatment is performed on the photo by the scarlet, so that the image processing mode adopted in the photo can be identified by using the scheme provided by the embodiment of the application. For example, the user may press a photo issued in small red for a long time, pop up an "image processing mode recognition" option, and click the option, and the mobile terminal takes the image as a target image.
Step 302, identifying a target processing object contained in the target image.
For example, the mobile terminal may determine the subject according to the area ratio of the subject in the target image and/or a preset composition rule, and may determine the subject as the target processing object. After the mobile terminal identifies the target processing object, the display of special effects can be performed on the target processing object to help the user to confirm. For example, if the mobile terminal determines that the user is a small red as the target processing object, the mobile terminal may circle the area where the small red is located with a line (e.g., a yellow dotted line) with a preset color (if the user does not want to identify the small red of the current target processing object, the yellow dotted line may be operated to cancel the small red as the target processing object), if the user also wants to identify the processing manner of other objects (e.g., seawater and a blue sky), the other objects may be manually circled, and the mobile terminal sets the circled object as the target processing object to add or change the target processing object.
And 303, acquiring a historical real image corresponding to the target processing object.
For example, the mobile terminal may find the real photo of the small red stored by the user from the local album by means of face recognition or the like, or may be selected by the user. When the target processing object comprises seawater and a blue sky, the mobile terminal can search the network picture of the XX beach park through the network as a historical real image, and can also be selected from a local photo album or a webpage by the user.
And 304, comparing the target image with the historical real image to obtain a comparison result.
And step 305, acquiring shooting information corresponding to the target image.
Illustratively, the shooting information includes at least one of shooting parameters, shooting time, shooting location and shooting environment.
Illustratively, continuing with the above example as an example, when a photo is released, the red color will display the release time and place, which can be used as the shooting time and the shooting place, and can also be used to obtain the shooting environment by using the historical weather information.
And step 306, analyzing at least two candidate image processing modes corresponding to the target image by combining the comparison result and the shooting information.
Each candidate image processing mode comprises an analyzed related image processing algorithm, an algorithm calling mode and an algorithm calling sequence.
And 307, for each candidate image processing mode, performing reverse processing on the target image according to the current candidate image processing mode to restore the target image to obtain at least two restored images.
And 308, measuring the reduction degree corresponding to each reduced image, determining that the reduced image with the highest reduction degree meets the preset requirement, and determining the candidate image processing mode corresponding to the reduced image as the target image processing mode corresponding to the target image.
For example, for each restored image, the current restored image may be compared with the historical real image, and the restored image with the smallest difference from the historical real image may be determined as the restored image with the highest degree of restoration.
Step 309, determining the image to be processed according to the selection operation of the user.
And 310, post-processing and storing the image to be processed by using a target image processing mode.
According to the image processing mode identification method provided by the embodiment of the application, when a user sees an interested post-processed image in social application, the image can be selected as a target image, the mobile terminal can automatically identify a target processing object in the target image and acquire a historical real image corresponding to the target processing object, various candidate image processing modes are analyzed through comparison and acquired shooting information, the target image is reversely processed according to the candidate image processing modes to obtain a plurality of restored images, the candidate image processing mode corresponding to the restored image with the highest restoration degree is determined as the identified target image processing mode, the target image processing mode is adopted to correspondingly process the image, and the effect of copying the image processing mode is achieved.
Fig. 4 is a block diagram of an image processing method recognition apparatus according to an embodiment of the present disclosure, which may be implemented by software and/or hardware, and is generally integrated in a terminal, and may perform recognition of an image processing method by executing an image processing method. As shown in fig. 4, the apparatus includes:
a target image acquisition module 401, configured to acquire a post-processed target image;
a processing mode analysis module 402, configured to analyze a candidate image processing mode corresponding to the target image;
a reverse processing module 403, configured to perform reverse processing on the target image according to the analyzed candidate image processing manner, so as to restore the target image, and obtain a restored image;
a target mode determining module 404, configured to determine the candidate image processing mode as a target image processing mode corresponding to the target image when the restoration degree corresponding to the restored image meets a preset requirement.
The image processing mode identification device provided by the embodiment of the application acquires a post-processed target image, analyzes a candidate image processing mode corresponding to the target image, performs reverse processing on the target image according to the analyzed candidate image processing mode to restore the target image to obtain a restored image, and determines the candidate image processing mode as the target image processing mode corresponding to the target image when the restoration degree corresponding to the restored image meets a preset requirement. Through adopting above-mentioned technical scheme, can utilize mobile terminal to carry out the discernment of processing mode to the image after handling automatically, when the user sees the post-processing image that oneself likes, can utilize mobile terminal to discern the image processing mode that its adopted, richen mobile terminal's function, promote mobile terminal's intelligent degree.
Optionally, the image processing manner includes the image processing algorithm, and an algorithm calling manner and/or an algorithm calling sequence.
Optionally, the analyzing the candidate image processing manner corresponding to the target image includes:
identifying a target processing object contained in the target image;
acquiring a historical real image corresponding to the target processing object;
and comparing the target image with the historical real image, and analyzing a candidate image processing mode corresponding to the target image according to a comparison result.
Optionally, the analyzing the candidate image processing manner corresponding to the target image includes:
acquiring shooting information corresponding to the target image; the shooting information comprises at least one of shooting parameters, shooting time, shooting place and shooting environment;
and analyzing the target image by using the shooting information to obtain a candidate image processing mode corresponding to the target image.
Optionally, when the restoration degree corresponding to the restored image meets a preset requirement, determining the candidate image processing mode as the target image processing mode corresponding to the target image includes:
displaying the restored image;
and when a restoration success confirmation instruction is received, determining that the restoration degree corresponding to the restored image meets a preset requirement, and determining the candidate image processing mode as a target image processing mode corresponding to the target image.
Optionally, the obtaining a post-processed target image includes:
and acquiring an image published by the contact from the social application program as an acquired post-processed target image.
Optionally, the apparatus further comprises:
the image processing module is used for acquiring an image to be processed after the candidate image processing mode is determined as a target image processing mode corresponding to the target image, and post-processing the image to be processed by using the target image processing mode; alternatively, the first and second electrodes may be,
the template storage module is used for storing the target image processing mode as an image processing template after determining the candidate image processing mode as the target image processing mode corresponding to the target image; alternatively, the first and second electrodes may be,
and the sharing module is used for sharing the target image processing mode through a network after the candidate image processing mode is determined as the target image processing mode corresponding to the target image.
Embodiments of the present application also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform an image processing mode identification method, including:
acquiring a post-processed target image;
analyzing a candidate image processing mode corresponding to the target image;
performing reverse processing on the target image according to the analyzed candidate image processing mode to restore the target image to obtain a restored image;
and when the restoration degree corresponding to the restored image meets a preset requirement, determining the candidate image processing mode as a target image processing mode corresponding to the target image.
Storage medium-any of various types of memory devices or storage devices. The term "storage medium" is intended to include: mounting media such as CD-ROM, floppy disk, or tape devices; computer system memory or random access memory such as DRAM, DDRRAM, SRAM, EDORAM, Lanbas (Rambus) RAM, etc.; non-volatile memory such as flash memory, magnetic media (e.g., hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in a first computer system in which the program is executed, or may be located in a different second computer system connected to the first computer system through a network (such as the internet). The second computer system may provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations, such as in different computer systems that are connected by a network. The storage medium may store program instructions (e.g., embodied as a computer program) that are executable by one or more processors.
Of course, the storage medium provided in the embodiments of the present application and containing computer-executable instructions is not limited to the image processing method identification operation described above, and may also perform related operations in the image processing method identification method provided in any embodiments of the present application.
The embodiment of the application provides a mobile terminal, and the image processing mode identification device provided by the embodiment of the application can be integrated in the mobile terminal. Fig. 5 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application. The mobile terminal 500 may include: the image processing method comprises a memory 501, a processor 502 and a computer program stored on the memory and capable of being executed by the processor, wherein the processor 502 implements the image processing mode identification method according to the embodiment of the application when executing the computer program.
The mobile terminal provided by the embodiment of the application can utilize the mobile terminal to automatically identify the processing mode of the processed image, and when a user sees the favorite post-processing image, the mobile terminal can be used to identify the image processing mode, so that the functions of the mobile terminal are enriched, and the intelligent degree of the mobile terminal is improved.
Fig. 6 is a schematic structural diagram of another mobile terminal provided in an embodiment of the present application, where the mobile terminal may include: a housing (not shown), a memory 601, a Central Processing Unit (CPU) 602 (also called a processor, hereinafter referred to as CPU), a circuit board (not shown), and a power circuit (not shown). The circuit board is arranged in a space enclosed by the shell; the CPU602 and the memory 601 are disposed on the circuit board; the power supply circuit is used for supplying power to each circuit or device of the mobile terminal; the memory 601 is used for storing executable program codes; the CPU602 executes a computer program corresponding to the executable program code by reading the executable program code stored in the memory 601 to implement the steps of:
acquiring a post-processed target image;
analyzing a candidate image processing mode corresponding to the target image;
performing reverse processing on the target image according to the analyzed candidate image processing mode to restore the target image to obtain a restored image;
and when the restoration degree corresponding to the restored image meets a preset requirement, determining the candidate image processing mode as a target image processing mode corresponding to the target image.
The mobile terminal further includes: peripheral interface 603, RF (Radio Frequency) circuitry 605, audio circuitry 606, speakers 611, power management chip 608, input/output (I/O) subsystem 609, other input/control devices 610, touch screen 612, other input/control devices 610, and external port 604, which communicate via one or more communication buses or signal lines 607.
It should be understood that the illustrated mobile terminal 600 is merely one example of a mobile terminal and that the mobile terminal 600 may have more or fewer components than shown, may combine two or more components, or may have a different configuration of components. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
The following describes the mobile terminal for image processing mode recognition provided in this embodiment in detail, and the mobile terminal is exemplified by a mobile phone.
A memory 601, the memory 601 being accessible by the CPU602, the peripheral interface 603, and the like, the memory 601 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, or other volatile solid state storage devices.
A peripheral interface 603, said peripheral interface 603 may connect input and output peripherals of the device to the CPU602 and the memory 601.
An I/O subsystem 609, the I/O subsystem 609 may connect input and output peripherals on the device, such as a touch screen 612 and other input/control devices 610, to the peripheral interface 603. The I/O subsystem 609 may include a display controller 6091 and one or more input controllers 6092 for controlling other input/control devices 610. Where one or more input controllers 6092 receive electrical signals from or transmit electrical signals to other input/control devices 610, the other input/control devices 610 may include physical buttons (push buttons, rocker buttons, etc.), dials, slide switches, joysticks, click wheels. It is noted that the input controller 6092 may be connected to any one of: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.
A touch screen 612, which touch screen 612 is an input interface and an output interface between the user's mobile terminal and the user, displays visual output to the user, which may include graphics, text, icons, video, and the like.
The display controller 6091 in the I/O subsystem 609 receives electrical signals from the touch screen 612 or transmits electrical signals to the touch screen 612. The touch screen 612 detects a contact on the touch screen, and the display controller 6091 converts the detected contact into an interaction with a user interface object displayed on the touch screen 612, that is, to implement a human-computer interaction, where the user interface object displayed on the touch screen 612 may be an icon for running a game, an icon networked to a corresponding network, or the like. It is worth mentioning that the device may also comprise a light mouse, which is a touch sensitive surface that does not show visual output, or an extension of the touch sensitive surface formed by the touch screen.
The RF circuit 605 is mainly used to establish communication between the mobile phone and the wireless network (i.e., network side), and implement data reception and transmission between the mobile phone and the wireless network. Such as sending and receiving short messages, e-mails, etc. In particular, RF circuitry 605 receives and transmits RF signals, also referred to as electromagnetic signals, through which RF circuitry 605 converts electrical signals to or from electromagnetic signals and communicates with a communication network and other devices. RF circuitry 605 may include known circuitry for performing these functions including, but not limited to, an antenna system, an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a CODEC (CODEC) chipset, a Subscriber Identity Module (SIM), and so forth.
The audio circuit 606 is mainly used to receive audio data from the peripheral interface 603, convert the audio data into an electric signal, and transmit the electric signal to the speaker 611.
The speaker 611 is used to convert the voice signal received by the handset from the wireless network through the RF circuit 605 into sound and play the sound to the user.
And a power management chip 608 for supplying power and managing power to the hardware connected to the CPU602, the I/O subsystem, and the peripheral interface.
The image processing method identification device, the storage medium and the mobile terminal provided in the above embodiments can execute the image processing method provided in any embodiment of the present application, and have corresponding functional modules and beneficial effects for executing the method. For technical details that are not described in detail in the above embodiments, reference may be made to an image processing method provided in any embodiment of the present application.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present application and the technical principles employed. It will be understood by those skilled in the art that the present application is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the application. Therefore, although the present application has been described in more detail with reference to the above embodiments, the present application is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present application, and the scope of the present application is determined by the scope of the appended claims.

Claims (10)

1. An image processing method identification method is characterized by comprising the following steps:
acquiring a post-processed target image;
analyzing candidate image processing modes corresponding to the target image, wherein the image processing modes comprise at least two image processing algorithms, an algorithm calling mode and an algorithm calling sequence of the at least two image processing algorithms;
performing reverse processing on the target image according to the analyzed candidate image processing mode to restore the target image to obtain a restored image, wherein the reverse processing comprises eliminating the action effect of the candidate image processing mode by adopting an image processing mode with the effect opposite to that of the candidate image processing mode;
and when the restoration degree corresponding to the restored image meets a preset requirement, determining the candidate image processing mode as a target image processing mode corresponding to the target image.
2. The method according to claim 1, wherein the analyzing the candidate image processing mode corresponding to the target image comprises:
identifying a target processing object contained in the target image;
acquiring a historical real image corresponding to the target processing object;
and comparing the target image with the historical real image, and analyzing a candidate image processing mode corresponding to the target image according to a comparison result.
3. The method according to claim 1, wherein the analyzing the candidate image processing mode corresponding to the target image comprises:
acquiring shooting information corresponding to the target image; the shooting information comprises at least one of shooting parameters, shooting time, shooting place and shooting environment;
and analyzing the target image by using the shooting information to obtain a candidate image processing mode corresponding to the target image.
4. The method according to claim 1, wherein the analyzing the candidate image processing mode corresponding to the target image comprises:
identifying a target processing object contained in the target image, acquiring a historical real image corresponding to the target processing object, acquiring shooting information corresponding to the target image, comparing the target image with the historical real image, and analyzing a candidate processing mode corresponding to the target image according to a comparison result and the shooting information, wherein the shooting information comprises at least one of shooting parameters, shooting time, shooting location and shooting environment.
5. The method according to claim 1, wherein when the restoration degree corresponding to the restored image meets a preset requirement, determining the candidate image processing mode as the target image processing mode corresponding to the target image comprises:
displaying the restored image;
and when a restoration success confirmation instruction is received, determining that the restoration degree corresponding to the restored image meets a preset requirement, and determining the candidate image processing mode as a target image processing mode corresponding to the target image.
6. The method of claim 1, wherein obtaining the post-processed target image comprises:
and acquiring an image published by the contact from the social application program as an acquired post-processed target image.
7. The method according to claim 1, further comprising, after determining the candidate image processing mode as a target image processing mode corresponding to the target image:
acquiring an image to be processed, and post-processing the image to be processed by using the target image processing mode; alternatively, the first and second electrodes may be,
saving the target image processing mode as an image processing template; alternatively, the first and second electrodes may be,
and sharing the target image processing mode through a network.
8. An image processing method recognition apparatus, comprising:
the target image acquisition module is used for acquiring a post-processed target image;
the processing mode analysis module is used for analyzing candidate image processing modes corresponding to the target image, wherein the image processing modes comprise at least two image processing algorithms, an algorithm calling mode and an algorithm calling sequence of the at least two image processing algorithms;
the reverse processing module is used for performing reverse processing on the target image according to the analyzed candidate image processing mode so as to restore the target image to obtain a restored image, wherein the reverse processing comprises eliminating the action effect of the candidate image processing mode by adopting an image processing mode with the effect opposite to that of the candidate image processing mode;
and the target mode determining module is used for determining the candidate image processing mode as the target image processing mode corresponding to the target image when the reduction degree corresponding to the reduced image meets the preset requirement.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out an image processing manner recognition method according to any one of claims 1 to 7.
10. A mobile terminal comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the image processing method according to any one of claims 1 to 7 when executing the computer program.
CN201811006136.8A 2018-08-30 2018-08-30 Image processing mode identification method and device, storage medium and mobile terminal Active CN109089042B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811006136.8A CN109089042B (en) 2018-08-30 2018-08-30 Image processing mode identification method and device, storage medium and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811006136.8A CN109089042B (en) 2018-08-30 2018-08-30 Image processing mode identification method and device, storage medium and mobile terminal

Publications (2)

Publication Number Publication Date
CN109089042A CN109089042A (en) 2018-12-25
CN109089042B true CN109089042B (en) 2020-12-15

Family

ID=64840342

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811006136.8A Active CN109089042B (en) 2018-08-30 2018-08-30 Image processing mode identification method and device, storage medium and mobile terminal

Country Status (1)

Country Link
CN (1) CN109089042B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110944098A (en) * 2019-11-27 2020-03-31 维沃移动通信有限公司 Image processing method and electronic equipment
CN111402273A (en) * 2020-03-23 2020-07-10 维沃移动通信(杭州)有限公司 Image processing method and electronic equipment

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102609710B (en) * 2012-02-22 2013-07-24 武汉大学 Smoke and fire object segmentation method aiming at smog covering scene in fire disaster image video
CN105224950A (en) * 2015-09-29 2016-01-06 小米科技有限责任公司 The recognition methods of filter classification and device
CN105528786B (en) * 2015-12-04 2019-10-01 小米科技有限责任公司 Image processing method and device
CN105809174B (en) * 2016-03-29 2019-04-30 北京小米移动软件有限公司 Identify the method and device of image
CN106375660A (en) * 2016-09-13 2017-02-01 乐视控股(北京)有限公司 Photographic processing method and device
CN106709866B (en) * 2016-11-18 2019-12-13 智慧眼科技股份有限公司 method and device for removing grid watermark from certificate photo and method and device for verifying human face
CN107734260A (en) * 2017-10-26 2018-02-23 维沃移动通信有限公司 A kind of image processing method and mobile terminal
CN108447026A (en) * 2018-01-31 2018-08-24 上海思愚智能科技有限公司 Acquisition methods, terminal and the computer readable storage medium of U.S. face parameter attribute value

Also Published As

Publication number Publication date
CN109089042A (en) 2018-12-25

Similar Documents

Publication Publication Date Title
CN109639982B (en) Image noise reduction method and device, storage medium and terminal
CN109547701B (en) Image shooting method and device, storage medium and electronic equipment
CN109685746B (en) Image brightness adjusting method and device, storage medium and terminal
RU2626090C2 (en) Method, device and terminal device for processing image
CN109089043B (en) Shot image preprocessing method and device, storage medium and mobile terminal
CN110100251B (en) Apparatus, method, and computer-readable storage medium for processing document
CN109714582B (en) White balance adjusting method, device, storage medium and terminal
CN109951627B (en) Image processing method, image processing device, storage medium and electronic equipment
CN109741288B (en) Image processing method, image processing device, storage medium and electronic equipment
CN109741281B (en) Image processing method, image processing device, storage medium and terminal
WO2021036991A1 (en) High dynamic range video generation method and device
CN109167931B (en) Image processing method, device, storage medium and mobile terminal
WO2015001437A1 (en) Image processing method and apparatus, and electronic device
CN109618098B (en) Portrait face adjusting method, device, storage medium and terminal
CN108494996B (en) Image processing method, device, storage medium and mobile terminal
CN108551552B (en) Image processing method, device, storage medium and mobile terminal
CN108965770B (en) Image processing template generation method and device, storage medium and mobile terminal
CN107292817B (en) Image processing method, device, storage medium and terminal
CN108683845B (en) Image processing method, device, storage medium and mobile terminal
CN104967784A (en) Method of calling underlayer effect mode of shooting function of mobile terminal, and mobile terminal
CN109089042B (en) Image processing mode identification method and device, storage medium and mobile terminal
CN111353946B (en) Image restoration method, device, equipment and storage medium
CN109104633B (en) Video screenshot method and device, storage medium and mobile terminal
CN112669231B (en) Image processing method, training method, device and medium of image processing model
CN107730443B (en) Image processing method and device and user 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