CN112672056A - Image processing method and device - Google Patents

Image processing method and device Download PDF

Info

Publication number
CN112672056A
CN112672056A CN202011569054.1A CN202011569054A CN112672056A CN 112672056 A CN112672056 A CN 112672056A CN 202011569054 A CN202011569054 A CN 202011569054A CN 112672056 A CN112672056 A CN 112672056A
Authority
CN
China
Prior art keywords
image
target
initial images
reference image
photographic subject
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011569054.1A
Other languages
Chinese (zh)
Inventor
耿筝
李皓星
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202011569054.1A priority Critical patent/CN112672056A/en
Publication of CN112672056A publication Critical patent/CN112672056A/en
Pending legal-status Critical Current

Links

Images

Abstract

The application discloses an image processing method and device, and belongs to the technical field of communication. The method comprises the following steps: acquiring a plurality of initial images; determining a target photographic object in a motion state and a reference image corresponding to the target photographic object in the plurality of initial images according to the plurality of initial images; processing other initial images except the reference image in the plurality of initial images according to a first image formed by the target shooting object in the reference image to obtain an intermediate image; and synthesizing the intermediate image and the reference image to obtain a target image. The method and the device can reduce the operation steps of the user, simplify the image processing flow and save the image processing time.

Description

Image processing method and device
Technical Field
The present application belongs to the field of communication technologies, and in particular, to an image processing method and apparatus.
Background
Along with the improvement and the progress of electronic equipment software and hardware technology, the function of shooing of electronic equipment is more and more powerful, and more users can use the function of shooing to shoot the scene in daily life, the point of record life drips.
Many photographing functions and image effect editing processing functions are added to the camera of the electronic device to enhance the interest and individuality of the image, for example, a beauty function, a filter function of different styles, an HDR mode, a night mode, a motion capture function, and an effect of using image editing function software to process or add the captured photos at a later stage. The image processing method requires a user to start the editing function software at the later stage, and then the user screens the images to be processed, so that the operation method is complicated and the time consumption is long.
Disclosure of Invention
An object of the embodiments of the present application is to provide an image processing method and an image processing device, which can solve the problems that an operation manner of image processing in the prior art is complicated and time consuming.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides an image processing method, including:
acquiring a plurality of initial images;
determining a target photographic object in a motion state and a reference image corresponding to the target photographic object in the plurality of initial images according to the plurality of initial images;
processing other initial images except the reference image in the plurality of initial images according to a first image formed by the target shooting object in the reference image to obtain an intermediate image;
and synthesizing the intermediate image and the reference image to obtain a target image.
In a second aspect, an embodiment of the present application provides an image processing apparatus, including:
the initial image acquisition module is used for acquiring a plurality of initial images;
a reference image determining module, configured to determine, according to the plurality of initial images, a target photographic object in a moving state and a reference image corresponding to the target photographic object in the plurality of initial images;
an intermediate image obtaining module, configured to process, according to a first image formed by the target shooting object in the reference image, other initial images, except the reference image, in the multiple initial images to obtain an intermediate image;
and the target image acquisition module is used for synthesizing the intermediate image and the reference image to obtain a target image.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the image processing method according to the first aspect.
In a fourth aspect, the present application provides a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the image processing method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the image processing method according to the first aspect.
In the embodiment of the application, a plurality of initial images are obtained, a target shooting object in a moving state and a reference image corresponding to the target shooting object in the plurality of initial images are determined according to the plurality of initial images, other initial images except the reference image in the plurality of initial images are processed according to a first image of the target shooting object in the reference image to obtain an intermediate image, and the intermediate image and the reference image are synthesized to obtain a target image. According to the embodiment of the application, the shooting object in the motion state is identified in the shooting process, and corresponding processing is carried out, so that the image in the ghost form can be obtained, and the user does not need to start the editing function software to screen the image for processing after the image is shot, so that the operation steps of the user can be reduced, the image processing flow is simplified, and the image processing time is saved.
Drawings
Fig. 1 is a flowchart illustrating steps of an image processing method according to an embodiment of the present disclosure;
FIG. 2 is a schematic diagram of a target image according to an embodiment of the present disclosure;
FIG. 3 is a schematic diagram of another target image provided by an embodiment of the present application;
fig. 4 is a schematic structural diagram of an image processing apparatus according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of another electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The image processing method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Referring to fig. 1, a flowchart illustrating steps of an image processing method provided in an embodiment of the present application is shown, and as shown in fig. 1, the image processing method may specifically include the following steps:
step 101: a plurality of initial images are acquired.
The method and the device can be applied to processing the images of a plurality of frames with moving objects and synthesizing the images to obtain the ghost images.
The initial images refer to a plurality of images obtained by continuously shooting a shooting object, in this embodiment, the number of the initial images may be three, five, six, and the like, specifically, the number of the initial images may be determined according to business requirements, and this is not limited in this embodiment.
After a user opens a camera APP (Application) and enters a shooting preview interface, whether the electronic device is in a stable state or not can be determined, specifically, whether the mobile phone is in the stable state or not can be determined according to Gyro, gravity sensor and other sensor data information on the camera preview interface, and if the jitter degree is greater than a set threshold value, the camera processes according to a camera preset flow A and sets a corresponding shooting strategy. Specifically, the camera presetting process a may be a photographing algorithm strategy performed when the camera of the electronic device itself shakes significantly, for example, in this case, the exposure time is reduced or a best-definition frame in the buffered frames is selected.
And if the shake degree of the electronic equipment is smaller than or equal to the set threshold, detecting whether a moving object, namely a shooting object in a moving state, exists in the preview interface, and if the moving object exists, processing according to a preset camera flow B and setting a corresponding shooting strategy. Specifically, the camera presetting flow B refers to a photographing strategy selected when the electronic device camera detects that there is no motion in the picture content when the electronic device camera is stable, for example, a flow of image processing and the like can be performed by starting editing function software after an image is captured.
When image synthesis needs to be performed in the manner of the embodiment of the present application, a plurality of initial images may be acquired.
After acquiring the plurality of initial images, step 102 is performed.
Step 102: and determining a target shooting object in a moving state and a reference image corresponding to the target shooting object in the plurality of initial images according to the plurality of initial images.
The target photographic object refers to an object in a moving state in the preview image, which needs to be subjected to ghost superposition, and for example, the object in the moving state in the preview image includes: the object 1, the object 2, the object 3, and the object 4 may be the object 1 as a target object when the object 1 is required to be an object with ghost superimposed, and may be the object 2 and the object 4 as a target object when the object is required to be a target object, and the like.
In this embodiment, a subject object in a motion state in a plurality of initial images may be acquired and taken as a target photographic object, and in particular, the following detailed description may be made in conjunction with the following specific implementation manner.
In a specific implementation manner of the embodiment of the present application, the step 102 may include:
substep A1: and determining at least one shooting object in a motion state according to the plurality of initial images.
In the present embodiment, at least one photographic subject refers to a subject in a moving state in a plurality of initial images.
After acquiring the plurality of initial images, at least one photographic subject in a motion state may be determined from the plurality of initial images.
After determining at least one photographic subject in motion from the plurality of initial images, sub-step a2 is performed.
Substep A2: and acquiring a photographic subject belonging to a photographic subject from the at least one photographic subject, and taking the photographic subject belonging to the photographic subject as the target photographic subject.
After the at least one photographic subject in the moving state is acquired, a photographic subject in the at least one photographic subject may be acquired, and the photographic subject belonging to the photographic subject may be taken as a target photographic subject, specifically, a photographic subject that needs to be mainly processed may be recommended by determining a position and a picture proportion of a moving object in the picture content, for example, a position near a center of a preview picture, a photographic subject with a larger picture proportion may be selected as a target photographic subject, and the like.
Of course, without being limited thereto, in a specific implementation, the target shooting object may also be specified by the user, and specifically, the target shooting object may be determined according to business requirements, which is not limited in this embodiment.
The reference image is an image of the plurality of initial images, which requires processing the contour of the target object of the other initial images, and in this embodiment, the reference image may be screened according to the definition, and specifically, the detailed description may be provided in conjunction with the following specific implementation manner.
In another specific implementation manner of the embodiment of the present application, the step 102 may include:
substep B1: and acquiring the regional definition of the region of the target shooting object in the plurality of initial images.
In the embodiment of the present application, the region definition refers to the definition of a region in which a target photographic object is located in an initial image.
After the plurality of initial images are acquired, the regional sharpness of the region in which the target photographic subject is located in the plurality of initial images may be acquired.
After the regional sharpness of the region where the target photographic subject is located in the plurality of initial images is acquired, sub-step B2 is performed.
Substep B2: and screening out one initial image with the highest region definition from the plurality of initial images as the reference image.
After the region definition is obtained, the initial image with the highest region definition can be screened out from the plurality of initial images according to the region definition and used as the reference image.
According to the method and the device, the initial image with the clearest region of the target shooting object in the plurality of initial images is selected as the reference image, so that a composite image with higher definition can be obtained in the subsequent image processing process, and the shooting experience of a user is improved.
Of course, in the present embodiment, after the reference image is acquired, the shape of the object contour of the target photographic object in the reference image may be adjusted to generate and store the contour-adjusted image.
Of course, in this embodiment, other adjustment methods, such as cartoonizing, sketching, and line processing, may be adopted, and finally the object in the generated picture is presented in an interesting shape, thereby achieving an interesting effect of the captured image.
After the target photographic subject and the reference image are acquired, step 103 is executed.
Step 103: and processing other initial images except the reference image in the plurality of initial images according to a first image formed by the target shooting object in the reference image to obtain an intermediate image.
The first image is an image of the target photographic subject in the reference image.
The intermediate image refers to an image obtained after processing the other initial images except the reference image among the plurality of initial images according to the first image.
After the target photographic subject and the reference image are acquired, the imaging of the target photographic subject in the reference image, that is, the first image, may be acquired, and then the other initial images, except the reference image, of the plurality of initial images may be processed by combining the first image to obtain the intermediate image. In particular, the detailed description may be combined with the following specific implementations.
In another specific implementation manner of the embodiment of the present application, the step 103 may include:
substep C1: and replacing the target shooting object in the other initial images according to the target shooting object in the reference image to generate the intermediate image.
In the embodiment of the present application, the target photographic object in the other initial images can be replaced by the target photographic object in the reference image to obtain the intermediate image, that is, the target photographic object in the reference image replaces the target photographic object in the other initial images, so as to obtain the intermediate image corresponding to each initial image (except the reference image).
According to the embodiment of the application, the target shooting object with higher definition in the reference image is used for replacing the target shooting object in other initial images, so that a replaced intermediate image with higher definition can be obtained, and the quality of a subsequent composite image can be improved.
Substep C2: and acquiring the target part with the largest change amplitude corresponding to the target shooting object according to the plurality of initial images, adjusting the image information of the target part of the target shooting object in other initial images according to the image information of the target part of the target shooting object in the reference image, and generating the intermediate image.
In this embodiment, the target portion refers to a portion of the plurality of initial images where the variation range of the target photographic object is large, for example, the target photographic object is taken as an example, and a portion of a person with large variation, such as a hand, a foot, or the like, can be detected through the plurality of initial images.
After the target photographic subject is acquired, a target portion of the target photographic subject, which has the largest variation range in the plurality of initial images, may be acquired from the plurality of initial images, and image information of the target portion of the target photographic subject in other initial images may be adjusted based on image information of the target portion of the target photographic subject in the reference image to generate an intermediate image. For example, the target portion is the hand of the user a, and the image information of the hand of the user a in the other initial image is adjusted by the image information of the hand of the user a in the reference image, so that an intermediate image or the like corresponding to the other initial image can be obtained.
According to the image information adjustment method and device, interesting processing of the ghost image can be improved through image information adjustment of the local area in the image, and then shooting experience of a user is improved.
Of course, in this embodiment, the color and transparency of the image of the target photographic object in the other initial images except for the reference image in the plurality of initial images may also be adjusted to obtain the intermediate image, and in particular, the detailed description may be made in conjunction with the following specific implementation manner.
In another specific implementation manner of the present application, the step 103 may include:
substep D1: acquiring a second image of the target photographic subject in each of the plurality of initial images except the reference image.
In the present embodiment, the second image refers to imaging of the target photographic subject in the other initial images except for the reference image among the plurality of initial images.
After the plurality of initial images and the reference image are acquired, imaging of the target photographic subject in the other initial images except for the reference image, that is, the second image, may be acquired.
After the second image is acquired, sub-step D2 is performed.
Substep D2: and adjusting the color information or the transparency information of the second image to obtain the intermediate image.
After the second image is acquired, the color information or the transparency information of the second image may be adjusted, that is, the color information or the transparency information of the second image in other initial images is adjusted for other initial images, so as to obtain intermediate images corresponding to other initial images.
In this embodiment, the closer the distance information between the second image and the first image is, the higher the color brightness of the intermediate image is, or the lower the transparency is, so that after the subsequent images are synthesized, the gradual change effect of the color or the transparency can be intuitively perceived, the viewing effect of the user can be improved, and the shooting experience of the user is further improved.
It should be understood that the above-mentioned embodiments are only examples for better understanding of the technical solutions of the embodiments of the present application, and are not to be taken as the only limitation to the present embodiments.
In a specific implementation, other ways of generating the intermediate image may also be adopted, and this embodiment is not limited to this.
After the intermediate image is obtained, step 104 is performed.
Step 104: and synthesizing the intermediate image and the reference image to obtain a target image.
After the intermediate image is obtained, the intermediate image and the reference image may be subjected to a synthesis process to obtain a target image.
According to the embodiment of the application, the shooting object in the motion state is identified in the shooting process, and corresponding processing is carried out, so that the image in the ghost form can be obtained, and the user does not need to start the editing function software to screen the image for processing after the image is shot, so that the operation steps of the user can be reduced, the image processing flow is simplified, and the image processing time is saved.
In the present embodiment, the image synthesis process can be described in detail with reference to the following specific implementation.
In another specific implementation manner of the embodiment of the present application, the step 104 may include:
sub-step E1: and layering and superposing the plurality of intermediate images to the lower layer of the first image in the reference image to generate the target image.
In this embodiment, a layered-superposition image synthesis mode may be adopted, that is, a plurality of intermediate images are layered-superposed on a lower layer of the first image in the reference image to obtain the target image, and it can be understood that in the layered-superposition mode, the first image is located on an uppermost layer, and the closer the imaging distance of the target photographic object in the intermediate image to the first image, the higher the layering is, so that the effect of gradation can be intuitively perceived.
In this example, if the intermediate image is an image in which all the target areas of the target photographic subject are replaced, the generated target image may include a ghost of the photographic subject as shown in fig. 2.
If the intermediate image is image information in which the local region of the target object is adjusted, the generated target image may include a ghost of the local region as shown in fig. 3, as shown in fig. 3.
According to the embodiment of the application, the interesting processing of the ghost of the moving object can be realized, the final picture is generated through the personalized processing of different ghost outlines, the editing mode is provided, the user can conveniently process the personalized picture, and the interest of photographing is expanded.
In this embodiment, a motion trajectory of the target photographic object may be determined in combination with the plurality of initial images, a next frame image of the plurality of initial images may be obtained in combination with the motion trajectory, and the target photographic object is marked in the synthesized target image in combination with an image of the target photographic object in the next frame image, which may be described in detail in the following specific implementation manner.
In a specific implementation manner of the embodiment of the present application, after the step 104, the method may further include:
step F1: and determining the motion trail of the target shooting object according to the plurality of initial images.
In the present embodiment, the motion trajectory refers to a trajectory along which the target photographic subject travels.
After acquiring the plurality of initial images, the motion trajectory of the target photographic object can be calculated according to the position information of the target photographic object in each initial image.
After the motion trajectory of the target photographic object is determined from the plurality of initial images, step F2 is performed.
Step F2: and determining the position information of the target shooting object in the next frame image corresponding to the plurality of initial images according to the motion trail.
After the motion trajectory of the target photographic subject is acquired, the position information of the target photographic subject in the next frame image corresponding to the plurality of initial images may be acquired according to the motion trajectory, and then step F2 is performed.
Step F3: and according to the position information, superposing a third image formed by the target shooting object in the next frame image in the target image, and adjusting the color information or the transparency information of the third image.
After the position information of the target photographic object in the next frame image corresponding to the plurality of initial images is obtained, the imaging of the target photographic object in the next frame image, namely the third image, can be obtained, the third image is superimposed on the target image, and the color information or the transparency information of the third image is adjusted.
In this embodiment, for the motion profiles of different positions of the same moving object, coloring operations of different degrees may be performed, for example, the farther the ghost from the main body is, the more transparent the ghost is, or the motion trajectory of the next ghost may be predicted and displayed in color according to the motion trajectory of the ghost profile. By predicting the dynamic state of the next frame of object, some ghost outlines are increased, and the interest of image shooting is greatly improved.
According to the image processing method provided by the embodiment of the application, a target shooting object in a moving state and a reference image corresponding to the target shooting object in the plurality of initial images are determined according to the plurality of initial images, other initial images except the reference image in the plurality of initial images are processed according to a first image formed by the target shooting object in the reference image to obtain an intermediate image, and the intermediate image and the reference image are synthesized to obtain a target image. According to the embodiment of the application, the shooting object in the motion state is identified in the shooting process, and corresponding processing is carried out, so that the image in the ghost form can be obtained, and the user does not need to start the editing function software to screen the image for processing after the image is shot, so that the operation steps of the user can be reduced, the image processing flow is simplified, and the image processing time is saved.
It should be noted that, in the image processing method provided in the embodiment of the present application, the execution subject may be an image processing apparatus, or a control module in the image processing apparatus for executing the image processing method. The image processing apparatus provided in the embodiment of the present application is described with an example in which an image processing apparatus executes an image processing method.
Referring to fig. 4, a schematic diagram illustrating a structure of an image processing apparatus according to an embodiment of the present disclosure is shown in fig. 4, where the image processing apparatus 400 may specifically include the following modules:
an initial image obtaining module 410, configured to obtain a plurality of initial images;
a reference image determining module 420 configured to determine a target photographic object in a moving state and a reference image corresponding to the target photographic object in the plurality of initial images, according to the plurality of initial images;
an intermediate image obtaining module 430, configured to process, according to a first image of the target photographic subject in the reference image, other initial images except the reference image in the multiple initial images to obtain an intermediate image;
and a target image obtaining module 440, configured to synthesize the intermediate image and the reference image to obtain a target image.
Optionally, the reference image determining module 420 includes:
a photographic subject determination unit configured to determine at least one photographic subject in a motion state from the plurality of initial images;
a target photographic subject acquisition unit configured to acquire a photographic subject belonging to a photographic subject among the at least one photographic subject, and to take the photographic subject belonging to the photographic subject as the target photographic subject.
Optionally, the reference image determining module 420 includes:
a region definition acquiring unit, configured to acquire region definitions of regions where the target photographic object is located in the multiple initial images;
and the reference image acquisition unit is used for screening out one initial image with the highest regional definition from the plurality of initial images as the reference image.
Optionally, the intermediate image acquiring module 430 includes:
a first intermediate image generation unit configured to generate the intermediate image by replacing a target photographic object in the other initial image with the target photographic object in the reference image;
and a second intermediate image generating unit, configured to acquire, according to the plurality of initial images, a target portion with a largest variation range corresponding to the target photographic object, and adjust, according to image information of the target portion of the target photographic object in the reference image, image information of the target portion of the target photographic object in the other initial images, so as to generate the intermediate image.
Optionally, the intermediate image acquiring module 430 includes:
a second image acquisition unit configured to acquire, for each of the plurality of initial images except for the reference image, a second image of the target photographic subject in the initial image;
the intermediate image acquisition unit is used for adjusting the color information or the transparency information of the second image to obtain an intermediate image;
wherein, the closer the distance information of the second image and the first image is, the higher the color brightness of the intermediate image is, or the lower the transparency of the intermediate image is;
the target image acquisition module 440 includes:
and the target image generating unit is used for layering and superposing the plurality of intermediate images to the lower layer of the first image in the reference image to generate the target image.
Optionally, the method further comprises:
a motion track determining module, configured to determine a motion track of the target photographic object according to the plurality of initial images;
a position information determining module, configured to determine, according to the motion trajectory, position information of the target photographic object in a next frame image corresponding to the plurality of initial images;
and the third image superposition module is used for superposing a third image formed by the target shooting object in the next frame image in the target image according to the position information and adjusting the color information or the transparency information of the third image.
The image processing apparatus provided in the embodiment of the present application obtains a plurality of initial images, determines a target photographic object in a moving state and a reference image corresponding to the target photographic object in the plurality of initial images according to the plurality of initial images, processes other initial images except the reference image in the plurality of initial images according to a first image of the target photographic object in the reference image to obtain an intermediate image, and synthesizes the intermediate image and the reference image to obtain a target image. According to the embodiment of the application, the shooting object in the motion state is identified in the shooting process, and corresponding processing is carried out, so that the image in the ghost form can be obtained, and the user does not need to start the editing function software to screen the image for processing after the image is shot, so that the operation steps of the user can be reduced, the image processing flow is simplified, and the image processing time is saved.
The image processing apparatus in the embodiment of the present application may be an apparatus, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The image processing apparatus in the embodiment of the present application may be an apparatus having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The image processing apparatus provided in the embodiment of the present application can implement each process implemented in the method embodiment of fig. 1, and is not described here again to avoid repetition.
Optionally, as shown in fig. 5, an electronic device 500 is further provided in this embodiment of the present application, and includes a processor 501, a memory 502, and a program or an instruction stored in the memory 502 and executable on the processor 501, where the program or the instruction is executed by the processor 501 to implement each process of the above-mentioned embodiment of the image processing method, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 6 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 600 includes, but is not limited to: a radio frequency unit 601, a network module 602, an audio output unit 603, an input unit 604, a sensor 605, a display unit 606, a user input unit 607, an interface unit 608, a memory 609, a processor 610, and the like.
Those skilled in the art will appreciate that the electronic device 600 may further comprise a power source (e.g., a battery) for supplying power to the various components, and the power source may be logically connected to the processor 610 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 6 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
The processor 610 is configured to acquire a plurality of initial images; determining a target photographic object in a motion state and a reference image corresponding to the target photographic object in the plurality of initial images according to the plurality of initial images; processing other initial images except the reference image in the plurality of initial images according to a first image formed by the target shooting object in the reference image to obtain an intermediate image; and synthesizing the intermediate image and the reference image to obtain a target image.
According to the embodiment of the application, the shooting object in the motion state is identified in the shooting process, and corresponding processing is carried out, so that the image in the ghost form can be obtained, and the user does not need to start the editing function software to screen the image for processing after the image is shot, so that the operation steps of the user can be reduced, the image processing flow is simplified, and the image processing time is saved.
Optionally, the processor 610 is further configured to determine at least one photographic object in a motion state according to the plurality of initial images; and acquiring a photographic subject belonging to a photographic subject from the at least one photographic subject, and taking the photographic subject belonging to the photographic subject as the target photographic subject.
Optionally, the processor 610 is further configured to obtain a regional resolution of a region where the target photographic object is located in the plurality of initial images; and screening out one initial image with the highest region definition from the plurality of initial images as the reference image.
Optionally, the processor 610 is further configured to replace the target photographic object in the other initial images according to the target photographic object in the reference image, and generate the intermediate image; or acquiring the target part with the largest change amplitude corresponding to the target shooting object according to the plurality of initial images, and adjusting the image information of the target part of the target shooting object in the other initial images according to the image information of the target part of the target shooting object in the reference image to generate the intermediate image.
Optionally, the processor 610 is further configured to acquire, for each of the plurality of initial images except the reference image, a second image of the target photographic object in the initial image; adjusting the color information or the transparency information of the second image to obtain the intermediate image;
wherein, the closer the distance information of the second image and the first image is, the higher the color brightness of the intermediate image is, or the lower the transparency of the intermediate image is;
the processor 610 is further configured to superimpose the plurality of intermediate images on the lower layer of the first image in the reference image in a layered manner, so as to generate the target image.
Optionally, the processor 610 is further configured to determine a motion trajectory of the target photographic object according to the plurality of initial images; according to the motion trail, determining the position information of the target shooting object in the next frame image corresponding to the plurality of initial images; and according to the position information, superposing a third image formed by the target shooting object in the next frame image in the target image, and adjusting the color information or the transparency information of the third image.
According to the embodiment of the application, the interesting processing of the ghost of the moving object can be realized, the final picture is generated through the personalized processing of different ghost outlines, the editing mode is provided, the user can conveniently process the personalized picture, and the interest of photographing is expanded.
It is to be understood that, in the embodiment of the present application, the input Unit 604 may include a Graphics Processing Unit (GPU) 6041 and a microphone 6042, and the Graphics Processing Unit 6041 processes image data of a still picture or a video obtained by an image capturing apparatus (such as a camera) in a video capturing mode or an image capturing mode. The display unit 606 may include a display panel 6061, and the display panel 6061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 607 includes a touch panel 6071 and other input devices 6072. A touch panel 6071, also referred to as a touch screen. The touch panel 61071 may include two parts of a touch detection device and a touch controller. Other input devices 6072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 609 may be used to store software programs as well as various data including, but not limited to, application programs and an operating system. The processor 610 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 610.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the embodiment of the image processing method, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the embodiment of the image processing method, and can achieve the same technical effect, and the details are not repeated here to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. An image processing method, comprising:
acquiring a plurality of initial images;
determining a target photographic object in a motion state and a reference image corresponding to the target photographic object in the plurality of initial images according to the plurality of initial images;
processing other initial images except the reference image in the plurality of initial images according to a first image formed by the target shooting object in the reference image to obtain an intermediate image;
and synthesizing the intermediate image and the reference image to obtain a target image.
2. The method of claim 1, wherein determining the target photographic subject in motion from the plurality of initial images comprises:
determining at least one photographic object in a motion state according to the plurality of initial images;
and acquiring a photographic subject belonging to a photographic subject from the at least one photographic subject, and taking the photographic subject belonging to the photographic subject as the target photographic subject.
3. The method of claim 1, wherein determining a reference image of the plurality of initial images corresponding to the target photographic subject from the plurality of initial images comprises:
acquiring the regional definition of the region of the target shooting object in the plurality of initial images;
and screening out one initial image with the highest region definition from the plurality of initial images as the reference image.
4. The method according to claim 1, wherein the processing, according to the first image of the target photographic subject in the reference image, the other initial images of the plurality of initial images except the reference image to obtain an intermediate image comprises:
replacing the target shooting object in the other initial images according to the target shooting object in the reference image to generate the intermediate image; or
And acquiring the target part with the largest change amplitude corresponding to the target shooting object according to the plurality of initial images, adjusting the image information of the target part of the target shooting object in other initial images according to the image information of the target part of the target shooting object in the reference image, and generating the intermediate image.
5. The method according to claim 1, wherein the processing, according to the first image of the target photographic subject in the reference image, the other initial images of the plurality of initial images except the reference image to obtain an intermediate image comprises:
acquiring a second image of the target photographic object in each initial image except the reference image in the plurality of initial images;
adjusting the color information or the transparency information of the second image to obtain the intermediate image;
wherein, the closer the distance information of the second image and the first image is, the higher the color brightness of the intermediate image is, or the lower the transparency of the intermediate image is;
the synthesizing the intermediate image and the reference image to obtain the target image includes:
and layering and superposing the plurality of intermediate images to the lower layer of the first image in the reference image to generate the target image.
6. The method according to claim 1, further comprising, after said combining the intermediate image and the reference image to obtain a target image:
determining a motion track of the target shooting object according to the plurality of initial images;
according to the motion trail, determining the position information of the target shooting object in the next frame image corresponding to the plurality of initial images;
and according to the position information, superposing a third image formed by the target shooting object in the next frame image in the target image, and adjusting the color information or the transparency information of the third image.
7. An image processing apparatus characterized by comprising:
the initial image acquisition module is used for acquiring a plurality of initial images;
a reference image determining module, configured to determine, according to the plurality of initial images, a target photographic object in a moving state and a reference image corresponding to the target photographic object in the plurality of initial images;
an intermediate image obtaining module, configured to process, according to a first image formed by the target shooting object in the reference image, other initial images, except the reference image, in the multiple initial images to obtain an intermediate image;
and the target image acquisition module is used for synthesizing the intermediate image and the reference image to obtain a target image.
8. The apparatus of claim 7, wherein the reference image determination module comprises:
a photographic subject determination unit configured to determine at least one photographic subject in a motion state from the plurality of initial images;
a target photographic subject acquisition unit configured to acquire a photographic subject belonging to a photographic subject among the at least one photographic subject, and to take the photographic subject belonging to the photographic subject as the target photographic subject.
9. An electronic device comprising a processor, a memory and a program or instructions stored on the memory and executable on the processor, the program or instructions, when executed by the processor, implementing the steps of the image processing method according to any one of claims 1 to 6.
10. A readable storage medium, characterized in that it stores thereon a program or instructions which, when executed by a processor, implement the steps of the image processing method according to any one of claims 1 to 6.
CN202011569054.1A 2020-12-25 2020-12-25 Image processing method and device Pending CN112672056A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011569054.1A CN112672056A (en) 2020-12-25 2020-12-25 Image processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011569054.1A CN112672056A (en) 2020-12-25 2020-12-25 Image processing method and device

