CN108280857A - Camera method for parameter configuration, mobile terminal and computer readable storage medium - Google Patents

Camera method for parameter configuration, mobile terminal and computer readable storage medium Download PDF

Info

Publication number
CN108280857A
CN108280857A CN201711453959.0A CN201711453959A CN108280857A CN 108280857 A CN108280857 A CN 108280857A CN 201711453959 A CN201711453959 A CN 201711453959A CN 108280857 A CN108280857 A CN 108280857A
Authority
CN
China
Prior art keywords
values
camera
image
mode
mobile terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201711453959.0A
Other languages
Chinese (zh)
Inventor
柏凤佳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201711453959.0A priority Critical patent/CN108280857A/en
Publication of CN108280857A publication Critical patent/CN108280857A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/80Analysis of captured images to determine intrinsic or extrinsic camera parameters, i.e. camera calibration

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Studio Devices (AREA)

Abstract

The invention discloses a kind of camera method for parameter configuration, the method includes:The image for being placed on 18 degree of gray cards under preset color temperature environment is obtained under preset mode;Obtain the R/G values and B/G values of multiple pixels in described image;Calculate the R/G average values and B/G average values of the multiple pixel;Determine that R/G values are closest to the R/G average values in the multiple pixel, and B/G values are configured to the acquisition parameters of the camera closest to the R/G values and B/G values of the pixel of the B/G average values.In addition, invention additionally discloses a kind of mobile terminal and computer readable storage mediums.In this way, the method can configure the acquisition parameters of the camera according to the case where image of the camera of mobile terminal acquisition, the shooting performance of camera can be effectively promoted, user experience is enhanced.

Description

