CN111429377B - Image processing method, terminal and storage medium - Google Patents

Image processing method, terminal and storage medium Download PDF

Info

Publication number
CN111429377B
CN111429377B CN202010246049.0A CN202010246049A CN111429377B CN 111429377 B CN111429377 B CN 111429377B CN 202010246049 A CN202010246049 A CN 202010246049A CN 111429377 B CN111429377 B CN 111429377B
Authority
CN
China
Prior art keywords
image
parameters
type
content
shooting time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010246049.0A
Other languages
Chinese (zh)
Other versions
CN111429377A (en
Inventor
李逸超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202010246049.0A priority Critical patent/CN111429377B/en
Publication of CN111429377A publication Critical patent/CN111429377A/en
Application granted granted Critical
Publication of CN111429377B publication Critical patent/CN111429377B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • G06T5/77
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/53Querying
    • G06F16/535Filtering based on additional data, e.g. user or group profiles
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/90Determination of colour characteristics
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof

Abstract

The embodiment of the application provides an image processing method, a terminal and a storage medium, wherein the method comprises the following steps: when an image optimization function is triggered, acquiring a first image and image characteristic parameters of the first image; searching a second image and image quality parameters of the second image which are in the same shooting scene with the first image from a preset image library by utilizing the image characteristic parameters of the first image; and performing image compensation on the first image by using the image quality parameters of the second image.

Description

Image processing method, terminal and storage medium
Technical Field
The present invention relates to the field of electronic applications, and in particular, to an image processing method, a terminal, and a storage medium.
Background
With the development of terminal equipment technology, a camera is generally configured on the terminal equipment, and a user can take a picture by using the camera. At present, in the shooting process, the terminal mainly uses the data before and after shooting at the current moment to count and analyze the current picture, so as to obtain the current shooting picture, however, when the shooting scene is complex or is in a high-frequency scene or a shaking scene, the quality of the image shot by the terminal is poor.
Disclosure of Invention
The embodiment of the application provides an image processing method, a terminal and a storage medium, which can improve the quality of an image shot by the terminal.
The technical scheme of the application is realized as follows:
the embodiment of the application provides an image processing method, which comprises the following steps:
when an image optimization function is triggered, a first image and image characteristic parameters of the first image are acquired;
searching a second image which is in the same shooting scene with the first image and an image quality parameter of the second image from a preset image library by utilizing the image characteristic parameter of the first image;
and performing image compensation on the first image by using the image quality parameters of the second image.
In the above method, the image characteristic parameters include: shooting azimuth, image content and shooting time, wherein the searching a second image which is in the same shooting scene with the first image from a preset image library by utilizing the image characteristic parameters of the first image comprises the following steps:
searching a third image which is the same as or similar to the shooting direction of the first image from the preset image library, and acquiring the image content of the third image and the shooting time of the third image;
comparing the image content of the first image with the image content of the third image to obtain a content comparison result;
determining a shooting time difference between the shooting time of the first image and the shooting time of the third image;
and determining the second image from the third image according to the content comparison result and the shooting time difference.
In the above method, the determining the second image from the third image according to the content comparison result and the shooting time difference includes:
determining a first type image which has the same image content as the first image and the shooting time difference smaller than a first preset threshold value from the third image;
determining a second type image which is partially overlapped with the image content of the first image and has a shooting time difference larger than a second preset threshold value from the third image;
determining a third type image which is different from the image content of the first image and has the shooting time difference smaller than a third preset threshold value from the third image;
the first type image, the second type image and/or the third type image are determined as the second image.
In the above method, the performing image compensation on the first image by using the image quality parameter of the second image includes:
acquiring an image quality parameter of the first image;
comparing the image quality parameter of the first image with the image quality parameter of the second image to determine a fourth image with higher image quality than the first image from the second image;
and performing image compensation on the first image by using the image quality parameters of the fourth image.
In the above method, the performing image compensation on the first image by using the image quality parameter of the second image includes:
and compensating the image detail and/or color parameters of the first image by using the image quality parameters of the first type image, the image quality parameters of the second type image and/or the image quality parameters of the third type image respectively.
In the above method, the image quality parameter includes: color parameters and image details, wherein the compensating the image details and/or the color parameters of the first image by using the image quality parameters of the first type image, the image quality parameters of the second type image and/or the image quality parameters of the third type image respectively comprises the following steps:
performing color compensation on the first image by using the first type image color parameters, and filling the corresponding position of the first image by using the image details of the first type image;
and/or filling corresponding parts of the first image with image details of an overlapping image in the second type image, the overlapping image being an overlapping region of the first image and the second type image;
and/or performing color compensation on the first image by utilizing the color parameters of the third type image.
In the above method, after performing image compensation on the first image by using the image quality parameter of the second image, the method further includes:
acquiring an image quality parameter of a first image after image compensation;
and storing the image quality parameters of the first image after the image compensation and the image characteristic parameters of the first image into the preset image library.
The embodiment of the application provides a terminal, which comprises:
the acquisition unit is used for acquiring a first image and image characteristic parameters of the first image when the image optimization function is triggered;
the searching unit is used for searching a second image which is in the same shooting scene with the first image and an image quality parameter of the second image from a preset image library by utilizing the image characteristic parameter of the first image;
and the image compensation unit is used for carrying out image compensation on the first image by utilizing the image quality parameters of the second image.
The embodiment of the application provides a terminal, which comprises: a processor, a memory, and a communication bus; the processor, when executing a memory-stored operating program, implements a method as described in any one of the preceding claims.
The present embodiments provide a storage medium having stored thereon a computer program which, when executed by a processor, implements a method as described in any of the above.
The embodiment of the application provides an image processing method, a terminal and a storage medium, wherein the method comprises the following steps: when an image optimization function is triggered, acquiring a first image and image characteristic parameters of the first image; searching a second image and image quality parameters of the second image which are in the same shooting scene with the first image from a preset image library by utilizing the image characteristic parameters of the first image; and performing image compensation on the first image by using the image quality parameters of the second image. By adopting the implementation scheme, the terminal can still shoot the first image which is the most restored to the current shooting environment and has more complete shooting details under the complex shooting scene or the high-frequency scene and the shaking scene by compensating and adjusting the image quality parameter of the first image by utilizing the image quality parameter of the second image from the second image which is in the same shooting scene with the first image in the preset image library.
Drawings
Fig. 1 is a flowchart of an image processing method according to an embodiment of the present application;
fig. 2 is a flowchart of image optimization of a first image currently shot by an exemplary terminal according to an embodiment of the present application using shot images in the same shooting scene;
fig. 3 is a schematic structural diagram of a terminal 1 according to an embodiment of the present application;
fig. 4 is a schematic diagram of a second structure of the terminal 1 according to the embodiment of the present application.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the application. And are not intended to limit the present application.
Example 1
An embodiment of the present application provides an image processing method, as shown in fig. 1, the method may include:
s101, when an image optimization function is triggered, a first image and image characteristic parameters of the first image are acquired.
In this embodiment of the present application, the terminal for performing image processing may be any device having a capturing and storing function, for example: tablet computers, cell phones, personal computers (Personal Computer, PCs), notebook computers, cameras, wearable devices, and the like.
In the embodiment of the application, the terminal is provided with the image optimization option, when the terminal receives the image optimization option selected by the user, the terminal triggers the image optimization function, and at the moment, the terminal acquires the first image through the camera and acquires the image characteristic parameters of the first image.
It should be noted that, since the image optimization function may relate to user privacy or other information, when the user clicks the image optimization button, the terminal pops up a reminder box to remind the user and obtain the authorization of the user.
In this embodiment of the present application, the image feature parameters include: shooting azimuth, image content, and shooting time. The terminal can acquire the shooting azimuth of the first image by using a GPS, a Beidou satellite navigation system, a mobile phone compass and the like, and the image content is an object in the image, whether a face exists or not and the like.
S102, searching a second image and image quality parameters of the second image which are in the same shooting scene with the first image from a preset image library by utilizing the image characteristic parameters of the first image.
After the terminal acquires the first image and the image characteristic parameters of the first image, the terminal searches the second image and the image quality parameters of the second image which are in the same shooting scene with the first image from a preset image library by utilizing the image characteristic parameters of the first image.
In the embodiment of the present application, a preset image library is preset in the terminal, and a pre-stored photo, an image feature parameter and an image quality parameter of the pre-stored photo may be stored in the preset image library, where the pre-stored photo may be a photo acquired by the terminal through a camera, a photo stored in the terminal, a photo stored in a cloud, a photo shared by another person stored in a server, and the like, and the pre-stored photo is specifically selected according to an actual situation.
Based on different technologies and hardware configurations, the pre-stored photo in the embodiment of the application can select unprocessed photo processed by the raw algorithm, source data and difference information such as photo after user drawing repair, and the like.
Further, after the user performs editing operations such as optimizing and beautifying the pre-stored photo, the terminal obtains the edited image characteristic parameters and the edited image quality parameters, and stores the edited image characteristic parameters and the edited image quality parameters into a pre-stored image library.
In this embodiment of the present application, the image quality parameters include color parameters and image details, where the color parameters include parameters related to image colors such as sharpness, brightness, white balance, contrast, saturation, and the like, and are specifically selected according to actual situations, and the embodiment of the present application is not limited specifically.
In the embodiment of the application, the terminal searches a third image with the same or similar shooting azimuth as the first image from a preset image library, and acquires the image content of the third image and the shooting time of the third image; then, the terminal compares the image content of the first image with the image content of the third image to obtain a content comparison result; and determining a photographing time difference of the photographing time of the first image and the photographing time of the third image; and the terminal determines a second image from the third image according to the content comparison result and the shooting time difference.
In this embodiment of the present application, the number of second images is less than or equal to the number of third images, and the number of second images is at least one.
In the embodiment of the present application, the terminal determines, from the third image, a first type image having the same image content as the first image and having a shooting time difference smaller than a first preset threshold.
The first type image is an image obtained by capturing a plurality of times in succession at the same position in a short time, for example.
In the embodiment of the application, the terminal determines, from the third image, a second type image which is partially overlapped with the image content of the first image and has a shooting time difference greater than a second preset threshold.
The second type of image is, for example, an image of an object photographed at the same photographing location, which is at least partially overlapped, respectively during the day and night.
In the embodiment of the present application, the terminal determines, from the third image, a third type image that is different from the image content of the first image and has a shooting time difference smaller than a third preset threshold.
The third type of image is an image captured at the same capturing place and not captured to the same subject as the first image, for example, in a close time.
In the embodiment of the application, the terminal determines the first type image, the second type image and/or the third type image as the second image.
In the embodiment of the application, the terminal respectively performs position comparison, time comparison and photo content comparison on the first image and the images in the preset image library, wherein for the position comparison, the terminal calculates a shooting position and a shooting angle through basic position information, direction information, gesture information and the like, and further compares the shooting position with the shooting angle; the terminal can determine information such as weather, current illumination intensity and the like through time comparison and position comparison, so as to determine the proximity degree between images; for photo content comparison, the terminal can analyze characters, moving objects, fixed buildings, fixed objects and the like in the photos based on the photo content for subsequent content matching.
S103, performing image compensation on the first image by using the image quality parameters of the second image.
After the terminal searches the second image and the image quality parameters of the second image from the preset image library, the terminal performs image compensation on the first image by using the image quality parameters of the second image.
In this embodiment of the present application, the terminal compensates for the image details and/or color parameters of the first image by using the image quality parameters of the first type image, the image quality parameters of the second type image, and/or the image quality parameters of the third type image, respectively.
In an alternative embodiment, the terminal performs color compensation on the first image by using the color parameters of the first type of image, and fills the corresponding position of the first image by using the image details of the first type of image.
For example, multiple photographs are taken at the same location in a short period of time, such as for a quick succession of photographs of the type. The definition of the photos can be overlapped with each other, and the clearest photos are respectively overlapped; for brightness aspects, superposition can be performed with the most stable or the best dynamic range; for information such as color, the best color is taken; thereby improving the definition, brightness and color of the first image; an image may also be determined from the user preferences.
In an alternative embodiment, the terminal fills up the corresponding portion of the first image with image details of the overlapping image in the second type of image, wherein the overlapping image is an overlapping region of the first image and the second type of image
For example, for the position close, partial photo areas overlap, but the images with larger difference in shooting time are like one day at one place and one night, so that the photo at night can be filled by using the detail data under better light at daytime.
In an alternative embodiment, the terminal color compensates the first image using the color parameters of the third type of image.
For example, for the images with close positions and no overlapping areas of the photos, but close time, the terminal can calculate information such as brightness range, white balance accuracy and the like, so as to adjust color parameters such as brightness, white balance and the like of the first image.
Further, after the terminal acquires the second image and the image quality parameter of the second image, the terminal acquires the image quality parameter of the first image, and compares the image quality parameter of the first image with the image quality parameter of the second image to determine a fourth image with higher image quality than the image quality of the first image from the second image; and the terminal performs image compensation on the first image by using the image quality parameters of the fourth image.
It should be noted that, the process of performing image compensation on the first image by using the image quality parameter of the fourth image by the terminal is the same as the process of performing image compensation on the first image by using the image quality parameter of the second image by the terminal, which is not described herein.
Further, after the terminal performs image compensation on the first image by using the image quality parameters of the second image, the terminal acquires the image quality parameters of the compensated first image, and then the terminal stores the image quality parameters of the first image after image compensation and the image characteristic parameters of the first image into a preset image library.
The image processing method provided by the embodiment of the application can improve the consistency of image quality in a scene of rapid continuous multi-album photographing; in a high-frequency photographing scene, improving the image quality of an image; for an extreme scene, the accuracy of the scene identification, the color and the brightness can be improved by using the same scene, for example, the extreme scene of a singing concert with lamplight conversion, the color and the brightness of the same object can be changed due to the rapid color conversion speed of the ambient light, and at the moment, a white balance can be fixed to reflect the color change.
As shown in fig. 2, an exemplary flowchart of performing image optimization on a first image currently shot by using a shot image in the same shooting scene by using a terminal provided in an embodiment of the present application is shown in the following embodiment:
1. the terminal acquires the first image and shooting azimuth, image content, shooting time and image quality parameters of the first image.
2. The terminal searches a third image with the same or similar shooting direction as the first image from a preset image library, and acquires the image content of the third image and the shooting time of the third image.
3. And the terminal determines a first type image which has the same image content as the first image and has a shooting time difference smaller than a first preset threshold value from the third image.
4. The terminal searches for a first compensation image with an image quality parameter higher than that of the first image from the first type image.
5. And the terminal performs color compensation on the first image by using the color parameters of the first compensation image, and fills the corresponding position of the first image by using the image details of the first compensation image.
It should be noted that, the first compensation image is a type of photo such as taking a photo in rapid succession, in which multiple photos are taken at the same location in a short time. The definition of the photos can be overlapped with each other, and the clearest photos are respectively overlapped; for brightness aspects, superposition can be performed with the most stable or the best dynamic range; for information such as color, the best color is taken; thereby improving the definition, brightness and color of the first image; an image may also be determined from the user preferences.
6. The terminal determines a second type image which is partially overlapped with the image content of the first image and has a shooting time difference larger than a second preset threshold value from the third image.
7. The terminal searches for a second compensation image with an image quality parameter higher than that of the first image from the second type image.
8. And filling corresponding parts of the first image by utilizing image details of the overlapped image in the second compensation type image, wherein the overlapped image is an overlapped area of the first image and the second compensation image.
It should be noted that, the second compensation image is an image with close positions and overlapping partial photo areas, but with larger difference of shooting time, like shooting one day and one night at one place, the photo at night can be filled by using detail data under better light at daytime.
9. And the terminal determines a third type image which is different from the image content of the first image and has a shooting time difference smaller than a third preset threshold value from the third image.
10. The terminal searches for a third compensation image with the image quality parameter higher than that of the first image from the third type image.
11. The terminal performs color compensation on the first image by using the color parameters of the third compensation image.
The third compensation image is an image with a close position and no overlapping area of the photos, but the terminal can calculate information such as brightness range and white balance accuracy, and then adjust color parameters such as brightness and white balance of the first image.
3-5, 6-8, 9-11 are 2, and then three groups of parallel steps are performed, the terminal can execute at least one group of steps, the specific execution sequence is selected according to the actual situation, and the embodiment of the application is not limited specifically.
It can be understood that the terminal can still shoot the first image which is the most restored to the current shooting environment and has more complete shooting details under the complex shooting scene or the high-frequency scene and the shake scene by using the second image which is in the same shooting scene with the first image in the preset image library and utilizing the image quality parameter of the second image to compensate and adjust the image quality parameter of the first image, thereby improving the quality of the image shot by the terminal.
Example two
The embodiment of the present application provides a terminal, as shown in fig. 3, the terminal 1 includes:
an acquiring unit 10, configured to acquire a first image and an image feature parameter of the first image when an image optimization function is triggered;
a searching unit 11, configured to search, from a preset image library, a second image that is in the same shooting scene as the first image and an image quality parameter of the second image by using an image feature parameter of the first image;
an image compensation unit 12 for performing image compensation on the first image by using the image quality parameter of the second image.
Optionally, the image characteristic parameters include: shooting azimuth, image content and shooting time, the terminal further comprises: a comparing unit and a determining unit;
the searching unit 11 is further configured to search, from the preset image library, a third image that is the same as or similar to the shooting direction of the first image, and obtain image content of the third image and shooting time of the third image;
the comparison unit is used for comparing the image content of the first image with the image content of the third image to obtain a content comparison result;
the determining unit is used for determining a shooting time difference between the shooting time of the first image and the shooting time of the third image; and determining the second image from the third image according to the content comparison result and the shooting time difference.
Optionally, the determining unit is further configured to determine, from the third image, a first type image that is the same as the image content of the first image and the shooting time difference is less than a first preset threshold; determining a second type image which is partially overlapped with the image content of the first image and has a shooting time difference larger than a second preset threshold value from the third image; determining a third type image which is different from the image content of the first image and has the shooting time difference smaller than a third preset threshold value from the third image; the first type image, the second type image and/or the third type image are determined as the second image.
Optionally, the terminal further includes: an acquisition unit;
the acquisition unit is used for acquiring the image quality parameters of the first image;
the comparison unit is further configured to compare the image quality parameter of the first image with the image quality parameter of the second image, so as to determine a fourth image with image quality higher than that of the first image from the second image;
the image compensation unit 12 is further configured to perform image compensation on the first image using the image quality parameter of the fourth image.
Optionally, the image compensation unit 12 is further configured to compensate the image details and/or color parameters of the first image by using the image quality parameters of the first type image, the image quality parameters of the second type image and/or the image quality parameters of the third type image, respectively.
Optionally, the image quality parameters include: the color parameters and the details of the image,
the image compensation unit 12 is further configured to perform color compensation on the first image using the first type image color parameter, and fill up a corresponding position of the first image using image details of the first type image; and/or filling corresponding parts of the first image with image details of an overlapping image in the second type image, the overlapping image being an overlapping region of the first image and the second type image; and/or performing color compensation on the first image by utilizing the color parameters of the third type image.
Optionally, the terminal further includes: a storage unit;
the acquisition unit is also used for acquiring the image quality parameters of the first image after the image compensation;
the storage unit is used for storing the image quality parameters of the first image after the image compensation and the image characteristic parameters of the first image into the preset image library.
According to the terminal provided by the embodiment of the application, when the image optimization function is triggered, a first image and image characteristic parameters of the first image are obtained; searching a second image and image quality parameters of the second image which are in the same shooting scene with the first image from a preset image library by utilizing the image characteristic parameters of the first image; and performing image compensation on the first image by using the image quality parameters of the second image. Therefore, the terminal provided by the embodiment can still shoot the first image which is the most restored to the current shooting environment and has more complete shooting details under the complex shooting scene or the high-frequency scene and the shake scene by the terminal by compensating and adjusting the image quality parameter of the first image by using the image quality parameter of the second image from the second image which is in the same shooting scene with the first image in the preset image library.
Fig. 4 is a schematic diagram of a second component structure of the terminal 1 according to the embodiment of the present application, in practical application, based on the same disclosure concept of the above embodiment, as shown in fig. 4, the terminal 1 of the present embodiment includes: a processor 13, a memory 14 and a communication bus 15.
In a specific embodiment, the acquiring unit 10, the searching unit 11, the image compensating unit 12, the comparing unit, the determining unit and the acquiring unit may be implemented by a processor 13 located on the terminal 1, the storing unit may be implemented by a memory 14 located on the terminal 1, and the processor 13 may be at least one of an application specific integrated circuit (ASIC, application Specific Integrated Circuit), a digital signal processor (DSP, digital Signal Processor), a digital signal processing image processing device (DSPD, digital Signal Processing Device), a programmable logic image processing device (PLD, programmable Logic Device), a field programmable gate array (FPGA, field Programmable Gate Array), a CPU, a controller, a microcontroller, and a microprocessor. It will be appreciated that the electronics for implementing the above-described processor functions may be other for different devices, and the present embodiment is not particularly limited.
In the embodiment of the present application, the above-mentioned communication bus 15 is used to implement connection communication between the processor 13 and the memory 14; the processor 13 implements the following image processing method when executing the execution program stored in the memory 14:
when an image optimization function is triggered, a first image and image characteristic parameters of the first image are acquired; searching a second image which is in the same shooting scene with the first image and an image quality parameter of the second image from a preset image library by utilizing the image characteristic parameter of the first image; and performing image compensation on the first image by using the image quality parameters of the second image.
In the above method, the image characteristic parameters include: the processor 13 is further configured to search, from the preset image library, a third image that is the same as or similar to the shooting direction of the first image, and obtain the image content of the third image and the shooting time of the third image; comparing the image content of the first image with the image content of the third image to obtain a content comparison result; determining a shooting time difference between the shooting time of the first image and the shooting time of the third image; and determining the second image from the third image according to the content comparison result and the shooting time difference.
In the above method, the processor 13 is further configured to determine, from the third image, a first type image that is the same as the image content of the first image and has the shooting time difference less than a first preset threshold; determining a second type image which is partially overlapped with the image content of the first image and has a shooting time difference larger than a second preset threshold value from the third image; determining a third type image which is different from the image content of the first image and has the shooting time difference smaller than a third preset threshold value from the third image; the first type image, the second type image and/or the third type image are determined as the second image.
In the above method, the processor 13 is further configured to acquire an image quality parameter of the first image; comparing the image quality parameter of the first image with the image quality parameter of the second image to determine a fourth image with higher image quality than the first image from the second image; and performing image compensation on the first image by using the image quality parameters of the fourth image.
In the above method, the processor 13 is further configured to compensate the image details and/or color parameters of the first image by using the image quality parameters of the first type image, the image quality parameters of the second type image and/or the image quality parameters of the third type image, respectively.
In the above method, the image quality parameter includes: the color parameters and the details of the image,
the processor 13 is further configured to perform color compensation on the first image using the first type image color parameter, and fill up a corresponding position of the first image using image details of the first type image; and/or filling corresponding parts of the first image with image details of an overlapping image in the second type image, the overlapping image being an overlapping region of the first image and the second type image; and/or performing color compensation on the first image by utilizing the color parameters of the third type image.
In the above method, the processor 13 is further configured to obtain an image quality parameter of the first image after image compensation;
the memory 14 is further configured to store the image quality parameter of the image-compensated first image and the image feature parameter of the first image into the preset image library.
The embodiment of the application provides a storage medium, on which a computer program is stored, where the computer readable storage medium stores one or more programs, where the one or more programs are executable by one or more processors and applied to a terminal, and the computer program implements the method for photographing composition according to the embodiment one.
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 one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present disclosure may be embodied essentially or in a part contributing to the related art in the form of a software product stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), including several instructions for causing an image display device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method described in the embodiments of the present disclosure.
The foregoing description is only of the preferred embodiments of the present application and is not intended to limit the scope of the present application.