Publications (1)

Publication Number Publication Date
CN112672056A true CN112672056A (en) 2021-04-16

Family

ID=75409764

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011569054.1A Pending CN112672056A (en) 2020-12-25 2020-12-25 Image processing method and device

Country Status (1)

Country Link
CN (1) CN112672056A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114531547A (en) * 2022-02-23 2022-05-24 维沃移动通信有限公司 Image processing method and device and electronic equipment

Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101617339A (en) * 2007-02-15 2009-12-30 索尼株式会社 Image processing apparatus and image processing method
CN103888677A (en) * 2012-12-21 2014-06-25 联想(北京)有限公司 Information processing method and electronic equipment
CN104243819A (en) * 2014-08-29 2014-12-24 小米科技有限责任公司 Photo acquiring method and device
CN104427246A (en) * 2013-08-22 2015-03-18 奥林巴斯株式会社 Image processing device and image processing method
CN105208286A (en) * 2015-10-15 2015-12-30 广东欧珀移动通信有限公司 Photographing method and device for simulating low-speed shutter
CN106331462A (en) * 2015-06-25 2017-01-11 宇龙计算机通信科技(深圳)有限公司 Method and device for shooting track pictures, as well as mobile terminal
CN107395991A (en) * 2017-08-31 2017-11-24 广东欧珀移动通信有限公司 Image combining method, device, computer-readable recording medium and computer equipment
CN108156382A (en) * 2017-12-29 2018-06-12 上海爱优威软件开发有限公司 A kind of photo processing method and terminal
CN108259771A (en) * 2018-03-30 2018-07-06 广东欧珀移动通信有限公司 Image processing method, device, storage medium and electronic equipment
CN109005357A (en) * 2018-10-15 2018-12-14 Oppo广东移动通信有限公司 A kind of photographic method, camera arrangement and terminal device
CN109005354A (en) * 2018-09-25 2018-12-14 努比亚技术有限公司 Image pickup method, mobile terminal and computer readable storage medium
CN109005368A (en) * 2018-10-15 2018-12-14 Oppo广东移动通信有限公司 A kind of generation method of high dynamic range images, mobile terminal and storage medium
CN109064390A (en) * 2018-08-01 2018-12-21 Oppo(重庆)智能科技有限公司 A kind of image processing method, image processing apparatus and mobile terminal
CN109194865A (en) * 2018-08-06 2019-01-11 光锐恒宇(北京)科技有限公司 Image generating method, device, intelligent terminal and computer readable storage medium
CN110035141A (en) * 2019-02-22 2019-07-19 华为技术有限公司 A kind of image pickup method and equipment
CN110084765A (en) * 2019-05-05 2019-08-02 Oppo广东移动通信有限公司 A kind of image processing method, image processing apparatus and terminal device
CN110324534A (en) * 2019-07-10 2019-10-11 厦门美图之家科技有限公司 Image processing method, device and electronic equipment
CN111182236A (en) * 2020-01-03 2020-05-19 惠州Tcl移动通信有限公司 Image synthesis method and device, storage medium and terminal equipment

