CN108965770A - Image processing template generation method, device, storage medium and mobile terminal - Google Patents
Image processing template generation method, device, storage medium and mobile terminal Download PDFInfo
- Publication number
- CN108965770A CN108965770A CN201811006137.2A CN201811006137A CN108965770A CN 108965770 A CN108965770 A CN 108965770A CN 201811006137 A CN201811006137 A CN 201811006137A CN 108965770 A CN108965770 A CN 108965770A
- Authority
- CN
- China
- Prior art keywords
- image processing
- image
- processing
- template
- processing template
- 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.)
- Granted
Links
- 238000012545 processing Methods 0.000 title claims abstract description 362
- 238000000034 method Methods 0.000 title claims abstract description 137
- 230000008569 process Effects 0.000 claims abstract description 68
- 238000012805 post-processing Methods 0.000 claims description 20
- 238000004590 computer program Methods 0.000 claims description 11
- 230000001960 triggered effect Effects 0.000 claims description 8
- 230000000694 effects Effects 0.000 description 12
- 239000002609 medium Substances 0.000 description 12
- 230000006870 function Effects 0.000 description 10
- 230000002093 peripheral effect Effects 0.000 description 9
- 230000008901 benefit Effects 0.000 description 7
- 238000010586 diagram Methods 0.000 description 6
- 238000004891 communication Methods 0.000 description 5
- 230000003796 beauty Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000009434 installation Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000003672 processing method Methods 0.000 description 2
- 230000000007 visual effect Effects 0.000 description 2
- 230000037303 wrinkles Effects 0.000 description 2
- 208000002874 Acne Vulgaris Diseases 0.000 description 1
- 206010063385 Intellectualisation Diseases 0.000 description 1
- 238000009825 accumulation Methods 0.000 description 1
- 206010000496 acne Diseases 0.000 description 1
- 230000003255 anti-acne Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000005282 brightening Methods 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 239000012120 mounting media Substances 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000005498 polishing Methods 0.000 description 1
- 230000008707 rearrangement Effects 0.000 description 1
- 238000011084 recovery Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000001502 supplementing effect Effects 0.000 description 1
- 230000002087 whitening effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N7/00—Television systems
- H04N7/14—Systems for two-way working
- H04N7/141—Systems for two-way working between two video terminals, e.g. videophone
- H04N7/142—Constructional details of the terminal equipment, e.g. arrangements of the camera and the display
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/62—Control of parameters via user interfaces
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/76—Television signal recording
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Telephone Function (AREA)
Abstract
The embodiment of the present application discloses image processing template generation method, device, storage medium and mobile terminal.This method comprises: receiving the processing operation to present image;Record the corresponding operation data of the processing operation;At the end of being directed to the treatment process of the present image, image processing template is generated according to the operation data recorded in the treatment process.The embodiment of the present application is by using above-mentioned technical proposal, treatment process of the user to image can be recorded and saved as image processing template, this image processing template is more bonded the personal preference of user compared to the intrinsic template that mobile terminal provides, not only enrich the image processing template pattern in mobile terminal, additionally it is possible to meet the individual demand of user.
Description
Technical Field
The embodiment of the application relates to the technical field of image processing, in particular to an image processing template generation method, an image processing template generation 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. At present, the image processing method is rich and various, and the operation is complex, and needs to be improved.
Disclosure of Invention
The embodiment of the application provides an image processing template generation method, an image processing template generation 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 template generating method, including:
receiving a processing operation on a current image;
recording operation data corresponding to the processing operation;
and when the processing process aiming at the current image is finished, generating an image processing template according to the operation data recorded in the processing process.
In a second aspect, an embodiment of the present application provides an image processing template generating apparatus, including:
the processing operation receiving module is used for receiving the processing operation of the current image;
the operation data recording module is used for recording operation data corresponding to the processing operation;
and the processing template storage module is used for generating an image processing template according to the operation data recorded in the processing process when the processing process aiming at the current image is finished.
In a third aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements an image processing template generating method according to the present application.
In a fourth aspect, an embodiment of the present application provides a mobile terminal, including 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 template generating method according to the embodiment of the present application.
According to the image processing template generation scheme provided by the embodiment of the application, when a user processes an image, the mobile terminal records operation data corresponding to the processing operation while receiving the processing operation on the current image, and when the processing process is finished, the image processing template is generated according to the operation data recorded in the processing process. By adopting the technical scheme, the image processing process of the user can be recorded and stored as the image processing template, and the image processing template is more suitable for the personal preference of the user compared with the inherent template provided by the mobile terminal, so that the image processing template pattern in the mobile terminal is enriched, and the personalized requirements of the user can be met.
Drawings
Fig. 1 is a schematic flowchart of an image processing template generation method according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of another image processing template generation method according to an embodiment of the present application;
fig. 3 is a schematic flowchart of another image processing template generation method according to an embodiment of the present application;
fig. 4 is a schematic flowchart of another image processing template generation method according to an embodiment of the present application;
fig. 5 is a block diagram illustrating an image processing template generating apparatus according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application;
fig. 7 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 of an image processing template generating method according to an embodiment of the present application, where the method may be performed by an image processing template generating 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:
step 101, receiving a processing operation on a current 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.
For example, a processing operation may be received for a current image upon detecting that an image processing event is triggered. The current image may include an image currently displayed in a gallery or album, an image currently displayed in a shooting preview interface, and the like. When a user wants to process a current image according to his or her own idea, an image processing event may be triggered in a preset manner, for example, by clicking an image editing button. The mobile terminal can provide abundant and diverse image processing options for a user, such as buffing, whitening, face thinning, eye brightening, acne removing, wrinkle removing, filter adding, makeup adding, hair style changing, mosaic adding, light supplementing adjusting, contrast adjusting, saturation adjusting, sharpening, background blurring and the like. The user can input the processing operation corresponding to the expected beautifying effect in the mobile terminal according to the requirement of the user to beautify the image.
And 102, recording operation data corresponding to the processing operation.
For example, when a user inputs a processing operation in a mobile terminal, multiple operations may need to be input for the same image processing option, and after receiving the operations, the mobile terminal performs corresponding processing on an image to achieve a beautifying effect corresponding to the processing option. For example, for de-wrinkling, the user may select the areas of the face of the image that are to be de-wrinkled, e.g., by selecting the areas in a circle, and then the user may also select the degree or level of de-wrinkling, e.g., by representing the level in a selected number. Thus, the operation data may include the relative position of the processing region selected by the user with respect to the face region, may include the wrinkle-removing algorithm invoked by the mobile terminal, and may also include data such as the level of wrinkle removal. When the operation data is recorded, the time point or the sequence of the data can be recorded, so that the image processing template can be conveniently generated subsequently.
And 103, when the processing process aiming at the current image is finished, generating an image processing template according to the operation data recorded in the processing process.
For example, many processing operations may be involved in the process of processing an image according to the user's will, and the mobile terminal may record operation data generated in the whole processing process one by one, and integrate some or all of the operation data to generate an image processing template after the processing process is finished. Optionally, the recorded operation data is screened, and after the invalid operation data is removed, the obtained operation data is used for generating an image processing template. The advantage of this arrangement is that, in the process of processing the image, if the effect after some processing is not satisfactory, the user may input some undo operations, and thus, the operation data targeted by the undo operations may be considered as invalid, so that the image processing template may be eliminated, thereby simplifying the image processing template and avoiding unnecessary redundancy.
According to the image processing template generation method provided by the embodiment of the application, when a user processes an image, the mobile terminal records operation data corresponding to the processing operation while receiving the processing operation on the current image, and when the processing process is finished, the image processing template is generated according to the operation data recorded in the processing process. By adopting the technical scheme, the image processing process of the user can be recorded and stored as the image processing template, and the image processing template is more suitable for the personal preference of the user compared with the inherent template provided by the mobile terminal, so that the image processing template pattern in the mobile terminal is enriched, and the personalized requirements of the user can be met.
In some embodiments, the image processing template includes the image processing algorithm involved, and the manner and/or order of algorithm invocation. The advantage of this arrangement is that the content contained in the template can be reasonably arranged, which is beneficial to the wide application of the image processing template and the accurate recovery and reproduction of the image processing mode of the user. For example, the image processing algorithm may be included in the image processing template in the embodiment of the present application, 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, 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 for the image processing algorithm may be a call for an 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 an image processing template, the difference in the order of invocation of the algorithms may also result in a different final image.
In some embodiments, after the generating an image processing template according to the operation data recorded in the processing procedure, the method further comprises: acquiring an image to be processed, and performing post-processing on the image to be processed by using the image processing template; or, the image processing template is shared through a network. The method has the advantages that after the image processing mode personalized by the user is recorded as the image processing template, the same post-processing is carried out on other images by utilizing the image processing template, the personalized beautifying effect of the user is achieved simply and quickly, and the user requirement is met. In addition, after the image processing template is shared through the network, the image processing template can be more widely applied.
In some embodiments, prior to said receiving a processing operation on the current image, comprising: the image type and/or shooting mode of the current image is acquired. Correspondingly, after the image processing mode is saved as the image processing template, the method further comprises the following steps: and establishing an association relation between the image type and/or the shooting mode and the image processing template. The post-processing of the image to be processed by using the image processing template comprises: identifying a first image type and/or a first shooting mode corresponding to the image to be processed; and carrying out post-processing on the image to be processed according to a first image processing template which has an association relation with the first image type and/or the first shooting mode. The method has the advantages that users can have different processing styles when processing different types of images, and after a period of time of accumulation, the number of image processing templates stored in the mobile terminal is large, so that the images to be processed are processed in a targeted manner, the selection efficiency of the image processing templates is improved, the image processing templates can be classified when being stored, namely, the corresponding relation between the image types and/or the shooting modes is established, and the corresponding image processing templates are directly adopted for processing when processing the images under the same condition.
In some embodiments, after the generating an image processing template according to the operation data recorded in the processing procedure, the method further comprises: in the shooting preview process, processing and displaying a preview picture in real time by using the image processing template; and when a photographing instruction is received, generating a photographing picture according to the currently displayed preview picture. The image processing method has the advantages that the image can be processed by the user-defined image processing template in the preview state, so that the user can see the processed effect of the current shot content in advance, and after shooting is confirmed, the corresponding photo can be directly generated according to the preview picture, and the photo generation speed is improved.
In some embodiments, after the generating an image processing template according to the operation data recorded in the processing procedure, the method further comprises: and in the video recording process, processing the recorded picture by using the image processing template and storing the processed picture as a video file. The image processing template can be applied to video recording, so that the shot video can accord with the personalized beautifying style of a user, the user requirement is met, and the post-processing cost can be saved.
In some embodiments, after the generating an image processing template according to the operation data recorded in the processing procedure, the method further comprises: and in the video call process, processing the call picture in real time by using the image processing template and sending the call picture to the opposite call terminal. The method has the advantages that when the video call is carried out, the call picture can be quickly processed by using the image processing template without manual operation of a user step by step, the embarrassment caused by the fact that the process of gradually beautifying the picture is perceived by the call opposite side can be avoided, the beautifying effect can be achieved in one step, and the processed call picture meets the personalized aesthetic requirements of the user.
In some embodiments, the processing a call picture in real time by using the image processing template and sending the call picture to a call peer end in a video call process includes: and when the video call event of the third-party application program is triggered, calling a corresponding image processing algorithm of the bottom layer of the mobile terminal according to the image processing template, processing the call picture in real time, and sending the call picture to the opposite call terminal. The third-party application may be, for example, an application having a video call function such as WeChat or QQ. The method has the advantages that the image processing algorithm in the related art is compiled in the camera application program, and the image processing algorithm cannot be continuously called after the camera application program exits, but in the embodiment of the application, the image processing algorithm can be independently compiled, and the calling of the image processing algorithm is not limited by the camera application program, so that when a third-party application program carries out a video call event, a response image processing algorithm at the bottom layer of the mobile terminal can be called according to an image processing template to process a call picture, the application range of the bottom-layer image processing algorithm is expanded, in addition, the call picture is processed by adopting the bottom-layer image processing algorithm of the mobile terminal, compared with the method that the third-party application program calls the self algorithm to process, the method has richer algorithm resources and higher efficient processing speed, the fluency of video call can be effectively ensured.
Fig. 2 is a schematic flowchart of another image processing template generation method according to an embodiment of the present application, where the method includes the following steps:
step 201, when detecting that the image processing event is triggered, determining a first image as a processing object.
For example, when a user needs to perform post-processing on a certain image, an image editing function may be triggered on the basis of the image, and the mobile terminal determines the image as a processing object, which is referred to as a first image herein.
Step 202, identifying the image type of the first image, recording the identification result as the first image type, and acquiring the shooting mode of the first image as the first shooting mode.
The image type classification method is not limited in the present application, and may be classified according to attributes of a subject to be photographed, a scene to be photographed, or other forms. The attributes of the photographic subject may include a person, an animal, a building, or other still, and may also include whether the photographic subject is in a still state or a moving state. The shooting scene may include, for example, division by a classification mode of indoor or outdoor; the weather conditions are classified according to classification modes, such as sunny days, cloudy days, rainy days, haze days, snow days and the like; dividing according to a day and night classification mode; dividing according to the scene classification mode, such as seaside, forest, waterfall, grassland, starry sky and the like; the classification according to the place classification mode can include workplaces, entertainment places, tourist sites, home places, shopping malls and the like. The photographing mode may include, for example, a portrait mode, a beauty mode, a night view mode, a snapshot mode, a high dynamic range photographing mode, a panorama mode, a depth of view mode, and the like. Various classification modes and shooting modes can be combined to classify the images more accurately and finely.
Step 203, receiving a processing operation for the first image input by the user.
And step 204, recording operation data corresponding to the processing operation.
And step 205, when the processing process for the first image is finished, generating a first image processing template according to the operation data recorded in the processing process.
The image processing template comprises an image processing algorithm, an algorithm calling mode and an algorithm calling sequence.
And step 206, establishing a corresponding relation between the first image type and the first shooting mode and the first image processing template, and storing the corresponding relation in the mobile terminal.
And step 207, acquiring a second image to be processed currently.
And 208, when the image type of the second image is determined to be the first image type and the shooting mode is the first shooting mode, performing post-processing on the second image by using the first image processing template to obtain a target image.
For example, when the image type of the second image is not the first image type or the shooting mode is not the first shooting mode, for example, the image type of the second image is the second image type and the shooting mode is the second shooting mode, the second image processing template corresponding to the second image type and the second shooting mode may be searched in the mobile terminal, and the second image processing template is used to perform post-processing on the second image, and the processed image is recorded as the target image. Alternatively, the target image may be displayed for the user to view the processing effect, and then the target image may be saved.
According to the image processing template generation method provided by the embodiment of the application, the processing process of the image by the user can be recorded and stored as the image processing template, when other images need to be processed, the stored image processing template can be selected according to the image type and the shooting mode to directly and quickly process the images without inputting the processing operation again by the user, and compared with the inherent template provided by the mobile terminal, the image processing template is more suitable for the personal preference of the user, so that the processed images can better meet the personalized requirements of the user.
Fig. 3 is a schematic flowchart of another image processing template generation method according to an embodiment of the present application, and as shown in fig. 3, the method includes:
step 301, when it is detected that the image is in a user-defined post-processing state, receiving a processing operation input by a user, and recording operation data corresponding to the processing operation.
Step 302, when the processing procedure for the processed image is finished, generating a corresponding image processing template according to the operation data recorded in the processing procedure.
And 303, acquiring the image type of the processed image, establishing a corresponding relation between the image type and the image processing template, and updating the user-defined image processing template library.
It can be understood that, as time goes up, a user may perform autonomous post-processing on a large number of images, and after each processing, the mobile terminal stores a corresponding image processing template, resulting in a user-defined image processing template library containing a large number of image processing templates. In addition, since the corresponding relationship between the image type and the image processing template is recorded after the image processing template is generated each time, a corresponding relationship table can be maintained in the mobile terminal, and the storage form of the corresponding relationship table is not limited, and can be a plain text or a table. The same image type may correspond to one or more image processing templates.
And step 304, after the camera application program is started, acquiring a preview image, and identifying the image type of the preview image.
And 305, selecting a corresponding target image processing template from a user-defined image processing template library according to the image type of the preview image.
Optionally, if the image type of the preview image has more than two corresponding image processing templates (which may be referred to as candidate image processing templates) in the user-defined image processing template library, a prompt may be made in the mobile terminal to prompt the user to select a target image processing template from the multiple candidate image processing templates. For example, the image preview interface is divided into a plurality of sub-areas, and a candidate image processing template is adopted in each sub-area to perform post-processing on the current preview image and display the processed image, so that a user can view the processing effect more intuitively, and a target image processing template can be selected quickly.
And step 306, processing and displaying the preview picture in real time by using the target image processing template.
And 307, when the photographing instruction is received, generating a photographing picture according to the currently displayed preview picture.
According to the image processing template generation method provided by the embodiment of the application, the image processing process of a user can be recorded and stored as the image processing template, the corresponding relation between the image processing template and the image type is established, the user-defined image processing template library is stored in the mobile terminal, in the shooting preview process, a proper image processing template can be selected from the template library according to the image type of the preview image to process the preview image in real time, so that the user can see the processed effect of the current shooting content in advance, after the shooting is confirmed, a corresponding photo can be directly generated according to the preview image, and the photo generation speed is increased.
Fig. 4 is a schematic flowchart of a further image processing template generating method according to an embodiment of the present application, and as shown in fig. 4, the method includes:
step 401, when it is detected that the image is in the user-defined post-processing state, receiving a processing operation input by a user, and recording operation data corresponding to the processing operation.
Step 402, when the processing procedure for the processed image is finished, generating a corresponding image processing template according to the operation data recorded in the processing procedure.
And 403, acquiring a template identifier, establishing a corresponding relation between the template identifier and the image processing template, and updating the user-defined image processing template library.
Illustratively, after the image processing template is generated, a self-named template identifier may be manually entered by the user. In the embodiment of the application, a corresponding relationship between the template identifier and the identity information of the contact in the third-party application program can be established. Illustratively, the identity information may include a contact name, a nickname or avatar, and the like. Therefore, the user can be allowed to set different image processing templates for different contacts in advance, and different communication picture beautifying effects can be obtained when the user carries out video communication with different contacts. Optionally, the template identifier may be directly set as the identity information of the contact, that is, a corresponding relationship between the identity information and the image processing template may be established here.
Step 404, detecting that a video call event of the third-party application program is triggered.
And 405, acquiring identity information of the opposite call end, determining a corresponding template identifier according to the identity information, and selecting a corresponding target image processing template from a user-defined image processing template library.
And step 406, calling a corresponding image processing algorithm of the bottom layer of the mobile terminal by using the target image processing template, and processing the call picture in real time.
In the related art, part of third-party application programs may integrate image processing functions such as beauty and the like under a video call function, corresponding image processing algorithms exist in an installation package of the application programs, the application programs cannot be used universally and are limited by the capacity of the installation package, and the general integrated algorithms are simple, have single types and have limited processing efficiency and processing effect on call pictures. In the embodiment of the application, the image processing algorithm can be integrated on the bottom layer of the mobile terminal, so that the camera application program can be responded, and the third-party application program can also call the algorithms by adopting the interface specification specified by the mobile terminal, thereby expanding the application range of the bottom-layer image processing algorithm, realizing the high-efficiency processing of the call picture in the third-party application program and ensuring the fluency of video call.
Step 407, sending the processed call picture to the call opposite terminal.
The image processing template generation method provided by the embodiment of the application can record and store the image processing process of a user as the image processing template, establish the corresponding relation between the image processing template and the contact person identification in the third-party application program, store the user-defined image processing template library in the mobile terminal, select a proper image processing template from the template library to process a call picture in real time according to the identification information of the opposite call end when a video call is carried out through the third-party application program, enable the user and the opposite call end to see the call interface which is beautified by the user, adapt to the personalized requirements of the user in an beautifying mode, and simultaneously call the image processing algorithm on the bottom layer of the mobile terminal when the call picture is processed, thereby realizing the high-efficiency processing of the call picture in the third-party application program, and the fluency of video call is ensured.
Fig. 5 is a block diagram of an image processing template generating apparatus, which may be implemented by software and/or hardware, and is generally integrated in a mobile terminal, and may generate an image processing template by executing an image processing template generating method according to an embodiment of the present disclosure. As shown in fig. 5, the apparatus includes:
a processing operation receiving module 501, configured to receive a processing operation on a current image;
an operation data recording module 502, configured to record operation data corresponding to the processing operation;
a processing template storage module 503, configured to generate an image processing template according to the operation data recorded in the processing procedure when the processing procedure for the current image is finished.
According to the image processing template generation device provided by the embodiment of the application, when a user processes an image, the mobile terminal records operation data corresponding to the processing operation while receiving the processing operation on the current image, and when the processing process is finished, the image processing template is generated according to the operation data recorded in the processing process. By adopting the technical scheme, the image processing process of the user can be recorded and stored as the image processing template, and the image processing template is more suitable for the personal preference of the user compared with the inherent template provided by the mobile terminal, so that the image processing template pattern in the mobile terminal is enriched, and the personalized requirements of the user can be met.
Optionally, the image processing template includes the image processing algorithm, and an algorithm calling manner and/or an algorithm calling sequence.
Optionally, the apparatus further comprises:
the image processing module is used for acquiring an image to be processed after generating an image processing template according to the operation data recorded in the processing process, and performing post-processing on the image to be processed by using the image processing template; or,
and the template sharing module is used for sharing the image processing template through a network after the image processing template is generated according to the operation data recorded in the processing process.
Optionally, the apparatus further comprises:
an obtaining module, configured to obtain an image type and/or a shooting mode of a current image before the receiving of the processing operation on the current image;
the relation establishing module is used for establishing the incidence relation between the image type and/or the shooting mode and the image processing template after the image processing mode is saved as the image processing template;
the post-processing of the image to be processed by using the image processing template comprises:
identifying a first image type and/or a first shooting mode corresponding to the image to be processed;
and carrying out post-processing on the image to be processed according to a first image processing template which has an association relation with the first image type and/or the first shooting mode.
Optionally, the apparatus further comprises:
the preview processing module is used for processing and displaying a preview picture in real time by using the image processing template in the photographing preview process after the image processing template is generated according to the operation data recorded in the processing process;
and the photo generation module is used for generating a shot photo according to the currently displayed preview picture when the shooting instruction is received.
Optionally, the apparatus further comprises:
the recording picture processing module is used for processing and storing a recording picture as a video file by using the image processing template in the video recording process after the image processing template is generated according to the operation data recorded in the processing process; or,
and the call picture processing module is used for processing the call picture in real time by utilizing the image processing template and sending the call picture to the opposite call terminal in the video call process.
Optionally, in the video call process, the image processing template is used to process the call picture in real time and send the call picture to the call opposite terminal, including:
and when the video call event of the third-party application program is triggered, calling a corresponding image processing algorithm of the bottom layer of the mobile terminal according to the image processing template, processing the call picture in real time, and sending the call picture to the opposite call terminal.
Embodiments of the present application also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, perform a method of image processing template generation, the method comprising:
receiving a processing operation on a current image;
recording operation data corresponding to the processing operation;
and when the processing process aiming at the current image is finished, generating an image processing template according to the operation data recorded in the processing process.
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 template generation operation described above, and may also perform related operations in the image processing template generation method provided in any embodiments of the present application.
The embodiment of the application provides a mobile terminal, and the image processing template generation device provided by the embodiment of the application can be integrated in the mobile terminal. Fig. 6 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application. The mobile terminal 600 may include: the image processing device comprises a memory 601, a processor 602 and a computer program stored on the memory 601 and executable by the processor 602, wherein the processor 602 executes the computer program to implement the image processing template generating method according to the embodiment of the present application.
The mobile terminal provided by the embodiment of the application can record and store the image processing process of the user as the image processing template, and the image processing template is more suitable for the personal preference of the user compared with the inherent template provided by the mobile terminal, so that the image processing template patterns in the mobile terminal are enriched, and the individual requirements of the user can be met.
Fig. 7 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 701, a Central Processing Unit (CPU) 702 (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 CPU702 and the memory 701 are provided on the circuit board; the power supply circuit is used for supplying power to each circuit or device of the mobile terminal; the memory 701 is used for storing executable program codes; the CPU702 executes a computer program corresponding to the executable program code by reading the executable program code stored in the memory 701 to implement the steps of:
receiving a processing operation on a current image;
recording operation data corresponding to the processing operation;
and when the processing process aiming at the current image is finished, generating an image processing template according to the operation data recorded in the processing process.
The mobile terminal further includes: peripheral interfaces 703, RF (Radio Frequency) circuitry 705, audio circuitry 706, speakers 711, power management chip 708, input/output (I/O) subsystems 709, other input/control devices 710, touch screen 712, other input/control devices 710, and external port 704, which communicate via one or more communication buses or signal lines 707.
It should be understood that the illustrated mobile terminal 700 is merely one example of a mobile terminal and that the mobile terminal 700 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 in detail a mobile terminal for generating an image processing template provided in this embodiment, which is exemplified by a mobile phone.
A memory 701, the memory 701 being accessible by the CPU702, the peripheral interface 703, and the like, the memory 701 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 703, said peripheral interface 703 may connect input and output peripherals of the device to the CPU702 and the memory 701.
An I/O subsystem 709, which I/O subsystem 709 may connect input and output peripherals on the device, such as a touch screen 712 and other input/control devices 710, to the peripheral interface 703. The I/O subsystem 709 may include a display controller 7091 and one or more input controllers 7092 for controlling other input/control devices 710. Where one or more input controllers 7092 receive electrical signals from or transmit electrical signals to other input/control devices 710, the other input/control devices 710 may include physical buttons (push buttons, rocker buttons, etc.), dials, slide switches, joysticks, click wheels. It is worth noting that the input controller 7092 may be connected to any one of the following: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.
A touch screen 712, the touch screen 712 being 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 7091 in the I/O subsystem 709 receives electrical signals from the touch screen 712 or transmits electrical signals to the touch screen 712. The touch screen 712 detects a contact on the touch screen, and the display controller 7091 converts the detected contact into an interaction with a user interface object displayed on the touch screen 712, i.e., implements a human-computer interaction, and the user interface object displayed on the touch screen 712 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 705 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 705 receives and transmits RF signals, also referred to as electromagnetic signals, through which RF circuitry 705 converts electrical signals to or from electromagnetic signals and communicates with communication networks and other devices. RF circuitry 705 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 706 is mainly used to receive audio data from the peripheral interface 703, convert the audio data into an electric signal, and transmit the electric signal to the speaker 711.
The speaker 711 is used to convert the voice signal received by the handset from the wireless network through the RF circuit 705 into sound and play the sound to the user.
And a power management chip 708 for supplying power and managing power to the hardware connected to the CPU702, the I/O subsystem, and the peripheral interface.
The image processing template generation device, the storage medium and the mobile terminal provided in the above embodiments can execute the image processing template generation method provided in any embodiment of the present application, and have corresponding functional modules and beneficial effects for executing the method. For details of the image processing template generation method provided in any of the embodiments of the present application, reference may be made to the above-described embodiments.
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 template generation method, comprising:
receiving a processing operation on a current image;
recording operation data corresponding to the processing operation;
and when the processing process aiming at the current image is finished, generating an image processing template according to the operation data recorded in the processing process.
2. The method according to claim 1, characterized in that the image processing template comprises the image processing algorithm concerned, and the algorithm invocation means and/or the algorithm invocation order.
3. The method of claim 1, further comprising, after said generating an image processing template from said operational data recorded during said processing:
acquiring an image to be processed, and performing post-processing on the image to be processed by using the image processing template; or,
and sharing the image processing template through a network.
4. The method of claim 3, prior to said receiving a processing operation on a current image, comprising:
acquiring the image type and/or shooting mode of a current image;
correspondingly, after the image processing mode is saved as the image processing template, the method further comprises the following steps:
establishing the association relationship between the image type and/or the shooting mode and the image processing template;
the post-processing of the image to be processed by using the image processing template comprises:
identifying a first image type and/or a first shooting mode corresponding to the image to be processed;
and carrying out post-processing on the image to be processed according to the first image processing template which has an association relation with the first image type and/or the first shooting mode.
5. The method of claim 1, further comprising, after said generating an image processing template from said operational data recorded during said processing:
in the shooting preview process, processing and displaying a preview picture in real time by using the image processing template;
and when a photographing instruction is received, generating a photographing picture according to the currently displayed preview picture.
6. The method of claim 1, further comprising, after said generating an image processing template from said operational data recorded during said processing:
in the video recording process, processing the recorded picture by using the image processing template and storing the processed picture as a video file; or,
and in the video call process, processing the call picture in real time by using the image processing template and sending the call picture to the opposite call terminal.
7. The method according to claim 6, wherein the processing the call picture in real time by using the image processing template and sending the call picture to the opposite call terminal in the video call process comprises:
and when the video call event of the third-party application program is triggered, calling a corresponding image processing algorithm of the bottom layer of the mobile terminal according to the image processing template, processing the call picture in real time, and sending the call picture to the opposite call terminal.
8. An image processing template generation apparatus, comprising:
the processing operation receiving module is used for receiving the processing operation of the current image;
the operation data recording module is used for recording operation data corresponding to the processing operation;
and the processing template storage module is used for generating an image processing template according to the operation data recorded in the processing process when the processing process aiming at the current image is finished.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the image processing template generating 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 template generation method according to any one of claims 1 to 7 when executing the computer program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811006137.2A CN108965770B (en) | 2018-08-30 | 2018-08-30 | Image processing template generation method and device, storage medium and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811006137.2A CN108965770B (en) | 2018-08-30 | 2018-08-30 | Image processing template generation method and device, storage medium and mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108965770A true CN108965770A (en) | 2018-12-07 |
CN108965770B CN108965770B (en) | 2021-12-07 |
Family
ID=64474855
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811006137.2A Active CN108965770B (en) | 2018-08-30 | 2018-08-30 | Image processing template generation method and device, storage medium and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108965770B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111246300A (en) * | 2020-01-02 | 2020-06-05 | 北京达佳互联信息技术有限公司 | Method, device and equipment for generating clip template and storage medium |
CN111857512A (en) * | 2020-07-17 | 2020-10-30 | 维沃移动通信有限公司 | Image editing method and device and electronic equipment |
CN112634408A (en) * | 2020-12-24 | 2021-04-09 | 深圳市大富网络技术有限公司 | Material selection method, system, device and storage medium |
CN113791721A (en) * | 2021-08-31 | 2021-12-14 | 北京达佳互联信息技术有限公司 | Picture processing method and device, electronic equipment and storage medium |
Citations (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102982572A (en) * | 2012-10-31 | 2013-03-20 | 北京百度网讯科技有限公司 | Intelligent image editing method and device thereof |
CN103533244A (en) * | 2013-10-21 | 2014-01-22 | 深圳市中兴移动通信有限公司 | Shooting device and automatic visual effect processing shooting method thereof |
US20150095772A1 (en) * | 2013-09-30 | 2015-04-02 | Fujifilm Corporation | Parameter setting assisting system, parameter setting assisting method, and non-transitory storage medium |
CN104680471A (en) * | 2013-12-02 | 2015-06-03 | 腾讯科技(深圳)有限公司 | Method, device and system for processing image |
CN104836977A (en) * | 2014-02-10 | 2015-08-12 | 阿里巴巴集团控股有限公司 | Method and system for video communication in instant communication process |
CN104967801A (en) * | 2015-02-04 | 2015-10-07 | 腾讯科技(深圳)有限公司 | Video data processing method and apparatus |
CN104967784A (en) * | 2015-07-02 | 2015-10-07 | 广东欧珀移动通信有限公司 | Method of calling underlayer effect mode of shooting function of mobile terminal, and mobile terminal |
CN105827936A (en) * | 2015-08-28 | 2016-08-03 | 维沃移动通信有限公司 | Image processing method and mobile terminal |
CN105872252A (en) * | 2016-05-30 | 2016-08-17 | 珠海市魅族科技有限公司 | Image processing method and device |
CN105979194A (en) * | 2016-05-26 | 2016-09-28 | 努比亚技术有限公司 | Video image processing apparatus and method |
CN106507021A (en) * | 2015-09-07 | 2017-03-15 | 腾讯科技(深圳)有限公司 | Method for processing video frequency and terminal device |
CN106657810A (en) * | 2016-09-26 | 2017-05-10 | 维沃移动通信有限公司 | Filter processing method and device for video image |
CN106991654A (en) * | 2017-03-09 | 2017-07-28 | 广东欧珀移动通信有限公司 | Human body beautification method and apparatus and electronic installation based on depth |
CN107123081A (en) * | 2017-04-01 | 2017-09-01 | 北京小米移动软件有限公司 | image processing method, device and terminal |
CN107633488A (en) * | 2017-09-14 | 2018-01-26 | 光锐恒宇(北京)科技有限公司 | A kind of image processing method and device |
CN108198144A (en) * | 2017-12-28 | 2018-06-22 | 广东欧珀移动通信有限公司 | Image processing method, device, storage medium and electronic equipment |
-
2018
- 2018-08-30 CN CN201811006137.2A patent/CN108965770B/en active Active
Patent Citations (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102982572A (en) * | 2012-10-31 | 2013-03-20 | 北京百度网讯科技有限公司 | Intelligent image editing method and device thereof |
US20150095772A1 (en) * | 2013-09-30 | 2015-04-02 | Fujifilm Corporation | Parameter setting assisting system, parameter setting assisting method, and non-transitory storage medium |
CN103533244A (en) * | 2013-10-21 | 2014-01-22 | 深圳市中兴移动通信有限公司 | Shooting device and automatic visual effect processing shooting method thereof |
CN104680471A (en) * | 2013-12-02 | 2015-06-03 | 腾讯科技(深圳)有限公司 | Method, device and system for processing image |
CN104836977A (en) * | 2014-02-10 | 2015-08-12 | 阿里巴巴集团控股有限公司 | Method and system for video communication in instant communication process |
CN104967801A (en) * | 2015-02-04 | 2015-10-07 | 腾讯科技(深圳)有限公司 | Video data processing method and apparatus |
CN104967784A (en) * | 2015-07-02 | 2015-10-07 | 广东欧珀移动通信有限公司 | Method of calling underlayer effect mode of shooting function of mobile terminal, and mobile terminal |
CN105827936A (en) * | 2015-08-28 | 2016-08-03 | 维沃移动通信有限公司 | Image processing method and mobile terminal |
CN106507021A (en) * | 2015-09-07 | 2017-03-15 | 腾讯科技(深圳)有限公司 | Method for processing video frequency and terminal device |
CN105979194A (en) * | 2016-05-26 | 2016-09-28 | 努比亚技术有限公司 | Video image processing apparatus and method |
CN105872252A (en) * | 2016-05-30 | 2016-08-17 | 珠海市魅族科技有限公司 | Image processing method and device |
CN106657810A (en) * | 2016-09-26 | 2017-05-10 | 维沃移动通信有限公司 | Filter processing method and device for video image |
CN106991654A (en) * | 2017-03-09 | 2017-07-28 | 广东欧珀移动通信有限公司 | Human body beautification method and apparatus and electronic installation based on depth |
CN107123081A (en) * | 2017-04-01 | 2017-09-01 | 北京小米移动软件有限公司 | image processing method, device and terminal |
CN107633488A (en) * | 2017-09-14 | 2018-01-26 | 光锐恒宇(北京)科技有限公司 | A kind of image processing method and device |
CN108198144A (en) * | 2017-12-28 | 2018-06-22 | 广东欧珀移动通信有限公司 | Image processing method, device, storage medium and electronic equipment |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111246300A (en) * | 2020-01-02 | 2020-06-05 | 北京达佳互联信息技术有限公司 | Method, device and equipment for generating clip template and storage medium |
WO2021135678A1 (en) * | 2020-01-02 | 2021-07-08 | 北京达佳互联信息技术有限公司 | Editing template generating method and apparatus, electronic device, and storage medium |
CN111857512A (en) * | 2020-07-17 | 2020-10-30 | 维沃移动通信有限公司 | Image editing method and device and electronic equipment |
WO2022012657A1 (en) * | 2020-07-17 | 2022-01-20 | 维沃移动通信有限公司 | Image editing method and apparatus, and electronic device |
CN112634408A (en) * | 2020-12-24 | 2021-04-09 | 深圳市大富网络技术有限公司 | Material selection method, system, device and storage medium |
CN113791721A (en) * | 2021-08-31 | 2021-12-14 | 北京达佳互联信息技术有限公司 | Picture processing method and device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN108965770B (en) | 2021-12-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11557322B2 (en) | Method and device for generating multimedia resource | |
CN108965770B (en) | Image processing template generation method and device, storage medium and mobile terminal | |
CN108769562B (en) | Method and device for generating special effect video | |
CN109089043B (en) | Shot image preprocessing method and device, storage medium and mobile terminal | |
EP3941037A1 (en) | Editing template generating method and apparatus, electronic device, and storage medium | |
CN111142838B (en) | Audio playing method, device, computer equipment and storage medium | |
CN112363660B (en) | Method and device for determining cover image, electronic equipment and storage medium | |
CN111221457A (en) | Method, device and equipment for adjusting multimedia content and readable storage medium | |
CN111741366A (en) | Audio playing method, device, terminal and storage medium | |
CN111355998B (en) | Video processing method and device | |
CN112788359B (en) | Live broadcast processing method and device, electronic equipment and storage medium | |
CN114245218B (en) | Audio and video playing method and device, computer equipment and storage medium | |
CN114415907B (en) | Media resource display method, device, equipment and storage medium | |
CN110839174A (en) | Image processing method and device, computer equipment and storage medium | |
CN110377200A (en) | Sharing data generation method, device and storage medium | |
CN111880888A (en) | Preview cover generation method and device, electronic equipment and storage medium | |
CN109104633B (en) | Video screenshot method and device, storage medium and mobile terminal | |
CN112822544B (en) | Video material file generation method, video synthesis method, device and medium | |
CN112419143B (en) | Image processing method, special effect parameter setting method, device, equipment and medium | |
CN109089042B (en) | Image processing mode identification method and device, storage medium and mobile terminal | |
CN114363678A (en) | Screen projection method and equipment | |
US11290700B2 (en) | Device for displaying content and operation method therefor | |
CN114554112B (en) | Video recording method, device, terminal and storage medium | |
CN113727024B (en) | Method, device, electronic equipment and storage medium for generating multimedia information | |
CN115484395B (en) | Video processing method and electronic 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 |