CN108600614B - Image processing method and device - Google Patents
Image processing method and device Download PDFInfo
- Publication number
- CN108600614B CN108600614B CN201810284263.8A CN201810284263A CN108600614B CN 108600614 B CN108600614 B CN 108600614B CN 201810284263 A CN201810284263 A CN 201810284263A CN 108600614 B CN108600614 B CN 108600614B
- Authority
- CN
- China
- Prior art keywords
- image
- additional
- filter
- feature information
- processing apparatus
- 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
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 22
- 238000000034 method Methods 0.000 claims abstract description 38
- 238000012545 processing Methods 0.000 claims description 164
- 230000014509 gene expression Effects 0.000 claims description 32
- 230000003796 beauty Effects 0.000 claims description 12
- 238000004040 coloring Methods 0.000 claims description 9
- 230000008569 process Effects 0.000 abstract description 8
- 241000283973 Oryctolagus cuniculus Species 0.000 description 18
- 238000013461 design Methods 0.000 description 18
- 210000005069 ears Anatomy 0.000 description 17
- 238000010586 diagram Methods 0.000 description 10
- 238000004590 computer program Methods 0.000 description 5
- 238000012217 deletion Methods 0.000 description 5
- 230000037430 deletion Effects 0.000 description 5
- 230000000694 effects Effects 0.000 description 3
- 238000009432 framing Methods 0.000 description 3
- 239000000284 extract Substances 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 241000282326 Felis catus Species 0.000 description 1
- PEDCQBHIVMGVHV-UHFFFAOYSA-N Glycerine Chemical compound OCC(O)CO PEDCQBHIVMGVHV-UHFFFAOYSA-N 0.000 description 1
- 240000007711 Peperomia pellucida Species 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000001815 facial effect Effects 0.000 description 1
- 230000008921 facial expression Effects 0.000 description 1
- 230000004927 fusion Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000003825 pressing Methods 0.000 description 1
- 239000000126 substance Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- 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
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/80—Camera processing pipelines; Components thereof
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Image Processing (AREA)
- Processing Or Creating Images (AREA)
Abstract
The application relates to an image processing method and device, which are used for solving the problem of how to process a shot image. The method comprises the following steps: receiving an operation instruction aiming at a first image, wherein the operation instruction is used for indicating to replace the first image; and stopping displaying the first image and displaying a second image, wherein the first image is generated according to the second image and an additional image.
Description
Technical Field
The present application relates to the field of image processing technologies, and in particular, to an image processing method and apparatus.
Background
At present, in order to meet the interesting photographing requirements of people, a terminal device or an application provider can provide some filters for beautifying pictures for users, and the filters are mainly used for realizing some special effects of images, for example, facial expression filters are deeply favored by the public. The content of the expression filter includes, for example, a moustache or rabbit ear, and adding the expression filter to the captured image can make the captured image more lovely.
Generally, a user may select a filter when shooting a face and then shoot the face, thereby obtaining a face image with the filter. Taking the expression filter as an example, a normal facial image with the expression filter usually satisfies the following two points: firstly, coordinating an expression filter with the direction of a human face; and secondly, the expression filter and the face are fused strongly. However, some defects may also exist in the face image with the expression filter captured sometimes, for example, the content of the expression filter is rabbit ears, but the rabbit ears in the captured image are skewed, which results in an incongruity between the directions of the rabbit ears and the face, or there is a distance between the rabbit ears and the face, which results in a poor sense of image fusion. However, in the prior art, if the photographed image is not satisfactory, the image can only be photographed again, and other solutions are not available for the moment.
Disclosure of Invention
The embodiment of the application provides an image processing method and device, which are used for processing a shot image.
In a first aspect, an image processing method is provided, including:
receiving an operation instruction aiming at a first image, wherein the operation instruction is used for indicating to replace the first image;
and stopping displaying the first image and displaying a second image, wherein the first image is generated according to the second image and an additional image.
In one possible design, ceasing to display the first image and displaying the second image includes:
overlaying the first image with the second image.
In one possible design, the first image is deleted after the display of the first image is stopped.
In one possible design, the additional image comprises an expression filter image or a tint filter image or a beauty filter image or a special scene filter image.
In one possible design, before displaying the second image, the method further includes: obtaining the second image from a local or cloud.
In a second aspect, there is provided an image device comprising:
receiving an operation instruction for a first image, wherein the operation instruction is used for instructing the first image to be edited, and the first image is generated according to a second image and an additional image;
editing the additional image in the first image to obtain the second image.
In one possible design, before editing the additional image in the first image, the method further includes:
identifying the additional images in the first image by an image identification process.
In one possible design, before editing the additional image in the first image, the method further includes:
determining a first image layer included in the first image, wherein the first image layer is used for bearing the additional image;
and removing the first image layer from the first image.
In one possible design, the additional image comprises an expression filter image or a tint filter image or a beauty filter image or a special scene filter image.
In a third aspect, an image processing apparatus is provided, including:
the receiving and sending module is used for receiving an operation instruction aiming at a first image, and the operation instruction is used for indicating to replace the first image;
and the processing module is used for stopping displaying the first image and displaying a second image, wherein the first image is generated according to the second image and an additional image.
In one possible design, the processing module is specifically configured to: overlaying the first image with the second image.
In one possible design, the processing module is further configured to: deleting the first image after stopping displaying the first image.
In one possible design, the additional image comprises an expression filter image or a tint filter image or a beauty filter image or a special scene filter image.
In one possible design, the processing module is further configured to: obtaining a second image from a local or cloud before displaying the second image.
In a fourth aspect, there is provided an image processing apparatus comprising:
the image editing device comprises a transceiving module, a processing module and a processing module, wherein the transceiving module is used for receiving an operation instruction aiming at a first image, and the operation instruction is used for instructing to edit the first image, and the first image is generated according to a second image and an additional image;
and the processing module is used for editing the additional image in the first image to obtain the second image.
In one possible design, the processing module is further configured to:
identifying the additional ones of the first images through an image identification process prior to editing the additional ones of the first images.
In one possible design, the processing module is specifically configured to:
determining a first image layer included in the first image, wherein the first image layer is used for bearing the additional image; and removing the first image layer from the first image.
In one possible design, the additional image comprises an expression filter image or a tint filter image or a beauty filter image or a special scene filter image.
In a fifth aspect, there is provided an image processing apparatus comprising:
at least one processor, and
a memory communicatively coupled to the at least one processor;
wherein the memory stores instructions executable by the at least one processor to perform the method as described in the first aspect or any one of the possible designs of the embodiments of the present application or the method as described in the second aspect or any one of the possible designs of the embodiments of the present application by executing the instructions stored by the memory.
In a sixth aspect, there is provided a computer readable storage medium having stored thereon computer instructions which, when executed on a computer, cause the computer to perform the method of the first aspect or any one of the possible designs of the embodiments of the present application or the method of the second aspect or any one of the possible designs of the embodiments of the present application.
One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:
in the embodiment of the application, for example, when a user takes a face, the user selects a filter, the filter can be regarded as an additional image, and then a face image with the filter is obtained according to the face and the filter, the face image with the filter can be regarded as a first image, and the face image without the filter can be regarded as a second image. When a user is not satisfied with the face image with the filter, an operation instruction aiming at the first image can be sent out, the image processing device can stop displaying the face image with the filter and display the face image without the filter, so that the processing of the first image is realized, the user can directly operate when the user is not satisfied with the first image, the image processing device can display the second image instead, shooting is not needed again, the power consumption of the device is reduced, the operation of the user is simplified, and the user experience is improved.
Drawings
Fig. 1 is a flowchart of an image processing method according to an embodiment of the present application;
FIG. 2 is an example of a first image provided by an embodiment of the present application;
FIG. 3 is an example of a second image provided by an embodiment of the present application;
FIG. 4 is an example of a new first image generated according to the second image in FIG. 3 according to an embodiment of the present disclosure;
FIG. 5 is a flowchart of another image processing method provided in the embodiments of the present application;
FIG. 6 is an example of a first image provided by an embodiment of the present application;
fig. 7 is a schematic diagram illustrating a result of processing the first image in fig. 8 according to an embodiment of the present disclosure;
fig. 8 is a schematic structural diagram of an image processing apparatus according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of an image processing apparatus according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of an image processing apparatus according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application are clearly and completely described below.
At present, when a user shoots an image through terminal equipment, an expression filter may be used, so that the image with the expression filter is shot, and the aesthetic feeling and the interestingness of the image are increased. However, sometimes the captured image with expression filter may not be satisfactory to the user, but the current solution is only to capture the image again, which is obviously troublesome.
In view of this, embodiments of the present application provide an image processing method and apparatus for processing a captured image.
The technical scheme provided by the embodiment of the application is described in the following with the accompanying drawings of the specification.
Referring to fig. 1, an embodiment of the present application provides an image processing method, which can be executed by an image processing apparatus. The flow of the method is described below.
In the embodiment of the present application, the image processing apparatus is, for example, a terminal device, and the terminal device includes, for example, a camera, a mobile phone, or a tablet computer (PAD), and may further include other devices with a shooting function.
For example, the user may want to take a picture, open a camera application on the image processing apparatus to view the picture, and the camera application may be a camera application carried by the image processing apparatus or another camera application downloaded by the image processing apparatus. To increase the interest, the user selects a filter for the image to be captured, for example in a filter of the image processing apparatus itself or in a filter provided by an application installed in the image processing apparatus. The filter selected by the user is, for example, a coloring filter, an expression filter, a beauty filter, or a special scene filter, wherein the coloring filter can provide various color layers to change the color of the image, the expression filter includes some ornaments or cartoon expressions to be added to the image, the beauty filter can make the skin of the human face whiter, and the special scene filter can provide special scene effects, such as scenes of dusk or beach. After the user selects the filter and finishes framing, the user may click a shooting button on the image processing apparatus to finish shooting, or the user may finish shooting through voice operation or gesture operation, and the specific shooting mode is not limited. After the photographing is completed, a photographed image can be obtained. The captured image is the first image described in the previous step. In this case, when the user actually obtains the first image by adding a filter to the original image obtained by framing during shooting, the image processing apparatus can obtain the original image without the filter added thereto, that is, the second image, in addition to the first image by shooting.
For example, when the user intends to take a picture, in order to make the picture more lovely, the user selects the expression filter provided by the picture taking application in the picture taking application of the image processing apparatus, and the content of the expression filter selected by the user is rabbit ears shown in fig. 2, that is, the content encircled by the dotted ellipse in fig. 2. Then, the image captured by the image processing device and the expression filter are combined to complete the shooting, wherein the image captured by the image processing device is a face image, the shot image is a face image with rabbit ears, and the face image with the rabbit ears can be regarded as a first image, as shown in fig. 2. For example, in addition, the image processing apparatus may obtain a face image without rabbit ears, which may be regarded as the second image, in addition to the face image with rabbit ears, as shown in fig. 3.
Alternatively, the user may call up an existing image, add a filter to the existing image to obtain the first image, the existing image may be considered the second image, and the added filter may be an additional image, e.g., in fig. 2, rabbit ears may be considered the additional image. In this case, the second image may be stored locally on the image processing device, and may be directly called by the user, or the second image may be obtained from the cloud, or the second image may be received from another device, or the second image may be downloaded via a network, and the like.
After the first image is obtained, the user may view the first image. For example, after the user finishes shooting the first image, the user may directly view the first image, specifically, after the image processing apparatus finishes shooting the first image, the user may generally display the first image on the display screen of the image processing apparatus, and then the user may directly view the first image, or, the user may view the first image after a period of time after finishing shooting the first image, during the period of time, the image processing apparatus may always display the first image, and then the user may directly view the first image after the period of time, or during the period of time, the display screen of the image processing apparatus may display other contents, for example, the user may also take other images, or the user may call other applications, and so on, after the period of time, the user wants to view the first image, and may call the first image from the storage space of the image processing apparatus to view the first image, which is a prerequisite of course, it is the image processing apparatus that stores the first image.
After the user views the first image, the first image may be dissatisfied, for example, the filter added in the shooting of fig. 2 is an expression filter, the content of the expression filter is rabbit ears, but the rabbit ears in the shot human face image with rabbit ears shown in fig. 2 are skewed, so that the directions of the rabbit ears and the human face are not consistent, and thus the dissatisfaction of the user can be caused.
In this case, the user may wish to retrieve an image that is satisfactory to the user. Then in the embodiment of the present application, the user does not need to shoot again, but can directly process the first image to obtain a satisfactory image again. For example, the user may perform an operation on the first image, such as an editing operation or a deleting operation, or may also be an operation dedicated to instructing to replace the first image, and in short, the operation is to replace the first image, for example, if the display screen of the image processing apparatus is a touch display screen, the user may directly perform the operation by clicking or sliding the first image displayed on the touch display screen, or the user may perform the operation by pressing a physical key or a virtual key on the image processing apparatus, or the user may perform the operation by a gesture operation or a voice operation, or the like. When the user performs the operation on the first image, which is equivalent to inputting an operation instruction to the image processing apparatus, the image processing apparatus receives the operation instruction, and determines that the operation instruction is used for instructing to replace the first image. For example, if the user is not satisfied with the face image with rabbit ears shown in fig. 2, the user touches the virtual key of the image processing apparatus to perform an operation of replacing the first image shown in fig. 2, and if the user performs the operation and thereafter inputs an operation instruction to the image processing apparatus, the image processing apparatus receives the operation instruction and determines that the operation instruction instructs replacement of the first image shown in fig. 2.
The image processing device executes the operation instruction to replace the first image. In the embodiment of the present application, replacing the first image may be understood as stopping displaying the first image and displaying the second image. The first image is generated from the second image and an additional image, and in a popular way, the second image can be understood as an original image, and the first image can be understood as an image obtained by processing the original image. The technical problem to be solved by combining the embodiments of the present application can be understood as that the second image is an image without a filter added thereto, and the first image is an image obtained by adding a filter to the second image. That is, because the user is not satisfied with the image with the filter added thereto, the image processing apparatus may display the original image without the filter added thereto and no longer display the image with the filter added thereto according to the user's operation, so that the original image can be obtained without the user's re-photographing, for example, the image processing apparatus receives an operation instruction of the user, and executes the operation instruction to stop displaying the face image with rabbit ears shown in fig. 2, that is, stop displaying the first image, and instead display the face image without rabbit ears shown in fig. 3, that is, display the second image.
After the image processing device displays the second image, the user can perform corresponding processing on the second image. For example, the user may save the second image as shown in fig. 3, or after the image processing apparatus displays the second image, the user may add a new filter on the second image, for example, the user selects a new filter, the content of the new filter is, for example, a five-pointed star, and the image processing apparatus combines the second image and the filter selected by the user to regenerate a new first image, which is, for example, referred to as a third image, as shown in fig. 4. Therefore, the user can perform various different operations on the second image according to the requirements, various further operation modes are provided for the user, and the user experience can be effectively improved.
As described above, if the second image is obtained by the user adding a filter to the original image obtained by framing during shooting, the image processing apparatus may obtain the second image in addition to the first image by shooting, and the image processing apparatus may store the second image. Alternatively, the second image may be an image stored in the image processing apparatus. In both cases, when the image processing apparatus needs to display the second image, the image processing apparatus may call the second image directly from the local.
Alternatively, the second image may be obtained from the cloud, or received from another device, or downloaded via the network, etc., so that the two cases are divided into two cases: in one case, the image processing apparatus obtains the first image according to the second image after obtaining the second image, and the image processing apparatus deletes the second image after obtaining the first image, then, when the image processing apparatus needs to display the second image again, the second image may be obtained again, for example, the second image is obtained from the cloud again before the image processing apparatus displays the second image, or the second image is received from another apparatus, and the second image is received from another apparatus again before the image processing apparatus displays the second image, and so on, because the user is not necessarily dissatisfied with the first image, that is, the image processing apparatus does not necessarily need to display the second image again, the storage space of the image processing apparatus may be saved to some extent by this way; in another case, after the image processing apparatus obtains the second image, the image processing apparatus may obtain the first image according to the second image, and may also store the second image, and when the image processing apparatus needs to display the second image again, the image processing apparatus may call the second image locally, which may save interaction between the image processing apparatus and other apparatuses.
In the embodiment of the present application, the image processing apparatus stops displaying the first image and displays the second image, and different implementations are possible.
For example, the image processing apparatus turns off or minimizes the first image, thereby enabling to stop displaying the first image, and turns on or maximizes the second image that has been previously turned on, thereby enabling to display the second image. In this case, after the display of the first image is stopped and the second image is displayed, the first image and the second image may still exist in the image processing apparatus.
Or, for example, the image processing apparatus replaces the first image with the second image, in which case the second image still exists in the image processing apparatus after the display of the first image is stopped and the second image is displayed, but the first image may continue to exist in the image processing apparatus, at which point "replace" simply means that the image processing apparatus displays the second image instead of displaying the first image, but does not mean that the image processing apparatus deletes the first image, or the first image may no longer exist after the display of the first image is stopped and the second image is displayed, at which point the replacement of the first image with the second image by the image processing apparatus may be interpreted as the image processing apparatus overlaying the first image with the second image, i.e., the first image has been deleted while being replaced.
Or, for example, the image processing apparatus overwrites the first image with the second image, in which case, after stopping displaying the first image and displaying the second image, the second image still exists in the image processing apparatus, but the first image no longer exists in the image processing apparatus, it can be understood that the first image has been deleted. Of course, the above several implementations are only examples, and the embodiments of the present application are not limited to the implementations in which the image processing apparatus stops displaying the first image and displays the second image.
For the embodiment of the application, the first image is actually an image which is not satisfactory to the user, and the first image can be deleted, so that the storage space of the image processing device is saved. According to the foregoing descriptions of several implementations in which the image processing apparatus stops displaying the first image and displays the second image, if the image processing apparatus overwrites the first image with the second image, it may be considered that the first image is deleted, and if the image processing apparatus turns off the first image or minimizes the first image, thereby enabling stopping displaying the first image, or the image processing apparatus replaces the first image with the second image, the first image may still exist. In these cases, in order to save the storage space, the image processing apparatus may delete the first image directly after the first image is turned off or the first image is replaced with the second image, without requiring a manual operation by the user, simplifying the operation process of the user. Or, if the user's requirement is considered, the image processing apparatus may not delete the first image, and if the user wants to delete the first image, the image processing apparatus may perform an operation, for example, the user may perform a deletion operation on the first image, and after receiving an instruction of the deletion operation input by the user, the image processing apparatus deletes the first image, so that the processing procedure of the image processing apparatus more conforms to the user's requirement. In this document, in order to distinguish from the aforementioned operation instruction for instructing to replace the first image, the operation instruction for instructing to replace the first image may be referred to as a first operation instruction, and the operation instruction for deleting the first image input by the user may be referred to as a second operation instruction. It should be noted that the descriptions of "first", "second", etc. herein are only for distinguishing different technical features and are not intended to limit the occurrence order and the substance of the technical features.
In order to solve the same technical problem that the photographed image cannot be processed at present, referring to fig. 5, an embodiment of the present application further provides another image processing method, which can be executed by an image processing apparatus. The flow of the method is described below.
For the first image, the second image, the additional image, the source of the operation instruction, how to issue the operation instruction, and how to view the first image, the related description in the embodiment shown in fig. 1 may be referred to, and details are not repeated.
Take the example that the first image is obtained by shooting. For example, the user takes a first image, the first image may refer to fig. 6, and the frame portion shown by the dotted line in fig. 6 may be regarded as an additional image included in the first image. After the user views the first image, the user may feel that the photographed mirror frame in fig. 6 is not beautiful, the user may operate the first image, and the operation of the first image by the user is equivalent to sending an operation instruction to the image processing apparatus, and the image processing apparatus receives the operation instruction, and as to the operation manner of the user, reference may be made to the related description in the embodiment shown in fig. 1. After the image processing device receives the operation instruction and determines that the operation instruction indicates to replace the first image shown in fig. 6, the image processing device executes the operation instruction to edit the first image.
To edit the additional image in the first image, the image processing apparatus needs to determine which part of the first image is the additional image. Two ways of determining the additional images and editing the additional images in the first image are described below.
In a first mode, before editing the additional images in the first image, the additional images in the first image can be identified through an image identification process, and then the additional images in the first image can be edited.
Among them, there are various image recognition methods. An image recognition method such as a feature recognition method is characterized in that an image processing device obtains feature information, the feature information is extracted from a sample image, the image processing device can extract corresponding feature information of a first image, the extracted feature information of the first image is matched with the feature information of the sample image, a part of the feature information of the first image, which is successfully matched with the feature information of the sample image, is recognized as a part of an additional image, and the image processing device edits the recognized additional image. The sample image includes, for example, a filter that can be added to the image, and characteristic information of the sample image includes, for example, a moustache, an ear of a rabbit, a frame, and the like. The characteristic information of the sample image may be acquired by an image processing device and stored in the image processing device, or may be acquired by other devices, and the image processing device may be acquired by a cloud, or may be directly acquired from other devices.
To illustrate the specific example of the feature identification method, taking the texture feature of the image as an example, the image processing apparatus stores the feature information of the sample frame image in advance, extracts the feature information of the first image shown in fig. 6, matches the feature information of the first image shown in fig. 6 with the feature information of the sample frame image, and identifies the frame portion shown in fig. 6 as an additional image if the matching of the feature information of the frame portion shown in fig. 6 with the feature information of the sample frame image is successful, and then edits the additional image. The method is suitable for the situation that additional images are newly added objects, for example, an expression filter with a cat ear, a special scene filter with a moon starry sky and the like, but is not suitable for the additional images without the newly added objects, such as a coloring filter or a beautifying filter and the like.
Or for example, the similar fuzzy recognition method describes the sample image according to a description algorithm to obtain corresponding semantic information of the sample image, then describes the first image by using the same description algorithm to obtain the semantic information of the first image, matches the semantic information of the first image with the corresponding semantic information of the sample image, identifies a part of the first image successfully matched with the sample image as an additional image, and then edits the identified additional image by the image processing device. Describing algorithms such as natural language, flow charts, pseudocode, and the like. Wherein the sample image includes a filter, such as an expression filter or a special scene filter. The method is suitable for additional images of newly added objects, such as expression filters of spectacle frames, special scene filters of indoor scenes with furniture and the like, and is not suitable for additional images without newly added objects, such as coloring filters, beauty filters and the like.
The method mainly comprises the steps of identifying additional images in the first image by combining the existing image identification process, and editing the additional images in the first image to obtain the second image.
In a second mode, a first image layer included in the first image is determined, the first image layer is used for bearing additional images, and the first image layer is removed from the first image.
For example, the first image includes at least two layers, and the two layers are not directly merged and stored when the first image is stored. Wherein an additional image is carried on at least one of the layers. When the first image is stored, a mark can be set for a layer bearing an additional image, so that the image processing device can directly identify the layer where the additional image is located according to the mark, and the additional image is edited by editing the layer. For example, if the layer carrying the additional image is marked as 1 and the layer carrying other information is marked as 2, or no mark is set for the layer carrying other information, the image processing apparatus may edit the layer marked as 1.
In the method, the first layer is adopted to carry the additional images, and the first layer carrying the additional images is marked, so that the additional images in the first images are identified. The method can realize the deletion processing of all types of additional images, including a coloring filter, an expression filter, a beauty filter or a special scene filter.
Or for example, when the first image is generated, the positions of the layers included in the first image are arranged according to a default sequence rule, the position of the first layer is directly identified according to the default sequence rule, and then the first layer is edited. For example, the order rule defaulted by the image processing apparatus is: the first layer carrying the additional image is 0 and the second layer carrying the second image is 1. The generated first image can be understood as a result of the sequential arrangement of the first image layer and the second image layer. The image processing apparatus may identify a first layer position in the first image according to a default order rule, and then delete the first layer, thereby implementing editing of an additional image to obtain the second image.
According to the method, the positions of the first layer and the second layer are arranged according to the default sequence rule through the image processing device, after the image processing device receives the operation instruction, the positions of the first layer are directly judged according to the default sequence rule arrangement, and the first layer is deleted, so that the second image is obtained. The method can realize the deletion processing of all types of additional images, including a coloring filter, an expression filter, a beauty filter or a special scene filter.
When the image processing apparatus edits the additional image in the first image, the editing may be deleting, and deleting the additional image is equivalent to obtaining a second image, for example, the face image with a frame shown in fig. 6, that is, the first image, and after deleting the additional image shown in the first image, obtaining the second image shown in fig. 7, that is, the face image without a frame. After deletion, the user may perform other operations on the basis of fig. 7, such as adding other filters or directly saving fig. 7.
In the embodiment of the application, for example, when a user shoots a face, a filter is selected by the user, the filter can be regarded as an additional image, a face image with the filter is obtained according to the face and the filter, the face image with the filter can be regarded as a first image, the face image without the filter can be regarded as a second image, and the filter can be regarded as an additional image. When the user is not satisfied with the face image with the filter, an operation instruction for the first image may be issued, and the image processing apparatus may edit the additional image, for example, delete the additional image, thereby obtaining the second image, and thereby implement processing of the photographed image. Therefore, the first image is processed, the user can directly operate the first image when the first image is not satisfied, the image processing device can edit the additional image without shooting again, the power consumption of the device is reduced, the operation of the user is simplified, and the user experience is improved.
On the basis of the above-mentioned embodiment of the image processing method, an image processing apparatus is further provided in the embodiment of the present application, please refer to fig. 8, and the image processing apparatus can be used to implement the image processing method provided in the embodiment shown in fig. 1.
The image processing apparatus includes a transceiver module 801 and a processing module 802:
a transceiver module 801, configured to receive an operation instruction for a first image, where the operation instruction is used to instruct to replace the first image;
a processing module 802, configured to stop displaying the first image and display a second image, where the first image is generated according to the second image and an additional image.
Optionally, the processing module 802 is specifically configured to: overlaying the first image with the second image.
Optionally, the processing module 802 is further configured to: after displaying the first image, deleting the first image.
Optionally, the additional image comprises an expression filter image or a coloring filter image.
Optionally, the processing module 802 is further configured to: obtaining a second image from a cloud prior to displaying the second image.
On the basis of the above-mentioned embodiment of the image processing method, an image processing apparatus is further provided in the embodiment of the present application, please refer to fig. 9, and the image processing apparatus can be used to implement the image processing method provided in the embodiment shown in fig. 5.
The image processing apparatus includes a transceiver module 901 and a processing module 902.
A transceiver module 901, configured to receive an operation instruction for a first image, where the operation instruction is used to instruct to replace the first image, and the first image is generated according to a second image and an additional image;
the processing module 902 deletes the additional image in the first image to obtain the second image.
Optionally, the processing module 902 is further configured to identify the additional image in the first image through an image identification process before deleting the additional image in the first image.
Optionally, the processing module 902 is specifically configured to delete the additional image in the first image, and includes: determining a first image layer included in the first image, wherein the first image layer is used for bearing the additional image; and removing the first image layer from the first image.
Optionally, the additional image includes an expression filter image or a coloring filter image or a beauty filter image or a special scene filter image.
On the basis of the foregoing embodiment of the image processing method, an embodiment of the present application further provides an image processing apparatus, please refer to fig. 10, including:
a processor 1001, and
a memory 1002 communicatively coupled to the processor 1001;
the memory 1002 stores instructions executable by the processor 1001, and the processor 1001 implements the image processing method in one application embodiment or the image processing method in another application embodiment by executing the instructions stored in the memory 1002.
For example, the processing module 802 in the image processing apparatus shown in fig. 8 may be implemented by the processor 1001 in the image processing apparatus shown in fig. 10.
Alternatively, the processing module 902 in the image processing apparatus shown in fig. 9 may be implemented by the processor 1001 in the image processing apparatus shown in fig. 10.
Note that, in fig. 10, the image processing apparatus includes one processor 1001 as an example, and the number of processors 1001 included in the image processing apparatus is not limited in practical application.
On the basis of the embodiment of the image processing method, an embodiment of the present application further provides a computer-readable storage medium, where computer instructions are stored, and when the computer instructions are executed on a computer, the computer is caused to execute the image processing method provided by the embodiment shown in fig. 1 or the image processing method provided by the embodiment shown in fig. 5.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), devices and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above embodiments are only used to describe the technical solutions of the present application in detail, but the above embodiments are only used to help understanding the method of the embodiments of the present application, and should not be construed as limiting the embodiments of the present application. Modifications and substitutions that may be readily apparent to those skilled in the art are intended to be included within the scope of the embodiments of the present application.
Claims (8)
1. An image processing method, comprising:
determining an additional image based on a selection operation that selects the additional image;
responding to the shooting operation of a user, and obtaining a first image, wherein the first image is obtained by performing image processing on a second image according to the additional image, and the second image is an original image obtained by shooting by an image processing device;
displaying the first image in a display screen of the image processing apparatus;
receiving an operation instruction aiming at a first image, wherein the operation instruction is used for indicating to edit the first image;
obtaining feature information of the first image according to the operation instruction;
matching the feature information of the first image with preset feature information, and determining the feature information successfully matched with the preset feature information in the feature information of the first image; wherein the preset feature information is feature information acquired from the additional image;
and obtaining the second image according to the successfully matched characteristic information.
2. The method of claim 1, wherein editing the additional ones of the first images comprises:
determining a first image layer included in the first image, wherein the first image layer is used for bearing the additional image;
and removing the first image layer from the first image.
3. The method of any of claims 1-2, wherein the additional image comprises an expression filter image or a color filter image or a beauty filter image or a special scene filter image.
4. An image processing apparatus characterized by comprising:
a processing module for determining an additional image based on a selection operation that selects the additional image;
responding to the shooting operation of a user, and obtaining a first image, wherein the first image is obtained by performing image processing on a second image according to the additional image, and the second image is an original image obtained by shooting by an image processing device;
displaying the first image in a display screen of the image processing apparatus;
the image editing device comprises a transceiving module, a processing module and a processing module, wherein the transceiving module is used for receiving an operation instruction aiming at a first image, and the operation instruction is used for instructing to edit the first image;
the processing module is further configured to obtain feature information of the first image according to the operation instruction;
matching the feature information of the first image with preset feature information, and determining the feature information successfully matched with the preset feature information in the feature information of the first image; wherein the preset feature information is feature information acquired from the additional image;
and obtaining the second image according to the successfully matched characteristic information.
5. The apparatus of claim 4, wherein the processing module is specifically configured to:
determining a first image layer included in the first image, wherein the first image layer is used for bearing the additional image;
and removing the first image layer from the first image.
6. The apparatus of any of claims 4-5, wherein the additional image comprises an expression filter image or a coloring filter image or a beauty filter image or a special scene filter image.
7. An image processing apparatus characterized by comprising:
at least one processor, and
a memory communicatively coupled to the at least one processor;
wherein the memory stores instructions executable by the at least one processor, the at least one processor implementing the method of any one of claims 1-3 by executing the instructions stored by the memory.
8. A computer-readable storage medium having stored thereon computer instructions which, when executed on a computer, cause the computer to perform the method of any one of claims 1-3.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810284263.8A CN108600614B (en) | 2018-04-02 | 2018-04-02 | Image processing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810284263.8A CN108600614B (en) | 2018-04-02 | 2018-04-02 | Image processing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108600614A CN108600614A (en) | 2018-09-28 |
CN108600614B true CN108600614B (en) | 2022-03-08 |
Family
ID=63624145
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810284263.8A Active CN108600614B (en) | 2018-04-02 | 2018-04-02 | Image processing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108600614B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110264544B (en) * | 2019-05-30 | 2023-08-25 | 腾讯科技(深圳)有限公司 | Picture processing method and device, storage medium and electronic device |
CN113596566A (en) * | 2021-07-08 | 2021-11-02 | 深圳爱特天翔科技有限公司 | Method, device and system for downloading picture by image processing device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104322050A (en) * | 2012-05-22 | 2015-01-28 | 株式会社尼康 | Electronic camera, image display device, and image display program |
CN105279161A (en) * | 2014-06-10 | 2016-01-27 | 腾讯科技(深圳)有限公司 | Filter sequencing method and filter sequencing device for picture processing application |
CN105323456A (en) * | 2014-12-16 | 2016-02-10 | 维沃移动通信有限公司 | Image previewing method for photographing device and image photographing device |
CN107368603A (en) * | 2017-07-28 | 2017-11-21 | 上海鋆创信息技术有限公司 | A kind of method and device, storage medium and the terminal of the processing of picture filter |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5750253B2 (en) * | 2010-09-28 | 2015-07-15 | 任天堂株式会社 | Image generation program, imaging apparatus, imaging system, and image generation method |
JP2012181688A (en) * | 2011-03-01 | 2012-09-20 | Sony Corp | Information processing device, information processing method, information processing system, and program |
-
2018
- 2018-04-02 CN CN201810284263.8A patent/CN108600614B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104322050A (en) * | 2012-05-22 | 2015-01-28 | 株式会社尼康 | Electronic camera, image display device, and image display program |
CN105279161A (en) * | 2014-06-10 | 2016-01-27 | 腾讯科技(深圳)有限公司 | Filter sequencing method and filter sequencing device for picture processing application |
CN105323456A (en) * | 2014-12-16 | 2016-02-10 | 维沃移动通信有限公司 | Image previewing method for photographing device and image photographing device |
CN107368603A (en) * | 2017-07-28 | 2017-11-21 | 上海鋆创信息技术有限公司 | A kind of method and device, storage medium and the terminal of the processing of picture filter |
Also Published As
Publication number | Publication date |
---|---|
CN108600614A (en) | 2018-09-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113302659B (en) | System and method for generating personalized video with customized text messages | |
CN112822542A (en) | Video synthesis method and device, computer equipment and storage medium | |
CN106791389B (en) | Image processing method, image processing device and terminal | |
CN111986076A (en) | Image processing method and device, interactive display device and electronic equipment | |
KR102546016B1 (en) | Systems and methods for providing personalized video | |
CN113330453B (en) | System and method for providing personalized video for multiple persons | |
WO2022198934A1 (en) | Method and apparatus for generating video synchronized to beat of music | |
US11477366B2 (en) | Selfie setup and stock videos creation | |
KR20230021640A (en) | Customize soundtracks and hair styles in editable videos for multimedia messaging applications | |
CN114007099A (en) | Video processing method and device for video processing | |
KR20230022154A (en) | Global configuration interface for basic self-image | |
CN108600614B (en) | Image processing method and device | |
CN110378839A (en) | Face image processing process, device, medium and electronic equipment | |
CN110378847A (en) | Face image processing process, device, medium and electronic equipment | |
CN113453027B (en) | Live video and virtual make-up image processing method and device and electronic equipment | |
CN113709545A (en) | Video processing method and device, computer equipment and storage medium | |
WO2015184903A1 (en) | Picture processing method and device | |
CN113810627B (en) | Video processing method, device, mobile terminal and readable storage medium | |
CN111932442B (en) | Video beautifying method, device and equipment based on face recognition technology and computer readable storage medium | |
KR20210056944A (en) | Method for editing image | |
KR20130142315A (en) | Character service system and character service providing method thereof | |
JP2015133549A (en) | Image processing system, image processing method and computer program | |
CN113989424A (en) | Three-dimensional virtual image generation method and device and electronic equipment | |
CN113489899A (en) | Special effect video recording method and device, computer equipment and storage medium | |
CN110211033A (en) | Face image processing process, device, medium 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 |