Patent Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101617339A (en) * 2007-02-15 2009-12-30 索尼株式会社 Image processing apparatus and image processing method
CN103888677A (en) * 2012-12-21 2014-06-25 联想(北京)有限公司 Information processing method and electronic equipment
CN104427246A (en) * 2013-08-22 2015-03-18 奥林巴斯株式会社 Image processing device and image processing method
CN104243819A (en) * 2014-08-29 2014-12-24 小米科技有限责任公司 Photo acquiring method and device
CN106331462A (en) * 2015-06-25 2017-01-11 宇龙计算机通信科技(深圳)有限公司 Method and device for shooting track pictures, as well as mobile terminal
CN105208286A (en) * 2015-10-15 2015-12-30 广东欧珀移动通信有限公司 Photographing method and device for simulating low-speed shutter
CN107395991A (en) * 2017-08-31 2017-11-24 广东欧珀移动通信有限公司 Image combining method, device, computer-readable recording medium and computer equipment
CN108156382A (en) * 2017-12-29 2018-06-12 上海爱优威软件开发有限公司 A kind of photo processing method and terminal
CN108259771A (en) * 2018-03-30 2018-07-06 广东欧珀移动通信有限公司 Image processing method, device, storage medium and electronic equipment
CN109064390A (en) * 2018-08-01 2018-12-21 Oppo(重庆)智能科技有限公司 A kind of image processing method, image processing apparatus and mobile terminal
CN109194865A (en) * 2018-08-06 2019-01-11 光锐恒宇(北京)科技有限公司 Image generating method, device, intelligent terminal and computer readable storage medium
CN109005354A (en) * 2018-09-25 2018-12-14 努比亚技术有限公司 Image pickup method, mobile terminal and computer readable storage medium
CN109005357A (en) * 2018-10-15 2018-12-14 Oppo广东移动通信有限公司 A kind of photographic method, camera arrangement and terminal device
CN109005368A (en) * 2018-10-15 2018-12-14 Oppo广东移动通信有限公司 A kind of generation method of high dynamic range images, mobile terminal and storage medium
CN110035141A (en) * 2019-02-22 2019-07-19 华为技术有限公司 A kind of image pickup method and equipment
CN110084765A (en) * 2019-05-05 2019-08-02 Oppo广东移动通信有限公司 A kind of image processing method, image processing apparatus and terminal device
CN110324534A (en) * 2019-07-10 2019-10-11 厦门美图之家科技有限公司 Image processing method, device and electronic equipment
CN111182236A (en) * 2020-01-03 2020-05-19 惠州Tcl移动通信有限公司 Image synthesis method and device, storage medium and terminal equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114531547A (en) * 2022-02-23 2022-05-24 维沃移动通信有限公司 Image processing method and device and electronic equipment