Claims (9)

1. An image processing method, the method comprising:
when an image optimization function is triggered, a first image and image characteristic parameters of the first image are acquired;
searching a second image which is in the same shooting scene with the first image and an image quality parameter of the second image from a preset image library by utilizing the image characteristic parameter of the first image;
performing image compensation on the first image by using the image quality parameters of the second image;
wherein, the image characteristic parameters include: shooting azimuth, image content and shooting time, wherein the searching a second image which is in the same shooting scene with the first image from a preset image library by utilizing the image characteristic parameters of the first image comprises the following steps:
searching a third image which is the same as or similar to the shooting direction of the first image from the preset image library, and acquiring the image content of the third image and the shooting time of the third image;
comparing the image content of the first image with the image content of the third image to obtain a content comparison result;
determining a shooting time difference between the shooting time of the first image and the shooting time of the third image;
and determining the second image from the third image according to the content comparison result and the shooting time difference.
2. The method of claim 1, wherein the determining the second image from the third image based on the content comparison result and the shooting time difference comprises:
determining a first type image which has the same image content as the first image and the shooting time difference smaller than a first preset threshold value from the third image;
determining a second type image which is partially overlapped with the image content of the first image and has a shooting time difference larger than a second preset threshold value from the third image;
determining a third type image which is different from the image content of the first image and has the shooting time difference smaller than a third preset threshold value from the third image;
the first type image, the second type image and/or the third type image are determined as the second image.
3. The method of claim 1, wherein image compensating the first image using the image quality parameter of the second image comprises:
acquiring an image quality parameter of the first image;
comparing the image quality parameter of the first image with the image quality parameter of the second image to determine a fourth image with higher image quality than the first image from the second image;
and performing image compensation on the first image by using the image quality parameters of the fourth image.
4. The method of claim 2, wherein the image compensating the first image using the image quality parameter of the second image comprises:
and compensating the image detail and/or color parameters of the first image by using the image quality parameters of the first type image, the image quality parameters of the second type image and/or the image quality parameters of the third type image respectively.
5. The method of claim 4, wherein the image quality parameters comprise: color parameters and image details, wherein the compensating the image details and/or the color parameters of the first image by using the image quality parameters of the first type image, the image quality parameters of the second type image and/or the image quality parameters of the third type image respectively comprises the following steps:
performing color compensation on the first image by using the first type image color parameters, and filling the corresponding position of the first image by using the image details of the first type image;
and/or filling corresponding parts of the first image with image details of an overlapping image in the second type image, the overlapping image being an overlapping region of the first image and the second type image;
and/or performing color compensation on the first image by utilizing the color parameters of the third type image.
6. The method of claim 1, wherein after image compensating the first image using the image quality parameter of the second image, the method further comprises:
acquiring an image quality parameter of a first image after image compensation;
and storing the image quality parameters of the first image after the image compensation and the image characteristic parameters of the first image into the preset image library.
7. A terminal, the terminal comprising:
the acquisition unit is used for acquiring a first image and image characteristic parameters of the first image when the image optimization function is triggered;
the searching unit is used for searching a second image which is in the same shooting scene with the first image and an image quality parameter of the second image from a preset image library by utilizing the image characteristic parameter of the first image;
an image compensation unit for performing image compensation on the first image by using the image quality parameter of the second image;
wherein, the image characteristic parameters include: the searching unit is specifically configured to search a third image, which is the same as or similar to the shooting direction of the first image, from the preset image library, and acquire the image content of the third image and the shooting time of the third image;
comparing the image content of the first image with the image content of the third image to obtain a content comparison result;
determining a shooting time difference between the shooting time of the first image and the shooting time of the third image;
and determining the second image from the third image according to the content comparison result and the shooting time difference.
8. A terminal, the terminal comprising: a processor, a memory, and a communication bus; the processor, when executing a memory-stored operating program, implements the method of any one of claims 1 to 6.
9. A storage medium having stored thereon a computer program which, when executed by a processor, implements the method of any of claims 1 to 6.
CN202010246049.0A 2020-03-31 2020-03-31 Image processing method, terminal and storage medium Active CN111429377B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010246049.0A CN111429377B (en) 2020-03-31 2020-03-31 Image processing method, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010246049.0A CN111429377B (en) 2020-03-31 2020-03-31 Image processing method, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN111429377A CN111429377A (en) 2020-07-17
CN111429377B true CN111429377B (en) 2023-06-06

