[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN108833780B - Image parameter adjusting method, image parameter adjusting device and mobile terminal - Google Patents

Image parameter adjusting method, image parameter adjusting device and mobile terminal Download PDF

Info

Publication number
CN108833780B
CN108833780B CN201810621683.0A CN201810621683A CN108833780B CN 108833780 B CN108833780 B CN 108833780B CN 201810621683 A CN201810621683 A CN 201810621683A CN 108833780 B CN108833780 B CN 108833780B
Authority
CN
China
Prior art keywords
parameter
image
difference
preset
target image
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
CN201810621683.0A
Other languages
Chinese (zh)
Other versions
CN108833780A (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 CN201810621683.0A priority Critical patent/CN108833780B/en
Publication of CN108833780A publication Critical patent/CN108833780A/en
Application granted granted Critical
Publication of CN108833780B publication Critical patent/CN108833780B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/64Computer-aided capture of images, e.g. transfer from script file into camera, check of taken image quality, advice or proposal for image composition or decision on when to take image
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4482Procedural
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)
  • Studio Devices (AREA)

Abstract

The application discloses an image parameter adjusting method, an image parameter adjusting device, a mobile terminal and a computer readable storage medium, wherein the image parameter adjusting method comprises the following steps: acquiring image parameters of a current preview image; calculating a parameter difference value between the image parameter and a target image parameter; detecting whether the parameter difference value exceeds a preset first difference threshold value or not; if the parameter difference value exceeds a preset first difference threshold value, acquiring a parameter average value of the image parameter and the target image parameter; and updating the image parameters of the current preview image based on the parameter average value. The scheme of the application can realize automatic adjustment of the image parameters of the preview image.

Description

Image parameter adjusting method, image parameter adjusting device and mobile terminal
Technical Field
The present application belongs to the field of multimedia technologies, and in particular, to an image parameter adjusting method, an image parameter adjusting apparatus, a mobile terminal, and a computer-readable storage medium.
Background
When the user uses the photographing function of the mobile terminal, the user can directly check and see the preview image through the screen in the photographing process. At present, the image parameters of the preview image are usually set in the mobile terminal when the mobile terminal leaves the factory, and if the user is not satisfied with the image parameters of the preview image, the user needs to manually call corresponding options in the menu to adjust the corresponding options in the photographing process. The process of adjusting the image parameters of the preview image is not only tedious, but also the called menu easily blocks the sight of people.
Disclosure of Invention
In view of the above, the present application provides an image parameter adjusting method, an image parameter adjusting apparatus, a mobile terminal and a computer-readable storage medium, which can implement automatic adjustment of image parameters of a preview image.
A first aspect of the present application provides an image parameter adjusting method, including:
acquiring image parameters of a current preview image;
calculating the parameter difference value between the image parameter and the target image parameter;
detecting whether the parameter difference value exceeds a preset first difference threshold value or not;
if the parameter difference value exceeds a preset first difference threshold value, acquiring a parameter average value of the image parameter and the target image parameter;
and updating the image parameters of the current preview image based on the parameter average value.
A second aspect of the present application provides an image parameter adjustment apparatus, including:
a first acquisition unit, configured to acquire an image parameter of a current preview image;
a difference calculating unit, for calculating the parameter difference value between the image parameter and the target image parameter;
the difference detection unit is used for detecting whether the parameter difference value exceeds a preset first difference threshold value;
a second obtaining unit, configured to obtain a parameter average value of the image parameter and the target image parameter if the parameter difference value exceeds a preset first difference threshold;
and the parameter updating unit is used for updating the image parameters of the current preview image based on the parameter average value.
A third aspect of the present application provides an electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method according to the first aspect when executing the computer program.
A fourth aspect of the present application provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the method of the first aspect as described above.
A fifth aspect of the application provides a computer program product comprising a computer program which, when executed by one or more processors, performs the steps of the method as described in the first aspect above.
As can be seen from the above, according to the present application, firstly, the image parameters of the current preview image are obtained, then, the parameter difference value between the image parameters and the target image parameters is calculated, and then, whether the parameter difference value exceeds the preset first difference threshold is detected, if the parameter difference value exceeds the preset first difference threshold, the parameter average value between the image parameters and the target image parameters is obtained, and the image parameters of the current preview image are updated based on the parameter average value. According to the scheme, in the photographing process, the target image parameters can be used as the reference, and the image parameters of the current preview image are automatically adjusted, so that the adjusting process of the image parameters is more convenient and faster.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
FIG. 1 is a schematic flow chart of an implementation of an image parameter adjustment method provided in an embodiment of the present application;
FIG. 2 is a schematic flow chart of another implementation of an image parameter adjustment method provided in an embodiment of the present application;
fig. 3 is a schematic flow chart illustrating an implementation process of setting target image parameters in the image parameter adjusting method according to the embodiment of the present application;
FIG. 4 is a schematic diagram of an image parameter adjustment apparatus provided in an embodiment of the present application;
fig. 5 is a schematic diagram of a mobile terminal provided in an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
In order to explain the technical solution of the present application, the following description will be given by way of specific examples.
Example one
Referring to fig. 1, an image parameter adjusting method provided in an embodiment of the present application is described below, where the image parameter adjusting method in the embodiment of the present application includes:
in step 101, acquiring image parameters of a current preview image;
in the embodiment of the application, when the mobile terminal starts a photographing function and displays a photographed preview image on a screen, image parameters of the current preview image are acquired. Optionally, in the embodiment of the present application, the photographing function of the mobile terminal may be started by receiving a photographing start instruction input by a user, for example, the user may input the photographing start instruction to the mobile terminal after clicking a touch camera icon on a screen; or, the user may also input a photographing start instruction to the mobile terminal by pressing a preset key of the mobile terminal or after pressing a key combination of the mobile terminal; alternatively, the user may input the photographing start instruction to the mobile terminal by voice, and the manner in which the user starts the photographing function is not limited herein. Optionally, the image parameters include, but are not limited to: contrast, exposure compensation, white balance, and/or cosmetic grade. The beauty grade is obtained only when the current shooting mode supports beauty; if the mobile terminal has a High-Dynamic Range (HDR) function, the image parameters may further include HDR parameters, which is not limited herein.
In step 102, calculating a parameter difference value between the image parameter and a preset target image parameter;
in the embodiment of the application, the mobile terminal can calculate the difference value between the image parameter of the current preview image and the preset target image parameter; optionally, if the image parameters include multiple types of parameters, for example, the image parameters obtained this time include contrast, exposure compensation, white balance and beauty grade, in this step, a parameter difference value is obtained for each type of image parameter, that is, a contrast difference value, an exposure compensation difference value, a white balance difference value and a beauty grade difference value are obtained respectively. Optionally, the mobile terminal may preset a plurality of different sets of target image parameters, so that the mobile terminal selects different target image parameters for different application scenes to calculate the parameter difference values thereof, for example, one set of target image parameters is used to calculate the parameter difference values of the preview images obtained by the user when using the front-facing camera, and the other set of target image parameters is used to calculate the parameter difference values of the preview images obtained by the user when using the rear-facing camera; or, one set of target image parameters is used to calculate the parameter difference value of the preview image obtained by the user during the day period, the other set of target image parameters is used to calculate the parameter difference value of the preview image obtained by the user during the night period, and the user can set the target image parameters in different application scenes according to the self-demand, which is not limited herein.
In step 103, detecting whether the parameter difference value exceeds a preset first difference threshold value;
in this embodiment, the first difference value is usually a smaller value, that is, this step is used to detect whether the image parameter of the current preview image and the target image parameter are controlled within a smaller difference range, that is, to determine whether the image parameter of the current preview image is close to the target image parameter.
In step 104, if the parameter difference value exceeds a preset first difference threshold, obtaining a parameter average value of the image parameter and the target image parameter;
in the embodiment of the application, when it is detected that the parameter difference value does not exceed a preset first difference threshold value, the image parameter of the current preview image is considered to be close to the target image parameter, and adjustment is not needed; when the parameter difference value is detected to exceed a preset first difference threshold value, the image parameter of the current preview image and the target image parameter are not controlled within a smaller difference range, and at this time, the image parameter of the current preview image needs to be further adjusted. In order to avoid an excessively large parameter fluctuation range of each adjustment, a parameter average value of the image parameter and the target image parameter may be obtained, and the image parameter of the current preview image may be adjusted based on the parameter average value.
In step 105, the image parameter of the current preview image is updated based on the parameter average value.
In this embodiment of the present application, the image parameter of the current preview image is updated by the parameter average value, so that the image parameter of the current preview image is adjusted to the parameter average value, and the image parameter of the current preview image is gradually adjusted. Optionally, after the step, the mobile terminal may return to execute the step 102 and the subsequent steps, and output a first reminding message to remind the user to take a picture when the parameter difference value between the image parameter and the target image parameter does not exceed a preset first difference threshold value, that is, the adjusting and updating process of the image parameter is gradual. Specifically, the first reminding message may be output by text, ring, voice broadcast, or vibration, which is not limited herein.
Therefore, through the embodiment of the application, the image parameters of the current preview image can be subjected to progressive automatic adjustment operation by taking the preset target image parameters as the reference in the photographing process, the user does not need to manually call the menu options to perform various operations in the process, the condition that the preview image is blocked can be reduced, and the adjustment process of the image parameters can be more convenient.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Example one
On the basis of the first embodiment, another image parameter adjusting method provided in the embodiment of the present application is described below, with reference to fig. 2, where the image parameter adjusting method in the embodiment of the present application includes:
in step 201, acquiring image parameters of a current preview image;
in step 202, calculating a parameter difference value between the image parameter and the target image parameter;
in step 203, detecting whether the parameter difference value exceeds a preset first difference threshold value;
in the embodiment of the present application, the steps 201, 202, and 203 are the same as or similar to the steps 101, 102, and 103, and reference may be specifically made to the related descriptions of the steps 101, 102, and 103, which are not repeated herein.
In step 204, if the parameter difference value exceeds a preset first difference threshold, detecting whether the parameter difference value exceeds a preset second difference threshold, if so, performing step 205, and if not, performing step 206;
in an embodiment of the present application, the second difference threshold is greater than the first difference threshold. It can be considered that the step 203 is to detect whether the image parameter of the current preview image and the target image parameter are controlled within a smaller difference range, that is, to determine whether the image parameter of the current preview image is close to the target image parameter; this step is to detect whether the image parameters of the preview image are too different from the target image parameters.
In step 205, outputting a second reminding message to remind the user to change the current photographing scene;
in this embodiment of the application, if the parameter difference value exceeds a preset second difference threshold, it is determined that the difference between the image parameter of the preview image and the target image parameter is too large, and at this time, it may not be possible to enable the image to meet the requirement of the user for taking a picture only by simply changing the image parameter, so that in this case, a second reminding message is output to remind the user to change the current shooting scene, that is, remind the user to move, and improve the current shooting environment.
In step 206, obtaining a parameter average value of the image parameter and the target image parameter;
in this embodiment of the application, if the parameter difference value does not exceed the preset second difference threshold, it is determined that the difference between the image parameter of the preview image and the target image parameter is still within the controllable range, and the image parameter may be updated through the parameter average value, and the specific implementation manner of the update may refer to the related description of step 104, which is not described herein again.
In step 207, the image parameters of the current preview image are updated based on the parameter average.
In the embodiment of the present application, step 207 is the same as or similar to step 105, and reference may be specifically made to the related description of step 105, which is not repeated herein.
Therefore, according to the embodiment of the application, the preset target image parameter is taken as a reference in the photographing process, and if the difference between the current image parameter and the target image parameter is within a controllable range, the image parameter of the current preview image is subjected to progressive automatic adjustment operation through the parameter average value, so that a user does not need to manually call menu options to perform various operations in the process, the condition that the preview image is blocked can be reduced, and the adjustment process of the image parameter can be more convenient; if the difference between the current image parameter and the target image parameter is too large, the user is reminded to change the photographing scene so as to obtain a better photographing effect.
In the first embodiment and the second embodiment, the image parameter adjusting method further includes:
in step 301, determining a target image in a media library of a mobile terminal;
in the embodiment of the present application, the media library of the mobile terminal includes not only the image obtained by the user through the photographing function of the mobile terminal, but also an image downloaded or received by the user through a channel such as the internet, which is not limited herein. Optionally, an image pointed by the selection instruction may be determined as the target image in the media library of the mobile terminal through the selection instruction input by the user; alternatively, the target image may be determined according to the number of times of being shared or viewed, which is not limited herein.
Optionally, taking the example of determining the target image according to the number of times of being shared, the step 301 includes:
counting the sharing times of each image in a media library of the mobile terminal;
and determining the image which is shared the most times as the target image.
Since the user can frequently share the image in the social circle only when the user is satisfied with the image, the number of times that each image is shared can be counted in real time, and the image with the largest number of times that the image is shared is determined as the target image.
In step 302, acquiring image parameters of the target image;
in the embodiment of the present application, the image parameters of the target image include, but are not limited to, contrast, exposure compensation, and white balance. If the target image is shot in a beauty mode, the image parameters of the target image can also comprise a beauty grade; if the target image is captured in the HDR mode, the image parameters of the target image may further include HDR parameters.
In step 303, the image parameters of the target image are determined as target image parameters.
It should be noted that when the target image is determined by the number of times of being shared or the number of times of being viewed, the target image is dynamically updated, and thus the corresponding target image parameters are also updated in real time. Through the steps, the selection of the target image parameters can meet the requirements of users better, and dynamic updating is realized.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
EXAMPLE III
A third embodiment of the present application provides an image parameter adjusting apparatus, which may be integrated in a mobile terminal, as shown in fig. 4, an image parameter adjusting apparatus 400 in the third embodiment of the present application includes:
a first obtaining unit 401, configured to obtain an image parameter of a current preview image;
a difference calculating unit 402, configured to calculate a parameter difference value between the image parameter and the target image parameter;
a difference detecting unit 403, configured to detect whether the parameter difference value exceeds a preset first difference threshold;
a second obtaining unit 404, configured to obtain a parameter average value of the image parameter and the target image parameter if the parameter difference value exceeds a preset first difference threshold;
a parameter updating unit 405, configured to update the image parameter of the current preview image based on the parameter average value.
Optionally, the parameter updating unit 405 is further configured to trigger the difference calculating unit 402 to execute the process after the image parameter of the current preview image is updated based on the parameter average value;
the image parameter adjusting apparatus 400 further includes:
and the first reminding message output unit is used for outputting a first reminding message to remind a user of taking a picture when the parameter difference value between the image parameter and the target image parameter does not exceed a preset first difference threshold value.
Optionally, the second obtaining unit 404 includes:
a second difference threshold detection subunit, configured to detect whether the parameter difference value exceeds a preset second difference threshold if the parameter difference value exceeds a preset first difference threshold, where the second difference threshold is greater than the first difference threshold;
a parameter average value obtaining subunit, configured to obtain a parameter average value of the image parameter and the target image parameter if the parameter difference value does not exceed a preset second difference threshold;
and the second reminding message output subunit is used for outputting a second reminding message to remind the user of changing the current shooting scene if the parameter difference value exceeds a preset second difference threshold value.
Optionally, the image parameter adjusting apparatus 400 further includes:
a target image determining unit for determining a target image in a media library of the mobile terminal;
an image parameter acquiring unit for acquiring image parameters of the target image;
and the image parameter determining unit is used for determining the image parameters of the target image as the target image parameters.
Optionally, the target image determination unit includes:
the counting subunit is used for counting the number of times that each image is shared in the media library of the mobile terminal;
and the determining subunit is used for determining the image which is shared the most times as the target image.
Optionally, the image parameters include: contrast, exposure compensation, white balance, and/or cosmetic grade.
It can be seen from above that, through this application embodiment, image parameter adjusting device can realize at the in-process of shooing to preset target image parameter is the benchmark, carries out the operation of progressive automated adjustment to the image parameter of current preview image, and the menu option that no longer needs the manual call of user to carry out each item operation in this in-process, not only can reduce the condition that preview image is sheltered from, can also make the accommodation process of image parameter more convenient.
Example four
In an embodiment of the present application, a mobile terminal is provided, please refer to fig. 5, where the mobile terminal in the embodiment of the present application includes: a memory 501, one or more processors 502 (only one shown in fig. 5), and a computer program stored on the memory 501 and executable on the processors. Wherein: the memory 501 is used for storing software programs and modules, and the processor 502 executes various functional applications and data processing by running the software programs and units stored in the memory 501, so as to acquire resources corresponding to the preset events. Specifically, the processor 502 realizes the following steps by running the above-mentioned computer program stored in the memory 501:
acquiring image parameters of a current preview image;
calculating the parameter difference value between the image parameter and the target image parameter;
detecting whether the parameter difference value exceeds a preset first difference threshold value or not;
if the parameter difference value exceeds a preset first difference threshold value, acquiring a parameter average value of the image parameter and the target image parameter;
and updating the image parameters of the current preview image based on the parameter average value.
Assuming that the above is the first possible implementation manner, in a second possible implementation manner provided on the basis of the first possible implementation manner, after the above updating the image parameters of the current preview image based on the parameter average value, the processor 502 further implements the following steps when running the above computer program stored in the memory 501:
and returning to the step of calculating the parameter difference value between the image parameter and the target image parameter and the subsequent steps until the parameter difference value between the image parameter and the target image parameter does not exceed a preset first difference threshold value, and outputting a first reminding message to remind a user of taking a picture.
In a third possible implementation manner provided based on the first possible implementation manner, the acquiring a parameter average value of the image parameter and the target image parameter if the parameter difference value exceeds a preset first difference threshold includes:
if the parameter difference value exceeds a preset first difference threshold value, detecting whether the parameter difference value exceeds a preset second difference threshold value, wherein the second difference threshold value is larger than the first difference threshold value;
if the parameter difference value does not exceed a preset second difference threshold value, acquiring a parameter average value of the image parameter and the target image parameter;
and if the parameter difference value exceeds a preset second difference threshold value, outputting a second reminding message to remind the user of changing the current photographing scene.
In a fourth possible implementation based on the first possible implementation, the second possible implementation, or the third possible implementation, the processor 502 further implements the following steps when executing the computer program stored in the memory 501:
determining a target image in a media library of the mobile terminal;
acquiring image parameters of the target image;
and determining the image parameters of the target image as target image parameters.
In a fifth possible implementation manner provided as a basis for the fourth possible implementation manner, the determining a target image in a picture library of a mobile terminal includes:
counting the sharing times of each image in a media library of the mobile terminal;
and determining the image which is shared the most times as the target image.
In a sixth possible embodiment based on the first possible embodiment, the second possible embodiment, or the third possible embodiment, the image parameter includes: contrast, exposure compensation, white balance, and/or cosmetic grade.
Further, as shown in fig. 5, the mobile terminal may further include: one or more input devices 503 (only one shown in fig. 5) and one or more output devices 504 (only one shown in fig. 5). The memory 501, processor 502, input device 503, and output device 504 are connected by a bus 505.
It should be understood that in the embodiments of the present Application, the Processor 502 may be a Central Processing Unit (CPU), and the Processor may be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field-Programmable Gate arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The input device 503 may include a keyboard, a touch pad, a fingerprint sensor (for collecting fingerprint information of a user and direction information of the fingerprint), a microphone, etc., and the output device 504 may include a display, a speaker, etc.
Memory 501 may include both read-only memory and random access memory and provides instructions and data to processor 502. Some or all of the memory 501 may also include non-volatile random access memory. For example, the memory 501 may also store device type information.
Therefore, according to the embodiment of the application, the mobile terminal can realize the operation of progressive automatic adjustment on the image parameters of the current preview image by taking the preset target image parameters as the reference in the photographing process, the user does not need to manually call the menu options to perform various operations in the process, the condition that the preview image is blocked can be reduced, and the adjusting process of the image parameters can be more convenient.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned functions may be distributed as different functional units and modules according to needs, that is, the internal structure of the apparatus may be divided into different functional units or modules to implement all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art would appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of external device software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described system embodiments are merely illustrative, and for example, the division of the above-described modules or units is only one logical functional division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The integrated unit may be stored in a computer-readable storage medium if it is implemented in the form of a software functional unit and sold or used as a separate product. Based on such understanding, all or part of the flow in the method of the embodiments described above may be implemented by a computer program, which may be stored in a computer readable storage medium and used by a processor to implement the steps of the embodiments of the methods described above. The computer program includes computer program code, and the computer program code may be in a source code form, an object code form, an executable file or some intermediate form. The computer-readable storage medium may include: any entity or device capable of carrying the above-described computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer readable Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signal, telecommunication signal, software distribution medium, etc. It should be noted that the computer readable storage medium may contain other contents which can be appropriately increased or decreased according to the requirements of the legislation and the patent practice in the jurisdiction, for example, in some jurisdictions, the computer readable storage medium does not include an electrical carrier signal and a telecommunication signal according to the legislation and the patent practice.
The above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (8)

1. An image parameter adjustment method, comprising:
acquiring image parameters of a current preview image;
calculating a parameter difference value between the image parameter and a preset target image parameter; the mobile terminal is preset with a plurality of sets of different target image parameters, and different target image parameters are selected according to different application scenes to calculate the parameter difference value;
detecting whether the parameter difference value exceeds a preset first difference threshold value or not;
if the parameter difference value exceeds a preset first difference threshold value, acquiring a parameter average value of the image parameter and the target image parameter, including: if the parameter difference value exceeds a preset first difference threshold value, detecting whether the parameter difference value exceeds a preset second difference threshold value, wherein the second difference threshold value is larger than the first difference threshold value; if the parameter difference value does not exceed a preset second difference threshold value, acquiring a parameter average value of the image parameter and the target image parameter; if the parameter difference value exceeds a preset second difference threshold value, determining that the difference between the image parameter of the preview image and the target image parameter is too large to meet the requirement of the user on photographing by changing the image parameter, and outputting a second reminding message to remind the user to change the current photographing scene;
and updating the image parameters of the current preview image based on the parameter average value.
2. The image parameter adjustment method according to claim 1, further comprising, after the updating of the image parameter of the current preview image based on the parameter average value:
and returning to the step of calculating the parameter difference value between the image parameter and the target image parameter and the subsequent steps until the parameter difference value between the image parameter and the target image parameter does not exceed a preset first difference threshold value, and outputting a first reminding message to remind a user of taking a picture.
3. The image parameter adjustment method according to claim 1 or 2, characterized in that the image parameter adjustment method further comprises:
determining a target image in a media library of the mobile terminal;
acquiring image parameters of the target image;
and determining the image parameters of the target image as target image parameters.
4. The image parameter adjustment method of claim 3, wherein the determining the target image in the picture library of the mobile terminal comprises:
counting the sharing times of each image in a media library of the mobile terminal;
and determining the image which is shared the most times as the target image.
5. The image parameter adjustment method according to claim 1 or 2, wherein the image parameter includes: contrast, exposure compensation, white balance, and/or cosmetic grade.
6. An image parameter adjustment apparatus, comprising:
a first acquisition unit, configured to acquire an image parameter of a current preview image;
the difference calculating unit is used for calculating a parameter difference value between the image parameter and a preset target image parameter;
the difference detection unit is used for detecting whether the parameter difference value exceeds a preset first difference threshold value;
the second obtaining unit is used for obtaining a parameter average value of the image parameter and the target image parameter if the parameter difference value exceeds a preset first difference threshold value;
the parameter updating unit is used for updating the image parameters of the current preview image based on the parameter average value;
the second acquisition unit includes:
a second difference threshold detection subunit, configured to detect whether the parameter difference value exceeds a preset second difference threshold if the parameter difference value exceeds a preset first difference threshold, where the second difference threshold is greater than the first difference threshold;
a parameter average value obtaining subunit, configured to obtain a parameter average value of the image parameter and the target image parameter if the parameter difference value does not exceed a preset second difference threshold;
and the second reminding message output subunit is used for outputting a second reminding message to remind the user of changing the current shooting scene if the parameter difference value exceeds a preset second difference threshold value.
7. A mobile terminal comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of claims 1 to 5 when executing the computer program.
8. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 5.
CN201810621683.0A 2018-06-15 2018-06-15 Image parameter adjusting method, image parameter adjusting device and mobile terminal Active CN108833780B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810621683.0A CN108833780B (en) 2018-06-15 2018-06-15 Image parameter adjusting method, image parameter adjusting device and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810621683.0A CN108833780B (en) 2018-06-15 2018-06-15 Image parameter adjusting method, image parameter adjusting device and mobile terminal

Publications (2)

Publication Number Publication Date
CN108833780A CN108833780A (en) 2018-11-16
CN108833780B true CN108833780B (en) 2021-01-15

Family

ID=64142065

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810621683.0A Active CN108833780B (en) 2018-06-15 2018-06-15 Image parameter adjusting method, image parameter adjusting device and mobile terminal

Country Status (1)

Country Link
CN (1) CN108833780B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110809146A (en) * 2019-11-01 2020-02-18 厦门美图之家科技有限公司 Image contrast adjusting method and device, terminal equipment and storage medium
CN114385280B (en) * 2020-10-16 2024-10-18 华为技术有限公司 Parameter determination method and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005328453A (en) * 2004-05-17 2005-11-24 Nikon Corp Image comparison and adjustment apparatus, and electronic camera
CN104010178A (en) * 2014-06-06 2014-08-27 深圳市墨克瑞光电子研究院 Binocular image parallax adjusting method and device and binocular camera
CN104092953A (en) * 2014-07-10 2014-10-08 北京智谷睿拓技术服务有限公司 Dimming control method and device and device with photographing function

Family Cites Families (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100458540C (en) * 2006-10-27 2009-02-04 北京中星微电子有限公司 Automatic exposure regulating method and device
CN102118558B (en) * 2009-12-30 2012-12-05 华晶科技股份有限公司 Method for adjusting camera parameters for all-round images
US8428308B2 (en) * 2011-02-04 2013-04-23 Apple Inc. Estimating subject motion for capture setting determination
CN103188423A (en) * 2011-12-27 2013-07-03 富泰华工业(深圳)有限公司 Camera shooting device and camera shooting method
CN104349021A (en) * 2013-07-24 2015-02-11 腾讯科技(深圳)有限公司 Image acquisition method, device and terminal
CN104333696A (en) * 2014-11-19 2015-02-04 北京奇虎科技有限公司 View-finding processing method, view-finding processing device and client
CN104320593B (en) * 2014-11-19 2016-02-24 湖南国科微电子股份有限公司 A kind of digital camera automatic exposure control method
CN106331661A (en) * 2015-06-25 2017-01-11 西安中兴新软件有限责任公司 White balance processing method and device
CN105578027B (en) * 2015-07-28 2018-05-15 宇龙计算机通信科技(深圳)有限公司 A kind of photographic method and device
CN106911887A (en) * 2015-12-28 2017-06-30 小米科技有限责任公司 Image capturing method and device
JP6739979B2 (en) * 2016-04-21 2020-08-12 オリンパス株式会社 Optical device and aperture control method
CN106484257A (en) * 2016-09-22 2017-03-08 广东欧珀移动通信有限公司 Camera control method, device and electronic equipment
CN106454145B (en) * 2016-09-28 2019-05-31 湖南优象科技有限公司 A kind of automatic explosion method with scene adaptive
CN107155066A (en) * 2017-06-28 2017-09-12 努比亚技术有限公司 A kind of image pickup method, equipment and computer-readable storage medium
CN107734251A (en) * 2017-09-29 2018-02-23 维沃移动通信有限公司 A kind of photographic method and mobile terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005328453A (en) * 2004-05-17 2005-11-24 Nikon Corp Image comparison and adjustment apparatus, and electronic camera
CN104010178A (en) * 2014-06-06 2014-08-27 深圳市墨克瑞光电子研究院 Binocular image parallax adjusting method and device and binocular camera
CN104092953A (en) * 2014-07-10 2014-10-08 北京智谷睿拓技术服务有限公司 Dimming control method and device and device with photographing function

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
实际且快速的图像对比度增强方法;谢文达;《计算机研究与发展》;20130415;全文 *

Also Published As

Publication number Publication date
CN108833780A (en) 2018-11-16

Similar Documents

Publication Publication Date Title
WO2021051949A1 (en) Image processing method and apparatus, electronic device, and storage medium
CN106331504B (en) Shooting method and device
CN109040603A (en) High-dynamic-range image acquisition method, device and mobile terminal
CN106713734B (en) Automatic focusing method and device
CN108462833B (en) Photographing method, photographing device and computer-readable storage medium
CN106454086B (en) Image processing method and mobile terminal
CN108833781B (en) Image preview method, device, terminal and computer readable storage medium
CN107463052B (en) Shooting exposure method and device
CN105391940B (en) A kind of image recommendation method and device
CN113411498B (en) Image shooting method, mobile terminal and storage medium
CN111340731A (en) Image processing method and device, electronic equipment and storage medium
CN108040204B (en) Image shooting method and device based on multiple cameras and storage medium
CN105631803A (en) Method and device for filter processing
CN112669231B (en) Image processing method, training method, device and medium of image processing model
CN109784327B (en) Boundary box determining method and device, electronic equipment and storage medium
CN108833780B (en) Image parameter adjusting method, image parameter adjusting device and mobile terminal
CN112312035B (en) Exposure parameter adjusting method, exposure parameter adjusting device and electronic equipment
CN104506770A (en) Method and device for photographing image
CN111405185A (en) Zoom control method and device for camera, electronic equipment and storage medium
CN107180417B (en) Photo processing method and device, computer readable storage medium and electronic equipment
CN114339060A (en) Exposure adjusting method and device, storage medium and electronic equipment
CN111630839B (en) Image processing method and device
CN108401119B (en) Image processing method, mobile terminal and related medium product
CN115914848A (en) Image processing method, image processing device, electronic equipment and storage medium
CN112435231B (en) Image quality scale generation method, image quality evaluation method and 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