CN109951634B - Image synthesis method, device, terminal and storage medium - Google Patents
Image synthesis method, device, terminal and storage medium Download PDFInfo
- Publication number
- CN109951634B CN109951634B CN201910193681.0A CN201910193681A CN109951634B CN 109951634 B CN109951634 B CN 109951634B CN 201910193681 A CN201910193681 A CN 201910193681A CN 109951634 B CN109951634 B CN 109951634B
- Authority
- CN
- China
- Prior art keywords
- image
- target
- area
- picture
- frame
- 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
Images
Abstract
The application provides an image synthesis method, an image synthesis device, a terminal and a storage medium, wherein the method comprises the steps of photographing a scene to be photographed to obtain a multi-frame image; determining a target area of each frame image when synthesizing each frame image; determining image characteristics of a target area; adjusting the initial weight of the target area to which the image features belong according to the image features to obtain the target weight corresponding to the target area to which the image features belong; and synthesizing each frame of image according to each target weight. By the method and the device, the initial weight can be adjusted by combining with the image characteristics, and the synthesis effect is effectively improved.
Description
Technical Field
The present application relates to the field of terminal technologies, and in particular, to an image synthesis method, an image synthesis device, a terminal, and a storage medium.
Background
With the continuous progress of the mobile terminal technology, the requirement of the user on the effect of taking a picture of the mobile terminal is higher and higher, especially the requirement on the effect of a stage scene is higher and higher, and even under the stage scene with large brightness distribution change, clear imaging needs to be obtained.
In the related art, a multi-frame image processing technology is generally adopted to synthesize collected multi-frame images to realize clear imaging, that is, when the multi-frame images are synthesized, different weights are given to different areas in the same frame image according to factors such as brightness, contrast, saturation or motion.
In this way, only some basic features are combined to assign initial weights, and for a special region, fine adjustment of subsequent combined image features cannot be realized, so that the synthesis effect is poor.
Disclosure of Invention
The present application is directed to solving, at least to some extent, one of the technical problems in the related art.
Therefore, an object of the present application is to provide an image synthesis method, an image synthesis apparatus, a terminal, and a storage medium, which can effectively improve the synthesis effect by adjusting the initial weight in combination with the image characteristics.
In order to achieve the above object, an embodiment of the present application provides an image synthesis method, including: photographing a scene to be photographed to obtain a multi-frame image; when synthesizing each frame of image, determining a target area of each frame of image; determining image characteristics of the target area; adjusting the initial weight of a target region to which the image features belong according to the image features to obtain a target weight corresponding to the target region to which the image features belong; and synthesizing the images of the frames according to the target weights.
According to the image synthesis method provided by the embodiment of the first aspect of the application, a plurality of frames of images are obtained by photographing a scene to be photographed, when the frames of images are synthesized, a target area of each frame of image is determined, image characteristics of the target area are determined, the initial weight of the target area to which the image characteristics belong is adjusted according to the image characteristics, a target weight corresponding to the target area to which the image characteristics belong is obtained, and the frames of images are synthesized according to the target weights.
In order to achieve the above object, an embodiment of a second aspect of the present application provides an image synthesizing apparatus, including: the photographing module is used for photographing a scene to be photographed to obtain a multi-frame image; the first determining module is used for determining a target area of each frame of image when each frame of image is synthesized; a second determination module for determining image features of the target region; the adjusting module is used for adjusting the initial weight of the target area to which the image feature belongs according to the image feature to obtain the target weight corresponding to the target area to which the image feature belongs; and the synthesis processing module is used for synthesizing the images of the frames according to the target weights.
The image synthesis device provided by the embodiment of the second aspect of the present application obtains multiple frames of images by photographing a scene to be photographed, determines a target region of each frame of image when each frame of image is synthesized, determines an image feature of the target region, adjusts an initial weight of the target region to which the image feature belongs according to the image feature to obtain a target weight corresponding to the target region to which the image feature belongs, and synthesizes each frame of image according to each target weight.
In order to achieve the above object, a third aspect of the present application further provides a terminal, which includes a housing, a processor, a memory, a circuit board, and a power circuit, wherein the circuit board is disposed inside a space enclosed by the housing, and the processor and the memory are disposed on the circuit board; the power supply circuit is used for supplying power to each circuit or device of the terminal; the memory is used for storing executable program codes; the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory, for performing: photographing a scene to be photographed to obtain a multi-frame image; when synthesizing each frame of image, determining a target area of each frame of image; determining image characteristics of the target area; adjusting the initial weight of a target region to which the image features belong according to the image features to obtain a target weight corresponding to the target region to which the image features belong; and synthesizing the images of the frames according to the target weights.
The terminal provided in the embodiment of the third aspect of the present application obtains multiple frames of images by photographing a scene to be photographed, determines a target region of each frame of image when each frame of image is synthesized, determines an image feature of the target region, adjusts an initial weight of the target region to which the image feature belongs according to the image feature to obtain a target weight corresponding to the target region to which the image feature belongs, and synthesizes each frame of image according to each target weight.
To achieve the above object, a fourth aspect of the present application provides a non-transitory computer-readable storage medium, wherein instructions, when executed by a processor of a terminal, enable the terminal to perform an image synthesis method, the method including: photographing a scene to be photographed to obtain a multi-frame image; when synthesizing each frame of image, determining a target area of each frame of image; determining image characteristics of the target area; adjusting the initial weight of a target region to which the image features belong according to the image features to obtain a target weight corresponding to the target region to which the image features belong; and synthesizing the images of the frames according to the target weights.
The non-transitory computer-readable storage medium provided in the fourth aspect of the present application obtains multiple frames of images by photographing a scene to be photographed, determines a target region of each frame of image when each frame of image is synthesized, determines an image feature of the target region, adjusts an initial weight of the target region to which the image feature belongs according to the image feature, obtains a target weight corresponding to the target region to which the image feature belongs, and synthesizes each frame of image according to each target weight.
Additional aspects and advantages of the present application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the present application.
Drawings
The foregoing and/or additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a schematic flowchart of an image synthesis method according to an embodiment of the present application;
fig. 2 is a schematic flow chart of an image synthesis method according to another embodiment of the present application;
fig. 3 is a schematic structural diagram of an image synthesis apparatus according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an image synthesizing apparatus according to another embodiment of the present application;
fig. 5 is a schematic structural diagram of a terminal according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary only for the purpose of explaining the present application and are not to be construed as limiting the present application. On the contrary, the embodiments of the application include all changes, modifications and equivalents coming within the spirit and terms of the claims appended hereto.
Fig. 1 is a schematic flowchart of an image synthesis method according to an embodiment of the present application.
The present embodiment is exemplified in a case where the image synthesizing method is configured as an image synthesizing apparatus.
The image synthesis method in this embodiment may be configured in the image synthesis apparatus, and the image synthesis apparatus may be provided in the server, or may also be provided in the electronic device, which is not limited in this embodiment of the application.
The present embodiment takes as an example that the image synthesizing method is configured in an electronic apparatus.
The application can be applied to a photographing application in an electronic device, wherein the application is an application program, the application program may refer to a software program running on the electronic device, the electronic device is, for example, a Personal Computer (PC), a cloud device or a mobile device, the mobile device is, for example, a smart phone, or a tablet Computer, and the like.
It should be noted that the execution main body in the embodiment of the present application may be, for example, a Central Processing Unit (CPU) in a server or an electronic device in terms of hardware, and may be, for example, a related background service in the server or the electronic device in terms of software, which is not limited to this.
Referring to fig. 1, the method includes:
s101: and photographing a scene to be photographed to obtain a multi-frame image.
The multi-frame image is obtained by photographing a scene to be photographed by adopting a multi-frame image processing technology in the related technology.
For example, the multi-frame image may be photographed based on different exposure levels, which is not limited thereto.
In contrast to the related art that only some basic features are combined to assign initial weights to regions in each frame image, in the embodiment of the present application, a target region of each frame image is also determined, that is, a target region included in each frame image is determined for each frame image.
S102: when the frame images are synthesized, a target area of each frame image is determined.
The target area in the embodiment of the present application is a closed contour area, or may also be an area in which a difference in visual characteristics is obvious in an image, which is not limited in this respect.
In the embodiment of the present application, the weight of the target region may be adjusted, so that the target region in the picture synthesized based on the adjusted weight may be in smooth transition.
S103: image features of the target region are determined.
Therein, the initial weight may specifically be adjusted according to the image characteristics of the target area.
The image feature may be a degree of pixel feature difference in the target region, the degree of pixel feature difference being a degree of luminance difference between pixels.
Optionally, in some embodiments, referring to fig. 2, determining the image feature of the target region includes:
s201: and determining a first area and a second area in the target area, wherein the first area is an area with the brightness average value meeting a second preset condition, and the second area is an area with the brightness average value not meeting the first preset condition.
The average brightness value may be the average brightness value of all the pixels in the first region or the second region.
For an area with a more obvious difference in visual features, a brightness threshold may be preset, an area with a brightness average value greater than the brightness threshold is regarded as satisfying a second preset condition, the area is regarded as a first area, an area with a brightness average value less than or equal to the brightness threshold is regarded as not satisfying the second preset condition, and the area is regarded as a second area.
S202: and determining the brightness difference degree according to the brightness average value of the first area and the second area.
Then, the difference value between the average brightness values of the first region and the second region may be used as the brightness difference degree, and the initial weight of the target region may be adjusted according to the brightness difference degree, where the initial weight is previously assigned to each region based on the multi-frame image processing technology in the related art, so that the initial weight may be adjusted in combination with the image features.
S104: and adjusting the initial weight of the target area to which the image features belong according to the image features to obtain the target weight corresponding to the target area to which the image features belong.
In the embodiment of the present application, adjusting the initial weight of the target region to which the image feature belongs according to the image feature includes: and adjusting the initial weight of the target area to which the image features belong according to the difference degree of the pixel features in the target area.
As an example, if the brightness difference degree indicates that the brightness difference in the target region is large, the initial weight of the target region to which the image feature belongs may be adjusted to a large extent, if the brightness difference degree indicates that the brightness difference in the target area is small, the initial weight of the target area to which the image feature belongs can be adjusted to a small extent, if the initial weight includes a first initial weight corresponding to the first region and a second initial weight corresponding to the second region, the first initial weight and the first initial weight may be smoothed based on the degree of brightness difference, for example, taking the average value between the first initial weight and the second initial weight, adjusting the first initial weight and the first initial weight according to the average value, after the initial weight of the target area to which the image feature belongs is adjusted, the smoothing index of the target picture synthesized based on the adjusted weight meets a second preset condition.
For example, a smoothing index of a target region in the target picture may be detected, and if the detected smoothing index satisfies a preset smoothing threshold, it may be determined that the smoothing index of the target picture satisfies a second preset condition.
S105: and synthesizing each frame of image according to each target weight.
In this embodiment, a step of S105 is further provided, that is, synthesizing pictures corresponding to the target regions of the images according to the corresponding target weights to obtain a first picture; performing initial synthesis processing on each frame of image based on the initial weight of each target area to obtain a second picture; determining a picture position corresponding to the first picture in the second picture; and replacing the second picture by adopting the first picture based on the picture position, and taking the picture obtained by replacement as a target picture.
Specifically, a picture corresponding to a target region may be first captured from each frame of image, then the pictures corresponding to each target region are synthesized according to the corresponding target weight, the synthesized picture is used as a first picture, while the first picture is synthesized, initial synthesis processing may be performed on each frame of picture based on the initial weight of each target region, the synthesized picture is used as a second picture, and then, a picture position corresponding to the first picture in the second picture is determined; and replacing the second picture by adopting the first picture based on the picture position, and taking the picture obtained by replacement as a target picture, so that the method is technically simpler and more convenient, the imaging processing resource of the electronic equipment is effectively saved, and the final synthesized image effect is more natural.
In this embodiment, a plurality of frames of images are obtained by photographing a scene to be photographed, when the frames of images are synthesized, a target region of each frame of image is determined, an image feature of the target region is determined, an initial weight of the target region to which the image feature belongs is adjusted according to the image feature to obtain a target weight corresponding to the target region to which the image feature belongs, and each frame of image is synthesized according to each target weight.
Fig. 3 is a schematic structural diagram of an image synthesis apparatus according to an embodiment of the present application.
Referring to fig. 3, the apparatus 300 includes:
the photographing module 301 is configured to photograph a scene to be photographed to obtain a multi-frame image;
a first determining module 302, configured to determine a target area of each frame image when synthesizing each frame image;
a second determining module 303, configured to determine an image feature of the target region;
an adjusting module 304, configured to adjust an initial weight of a target region to which an image feature belongs according to the image feature, so as to obtain a target weight corresponding to the target region to which the image feature belongs;
and a synthesis processing module 305, configured to perform synthesis processing on each frame image according to each target weight.
Optionally, in some embodiments, the synthesis processing module 305 is specifically configured to:
synthesizing the pictures corresponding to the target areas of the images according to the corresponding target weights to obtain first pictures;
performing initial synthesis processing on each frame of image based on the initial weight of each target area to obtain a second picture;
determining a picture position corresponding to the first picture in the second picture;
and replacing the second picture by adopting the first picture based on the picture position, and taking the picture obtained by replacement as a target picture.
Optionally, in some embodiments, the image characteristic of the target region is: a degree of difference in pixel characteristics in the target region, an adjustment module 304, configured to:
and adjusting the initial weight of the target area to which the image features belong according to the difference degree of the pixel features in the target area.
Optionally, in some embodiments, the pixel characteristic difference degree is a brightness difference degree between pixels.
Optionally, in some embodiments, referring to fig. 4, the second determining module 303 includes:
the first determining submodule 3031 is configured to determine a first region and a second region in the target region, where the first region is a region where the luminance average value meets a second preset condition, and the second region is a region where the luminance average value does not meet the first preset condition;
a second determining sub-module 3032 is used for determining the brightness difference degree according to the brightness average value of the first region and the second region.
Optionally, in some embodiments, the adjusting module 304 is specifically configured to:
after the initial weight of the target area to which the image feature belongs is adjusted, the smoothing index of the target picture synthesized based on the adjusted weight meets a second preset condition.
Optionally, in some embodiments, the target region is a closed contour region.
It should be noted that the foregoing explanation of the embodiment of the image synthesis method in fig. 1-2 also applies to the image synthesis apparatus 300 of this embodiment, and the implementation principle is similar, and is not repeated here.
In this embodiment, a plurality of frames of images are obtained by photographing a scene to be photographed, when the frames of images are synthesized, a target region of each frame of image is determined, an image feature of the target region is determined, an initial weight of the target region to which the image feature belongs is adjusted according to the image feature to obtain a target weight corresponding to the target region to which the image feature belongs, and each frame of image is synthesized according to each target weight.
Fig. 5 is a schematic structural diagram of a terminal according to an embodiment of the present application.
Referring to fig. 5, the terminal 50 of the present embodiment includes: the electronic device comprises a shell 501, a processor 502, a memory 503, a circuit board 504 and a power supply circuit 505, wherein the circuit board 504 is arranged inside a space enclosed by the shell 501, and the processor 502 and the memory 503 are arranged on the circuit board 504; a power supply circuit 505 for supplying power to each circuit or device of the terminal 50; the memory 503 is used to store executable program code; the processor 502 runs a program corresponding to the executable program code by reading the executable program code stored in the memory 503, so as to execute:
photographing a scene to be photographed to obtain a multi-frame image;
determining a target area of each frame image when synthesizing each frame image;
determining image characteristics of a target area;
adjusting the initial weight of the target area to which the image features belong according to the image features to obtain the target weight corresponding to the target area to which the image features belong;
and synthesizing each frame of image according to each target weight.
It should be noted that the foregoing explanation of the embodiment of the image synthesis method in fig. 1-2 is also applicable to the terminal 50 in this embodiment, and the implementation principle is similar, and is not described herein again.
In this embodiment, a plurality of frames of images are obtained by photographing a scene to be photographed, when the frames of images are synthesized, a target region of each frame of image is determined, an image feature of the target region is determined, an initial weight of the target region to which the image feature belongs is adjusted according to the image feature to obtain a target weight corresponding to the target region to which the image feature belongs, and each frame of image is synthesized according to each target weight.
To achieve the above embodiments, the present application also proposes a non-transitory computer-readable storage medium, which when executed by a processor of a terminal, enables the terminal to perform an image synthesis method, the method comprising:
photographing a scene to be photographed to obtain a multi-frame image;
determining a target area of each frame image when synthesizing each frame image;
determining image characteristics of a target area;
adjusting the initial weight of the target area to which the image features belong according to the image features to obtain the target weight corresponding to the target area to which the image features belong;
and synthesizing each frame of image according to each target weight.
The non-transitory computer-readable storage medium in this embodiment obtains multiple frames of images by photographing a scene to be photographed, determines a target region of each frame of image when each frame of image is synthesized, determines an image feature of the target region, adjusts an initial weight of the target region to which the image feature belongs according to the image feature to obtain a target weight corresponding to the target region to which the image feature belongs, and synthesizes each frame of image according to each target weight.
To achieve the above embodiments, the present application also proposes a computer program product, wherein when instructions of the computer program product are executed by a processor, an image synthesis method is performed, the method comprising:
photographing a scene to be photographed to obtain a multi-frame image;
determining a target area of each frame image when synthesizing each frame image;
determining image characteristics of a target area;
adjusting the initial weight of the target area to which the image features belong according to the image features to obtain the target weight corresponding to the target area to which the image features belong;
and synthesizing each frame of image according to each target weight.
The computer program product in this embodiment obtains multiple frames of images by photographing a scene to be photographed, determines a target region of each frame of image when each frame of image is synthesized, determines an image feature of the target region, adjusts an initial weight of the target region to which the image feature belongs according to the image feature to obtain a target weight corresponding to the target region to which the image feature belongs, and synthesizes each frame of image according to each target weight.
It should be noted that, in the description of the present application, the terms "first", "second", etc. are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. In addition, in the description of the present application, "a plurality" means two or more unless otherwise specified.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and the scope of the preferred embodiments of the present application includes other implementations in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present application.
It should be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present application may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc.
In the description herein, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Although embodiments of the present application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present application, and that variations, modifications, substitutions and alterations may be made to the above embodiments by those of ordinary skill in the art within the scope of the present application.
Claims (12)
1. An image synthesis method, characterized by comprising the steps of:
photographing a scene to be photographed to obtain a multi-frame image;
when synthesizing each frame of image, determining a target area of each frame of image, wherein the target area is a closed contour area;
determining image characteristics of the target area;
adjusting the initial weight of a target region to which the image features belong according to the image features to obtain a target weight corresponding to the target region to which the image features belong, wherein the initial weight is obtained by allocating each region based on a multi-frame image processing technology in advance;
synthesizing the images of the frames according to the target weights;
the synthesizing of the image of each frame according to each target weight includes:
synthesizing pictures corresponding to the target areas of the images according to the corresponding target weights to obtain first pictures;
performing initial synthesis processing on the images of each frame based on the initial weight of each target area to obtain a second picture;
determining a picture position in the second picture corresponding to the first picture;
and replacing the second picture by adopting the first picture based on the picture position, and taking the picture obtained by replacement as a target picture.
2. The image synthesis method according to claim 1, wherein the image characteristics of the target region are: the adjusting the initial weight of the target area to which the image feature belongs according to the image feature comprises:
and adjusting the initial weight of the target area to which the image feature belongs according to the difference degree of the pixel feature in the target area.
3. The image synthesizing method according to claim 2, wherein the degree of difference in pixel characteristics is a degree of difference in luminance between pixels.
4. The image synthesis method of claim 3, wherein the determining the image characteristic of the target region comprises:
determining a first area and a second area in the target area, wherein the first area is an area with a brightness average value meeting a first preset condition, and the second area is an area with a brightness average value not meeting the first preset condition;
and determining the brightness difference degree according to the brightness average value of the first area and the brightness average value of the second area.
5. The image synthesizing method according to any one of claims 1 to 4, wherein,
after the initial weight of the target area to which the image feature belongs is adjusted, the smoothing index of the target picture synthesized based on the adjusted weight meets a second preset condition.
6. An image synthesizing apparatus, comprising:
the photographing module is used for photographing a scene to be photographed to obtain a multi-frame image;
the first determining module is used for determining a target area of each frame of image when each frame of image is synthesized, wherein the target area is a closed contour area;
a second determination module for determining image features of the target region;
the adjusting module is used for adjusting the initial weight of the target area to which the image feature belongs according to the image feature to obtain the target weight corresponding to the target area to which the image feature belongs, wherein the initial weight is obtained by allocating each area based on a multi-frame image processing technology in advance;
the synthesis processing module is used for carrying out synthesis processing on the images of the frames according to the target weights;
the synthesis processing module is specifically configured to:
synthesizing pictures corresponding to the target areas of the images according to the corresponding target weights to obtain first pictures;
performing initial synthesis processing on the images of each frame based on the initial weight of each target area to obtain a second picture;
determining a picture position in the second picture corresponding to the first picture;
and replacing the second picture by adopting the first picture based on the picture position, and taking the picture obtained by replacement as a target picture.
7. The image synthesis apparatus according to claim 6, wherein the image characteristics of the target region are: the adjustment module is configured to:
and adjusting the initial weight of the target area to which the image feature belongs according to the difference degree of the pixel feature in the target area.
8. The image synthesizing apparatus according to claim 7, wherein the degree of difference in pixel characteristics is a degree of difference in luminance between pixels.
9. The image synthesizing apparatus according to claim 8, wherein the second determining module includes:
the first determining submodule is used for determining a first area and a second area in the target area, the first area is an area of which the brightness average value meets a first preset condition, and the second area is an area of which the brightness average value does not meet the first preset condition;
and the second determining submodule is used for determining the brightness difference degree according to the brightness average value of the first area and the brightness average value of the second area.
10. The image synthesis apparatus of any one of claims 6-9, wherein the adjustment module is specifically configured to:
after the initial weight of the target area to which the image feature belongs is adjusted, the smoothing index of the target picture synthesized based on the adjusted weight meets a second preset condition.
11. A terminal comprising a housing, a processor, a memory, a circuit board, and a power circuit, wherein the circuit board is disposed inside a space enclosed by the housing, the processor and the memory being disposed on the circuit board; the power supply circuit is used for supplying power to each circuit or device of the terminal; the memory is used for storing executable program codes; the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory, for performing:
photographing a scene to be photographed to obtain a multi-frame image;
when synthesizing each frame of image, determining a target area of each frame of image, wherein the target area is a closed contour area;
determining image characteristics of the target area;
adjusting the initial weight of a target region to which the image features belong according to the image features to obtain a target weight corresponding to the target region to which the image features belong, wherein the initial weight is obtained by allocating each region based on a multi-frame image processing technology in advance;
synthesizing the images of the frames according to the target weights;
the synthesizing of the image of each frame according to each target weight includes:
synthesizing pictures corresponding to the target areas of the images according to the corresponding target weights to obtain first pictures;
performing initial synthesis processing on the images of each frame based on the initial weight of each target area to obtain a second picture;
determining a picture position in the second picture corresponding to the first picture;
and replacing the second picture by adopting the first picture based on the picture position, and taking the picture obtained by replacement as a target picture.
12. A non-transitory computer-readable storage medium on which a computer program is stored, the program, when executed by a processor, implementing the image synthesis method according to any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910193681.0A CN109951634B (en) | 2019-03-14 | 2019-03-14 | Image synthesis method, device, terminal and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910193681.0A CN109951634B (en) | 2019-03-14 | 2019-03-14 | Image synthesis method, device, terminal and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109951634A CN109951634A (en) | 2019-06-28 |
CN109951634B true CN109951634B (en) | 2021-09-03 |
Family
ID=67009895
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910193681.0A Active CN109951634B (en) | 2019-03-14 | 2019-03-14 | Image synthesis method, device, terminal and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109951634B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111842922A (en) * | 2020-06-04 | 2020-10-30 | 深圳市人工智能与机器人研究院 | Material synthesis parameter adjusting method and device, computer equipment and storage medium |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20120087432A (en) * | 2011-01-28 | 2012-08-07 | 연세대학교 산학협력단 | Image composing apparatus and method |
CN105227867A (en) * | 2015-09-14 | 2016-01-06 | 联想(北京)有限公司 | A kind of image processing method and electronic equipment |
CN106408534A (en) * | 2016-09-13 | 2017-02-15 | 北京金山安全软件有限公司 | Image processing method and device and electronic equipment |
CN107369145A (en) * | 2017-06-16 | 2017-11-21 | 广东欧珀移动通信有限公司 | image processing method, device and terminal device |
KR20170139816A (en) * | 2016-06-10 | 2017-12-20 | (주)한국미래기술 | Image synthesis method in real time |
CN107507160A (en) * | 2017-08-22 | 2017-12-22 | 努比亚技术有限公司 | A kind of image interfusion method, terminal and computer-readable recording medium |
CN107622483A (en) * | 2017-09-15 | 2018-01-23 | 深圳市金立通信设备有限公司 | A kind of image combining method and terminal |
CN107862663A (en) * | 2017-11-09 | 2018-03-30 | 广东欧珀移动通信有限公司 | Image processing method, device, readable storage medium storing program for executing and computer equipment |
CN108174118A (en) * | 2018-01-04 | 2018-06-15 | 珠海格力电器股份有限公司 | Image processing method, device and electronic equipment |
CN108965695A (en) * | 2018-06-27 | 2018-12-07 | 努比亚技术有限公司 | A kind of image pickup method, mobile terminal and computer readable storage medium |
CN109359592A (en) * | 2018-10-16 | 2019-02-19 | 北京达佳互联信息技术有限公司 | Processing method, device, electronic equipment and the storage medium of video frame |
Family Cites Families (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101444084B (en) * | 2006-05-09 | 2012-02-15 | 夏普株式会社 | Image device |
JP5653104B2 (en) * | 2010-07-16 | 2015-01-14 | キヤノン株式会社 | Image processing apparatus, image processing method, and program |
JP5896788B2 (en) * | 2012-03-07 | 2016-03-30 | キヤノン株式会社 | Image composition apparatus and image composition method |
CN103369226B (en) * | 2012-03-26 | 2016-06-22 | 华晶科技股份有限公司 | Camera head and image synthesis method thereof |
WO2013145799A1 (en) * | 2012-03-30 | 2013-10-03 | 富士フイルム株式会社 | Image processing device, photographing device, program, and image processing method |
WO2013190645A1 (en) * | 2012-06-20 | 2013-12-27 | 株式会社日立製作所 | Automatic image compositing device |
JP2014036401A (en) * | 2012-08-10 | 2014-02-24 | Sony Corp | Image pick-up device, image signal processing method and program |
KR101767094B1 (en) * | 2012-12-03 | 2017-08-31 | 한화테크윈 주식회사 | Apparatus and method for processing image |
JP5847228B2 (en) * | 2014-04-16 | 2016-01-20 | オリンパス株式会社 | Image processing apparatus, image processing method, and image processing program |
CN104320575B (en) * | 2014-09-30 | 2019-01-15 | 百度在线网络技术(北京)有限公司 | A kind of image processing method and image processing apparatus for portable terminal |
TWI537875B (en) * | 2015-04-08 | 2016-06-11 | 大同大學 | Image fusion method and image processing apparatus |
CN105744159B (en) * | 2016-02-15 | 2019-05-24 | 努比亚技术有限公司 | A kind of image composition method and device |
-
2019
- 2019-03-14 CN CN201910193681.0A patent/CN109951634B/en active Active
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20120087432A (en) * | 2011-01-28 | 2012-08-07 | 연세대학교 산학협력단 | Image composing apparatus and method |
CN105227867A (en) * | 2015-09-14 | 2016-01-06 | 联想(北京)有限公司 | A kind of image processing method and electronic equipment |
KR20170139816A (en) * | 2016-06-10 | 2017-12-20 | (주)한국미래기술 | Image synthesis method in real time |
CN106408534A (en) * | 2016-09-13 | 2017-02-15 | 北京金山安全软件有限公司 | Image processing method and device and electronic equipment |
CN107369145A (en) * | 2017-06-16 | 2017-11-21 | 广东欧珀移动通信有限公司 | image processing method, device and terminal device |
CN107507160A (en) * | 2017-08-22 | 2017-12-22 | 努比亚技术有限公司 | A kind of image interfusion method, terminal and computer-readable recording medium |
CN107622483A (en) * | 2017-09-15 | 2018-01-23 | 深圳市金立通信设备有限公司 | A kind of image combining method and terminal |
CN107862663A (en) * | 2017-11-09 | 2018-03-30 | 广东欧珀移动通信有限公司 | Image processing method, device, readable storage medium storing program for executing and computer equipment |
CN108174118A (en) * | 2018-01-04 | 2018-06-15 | 珠海格力电器股份有限公司 | Image processing method, device and electronic equipment |
CN108965695A (en) * | 2018-06-27 | 2018-12-07 | 努比亚技术有限公司 | A kind of image pickup method, mobile terminal and computer readable storage medium |
CN109359592A (en) * | 2018-10-16 | 2019-02-19 | 北京达佳互联信息技术有限公司 | Processing method, device, electronic equipment and the storage medium of video frame |
Also Published As
Publication number | Publication date |
---|---|
CN109951634A (en) | 2019-06-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108335279B (en) | Image fusion and HDR imaging | |
CN111418201B (en) | Shooting method and equipment | |
CN111028189B (en) | Image processing method, device, storage medium and electronic equipment | |
KR102149187B1 (en) | Electronic device and control method of the same | |
JP5806682B2 (en) | Generation and rendering of high dynamic range images | |
JP6742732B2 (en) | Method for generating HDR image of scene based on trade-off between luminance distribution and motion | |
KR100810310B1 (en) | Device and method for reconstructing picture having illumination difference | |
CN110060213B (en) | Image processing method, image processing device, storage medium and electronic equipment | |
US20160300337A1 (en) | Image fusion method and image processing apparatus | |
CN104917973B (en) | Dynamic exposure method of adjustment and its electronic device | |
CN105578068A (en) | High-dynamic-range image generation method, device and mobile terminal | |
CN109413335B (en) | Method and device for synthesizing HDR image by double exposure | |
CN107993189B (en) | Image tone dynamic adjustment method and device based on local blocking | |
CN108335272B (en) | Method and device for shooting picture | |
CN110264473B (en) | Image processing method and device based on multi-frame image and electronic equipment | |
JP2019092156A (en) | Method for synthesizing first image and second image having overlapping fields of view, device, and camera | |
CN109951634B (en) | Image synthesis method, device, terminal and storage medium | |
US10297009B2 (en) | Apparatus and method for generating an extrapolated image using a recursive hierarchical process | |
CN111784598A (en) | Method for training tone mapping model, tone mapping method and electronic equipment | |
CN110858388B (en) | Method and device for enhancing video image quality | |
CN107454340B (en) | Image synthesis method and device based on high dynamic range principle and mobile terminal | |
JP2013192057A (en) | Imaging apparatus, control method of the same, and control program | |
CN115187487A (en) | Image processing method and device, electronic device and storage medium | |
CN115049572A (en) | Image processing method, image processing device, electronic equipment and computer readable storage medium | |
CN110941413B (en) | Display screen generation method and related device |
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 |