Family

ID=71550318

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010246049.0A Active CN111429377B (en) 2020-03-31 2020-03-31 Image processing method, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN111429377B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107820020A (en) * 2017-12-06 2018-03-20 广东欧珀移动通信有限公司 Method of adjustment, device, storage medium and the mobile terminal of acquisition parameters
CN108337433A (en) * 2018-03-19 2018-07-27 广东欧珀移动通信有限公司 A kind of photographic method, mobile terminal and computer readable storage medium
CN109218619A (en) * 2018-10-12 2019-01-15 北京旷视科技有限公司 Image acquiring method, device and system
CN109639964A (en) * 2018-11-26 2019-04-16 北京达佳互联信息技术有限公司 Image processing method, processing unit and computer readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107820020A (en) * 2017-12-06 2018-03-20 广东欧珀移动通信有限公司 Method of adjustment, device, storage medium and the mobile terminal of acquisition parameters
CN108337433A (en) * 2018-03-19 2018-07-27 广东欧珀移动通信有限公司 A kind of photographic method, mobile terminal and computer readable storage medium
CN109218619A (en) * 2018-10-12 2019-01-15 北京旷视科技有限公司 Image acquiring method, device and system
CN109639964A (en) * 2018-11-26 2019-04-16 北京达佳互联信息技术有限公司 Image processing method, processing unit and computer readable storage medium