Camera method for parameter configuration, mobile terminal and computer readable storage medium
Technical field
The present invention relates to technical field of mobile terminals more particularly to a kind of camera method for parameter configuration, mobile terminal and Computer readable storage medium.
Background technology
With the continuous development of electronic technology, mobile terminal (such as smart mobile phone, tablet computer etc.) gives people’s lives And work brings prodigious convenience, is increasingly becoming the essential means of communication of people.The shooting function of mobile terminal is also got over Come more powerful, people is facilitated to record the Life intravenous drip of oneself whenever and wherever possible.However, the performance of different cameras is different, if The acquisition parameters of camera are not provided as suitable parameter, will largely effect on shooting effect, influence user experience.
Make camera shooting performance best as it can be seen that how to configure camera parameter, becomes urgent problem to be solved.
Invention content
In view of this, a kind of camera method for parameter configuration of present invention proposition, mobile terminal and computer-readable storage medium Matter, to solve the above technical problems.
First, to achieve the above object, the present invention proposes a kind of camera method for parameter configuration, is applied to mobile terminal, The method includes:
The image for being placed on 18 degree of gray cards under preset color temperature environment is obtained under preset mode;
Obtain the R/G values and B/G values of multiple pixels in described image;
Calculate the R/G average values and B/G average values of the multiple pixel;
Determine that R/G values are closest to the R/G average values in the multiple pixel, and B/G values are average closest to the B/G The R/G values and B/G values of the pixel of value are configured to the acquisition parameters of the camera.
Optionally, the preset color temperature environment is the environment under standard sources.
Optionally, the multiple pixel includes the pixel for being distributed multiple and different regions on the image.
Optionally, multiple and different regions include at least fringe region and center in described image in described image Domain.
Optionally, the preset mode is preview mode, and described obtained under preset mode is placed on preset color temperature environment Under 18 degree of gray cards image, including:
Crawl is placed on the image of 18 degree of gray cards under preset color temperature environment under preview mode.
Optionally, the preset mode is original image screening-mode, and the acquisition under preset mode is placed on default The image of 18 degree of gray cards under colour temperature environment, including:
Shooting is placed on the image of 18 degree of gray cards under preset color temperature environment under original image screening-mode.
Optionally, the method further includes:
Select the ratio of R/G values and the R/G average values in the multiple pixel to fall into preset range, and B/G values with The ratio of the B/G average values falls into the R/G values and B/G values alternately acquisition parameters of multiple pixels of preset range.
Optionally, the preset range is 0.95 to 1.05.
Further, to achieve the above object, the present invention also provides a kind of mobile terminal, the mobile terminal includes storage Device, at least one processor and at least one journey that is stored on the memory and can be executed at least one processor Sequence, at least one program realize the step in method described in any one of the above embodiments when being executed by least one processor Suddenly.
Further, to achieve the above object, the present invention also provides a kind of computer readable storage medium, the computers Readable storage medium storing program for executing is stored with the executable at least one program of computer, and at least one program is executed by the computer When so that the computer is executed the step in the above method.
Compared to the prior art, camera method for parameter configuration proposed by the invention is obtained under preset mode and is placed on The image of 18 degree of gray cards under preset color temperature environment;Obtain the R/G values and B/G values of multiple pixels in described image;It calculates The R/G average values and B/G average values of the multiple pixel;Determine in the multiple pixel R/G values closest to the R/G Average value, and B/G values are configured to the bat of the camera closest to the R/G values and B/G values of the pixel of the B/G average values Take the photograph parameter.In this way, the method can configure the camera according to the case where image of the camera of mobile terminal acquisition Acquisition parameters can effectively promote the shooting performance of camera, enhance user experience.
Description of the drawings
Fig. 1 is a kind of hardware architecture diagram for the mobile terminal for realizing each embodiment of the present invention;
Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention;
Fig. 3 is a kind of flow diagram of camera method for parameter configuration provided in an embodiment of the present invention;
Fig. 4 is the flow diagram of another camera method for parameter configuration provided in an embodiment of the present invention;
Fig. 5 is the flow diagram of another camera method for parameter configuration provided in an embodiment of the present invention;
Fig. 6 is a kind of hardware architecture diagram of mobile terminal provided in an embodiment of the present invention;
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific implementation mode
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In subsequent description, using for indicating that the suffix of such as " module ", " component " or " unit " of element is only The explanation for being conducive to the present invention, itself does not have a specific meaning.Therefore, " module ", " component " or " unit " can mix Ground uses.
Terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as mobile phone, tablet Computer, laptop, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable The shiftings such as media player (Portable Media Player, PMP), navigation device, wearable device, Intelligent bracelet, pedometer The fixed terminals such as dynamic terminal, and number TV, desktop computer.
It will be illustrated by taking mobile terminal as an example in subsequent descriptions, it will be appreciated by those skilled in the art that in addition to special Except element for moving purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, a kind of hardware architecture diagram of its mobile terminal of each embodiment to realize the present invention, the shifting Moving terminal 100 may include:RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit 103, A/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, the number of the components such as memory 109, processor 110 and power supply 111, the processor 110 is at least one.Ability Field technique personnel are appreciated that mobile terminal structure shown in Fig. 1 does not constitute the restriction to mobile terminal, and mobile terminal can To include either combining certain components or different components arrangement than illustrating more or fewer components.
The all parts of mobile terminal are specifically introduced with reference to Fig. 1:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal sends and receivees, specifically, by base station Downlink information receive after, to processor 110 handle;In addition, the data of uplink are sent to base station.In general, radio frequency unit 101 Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrating Frequency unit 101 can also be communicated with network and other equipment by radio communication.Above-mentioned wireless communication can use any communication Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division Multiple Access, wideband code division multiple access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, frequency division duplex long term evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution, time division duplex long term evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102 Sub- mail, browsing webpage and access streaming video etc., it has provided wireless broadband internet to the user and has accessed.Although Fig. 1 shows Go out WiFi module 102, but it is understood that, and it is not belonging to must be configured into for mobile terminal, it completely can be according to need It to be omitted in the range for the essence for not changing invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100 When under the isotypes such as formula, speech recognition mode, broadcast reception mode, it is that radio frequency unit 101 or WiFi module 102 are received or The audio data stored in memory 109 is converted into audio signal and exports to be sound.Moreover, audio output unit 103 The relevant audio output of specific function executed with mobile terminal 100 can also be provided (for example, call signal receives sound, disappears Breath receives sound etc.).Audio output unit 103 may include loud speaker, buzzer etc..
A/V input units 104 are for receiving audio or video signal.A/V input units 104 may include graphics processor (Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode Or the image data of the static images or video obtained by image capture apparatus (such as camera) in image capture mode carries out Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited Storage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042 Quiet down sound (audio data), and can be audio data by such acoustic processing.Audio that treated (voice) data can To be converted to the format output that can be sent to mobile communication base station via radio frequency unit 101 in the case of telephone calling model. Microphone 1042 can implement various types of noises elimination (or inhibition) algorithms and send and receive sound to eliminate (or inhibition) The noise generated during frequency signal or interference.
Mobile terminal 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when mobile terminal 100 is moved in one's ear Display panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general For three axis) size of acceleration, size and the direction of gravity are can detect that when static, can be used to identify the application of mobile phone posture (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.; The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, The other sensors such as hygrometer, thermometer, infrared sensor, details are not described herein.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrap Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode may be used Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
User input unit 107 can be used for receiving the number or character information of input, and generate the use with mobile terminal Family is arranged and the related key signals input of function control.Specifically, user input unit 107 may include touch panel 1071 with And other input equipments 1072.Touch panel 1071, also referred to as touch screen collect user on it or neighbouring touch operation (for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel 1071 Neighbouring operation), and corresponding attachment device is driven according to preset formula.Touch panel 1071 may include touch detection Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it It is converted into contact coordinate, then gives processor 110, and order that processor 110 is sent can be received and executed.In addition, can To realize touch panel 1071 using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch panel 1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap It includes but is not limited in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating lever etc. It is one or more, do not limit herein specifically.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it or After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, touch panel 1071 and display panel 1061 be to realize the function that outputs and inputs of mobile terminal as two independent components, but in certain embodiments, can The function that outputs and inputs of mobile terminal is realized so that touch panel 1071 and display panel 1061 is integrated, is not done herein specifically It limits.
Interface unit 108 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example, External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothing Line data port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number It is believed that breath, electric power etc.) and by least one element that the input received is transferred in mobile terminal 100 or can use In the transmission data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storing software program and various data.Memory 109 can include mainly storing program area And storage data field, wherein storing program area can storage program area, application program (such as the sound needed at least one function Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as Audio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection A part by running or execute the software program and/or module that are stored in memory 109, and calls and is stored in storage Data in device 109 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place Reason device 110 may include at least one processing unit;Preferably, processor 110 can integrate application processor and modulation /demodulation processing Device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is mainly located Reason wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111 Can be logically contiguous by power-supply management system and processor 110, to realize management charging by power-supply management system, put The functions such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also be including bluetooth module etc., and details are not described herein.
Embodiment to facilitate the understanding of the present invention, below to the communications network system that is based on of mobile terminal of the present invention into Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention, the communication network system System is the LTE system of universal mobile communications technology, which includes communicating UE (User Equipment, the use of connection successively Family equipment) (the lands Evolved UMTS Terrestrial Radio Access Network, evolved UMTS 201, E-UTRAN Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation 204。
Specifically, UE201 can be above-mentioned terminal 100, and details are not described herein again.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning Journey (backhaul) (such as X2 interface) is connect with other eNodeB2022, and eNodeB2021 is connected to EPC203, ENodeB2021 can provide the access of UE201 to EPC203.
EPC203 may include MME (Mobility Management Entity, mobility management entity) 2031, HSS (Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way, Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and The control node of signaling, provides carrying and connection management between EPC203.HSS2032 is all to manage for providing some registers Such as the function of home location register (not shown) etc, and some are preserved in relation to use such as service features, data rates The dedicated information in family.All customer data can be sent by SGW2034, and PGW2035 can provide the IP of UE 201 Address is distributed and other functions, and PCRF2036 is strategy and the charging control strategic decision-making of business data flow and IP bearing resources Point, it selects and provides available strategy and charging control decision with charge execution function unit (not shown) for strategy.
IP operation 204 may include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art it is to be understood that the present invention not only Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with And the following new network system etc., it does not limit herein.
Based on 100 hardware configuration of above-mentioned mobile terminal and communications network system, each embodiment of the method for the present invention is proposed.
It is a kind of step flow chart of camera method for parameter configuration provided in an embodiment of the present invention, institute refering to Fig. 3, Fig. 3 Method is stated to be applied in a mobile terminal, as shown in figure 3, the method includes:
Step 301 obtains the image for being placed on 18 degree of gray cards under preset color temperature environment under preset mode.
In the step, the method obtains the figure for being placed on 18 degree of gray cards under preset color temperature environment under preset mode Picture.The camera that the method can control the mobile terminal is obtained under preset mode and is placed under preset color temperature environment The image of 18 degree of gray cards.Specifically, 18 degree of gray cards can be placed in the camera bellows of preset color temperature by the method, the default color The camera bellows of temperature can be camera bellows under standard sources (such as D65 or TL84) environment, and the intensity of illumination in the camera bellows can be with It is set as different lumen values according to actual demand, the black level of the camera bellows can also be set as different according to actual demand Grade, it is to be understood that black level is higher, and the color of camera bellows is deeper, and light-proofness is stronger, and camera bellows internal environment is by outer The interference of portion's environment light source is smaller, and the parameter of the camera method for parameter configuration configuration enables to taking the photograph for the mobile terminal As head shooting performance more preferably.In the embodiment of the present invention, the black level of the camera bellows is highest level.
The preset mode can be preview mode, can also be original image (raw) screening-mode, can also be described Preview mode and the original image screening-mode, the embodiment of the present invention are not especially limited this.It is understood that working as The preset mode is above-mentioned preview mode and original image screening-mode, and the method is by the camera shooting of the mobile terminal Head is respectively adjusted to obtain the image of 18 degree of gray cards under the preview mode and original image screening-mode respectively.
When the preset mode is preview mode, the method controls the camera of the mobile terminal in preview mode Lower acquisition is placed on the image of 18 degree of gray cards under the preset color temperature environment;When the preset mode is that original image shoots mould When formula, the camera that the method controls the mobile terminal shoots under original image screening-mode and is placed on the default color The image of 18 degree of gray cards under warm environment.
It is understood that after in the camera bellows that 18 degree of gray cards are placed under the preset color temperature environment, the method will The camera of the mobile terminal is switched to the preset mode, and completes diagonal and correction optical lens rollback parameter, so 18 degree of gray cards described in the camera face of the mobile terminal are controlled afterwards.
Step 302, the R/G values and B/G values for obtaining multiple pixels in described image.
In the step, the method obtains the R/G values and B/G values of multiple pixels in described image.Specifically, described Method can obtain R, G, B value of multiple pixels on the image got, then determine the multiple pixel R/G values and B/G values.The multiple pixel includes at least the pixel on multiple and different regions in described image, citing and Speech, multiple pixels include at least the pixel of the pixel of the fringe region of described image and the central area of described image Point, in this way, the multiple pixel can reflect R, G, B value of image on the whole.In the embodiment of the present invention, the method can The image got is divided into multiple regions, at least one pixel is then chosen on each zone, and obtain R, G, B value of at least one pixel.
Step 303, the R/G average values and B/G average values for calculating the multiple pixel.
In the step, the method calculates the R/G average values and B/G average values of the multiple pixel.Specifically, institute Then divided by the number of the multiple pixel the R/G values of the multiple pixel can be added by the method for stating, and, be obtained described more The R/G average values of a pixel;Then divided by the multiple pixel the B/G values of the multiple pixel are added by the method, The number of point, obtains the B/G average values of the multiple pixel.In the embodiment of the present invention, the method can also use weighting Average mode calculates the R/G average values and B/G average values of the multiple pixel, and the embodiment of the present invention is not made this specifically It limits.
Step 304 determines in the multiple pixel R/G values closest to the R/G average values, and B/G values are closest to institute It states the R/G values of the pixel of B/G average values and B/G values is configured to the acquisition parameters of the camera.
In the step, the method determines in the multiple pixel R/G values closest to the R/G average values, and B/G values The acquisition parameters of the camera are configured to closest to the R/G values and B/G values of the pixel of the B/G average values.It is described most The absolute value for being close to difference is minimum, i.e., in this step, the method determines the exhausted of R/G values and the difference of the R/G average values It is minimum to value, and B/G values and the R/G values and B/G values of the pixel of the absolute value minimum of the difference of the B/G average values configure For the acquisition parameters of the camera.
In the present embodiment, the camera method for parameter configuration is obtained under preset mode and is placed under preset color temperature environment 18 degree of gray cards image;Obtain the R/G values and B/G values of multiple pixels in described image;Calculate the multiple pixel R/G average values and B/G average values;R/G values are determined in the multiple pixel closest to the R/G average values, and B/G values The acquisition parameters of the camera are configured to closest to the R/G values and B/G values of the pixel of the B/G average values.In this way, institute The case where image that the method for stating can be obtained according to the camera of mobile terminal, configures the acquisition parameters of the camera, Neng Gouyou Effect promotes the shooting performance of camera, enhances user experience.
Optionally, the preset color temperature environment is the environment under standard sources.
Optionally, the preset mode is preview mode, and described obtained under preset mode is placed on preset color temperature environment Under 18 degree of gray cards image, including:
Crawl is placed on the image of 18 degree of gray cards under preset color temperature environment under preview mode.
Optionally, the preset mode is original image screening-mode, and the acquisition under preset mode is placed on default The image of 18 degree of gray cards under colour temperature environment, including:
Shooting is placed on the image of 18 degree of gray cards under preset color temperature environment under original image screening-mode.
It is the flow diagram of another camera method for parameter configuration provided in an embodiment of the present invention referring to Fig. 4, Fig. 4, As shown in figure 4, the method includes:
Step 401 obtains the image for being placed on 18 degree of gray cards under preset color temperature environment under preset mode.
In the step, the method obtains the figure for being placed on 18 degree of gray cards under preset color temperature environment under preset mode Picture.The camera that the method can control the mobile terminal is obtained under preset mode and is placed under preset color temperature environment The image of 18 degree of gray cards.Specifically, 18 degree of gray cards can be placed in the camera bellows of preset color temperature by the method, the default color The camera bellows of temperature can be camera bellows under standard sources (such as D65 or TL84) environment, and the intensity of illumination in the camera bellows can be with It is set as different lumen values according to actual demand, the black level of the camera bellows can also be set as different according to actual demand Grade, it is to be understood that black level is higher, and the color of camera bellows is deeper, and light-proofness is stronger, and camera bellows internal environment is by outer The interference of portion's environment light source is smaller, and the parameter of the camera method for parameter configuration configuration enables to taking the photograph for the mobile terminal As head shooting performance more preferably.In the embodiment of the present invention, the black level of the camera bellows is highest level.
The preset mode can be preview mode, can also be original image (raw) screening-mode, can also be described Preview mode and the original image screening-mode, the embodiment of the present invention are not especially limited this.It is understood that working as The preset mode is above-mentioned preview mode and original image screening-mode, and the method is by the camera shooting of the mobile terminal Head is respectively adjusted to obtain the image of 18 degree of gray cards under the preview mode and original image screening-mode respectively.
When the preset mode is preview mode, the method controls the camera of the mobile terminal in preview mode Lower acquisition is placed on the image of 18 degree of gray cards under the preset color temperature environment;When the preset mode is that original image shoots mould When formula, the camera that the method controls the mobile terminal shoots under original image screening-mode and is placed on the default color The image of 18 degree of gray cards under warm environment.
It is understood that after in the camera bellows that 18 degree of gray cards are placed under the preset color temperature environment, the method will The camera of the mobile terminal is switched to the preset mode, and completes diagonal and correction optical lens rollback parameter, so 18 degree of gray cards described in the camera face of the mobile terminal are controlled afterwards.
Step 402 obtains the R/G values and B/G values for being distributed multiple pixels in multiple and different regions on the image.
In the step, the method obtains the R/G values for being distributed multiple pixels in multiple and different regions on the image And B/G values.Specifically, the method can obtain multiple pixels in multiple and different regions on the image got R, G, B value, then determine the multiple pixel R/G values and B/G values.For example, multiple pixels include at least The pixel of the fringe region of described image and the pixel of the central area of described image, in this way, the multiple pixel It can reflect R, G, B value of image on the whole.In the embodiment of the present invention, the method can draw the image got Be divided into multiple regions, then choose at least one pixel on each zone, and obtain at least one pixel R, G, B values.
Step 403, the R/G average values and B/G average values for calculating the multiple pixel.
In the step, the method calculates the R/G average values and B/G average values of the multiple pixel.Specifically, institute Then divided by the number of the multiple pixel the R/G values of the multiple pixel can be added by the method for stating, and, be obtained described more The R/G average values of a pixel;Then divided by the multiple pixel the B/G values of the multiple pixel are added by the method, The number of point, obtains the B/G average values of the multiple pixel.In the embodiment of the present invention, the method can also use weighting Average mode calculates the R/G average values and B/G average values of the multiple pixel, and the embodiment of the present invention is not made this specifically It limits.
Step 404 determines in the multiple pixel R/G values closest to the R/G average values, and B/G values are closest to institute It states the R/G values of the pixel of B/G average values and B/G values is configured to the acquisition parameters of the camera.
In the step, the method determines in the multiple pixel R/G values closest to the R/G average values, and B/G values The acquisition parameters of the camera are configured to closest to the R/G values and B/G values of the pixel of the B/G average values.It is described most The absolute value for being close to difference is minimum, i.e., in this step, the method determines the exhausted of R/G values and the difference of the R/G average values It is minimum to value, and B/G values and the R/G values and B/G values of the pixel of the absolute value minimum of the difference of the B/G average values configure For the acquisition parameters of the camera.
In the present embodiment, the camera method for parameter configuration is obtained under preset mode and is placed under preset color temperature environment 18 degree of gray cards image;Obtain the R/G values and B/G for being distributed multiple pixels in multiple and different regions on the image Value;Calculate the R/G average values and B/G average values of the multiple pixel;Determine that R/G values are closest in the multiple pixel The R/G average values, and the R/G values and B/G values of B/G values closest to the pixel of the B/G average values are configured to described take the photograph As the acquisition parameters of head.In this way, the method can be according to described in configuration the case where the image that the camera of mobile terminal obtains The acquisition parameters of camera can effectively promote the shooting performance of camera, enhance user experience.
Optionally, multiple and different regions include at least fringe region and center in described image in described image Domain.
It is the flow diagram of another camera method for parameter configuration provided in an embodiment of the present invention referring to Fig. 5, Fig. 5, As shown in figure 5, the method includes:
Step 501 obtains the image for being placed on 18 degree of gray cards under preset color temperature environment under preset mode.
In the step, the method obtains the figure for being placed on 18 degree of gray cards under preset color temperature environment under preset mode Picture.The camera that the method can control the mobile terminal is obtained under preset mode and is placed under preset color temperature environment The image of 18 degree of gray cards.Specifically, 18 degree of gray cards can be placed in the camera bellows of preset color temperature by the method, the default color The camera bellows of temperature can be camera bellows under standard sources (such as D65 or TL84) environment, and the intensity of illumination in the camera bellows can be with It is set as different lumen values according to actual demand, the black level of the camera bellows can also be set as different according to actual demand Grade, it is to be understood that black level is higher, and the color of camera bellows is deeper, and light-proofness is stronger, and camera bellows internal environment is by outer The interference of portion's environment light source is smaller, and the parameter of the camera method for parameter configuration configuration enables to taking the photograph for the mobile terminal As head shooting performance more preferably.In the embodiment of the present invention, the black level of the camera bellows is highest level.
The preset mode can be preview mode, can also be original image (raw) screening-mode, can also be described Preview mode and the original image screening-mode, the embodiment of the present invention are not especially limited this.It is understood that working as The preset mode is above-mentioned preview mode and original image screening-mode, and the method is by the camera shooting of the mobile terminal Head is respectively adjusted to obtain the image of 18 degree of gray cards under the preview mode and original image screening-mode respectively.
When the preset mode is preview mode, the method controls the camera of the mobile terminal in preview mode Lower acquisition is placed on the image of 18 degree of gray cards under the preset color temperature environment;When the preset mode is that original image shoots mould When formula, the camera that the method controls the mobile terminal shoots under original image screening-mode and is placed on the default color The image of 18 degree of gray cards under warm environment.
It is understood that after in the camera bellows that 18 degree of gray cards are placed under the preset color temperature environment, the method will The camera of the mobile terminal is switched to the preset mode, and completes diagonal and correction optical lens rollback parameter, so 18 degree of gray cards described in the camera face of the mobile terminal are controlled afterwards.
Step 502, the R/G values and B/G values for obtaining multiple pixels in described image.
In the step, the method obtains the R/G values and B/G values of multiple pixels in described image.Specifically, described Method can obtain R, G, B value of multiple pixels on the image got, then determine the multiple pixel R/G values and B/G values.The multiple pixel includes at least the pixel on multiple and different regions in described image, citing and Speech, multiple pixels include at least the pixel of the pixel of the fringe region of described image and the central area of described image Point, in this way, the multiple pixel can reflect R, G, B value of image on the whole.In the embodiment of the present invention, the method can The image got is divided into multiple regions, at least one pixel is then chosen on each zone, and obtain R, G, B value of at least one pixel.
Step 503, the R/G average values and B/G average values for calculating the multiple pixel.
In the step, the method calculates the R/G average values and B/G average values of the multiple pixel.Specifically, institute Then divided by the number of the multiple pixel the R/G values of the multiple pixel can be added by the method for stating, and, be obtained described more The R/G average values of a pixel;Then divided by the multiple pixel the B/G values of the multiple pixel are added by the method, The number of point, obtains the B/G average values of the multiple pixel.In the embodiment of the present invention, the method can also use weighting Average mode calculates the R/G average values and B/G average values of the multiple pixel, and the embodiment of the present invention is not made this specifically It limits.
Step 504 determines in the multiple pixel R/G values closest to the R/G average values, and B/G values are closest to institute It states the R/G values of the pixel of B/G average values and B/G values is configured to the acquisition parameters of the camera.
In the step, the method determines in the multiple pixel R/G values closest to the R/G average values, and B/G values The acquisition parameters of the camera are configured to closest to the R/G values and B/G values of the pixel of the B/G average values.It is described most The absolute value for being close to difference is minimum, i.e., in this step, the method determines the exhausted of R/G values and the difference of the R/G average values It is minimum to value, and B/G values and the R/G values and B/G values of the pixel of the absolute value minimum of the difference of the B/G average values configure For the acquisition parameters of the camera.
R/G values and the ratio of the R/G average values fall into preset range in step 505, the multiple pixel of selection, and The ratio of B/G values and the B/G average values falls into the R/G values of multiple pixels of preset range and B/G values are alternately shot Parameter.
In the step, the method is also that the camera of the mobile terminal selects alternative acquisition parameters, specifically, described Method can select the ratio of R/G values and the R/G average values in the multiple pixel to fall into preset range, and B/G values with The ratio of the B/G average values falls into the R/G values and B/G values alternately acquisition parameters of multiple pixels of preset range.This Sample, when the acquisition parameters of the selected closest average value are unavailable, the method can be from the alternative shooting It is the camera selection acquisition parameters of the mobile terminal in parameter, provides the user with conveniently.The preset range can basis The shooting quality degree of the acceptable shooting photo of user freely defines, and in the embodiment of the present invention, the preset range can be with It is 0.95 to 1.05.
In the present embodiment, the camera method for parameter configuration is obtained under preset mode and is placed under preset color temperature environment 18 degree of gray cards image;Obtain the R/G values and B/G values of multiple pixels in described image;Calculate the multiple pixel R/G average values and B/G average values;R/G values are determined in the multiple pixel closest to the R/G average values, and B/G values The acquisition parameters of the camera are configured to closest to the R/G values and B/G values of the pixel of the B/G average values;Selection institute It states the ratio of R/G values and the R/G average values in multiple pixels and falls into preset range, and B/G values and the B/G average values Ratio falls into the R/G values and B/G values alternately acquisition parameters of multiple pixels of preset range.In this way, the method can The case where image obtained according to the camera of mobile terminal, configures the acquisition parameters of the camera, can effectively promote camera shooting The shooting performance of head enhances user experience.In addition, the camera that the method is also the mobile terminal has selected alternative shooting Parameter, so, when the acquisition parameters of selection closest to the average value are unavailable, the method can be from described standby Select in acquisition parameters be the mobile terminal camera selection acquisition parameters, provide the user with conveniently.
Optionally, the preset range is 0.95 to 1.05.
The present invention also provides a kind of mobile terminals, referring to Fig. 6, Fig. 6 is mobile terminal provided in an embodiment of the present invention Hardware architecture diagram, as shown in fig. 6, the mobile terminal 600 includes at least one processor 601 and memory 602, institute Memory 602 is stated to can be used for storing software program and various data.Memory 602 can include mainly storing program area and storage Data field, wherein storing program area can storage program area, (for example sound plays the application program needed at least one function Function, image player function etc.) etc.;Storage data field can be stored uses created data (such as audio number according to mobile phone According to, phone directory etc.) etc..In addition, memory 602 may include high-speed random access memory, can also include non-volatile deposit Reservoir, for example, at least a disk memory, flush memory device or other volatile solid-state parts.As shown in fig. 6, institute It further includes being stored on the processor 602, and can be executed by the processor 601 at least one to state mobile terminal 600 Computer program, at least one program realize following steps when being executed by least one processor 601:
The image for being placed on 18 degree of gray cards under preset color temperature environment is obtained under preset mode;
Obtain the R/G values and B/G values of multiple pixels in described image;
Calculate the R/G average values and B/G average values of the multiple pixel;
Determine that R/G values are closest to the R/G average values in the multiple pixel, and B/G values are average closest to the B/G The R/G values and B/G values of the pixel of value are configured to the acquisition parameters of the camera.
Optionally, the preset color temperature environment is the environment under standard sources.
Optionally, the multiple pixel includes the pixel for being distributed multiple and different regions on the image.
Optionally, multiple and different regions include at least fringe region and center in described image in described image Domain.
Optionally, the preset mode is preview mode, and described obtained under preset mode is placed on preset color temperature environment Under 18 degree of gray cards image, including:
Crawl is placed on the image of 18 degree of gray cards under preset color temperature environment under preview mode.
Optionally, the preset mode is original image screening-mode, and the acquisition under preset mode is placed on default The image of 18 degree of gray cards under colour temperature environment, including:
Shooting is placed on the image of 18 degree of gray cards under preset color temperature environment under original image screening-mode.
Optionally, when at least one program is executed by the processor 601, following steps be can also be achieved:
Select the ratio of R/G values and the R/G average values in the multiple pixel to fall into preset range, and B/G values with The ratio of the B/G average values falls into the R/G values and B/G values alternately acquisition parameters of multiple pixels of preset range.
Optionally, the preset range is 0.95 to 1.05.
It can be with one of ordinary skill in the art will appreciate that realizing that all or part of step of above-described embodiment method is It is completed by the relevant hardware of at least one program instruction, at least one program can be stored in one and computer-readable deposit In storage media, which when being executed, includes the following steps:
The image for being placed on 18 degree of gray cards under preset color temperature environment is obtained under preset mode;
Obtain the R/G values and B/G values of multiple pixels in described image;
Calculate the R/G average values and B/G average values of the multiple pixel;
Determine that R/G values are closest to the R/G average values in the multiple pixel, and B/G values are average closest to the B/G The R/G values and B/G values of the pixel of value are configured to the acquisition parameters of the camera.
Optionally, the preset color temperature environment is the environment under standard sources.
Optionally, the multiple pixel includes the pixel for being distributed multiple and different regions on the image.
Optionally, multiple and different regions include at least fringe region and center in described image in described image Domain.
Optionally, the preset mode is preview mode, and described obtained under preset mode is placed on preset color temperature environment Under 18 degree of gray cards image, including:
Crawl is placed on the image of 18 degree of gray cards under preset color temperature environment under preview mode.
Optionally, the preset mode is original image screening-mode, and the acquisition under preset mode is placed on default The image of 18 degree of gray cards under colour temperature environment, including:
Shooting is placed on the image of 18 degree of gray cards under preset color temperature environment under original image screening-mode.
Optionally, at least one program is performed, and can also be achieved following steps:
Select the ratio of R/G values and the R/G average values in the multiple pixel to fall into preset range, and B/G values with The ratio of the B/G average values falls into the R/G values and B/G values alternately acquisition parameters of multiple pixels of preset range.
Optionally, the preset range is 0.95 to 1.05.
It should be noted that herein, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that process, method, article or device including a series of elements include not only those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including this There is also other identical elements in the process of element, method, article or device.
The embodiments of the present invention are for illustration only, can not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical scheme of the present invention substantially in other words does the prior art Going out the part of contribution can be expressed in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal equipment (can be mobile phone, computer, clothes Be engaged in device, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.
It these are only the preferred embodiment of the present invention, be not intended to limit the scope of the invention, it is every to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of camera method for parameter configuration is applied to mobile terminal, which is characterized in that the method includes:
The image for being placed on 18 degree of gray cards under preset color temperature environment is obtained under preset mode;
Obtain the R/G values and B/G values of multiple pixels in described image;
Calculate the R/G average values and B/G average values of the multiple pixel;
R/G values are determined in the multiple pixel closest to the R/G average values, and B/G values are closest to the B/G average values The R/G values and B/G values of pixel are configured to the acquisition parameters of the camera.
2. camera method for parameter configuration as described in claim 1, which is characterized in that the preset color temperature environment is standard light Environment under source.
3. camera method for parameter configuration as described in claim 1, which is characterized in that the multiple pixel includes being distributed in The pixel in multiple and different regions in described image.
4. camera method for parameter configuration as claimed in claim 3, which is characterized in that multiple and different regions are extremely in described image Include fringe region and the central area in described image less.
5. such as Claims 1-4 any one of them camera method for parameter configuration, which is characterized in that the preset mode is Preview mode, the acquisition under preset mode are placed on the image of 18 degree of gray cards under preset color temperature environment, including:
Crawl is placed on the image of 18 degree of gray cards under preset color temperature environment under preview mode.
6. such as Claims 1-4 any one of them camera method for parameter configuration, which is characterized in that the preset mode is Original image screening-mode, it is described that the image for being placed on 18 degree of gray cards under preset color temperature environment, packet are obtained under preset mode It includes:
Shooting is placed on the image of 18 degree of gray cards under preset color temperature environment under original image screening-mode.
7. such as Claims 1-4 any one of them camera method for parameter configuration, which is characterized in that the method further includes:
Select the ratio of R/G values and the R/G average values in the multiple pixel to fall into preset range, and B/G values with it is described The ratio of B/G average values falls into the R/G values and B/G values alternately acquisition parameters of multiple pixels of preset range.
8. camera method for parameter configuration as claimed in claim 7, which is characterized in that the preset range be 0.95 to 1.05。
9. a kind of mobile terminal, which is characterized in that the mobile terminal includes memory, at least one processor and is stored in institute At least one program stated on memory and can executed at least one processor, at least one program by it is described extremely A few processor realizes the step in 1~8 any one of them method of the claims when executing.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer executable at least One program, which is characterized in that at least one program makes the computer execute above-mentioned power when being executed by the computer Profit requires the step in 1~8 any one of them method.
CN201711453959.0A 2017-12-28 2017-12-28 Camera method for parameter configuration, mobile terminal and computer readable storage medium Pending CN108280857A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711453959.0A CN108280857A (en) 2017-12-28 2017-12-28 Camera method for parameter configuration, mobile terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711453959.0A CN108280857A (en) 2017-12-28 2017-12-28 Camera method for parameter configuration, mobile terminal and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN108280857A true CN108280857A (en) 2018-07-13

Family

ID=62802467

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711453959.0A Pending CN108280857A (en) 2017-12-28 2017-12-28 Camera method for parameter configuration, mobile terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN108280857A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111551265A (en) * 2020-04-03 2020-08-18 深圳市爱图仕影像器材有限公司 Color temperature measuring method and color temperature measuring device

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101079954A (en) * 2007-06-26 2007-11-28 北京中星微电子有限公司 Method and device for realizing white balance correction
CN102685513A (en) * 2012-05-21 2012-09-19 信利光电(汕尾)有限公司 White balance processing method and device
CN105554489A (en) * 2015-07-10 2016-05-04 宇龙计算机通信科技(深圳)有限公司 White balance adjusting method and shooting terminal
CN105611184A (en) * 2015-12-18 2016-05-25 珠海全志科技股份有限公司 White balance debugging method and debugging system of digital video device
CN105681775A (en) * 2016-03-08 2016-06-15 福州瑞芯微电子股份有限公司 White balance method and device
CN105872500A (en) * 2015-12-08 2016-08-17 乐视移动智能信息技术(北京)有限公司 Adjusting method and device for white balance of image
CN105898260A (en) * 2016-04-07 2016-08-24 广东欧珀移动通信有限公司 Method and device of adjusting camera white balance
CN107231549A (en) * 2016-03-25 2017-10-03 成武华 AWB detecting system
CN107483908A (en) * 2017-09-27 2017-12-15 歌尔科技有限公司 White balance calibration method and electronic equipment

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101079954A (en) * 2007-06-26 2007-11-28 北京中星微电子有限公司 Method and device for realizing white balance correction
CN102685513A (en) * 2012-05-21 2012-09-19 信利光电(汕尾)有限公司 White balance processing method and device
CN105554489A (en) * 2015-07-10 2016-05-04 宇龙计算机通信科技(深圳)有限公司 White balance adjusting method and shooting terminal
CN105872500A (en) * 2015-12-08 2016-08-17 乐视移动智能信息技术(北京)有限公司 Adjusting method and device for white balance of image
CN105611184A (en) * 2015-12-18 2016-05-25 珠海全志科技股份有限公司 White balance debugging method and debugging system of digital video device
CN105681775A (en) * 2016-03-08 2016-06-15 福州瑞芯微电子股份有限公司 White balance method and device
CN107231549A (en) * 2016-03-25 2017-10-03 成武华 AWB detecting system
CN105898260A (en) * 2016-04-07 2016-08-24 广东欧珀移动通信有限公司 Method and device of adjusting camera white balance
CN107483908A (en) * 2017-09-27 2017-12-15 歌尔科技有限公司 White balance calibration method and electronic equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111551265A (en) * 2020-04-03 2020-08-18 深圳市爱图仕影像器材有限公司 Color temperature measuring method and color temperature measuring device

Similar Documents

Publication Publication Date Title
CN107093418A (en) A kind of screen display method, computer equipment and storage medium
CN108391025A (en) A kind of network access management method, mobile terminal and computer readable storage medium
CN107682627A (en) A kind of acquisition parameters method to set up, mobile terminal and computer-readable recording medium
CN108289174A (en) A kind of image pickup method, mobile terminal and computer readable storage medium
CN108900778A (en) A kind of image pickup method, mobile terminal and computer readable storage medium
CN108282771A (en) A kind of network access management method, mobile terminal and computer readable storage medium
CN108512991A (en) A kind of based reminding method, mobile terminal and computer readable storage medium
CN107315515A (en) Color change method, terminal and the computer-readable recording medium of status bar icon
CN107948430A (en) A kind of display control method, mobile terminal and computer-readable recording medium
CN107239205A (en) A kind of photographic method, mobile terminal and storage medium
CN108881635A (en) Screen luminance adjustment method, mobile terminal and computer readable storage medium
CN108172161A (en) Display methods, mobile terminal and computer readable storage medium based on flexible screen
CN107844230A (en) A kind of advertisement page method of adjustment, mobile terminal and computer-readable recording medium
CN107483804A (en) A kind of image pickup method, mobile terminal and computer-readable recording medium
CN109300099A (en) A kind of image processing method, mobile terminal and computer readable storage medium
CN107705247A (en) A kind of method of adjustment of image saturation, terminal and storage medium
CN108810264A (en) A kind of brightness adjusting method and terminal, computer readable storage medium
CN107682630A (en) Dual camera anti-fluttering method, mobile terminal and computer-readable recording medium
CN108182664A (en) A kind of image processing method, mobile terminal and computer readable storage medium
CN108762631A (en) A kind of method for controlling mobile terminal, mobile terminal and computer readable storage medium
CN108307111A (en) A kind of zoom photographic method, mobile terminal and storage medium
CN107423065A (en) Method, mobile terminal and the computer-readable recording medium that a kind of application is attended to anything else
CN107241504A (en) A kind of image processing method, mobile terminal and computer-readable recording medium
CN110064196A (en) Method for controlling mobile terminal, mobile terminal and computer readable storage medium
CN109445660A (en) A kind of wearable device control method, mobile terminal and wearable 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20180713

RJ01 Rejection of invention patent application after publication