Similar Documents

Publication Publication Date Title
CN112135046A (en) Video shooting method, video shooting device and electronic equipment
CN111835982B (en) Image acquisition method, image acquisition device, electronic device, and storage medium
CN113794829B (en) Shooting method and device and electronic equipment
CN112637500B (en) Image processing method and device
CN113014801B (en) Video recording method, video recording device, electronic equipment and medium
CN112995500A (en) Shooting method, shooting device, electronic equipment and medium
CN112333382B (en) Shooting method and device and electronic equipment
CN113329172A (en) Shooting method and device and electronic equipment
CN112422798A (en) Photographing method and device, electronic equipment and storage medium
CN113194256B (en) Shooting method, shooting device, electronic equipment and storage medium
CN112702531B (en) Shooting method and device and electronic equipment
CN112508820A (en) Image processing method and device and electronic equipment
CN112672056A (en) Image processing method and device
CN111818382A (en) Screen recording method and device and electronic equipment
CN113596331B (en) Shooting method, shooting device, shooting equipment and storage medium
CN113794831B (en) Video shooting method, device, electronic equipment and medium
CN111654623B (en) Photographing method and device and electronic equipment
CN112954197B (en) Shooting method, shooting device, electronic equipment and readable storage medium
CN115439386A (en) Image fusion method and device, electronic equipment and storage medium
CN114093005A (en) Image processing method and device, electronic equipment and readable storage medium
CN112367464A (en) Image output method and device and electronic equipment
CN114285922A (en) Screenshot method, screenshot device, electronic equipment and media
CN112446848A (en) Image processing method and device and electronic equipment
CN113012085A (en) Image processing method and device
CN112399092A (en) Shooting method and device 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210416