Also Published As

Publication number Publication date
CN111429377A (en) 2020-07-17

Similar Documents

Publication Publication Date Title
CN109644224B (en) System and method for capturing digital images
EP3320397B1 (en) System and method for controlling capture of images
US11368615B2 (en) Modifying image parameters using wearable device input
US10074165B2 (en) Image composition device, image composition method, and recording medium
CN107071272B (en) Method and device for controlling brightness of camera fill-in light and terminal
CN109474780B (en) Method and device for image processing
CN113411498B (en) Image shooting method, mobile terminal and storage medium
CN112930677B (en) Method for switching between first lens and second lens and electronic device
WO2021184302A1 (en) Image processing method and apparatus, imaging device, movable carrier, and storage medium
CN105578062A (en) Light metering mode selection method and image acquisition device utilizing same
CN112492221B (en) Photographing method and device, electronic equipment and storage medium
US20120075482A1 (en) Image blending based on image reference information
CN108683847B (en) Photographing method, device, terminal and storage medium
US9473716B2 (en) Image processing method and image processing device
CN111429377B (en) Image processing method, terminal and storage medium
CN111567034A (en) Exposure compensation method, device and computer readable storage medium
CN112219218A (en) Method and electronic device for recommending image capture mode
CN111654623B (en) Photographing method and device and electronic equipment
CN114339028A (en) Photographing method, electronic device and computer-readable storage medium
CN113989387A (en) Camera shooting parameter adjusting method and device and electronic equipment
CN114390206A (en) Shooting method and device and electronic equipment
CN117201929A (en) Shooting method and device and electronic equipment
CN114615440A (en) Photographing method, photographing apparatus, electronic device, and readable storage medium
CN116600196A (en) Image processing method and device
CN116862801A (en) Image processing method, device, electronic equipment and storage medium

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