CN108093234A - A kind of image processing method, terminal and storage medium - Google Patents

A kind of image processing method, terminal and storage medium Download PDF

Info

Publication number
CN108093234A
CN108093234A CN201711475078.9A CN201711475078A CN108093234A CN 108093234 A CN108093234 A CN 108093234A CN 201711475078 A CN201711475078 A CN 201711475078A CN 108093234 A CN108093234 A CN 108093234A
Authority
CN
China
Prior art keywords
point set
pixel point
gray area
pixel
average
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.)
Granted
Application number
CN201711475078.9A
Other languages
Chinese (zh)
Other versions
CN108093234B (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.)
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 CN201711475078.9A priority Critical patent/CN108093234B/en
Publication of CN108093234A publication Critical patent/CN108093234A/en
Application granted granted Critical
Publication of CN108093234B publication Critical patent/CN108093234B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/64Circuits for processing colour signals
    • H04N9/73Colour balance circuits, e.g. white balance circuits or colour temperature control

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Image Processing (AREA)

Abstract

The embodiment of the invention discloses a kind of image processing method, including:When receiving the process instruction to pending image, pending image is divided by gray area pixel point set and non-gray area pixel point set according to process instruction;Distribution based on gray area pixel point set and non-gray area pixel point set determines the corresponding first average pixel of gray area pixel point set and the corresponding second average pixel of non-gray area pixel point set;According to the first average pixel and the second average pixel, the pixel to be replaced instead of non-gray area pixel point set is determined from gray area pixel point set;Using gray area pixel point set and pixel to be replaced, automatic white balance optimization processing is carried out to pending image.The embodiment of the present invention further simultaneously discloses a kind of terminal and storage medium, and image processing method provided in an embodiment of the present invention improves the effect of optimization of image.

Description

A kind of image processing method, terminal and storage medium
Technical field
The present invention relates to the image processing techniques in electronic technology field more particularly to a kind of image processing method, terminals And storage medium.
Background technology
Automatic white balance (Automatic White Balance, AWB), is the increasing by changing the Color Channel of terminal Benefit carries out unified benefit to the deviation of the misalignment caused by colour temperature environment and terminal intrinsic Color Channel gain in itself It repays, so as to allow the image of acquisition that can correctly reflect the realistic colour of object.
In the prior art, when optimizing processing to image, usually need to carry out AWB processing to image, however to AWB When being calculated, mainly according to the calculating of the information progress of the pixel of gray area in image, for the picture outside gray area in image The pixel of gray area in image not as the parameter value for calculating AWB, is generally referred to as grey point, the picture outside gray area by the information of vegetarian refreshments Vegetarian refreshments is referred to as non-grey point, and non-ash point refers to the corresponding pixel of extreme color (such as extremely red, extremely green and extremely blue).In this way, When the percentage that the non-ash point in image accounts for whole image pixel point set is bigger, for example, non-ash point accounts for entire figure in image As the percentage of pixel point set is 80%, at this time if only carrying out the calculating of AWB according to the information of ash point in image, can cause The effect of optimization of image is poor.
The content of the invention
To be situated between in order to solve the above technical problems, an embodiment of the present invention is intended to provide a kind of image processing method, terminal and storages Matter improves the effect of optimization of image.
What the technical solution of the embodiment of the present invention was realized in:
An embodiment of the present invention provides a kind of image processing method, the described method includes:
When receiving the process instruction to pending image, the pending image is divided into according to the process instruction Gray area pixel point set and non-gray area pixel point set;
Distribution based on the gray area pixel point set and the non-gray area pixel point set, determines the gray area pixel Gather corresponding first average pixel and the corresponding second average pixel of the non-gray area pixel point set;
According to the first average pixel and the second average pixel, determined from the gray area pixel point set Go out to replace the pixel to be replaced of the non-gray area pixel point set;
Using the gray area pixel point set and the pixel to be replaced, the pending image is carried out automatic white flat Weigh optimization processing.
In said program, the distribution based on the gray area pixel point set and the non-gray area pixel point set, Determine the corresponding first average pixel of the gray area pixel point set and the corresponding institute of the non-gray area pixel point set The second average pixel is stated, including:
Distribution based on the gray area pixel point set and the non-gray area pixel point set calculates the non-gray area pixel Point set accounts for the percentage of the pending image pixel point set;
When the percentage is more than or equal to predetermined threshold value, the first average pixel and described second is calculated It is worth pixel.
In said program, the method further includes:
When the percentage is less than the predetermined threshold value, using the gray area pixel point set, to the pending figure As carrying out automatic white balance optimization processing.
It is described according to the first average pixel and the second average pixel in said program, from the ash The pixel to be replaced instead of the non-gray area pixel point set is determined in area's pixel point set, including:
According to the first average pixel, the second average pixel and the gray area pixel point set, institute is obtained State the edge pixel point of gray area pixel point set;
Reverse interpolation is carried out according to the first average pixel, edge pixel point and the percentage, from described The pixel to be replaced instead of the non-gray area pixel point set is determined in gray area pixel point set.
It is described according to the first average pixel, the second average pixel and the gray area in said program Pixel point set obtains the edge pixel point of the gray area pixel point set, including:
Color is carried out to the first average pixel, the second average pixel and the gray area pixel point set to lead to Road ratio calculation is obtained comprising the first average pixel, the second average pixel and the gray area pixel point set Pixel statistical chart;
On the pixel statistical chart, according to the first average pixel and the line of the second average pixel With the intersection point of the pixel of the gray area pixel point set, the edge pixel point is obtained.
An embodiment of the present invention provides a kind of terminal, the terminal includes:Processor, memory, receiver and communication Bus;The communication bus is used to implement the connection communication between the processor, the memory and the receiver;Institute It states processor and the receiver is used to perform the data sending program stored in the memory, to perform following steps:
When receiving the process instruction to pending image, the pending image is divided into according to the process instruction Gray area pixel point set and non-gray area pixel point set;Based on the gray area pixel point set and the non-gray area pixel point set Distribution, determine that the corresponding first average pixel of the gray area pixel point set and the non-gray area pixel point set are corresponding Second average pixel;According to the first average pixel and the second average pixel, from the gray area pixel point set The pixel to be replaced instead of the non-gray area pixel point set is determined in conjunction;Utilize the gray area pixel point set and described Pixel to be replaced carries out automatic white balance optimization processing to the pending image.
In said program, the processor, specifically for being based on the gray area pixel point set and the non-gray area picture The distribution of vegetarian refreshments set calculates the percentage that the non-gray area pixel point set accounts for the pending image pixel point set;With And when the percentage is more than or equal to predetermined threshold value, calculate the first average pixel and the second average pixel Point.
In said program, the processor is specifically additionally operable to according to the first average pixel, second average Pixel and the gray area pixel point set obtain the edge pixel point of the gray area pixel point set;And according to described One average pixel, edge pixel point and the percentage carry out reverse interpolation, from the gray area pixel point set really Make the pixel to be replaced instead of the non-gray area pixel point set.
In said program, the processor, also particularly useful for the first average pixel, the second average picture Vegetarian refreshments and the gray area pixel point set carry out Color Channel ratio calculation, obtain comprising the first average pixel, described The pixel statistical chart of second average pixel and the gray area pixel point set;And on the pixel statistical chart, root According to the line of the first average pixel and the second average pixel and the pixel of the gray area pixel point set, obtain To the edge pixel point.
An embodiment of the present invention provides a kind of computer readable storage medium, the computer-readable recording medium storage has One or more program, one or more of programs can be performed by one or more processor, to realize above-mentioned institute The method stated.
An embodiment of the present invention provides a kind of image processing method, terminal and storage mediums, first, place are treated when receiving When managing the process instruction of image, pending image is divided by gray area pixel point set and non-gray area pixel according to the process instruction Set, and the distribution based on gray area pixel point set and non-gray area pixel point set calculate gray area pixel point set and correspond to respectively The first average pixel and the corresponding second average pixel of non-gray area pixel point set;Then, according to the first average pixel Point and the second average pixel determine the pixel to be replaced instead of non-gray area pixel point set from gray area pixel point set Point;Finally, using gray area pixel point set and pixel to be replaced, automatic white balance optimization processing is carried out to pending image. Using above-mentioned technic relization scheme, due to using according to the corresponding first average pixel of gray area pixel point set and non-gray area picture The corresponding second average pixel of vegetarian refreshments set, the pixel to be replaced determined in gray area pixel point set, instead of non-gray area Pixel point set, the parameter value handled with gray area pixel point set collectively as image optimization so that optimized to image The extreme color of non-gray area pixel point set is also served as calculating to the parameter value of AWB, this improves image optimization effects during processing Fruit.
Description of the drawings
A kind of hardware architecture diagram of Fig. 1 optional mobile terminals of each embodiment to realize 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 realization flow diagram one for image processing method that the embodiment of the present invention proposes;
Fig. 4 is a kind of illustrative gray area pixel point set provided in an embodiment of the present invention and non-gray area pixel point set point Cloth schematic diagram;
Fig. 5 is a kind of schematic diagram for illustratively determining pixel to be replaced provided in an embodiment of the present invention;
Fig. 6 is a kind of realization flow diagram two for image processing method that the embodiment of the present invention proposes;
Fig. 7 is a kind of schematic diagram of illustrative pending image provided in an embodiment of the present invention;
Fig. 8 is a kind of structure diagram of terminal provided in an embodiment of the present invention.
Specific embodiment
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 representing that the suffix of such as " module ", " component " or " unit " of element is only Be conducive to the explanation of the present invention, itself there is no 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 can 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), guider, wearable device, Intelligent bracelet, pedometer The dynamic fixed terminals such as terminal and number TV, desktop computer.
It will be illustrated in subsequent descriptions by taking mobile terminal as an example, it will be appreciated by those skilled in the art that except special For moving outside the element of purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, its to realize the present invention a kind of optional mobile terminal of each embodiment hardware configuration signal Figure, the mobile terminal 100 can include:Radio frequency (Radio Frequency, RF) unit 101, Wireless Fidelity (Wireless- Fidelity, Wi-Fi) it is module 102, audio output unit 103, audio/video (A/V) input unit 104, sensor 105, aobvious Show the components such as unit 106, user input unit 107, interface unit 108, memory 109, processor 110 and power supply 111. It will be understood by those skilled in the art that the mobile terminal structure shown in Fig. 1 does not form the restriction to mobile terminal, it is mobile whole End can include either combining some 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, handled to processor 110;In addition, uplink is shown to base station.In general, radio frequency unit 101 includes But it is not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, radio frequency list Member 101 can also be communicated by wireless communication with network and other equipment.Above-mentioned wireless communication can use any communication standard Or agreement, include but not limited to global system for mobile communications (Global System of Mobile communication, GSM), general packet radio service (General Packet Radio Service, GPRS), CDMA 2000 (Code Division Multiple Access 2000, CDMA2000), wideband code division multiple access (Wideband Code Division Multiple Access, WCDMA), TD SDMA (Time Division-Synchronous Code Division Multiple Access, TD-SCDMA), frequency division duplex Long Term Evolution (Frequency Division Duplexing-Long Term Evolution, FDD-LTE) and time division duplex Long Term Evolution (Time Division Duplexing-Long Term Evolution, TDD-LTE) etc..
Wi-Fi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch by Wi-Fi module 102 Email, browsing webpage and access streaming video etc., it has provided wireless broadband internet to the user and has accessed.Although Fig. 1 Show Wi-Fi module 102, but it is understood that, and must be configured into for mobile terminal is not belonging to, it completely can basis It needs to omit in the scope of essence for not changing invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100 Formula, speech recognition mode, broadcast reception mode when under isotypes, by radio frequency unit 101 or Wi-Fi module 102 it is receiving or The voice data that person stores in memory 109 is converted into audio signal and exports as sound.Moreover, audio output unit 103 can also provide with mobile terminal 100 perform the relevant audio output of specific function (for example, call signal receive sound, Message sink sound etc.).Audio output unit 103 can include loud speaker, buzzer etc..
A/V input units 104 are used to receive audio or video signal.A/V input units 104 can include graphics processor (Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode Or the static images or the image data of video obtained in image capture mode by image capture apparatus (such as camera) carry 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 Wi-Fi 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 (voice data), and can be voice data by such acoustic processing.Audio that treated (voice) data can To be converted to the form output that mobile communication base station can be sent to 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 one 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, the application available for identification 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 ray sensor, details are not described herein.
Display unit 106 is used to show by information input by user or be 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 employed Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
User input unit 107 can be used for the number for receiving input or character information and generation and the use of mobile terminal The key signals input that family is set and function control is related.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 such as finger, stylus or attachment 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 Contact coordinate is converted into, then gives processor 110, and the order that processor 110 is sent can be received and performed.It in addition, can To realize touch panel 1071 using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves.Except 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 to physical keyboard, in function key (such as volume control button, switch key etc.), trace ball, mouse, operation lever etc. 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 the component independent as two to realize the function that outputs and inputs of mobile terminal, but in certain embodiments, it 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) be connected with mobile terminal 100 can by interface.For example, External device (ED) can include wired or wireless head-band earphone port, external power supply (or battery charger) port, wired or nothing Line data port, memory card port, the port for device of the connection 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 the input received is transferred to one or more elements in mobile terminal 100 or can be with For transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storage software program and various data.Memory 109 can mainly include 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 Voice data, phone directory etc.) etc..In addition, memory 109 can 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 is stored in storage by running or performing the software program being stored in memory 109 and/or module and call Data in device 109 perform the various functions of mobile terminal and processing data, so as to carry out integral monitoring to mobile terminal.Place Reason device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated Device is managed, wherein, the main processing operation system of application processor, user interface and application program etc., modem processor is main Handle wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 can also be included to the power supply 111 (such as battery) of all parts power supply, it is preferred that power supply 111 Can be logically contiguous by power-supply management system and processor 110, so as 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.
For the ease of understanding the embodiment 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 It unites as the LTE system of universal mobile communications technology, user equipment (User of the LTE system including communicating connection successively Equipment, UE) 201, evolved UMTS Terrestrial radio access network (Evolved UMTS Terrestrial Radio Access Network, E-UTRAN) 202, evolved packet-based core networks (Evolved Packet Core, EPC) 203 and operation The IP operation 204 of business.
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 connected with other eNodeB2022, and eNodeB2021 is connected to EPC203, ENodeB2021 can provide the access of UE201 to EPC203.
EPC203 can include mobility management entity (Mobility Management Entity, MME) 2031, ownership Client server (Home Subscriber Server, HSS) 2032, other MME2033, gateway (Serving Gate Way, SGW) 2034, grouped data network gateway (PDN Gate Way, PGW) 2035 and policy and rate functional entity (Policy and Charging Rules Function, PCRF) 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 attaching position 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 business data flow and the strategy of IP bearing resources and charging control strategic decision-making Point, it selects and provides available strategy and charging control decision-making with charge execution function unit (not shown) for strategy.
IP operation 204 can include internet, Intranet, IP multimedia subsystem (IP Multimedia Subsystem, IMS) 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 following new network system etc., it does not limit herein.
Based on above-mentioned mobile terminal hardware configuration and communications network system, each embodiment of the method for the present invention is proposed.
It should be noted that the terminal other-ends such as including mobile terminal, each embodiment being listed below be using terminal as The explanation that example carries out.
Embodiment one
An embodiment of the present invention provides a kind of image processing method, Fig. 3 is the image processing method that the embodiment of the present invention proposes The realization flow diagram one of method, as shown in figure 3, in embodiments of the present invention, the method that terminal carries out image procossing can wrap Include following steps:
S101, when receiving the process instruction to pending image, pending image is divided into according to the process instruction Gray area pixel point set and non-gray area pixel point set;
When terminal need to optimize pending image or during other processing, that is, the processing to pending image is received Instruction.Pending image pixel point set is divided into gray area pixel point set and non-gray area pixel by terminal according to the process instruction Set.
Specifically, terminal carries out R/G and B/ respectively according to Color Channel R values, G values and the B values of each pixel in image G operation, and it is abscissa and using B/G as in the pixel statistical chart of ordinate that R/G and B/G operation results, which are mapped to using R/G,. When the value of value and B/G for the R/G of pixel is in certain value range, which is known as a grey point, multiple ash points Gray area pixel point set is formed, after gray area pixel point set is divided into coming, on the entire image, except gray area pixel set Outer part is non-gray area pixel point set.
Preferably, in the present embodiment, on pixel statistical chart, gray area pixel point set is determined using the prior art Afterwards, by the positive direction of reference axis B/G, more than the pixel of the maximum B/G values of pixel in gray area pixel point set and sit In the positive direction of parameter R/G, the pixel more than the maximum R/G values of pixel in gray area pixel point set is determined as extreme colour Vegetarian refreshments, multiple extreme colour vegetarian refreshments form non-gray area pixel point set.In general, on pixel statistical chart, closer to seat The positive direction of parameter B/G, pixel Color Channel B values are bigger, and the color presented is bluer;And closer to reference axis R/G Positive direction, pixel Color Channel R values are bigger, and the color presented is more red.
In embodiments of the present invention, the pixel of gray area pixel point set be grey, white or the shallower pixel of color, Such as pink;The pixel when pixel of non-gray area pixel point set is the R/G values of pixel, B/G values are more than predetermined threshold value Point, such as grade are red, extremely green and extremely blue.
Illustratively, Fig. 4 is a kind of illustrative gray area pixel point set provided in an embodiment of the present invention and non-gray area picture Vegetarian refreshments set distribution schematic diagram, as shown in figure 4, gray area pixel point set of the region therein 1 for an image, in Fig. 4 Region 2 is for the non-gray area pixel point set of the image.
It should be noted that color mode RGB is a kind of color standard of industrial quarters, it is by the red R of Color Channel, face The green G in chrominance channel, the variation of tri- Color Channels of Color Channel indigo plant B and their mutual superpositions are miscellaneous to obtain Color, RGB is the color for representing three passages of red, green, blue, this standard almost includes what human eyesight can perceive All colours are current with one of most wide color system.
It should also be noted that, the pending image is terminal the image collected, the picture shot when shooting Or video pictures or other images etc., the embodiment of the present invention is not restricted this.
In embodiments of the present invention, terminal can be the electronic equipments such as mobile phone, tablet computer, the embodiment of the present invention to this not It is restricted.
S102, the distribution based on gray area pixel point set and non-gray area pixel point set, determine gray area pixel point set pair The the first average pixel and the corresponding second average pixel of non-gray area pixel point set answered;
After determining gray area pixel point set and non-gray area pixel point set on the image, terminal is based on gray area pixel The distribution of set and non-gray area pixel point set, does mean value computation to gray area pixel point set, obtains gray area pixel point set pair The the first average pixel answered;Mean value computation is done to non-gray area pixel point set, obtains non-gray area pixel point set corresponding Two average pixels.
S103, according to the first average pixel and the second average pixel, determine to replace from gray area pixel point set The pixel to be replaced of non-gray area pixel point set;
Terminal is after the first average pixel and the second average pixel is obtained, according to the first average pixel and second Average pixel determines the pixel to be replaced instead of non-gray area pixel point set from gray area pixel point set.
Specifically, Color Channel ratio is carried out to the first average pixel, the second average pixel and gray area pixel point set Value calculates, and obtains including the pixel statistical chart of the first average pixel, the second average pixel and gray area pixel point set; On pixel statistical chart, according to the line of the first average pixel and the second average pixel and the pixel of gray area pixel point set The intersection point of point, obtains edge pixel point;Reverse interpolation is carried out according to the first average pixel, edge pixel point and percentage, from The pixel to be replaced instead of non-gray area pixel point set is determined in gray area pixel point set.
Here, reverse interpolation refers on the line of edge pixel point and the first average pixel, is pointed out from edge pixel Hair, along the direction of the first average pixel, chooses the percentage that non-gray area pixel point set accounts for whole image pixel point set Opposition value at corresponding pixel, as replace non-gray area pixel point set pixel to be replaced.
Illustratively, Fig. 5 is a kind of schematic diagram for illustratively determining pixel to be replaced provided in an embodiment of the present invention, As shown in figure 5,1 corresponding average pixel of gray area pixel point set is average pixel B, non-gray area pixel point set 2 corresponds to Average pixel be average pixel A;Average pixel B and average pixel A are attached, obtain average pixel B With the intersection point of average pixel A lines and gray area pixel point set 1, so as to obtain edge pixel point C;Here non-gray area pixel The percentage that set 2 accounts for whole image pixel point set is 80%, in edge pixel point C and the line of the first average pixel B On, from edge pixel point C, along the direction of average pixel B, choose non-gray area pixel point set 2 and account for whole image picture Corresponding pixel D at the opposition value 20% of the percentage of vegetarian refreshments set, as the to be replaced of the non-gray area pixel point set 2 of replacement Pixel.
S104, using gray area pixel point set and pixel to be replaced, automatic white balance optimization is carried out to pending image Processing.
After the pixel to be replaced of non-gray area pixel point set is obtained, gray area pixel point set and picture to be replaced are utilized Vegetarian refreshments carries out automatic white balance optimization processing to pending image.
It should be noted that the function that automatic white balance function, which is video camera, to be had.When video camera is against subject, with The colour temperature difference of illumination light, the white balance of video camera is automatically adjusted based on the feedback signal so that under various light conditions, the image face of shooting Color is consistent with the real color keep of object.
Illustratively, as shown in figure 5, carrying out the automatic white of image using gray area pixel point set 1 and pixel D to be replaced Balance optimizing processing.
It is understood that due to using according to the corresponding first average pixel of gray area pixel point set and non-gray area picture The corresponding second average pixel of vegetarian refreshments set, the pixel to be replaced determined in gray area pixel point set, instead of non-gray area Pixel point set, the parameter value handled with gray area pixel point set collectively as image optimization so that optimized to image The extreme color of non-gray area pixel point set is also served as calculating to the parameter value of AWB, this improves image optimization effects during processing Fruit.
Embodiment two
The embodiment of the present invention additionally provides a kind of image processing method, and Fig. 6 is image procossing provided in an embodiment of the present invention The realization flow diagram two of method, as shown in fig. 6, in embodiments of the present invention, the method that terminal carries out image procossing can be with Comprise the following steps:
S201, when receiving the process instruction to pending image, pending image is divided into according to the process instruction Gray area pixel point set and non-gray area pixel point set;
When terminal need to optimize pending image or during other processing, that is, the processing to pending image is received Instruction.Pending image pixel point set is divided into gray area pixel point set and non-gray area pixel by terminal according to the process instruction Set.
Specifically, terminal carries out R/G and B/ respectively according to Color Channel R values, G values and the B values of each pixel in image G operation, and it is abscissa and using B/G as in the pixel statistical chart of ordinate that R/G and B/G operation results, which are mapped to using R/G,. When the value of value and B/G for the R/G of pixel is in certain value range, which is known as a grey point, multiple ash points Gray area pixel point set is formed, after gray area pixel point set is divided into coming, on the entire image, except gray area pixel set Outer part is non-gray area pixel point set.
Preferably, in the present embodiment, on pixel statistical chart, gray area pixel point set is determined using the prior art Afterwards, by the positive direction of reference axis B/G, more than the pixel of the maximum B/G values of pixel in gray area pixel point set and sit In the positive direction of parameter R/G, the pixel more than the maximum R/G values of pixel in gray area pixel point set is determined as extreme colour Vegetarian refreshments, multiple extreme colour vegetarian refreshments form non-gray area pixel point set.In general, on pixel statistical chart, closer to seat The positive direction of parameter B/G, pixel Color Channel B values are bigger, and the color presented is bluer;And closer to reference axis R/G Positive direction, pixel Color Channel R values are bigger, and the color presented is more red.
In embodiments of the present invention, in general, the pixel of gray area pixel point set is that grey, white or color are shallower Pixel, such as pink;The pixel of non-gray area pixel point set is more than predetermined threshold value for R/G values, the B/G values of pixel When pixel, for example grade is red, extremely green and extremely blue.
Illustratively, as shown in figure 4, region therein 1 is the gray area pixel point set of an image, such as the area in Fig. 4 Domain 2 is for the non-gray area pixel point set of the image.
It should be noted that color mode RGB is a kind of color standard of industrial quarters, it is by the red R of Color Channel, face The green G in chrominance channel, the variation of tri- Color Channels of Color Channel indigo plant B and their mutual superpositions are miscellaneous to obtain Color, RGB is the color for representing three passages of red, green, blue, this standard almost includes what human eyesight can perceive All colours are current with one of most wide color system.
It should also be noted that, the pending image is terminal the image collected, the picture shot when shooting Or video pictures or other images etc., the embodiment of the present invention is not restricted this.
In embodiments of the present invention, terminal can be the electronic equipments such as mobile phone, tablet computer, the embodiment of the present invention to this not It is restricted.
S202, the distribution based on gray area pixel point set and non-gray area pixel point set, calculate non-gray area pixel point set Account for the percentage of pending image pixel point set;
After determining gray area pixel point set and non-gray area pixel point set on the image, based on gray area pixel point set With the distribution of non-gray area pixel point set, the percentage that non-gray area pixel point set accounts for pending image pixel point set is calculated.
When S203, percentage are more than or equal to predetermined threshold value, the first average pixel and the second average pixel are calculated;
A predetermined threshold value is preset, when the percentage being calculated is more than or equal to predetermined threshold value, terminal root According to the distribution of gray area pixel point set and non-gray area pixel point set, mean value computation is done to gray area pixel point set, obtains gray area The corresponding first average pixel of pixel point set;Mean value computation is done to non-gray area pixel point set, obtains non-gray area pixel Gather corresponding second average pixel.The first average pixel and the second average pixel are calculated, and further performs step S203-S207。
Illustratively, Fig. 7 is a kind of schematic diagram of illustrative pending image provided in an embodiment of the present invention, such as Fig. 7 Shown, in the image that terminal is shot in the video screen to blue background, the part of oblique line filling is the face of entire image The shallower pixel point set of color, the part of grid filling are the pixel point set that pure blue background parts are formed.To the image Color Channel R values, G values and the B values of each pixel carry out R/G and B/G computings, further obtain the image gray area picture respectively Vegetarian refreshments set 1 and non-gray area pixel point set 2.Non- gray area pixel point set 2 is calculated and accounts for whole image pixel point set Percentage is 80%, and it is 20% to here preset at threshold value, and non-gray area pixel point set 2 accounts for the percentage of whole image pixel point set 80% is more than predetermined threshold value 20%, need to be by gray area pixel point set 1 and non-when carrying out automatic white balance optimization processing to image Gray area pixel point set 2 is simultaneously as the parameter value for calculating AWB.Therefore, gray area pixel point set 1 corresponding first is calculated respectively 2 corresponding second average pixel of average pixel and non-gray area pixel point set, and further perform step S203-S207.
In embodiments of the present invention, if the percentage is less than predetermined threshold value, merely with gray area pixel point set, treats It handles image and carries out automatic white balance optimization processing, and terminate current execution flow.
S204, Color Channel ratio is carried out to the first average pixel, the second average pixel and gray area pixel point set It calculates, obtains including the pixel statistical chart of the first average pixel, the second average pixel and gray area pixel point set;
S205, on pixel statistical chart, according to the first average pixel and the line and gray area of the second average pixel The intersection point of the pixel of pixel point set obtains edge pixel point;
Terminal is after the first average pixel and the second average pixel is obtained, on pixel statistical chart, according to The intersection point of the line of one average pixel and the second average pixel and the pixel of gray area pixel point set, obtains edge pixel Point.
Illustratively, as shown in figure 5,1 corresponding average pixel of gray area pixel point set is average pixel B, non-ash Pixel point set 2 corresponding average pixel in area's is average pixel A;Average pixel B and average pixel A are connected It connects, average pixel B and average pixel A lines and the intersection point of gray area pixel point set 1 is obtained, so as to obtain edge pixel point C。
S206, reverse interpolation is carried out according to the first average pixel, edge pixel point and percentage, from gray area pixel point set The pixel to be replaced instead of non-gray area pixel point set is determined in conjunction;
Terminal carries out anti-after edge pixel point is obtained according to the first average pixel, edge pixel point and percentage To interpolation, the pixel to be replaced instead of non-gray area pixel point set is determined from gray area pixel point set.
It should be noted that here, reverse interpolation refers on the line of edge pixel point and the first average pixel, from Edge pixel point sets out, and along the direction of the first average pixel, chooses non-gray area pixel point set and accounts for whole image pixel Corresponding pixel at the opposition value of the percentage of set, as the pixel to be replaced for replacing non-gray area pixel point set.
Illustratively, as shown in figure 5, the percentage that non-gray area pixel point set 2 accounts for whole image pixel point set is 80%, on the line of 1 corresponding first average pixel B of edge pixel point C and gray area pixel point set, from edge pixel point C sets out, and along the direction of average pixel B, chooses the percentage that non-gray area pixel point set 2 accounts for whole image pixel point set Opposition value 20% at corresponding pixel D, as replace non-gray area pixel point set 2 pixel to be replaced.
S207, using gray area pixel point set and pixel to be replaced, automatic white balance optimization is carried out to pending image Processing.
In embodiments of the present invention, step S207 realizes that the description of process and step S104 in embodiment one realize process Description is consistent, and details are not described herein again.
It is understood that due to using according to the corresponding first average pixel of gray area pixel point set and non-gray area picture The corresponding second average pixel of vegetarian refreshments set, the pixel to be replaced determined in gray area pixel point set, instead of non-gray area Pixel point set, the parameter value handled with gray area pixel point set collectively as image optimization so that optimized to image The extreme color of non-gray area pixel point set is also served as calculating to the parameter value of AWB, this improves image optimization effects during processing Fruit.
Embodiment three
Same inventive concept based on embodiment one and embodiment two, as shown in figure 8, the terminal bag of the embodiment of the present invention It includes:Processor 31, memory 32, receiver 33 and communication bus 34.
In embodiments of the present invention, the communication bus 34 be used to implement the processor 31, the memory 32 and Connection communication between the receiver 33;The processor 31 and the receiver 33 are deposited for performing in the memory 32 The data sending program of storage, to perform following steps:
When receiving the process instruction to pending image, the pending image is divided into according to the process instruction Gray area pixel point set and non-gray area pixel point set;Based on the gray area pixel point set and the non-gray area pixel point set Distribution, determine that the corresponding first average pixel of the gray area pixel point set and the non-gray area pixel point set are corresponding Second average pixel;According to the first average pixel and the second average pixel, from the gray area pixel point set The pixel to be replaced instead of the non-gray area pixel point set is determined in conjunction;Utilize the gray area pixel point set and described Pixel to be replaced carries out automatic white balance optimization processing to the pending image.
In embodiments of the present invention, further, the processor 31, specifically for being based on the gray area pixel point set With the distribution of the non-gray area pixel point set, calculate the non-gray area pixel point set and account for the pending image pixel point set The percentage of conjunction;And when the percentage is more than or equal to predetermined threshold value, calculate the first average pixel and institute State the second average pixel.
In embodiments of the present invention, further, the processor 31 is specifically additionally operable to when the percentage is less than described During predetermined threshold value, using the gray area pixel point set, automatic white balance optimization processing is carried out to the pending image.
In embodiments of the present invention, further, the processor 31 is specifically additionally operable to according to the first average pixel Point, the second average pixel and the gray area pixel point set obtain the edge pixel point of the gray area pixel point set; And reverse interpolation is carried out according to the first average pixel, edge pixel point and the percentage, from the gray area The pixel to be replaced instead of the non-gray area pixel point set is determined in pixel point set.
In embodiments of the present invention, further, the processor 31, also particularly useful for the first average pixel Point, the second average pixel and the gray area pixel point set carry out Color Channel ratio calculation, obtain comprising described the The pixel statistical chart of one average pixel, the second average pixel and the gray area pixel point set;And described On pixel statistical chart, according to the line of the first average pixel and the second average pixel and the gray area pixel The pixel of point set obtains the edge pixel point.
It should be noted that in an embodiment of the present invention, processor 31 and memory 32 in Fig. 8 correspond to above-mentioned respectively Processor 110 and memory 109 in Fig. 1, receiver 33 correspond to the radio frequency unit 101 in above-mentioned Fig. 1.In specific embodiment In the process, above-mentioned processor 31 can be application-specific IC (Application Specific Integrated Circuit, ASIC), digital signal processor (Digital Signal Processor, DSP), digital signal processing device (Digital Signal Processing Device, DSPD), programmable logic device (Programmable Logic Device, PLD), field programmable gate array (Field Programmable Gate Array, FPGA), central processing unit At least one of (Central Processing Unit, CPU), controller, microcontroller, microprocessor.It is appreciated that Ground, for different equipment, it can also be other to be used to implement the electronic device of above-mentioned processor function, and the embodiment of the present invention is not Make specific limit.
An embodiment of the present invention provides a kind of computer readable storage medium, the computer-readable recording medium storage has One or more program, one or more of programs can be performed by one or more processor, to realize as implemented Method described in example one and embodiment two.
Specifically, the corresponding program instruction of a kind of image processing method in the present embodiment can be stored in CD, firmly On the storage mediums such as disk, USB flash disk, when in storage medium program instruction corresponding with a kind of image processing method by an electronic equipment It reads or is performed, include the following steps:
When receiving the process instruction to pending image, above-mentioned pending image is divided into according to above-mentioned process instruction Gray area pixel point set and non-gray area pixel point set;
Distribution based on above-mentioned gray area pixel point set and above-mentioned non-gray area pixel point set, determines above-mentioned gray area pixel Gather corresponding first average pixel and the corresponding second average pixel of above-mentioned non-gray area pixel point set;
According to above-mentioned first average pixel and above-mentioned second average pixel, determined from above-mentioned gray area pixel point set Go out to replace the pixel to be replaced of above-mentioned non-gray area pixel point set;
Using above-mentioned gray area pixel point set and above-mentioned pixel to be replaced, above-mentioned pending image is carried out automatic white flat Weigh optimization processing.
In embodiments of the present invention, further, it is above-mentioned to be based on above-mentioned gray area pixel point set and above-mentioned non-gray area pixel The distribution of point set determines the corresponding above-mentioned first average pixel of above-mentioned gray area pixel point set and above-mentioned non-gray area pixel When gathering corresponding above-mentioned second average pixel, said one either by said one or multiple processors held by multiple programs Row implements following steps:
Distribution based on above-mentioned gray area pixel point set and above-mentioned non-gray area pixel point set calculates above-mentioned non-gray area pixel Point set accounts for the percentage of above-mentioned pending image pixel point set;
When above-mentioned percentage is more than or equal to predetermined threshold value, above-mentioned first average pixel and above-mentioned second is calculated It is worth pixel.
In embodiments of the present invention, further, said one either multiple programs by said one or multiple processing When device performs, following steps are specifically also realized:
When above-mentioned percentage is less than above-mentioned predetermined threshold value, using above-mentioned gray area pixel point set, to above-mentioned pending figure As carrying out automatic white balance optimization processing.
In embodiments of the present invention, further, it is above-mentioned according to above-mentioned first average pixel and above-mentioned second average picture Vegetarian refreshments determines the above-mentioned pixel to be replaced instead of above-mentioned non-gray area pixel point set from above-mentioned gray area pixel point set When, either multiple programs are performed said one by said one or multiple processors, implement following steps:
According to above-mentioned first average pixel, above-mentioned second average pixel and above-mentioned gray area pixel point set, obtain State the edge pixel point of gray area pixel point set;
Reverse interpolation is carried out according to above-mentioned first average pixel, above-mentioned edge pixel point and above-mentioned percentage, from above-mentioned The above-mentioned pixel to be replaced instead of above-mentioned non-gray area pixel point set is determined in gray area pixel point set.
In embodiments of the present invention, further, it is above-mentioned according to above-mentioned first average pixel, above-mentioned second average pixel Point and above-mentioned gray area pixel point set, when obtaining the above-mentioned edge pixel point of above-mentioned gray area pixel point set, said one or Multiple programs are performed by said one or multiple processors, implement following steps:
Color is carried out to above-mentioned first average pixel, above-mentioned second average pixel and above-mentioned gray area pixel point set to lead to Road ratio calculation is obtained comprising above-mentioned first average pixel, above-mentioned second average pixel and above-mentioned gray area pixel point set Pixel statistical chart;
On above-mentioned pixel statistical chart, according to above-mentioned first average pixel and the line of above-mentioned second average pixel With the intersection point of the pixel of above-mentioned gray area pixel point set, above-mentioned edge pixel point is obtained.
It is understood that due to using according to the corresponding first average pixel of gray area pixel point set and non-gray area picture The corresponding second average pixel of vegetarian refreshments set, the pixel to be replaced determined in gray area pixel point set, instead of non-gray area Pixel point set, the parameter value handled with gray area pixel point set collectively as image optimization so that optimized to image The extreme color of non-gray area pixel point set is also served as calculating to the parameter value of AWB, this improves image optimization effects during processing Fruit.
It should be noted that herein, term " comprising ", "comprising" 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 not only include those elements, and And it further includes other elements that are not explicitly listed or further includes as this process, method, article or device institute inherently Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including this Also there are other identical elements in the process of element, method, article or device.
The embodiments of the present invention are for illustration only, do 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 such understanding, technical scheme substantially in other words does the prior art Going out the part of contribution can be embodied in the form of software product, which is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), used including some instructions so that a station terminal (can be mobile phone, computer services Device, air conditioner or network equipment etc.) perform method described in each embodiment of the present invention.
The embodiment of the present invention is described above in conjunction with attached drawing, but the invention is not limited in above-mentioned specific Embodiment, above-mentioned specific embodiment is only schematical rather than restricted, those of ordinary skill in the art Under the enlightenment of the present invention, present inventive concept and scope of the claimed protection are not being departed from, can also made very much Form, these are belonged within the protection of the present invention.

Claims (10)

1. a kind of image processing method, which is characterized in that the described method includes:
When receiving the process instruction to pending image, the pending image is divided by gray area according to the process instruction Pixel point set and non-gray area pixel point set;
Distribution based on the gray area pixel point set and the non-gray area pixel point set, determines the gray area pixel point set Corresponding first average pixel and the corresponding second average pixel of the non-gray area pixel point set;
According to the first average pixel and the second average pixel, generation is determined from the gray area pixel point set For the pixel to be replaced of the non-gray area pixel point set;
Using the gray area pixel point set and the pixel to be replaced, it is excellent that automatic white balance is carried out to the pending image Change is handled.
2. according to the method described in claim 1, it is characterized in that, described be based on the gray area pixel point set and the non-ash The distribution of area's pixel point set determines the corresponding first average pixel of the gray area pixel point set and the non-gray area The corresponding second average pixel of pixel point set, including:
Distribution based on the gray area pixel point set and the non-gray area pixel point set calculates the non-gray area pixel point set Close the percentage for accounting for the pending image pixel point set;
When the percentage is more than or equal to predetermined threshold value, the first average pixel and the second average picture are calculated Vegetarian refreshments.
3. according to the method described in claim 2, it is characterized in that, the method further includes:
When the percentage is less than the predetermined threshold value, using the gray area pixel point set, to the pending image into Row automatic white balance optimization processing.
It is 4. according to the method described in claim 1, it is characterized in that, described according to the first average pixel and described second Average pixel determines the picture to be replaced instead of the non-gray area pixel point set from the gray area pixel point set Vegetarian refreshments, including:
According to the first average pixel, the second average pixel and the gray area pixel point set, the ash is obtained The edge pixel point of area's pixel point set;
Reverse interpolation is carried out according to the first average pixel, edge pixel point and the percentage, from the gray area The pixel to be replaced instead of the non-gray area pixel point set is determined in pixel point set.
It is 5. according to the method described in claim 4, it is characterized in that, described according to the first average pixel, described second Average pixel and the gray area pixel point set obtain the edge pixel point of the gray area pixel point set, including:
Color Channel ratio is carried out to the first average pixel, the second average pixel and the gray area pixel point set Value calculates, and obtains including the picture of the first average pixel, the second average pixel and the gray area pixel point set Vegetarian refreshments statistical chart;
On the pixel statistical chart, according to the line and institute of the first average pixel and the second average pixel The intersection point of the pixel of gray area pixel point set is stated, obtains the edge pixel point.
6. a kind of terminal, which is characterized in that the terminal includes:Processor, memory, receiver and communication bus;It is described Communication bus is used to implement the connection communication between the processor, the memory and the receiver;The processor It is used to perform the data sending program stored in the memory with the receiver, to perform following steps:
When receiving the process instruction to pending image, the pending image is divided by gray area according to the process instruction Pixel point set and non-gray area pixel point set;Point based on the gray area pixel point set and the non-gray area pixel point set Cloth determines the corresponding first average pixel of the gray area pixel point set and the non-gray area pixel point set corresponding second Average pixel;According to the first average pixel and the second average pixel, from the gray area pixel point set Determine the pixel to be replaced instead of the non-gray area pixel point set;Using the gray area pixel point set and described wait to replace Pixel is changed, automatic white balance optimization processing is carried out to the pending image.
7. terminal according to claim 6, which is characterized in that
The processor, specifically for the distribution based on the gray area pixel point set and the non-gray area pixel point set, meter Calculate the percentage that the non-gray area pixel point set accounts for the pending image pixel point set;And when the percentage is more than Or during equal to predetermined threshold value, the first average pixel and the second average pixel are calculated.
8. terminal according to claim 6, which is characterized in that
The processor is specifically additionally operable to according to the first average pixel, the second average pixel and the gray area Pixel point set obtains the edge pixel point of the gray area pixel point set;And according to the first average pixel, described Edge pixel point and the percentage carry out reverse interpolation, determine to replace the non-gray area from the gray area pixel point set The pixel to be replaced of pixel point set.
9. terminal according to claim 8, which is characterized in that
The processor, also particularly useful for the first average pixel, the second average pixel and the gray area picture Vegetarian refreshments set carry out Color Channel ratio calculation, obtain comprising the first average pixel, the second average pixel and The pixel statistical chart of the gray area pixel point set;And on the pixel statistical chart, according to the first average picture The line of vegetarian refreshments and the second average pixel and the pixel of the gray area pixel point set, obtain the edge pixel Point.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage there are one or Multiple programs, one or more of programs can be performed by one or more processor, to realize that claim 1-5 such as appoints Method described in one.
CN201711475078.9A 2017-12-29 2017-12-29 A kind of image processing method, terminal and storage medium Active CN108093234B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711475078.9A CN108093234B (en) 2017-12-29 2017-12-29 A kind of image processing method, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711475078.9A CN108093234B (en) 2017-12-29 2017-12-29 A kind of image processing method, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN108093234A true CN108093234A (en) 2018-05-29
CN108093234B CN108093234B (en) 2019-10-29

Family

ID=62180698

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711475078.9A Active CN108093234B (en) 2017-12-29 2017-12-29 A kind of image processing method, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN108093234B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112053372A (en) * 2019-06-05 2020-12-08 腾讯科技(深圳)有限公司 Screen display type identification method and related device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103327345A (en) * 2012-03-19 2013-09-25 华晶科技股份有限公司 White balance processing method and processing device thereof
CN103491357A (en) * 2013-10-14 2014-01-01 旗瀚科技有限公司 Auto white balance treatment method of image sensor
CN103929632A (en) * 2014-04-15 2014-07-16 浙江宇视科技有限公司 Automatic white balance correcting method and device
CN104954772A (en) * 2015-06-26 2015-09-30 济南中维世纪科技有限公司 Image adjacent-grey pixel selection algorithm applied to automatic white balance algorithm
CN105430367A (en) * 2015-12-30 2016-03-23 浙江宇视科技有限公司 Automatic white balance method and device
CN105828058A (en) * 2015-05-29 2016-08-03 维沃移动通信有限公司 Adjustment method and device of white balance

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103327345A (en) * 2012-03-19 2013-09-25 华晶科技股份有限公司 White balance processing method and processing device thereof
CN103491357A (en) * 2013-10-14 2014-01-01 旗瀚科技有限公司 Auto white balance treatment method of image sensor
CN103929632A (en) * 2014-04-15 2014-07-16 浙江宇视科技有限公司 Automatic white balance correcting method and device
CN105828058A (en) * 2015-05-29 2016-08-03 维沃移动通信有限公司 Adjustment method and device of white balance
CN104954772A (en) * 2015-06-26 2015-09-30 济南中维世纪科技有限公司 Image adjacent-grey pixel selection algorithm applied to automatic white balance algorithm
CN105430367A (en) * 2015-12-30 2016-03-23 浙江宇视科技有限公司 Automatic white balance method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112053372A (en) * 2019-06-05 2020-12-08 腾讯科技(深圳)有限公司 Screen display type identification method and related device
CN112053372B (en) * 2019-06-05 2024-07-19 腾讯科技(深圳)有限公司 Screen display type identification method and related device

Also Published As

Publication number Publication date
CN108093234B (en) 2019-10-29

Similar Documents

Publication Publication Date Title
CN107093418A (en) A kind of screen display method, computer equipment and storage medium
CN107302663A (en) A kind of brightness of image method of adjustment, terminal and computer-readable recording medium
CN107277216A (en) A kind of volume adjusting method, terminal and computer-readable recording medium
CN107463481A (en) Data interactive method, mobile terminal and storage medium
CN107731199A (en) A kind of screen color temp adjusting method, terminal and computer-readable recording medium
CN107690065A (en) A kind of white balance correcting, device and computer-readable recording medium
CN107809583A (en) Take pictures processing method, mobile terminal and computer-readable recording medium
CN107291334A (en) A kind of icon font color determines method and apparatus
CN107315515A (en) Color change method, terminal and the computer-readable recording medium of status bar icon
CN107067842A (en) Colour method of adjustment, mobile terminal and storage medium
CN107295270A (en) Determination method, device, terminal and the computer-readable recording medium of a kind of image brightness values
CN109377531A (en) Image color cast method of adjustment, device, mobile terminal and readable storage medium storing program for executing
CN110417999A (en) Screen luminance adjustment method, mobile terminal and computer readable storage medium
CN107705247A (en) A kind of method of adjustment of image saturation, terminal and storage medium
CN107193779A (en) Residue charging duration calculation method, terminal and computer-readable recording medium
CN108881635A (en) Screen luminance adjustment method, mobile terminal and computer readable storage medium
CN108230270A (en) A kind of noise-reduction method, terminal and computer readable storage medium
CN108184105A (en) A kind of method, apparatus and computer readable storage medium for adjusting brightness
CN108810264A (en) A kind of brightness adjusting method and terminal, computer readable storage medium
CN108182664A (en) A kind of image processing method, mobile terminal and computer readable storage medium
CN107423065A (en) Method, mobile terminal and the computer-readable recording medium that a kind of application is attended to anything else
CN107347195A (en) Focus sharing method and mobile terminal
CN107241504A (en) A kind of image processing method, mobile terminal and computer-readable recording medium
CN107734318A (en) A kind of color conditioning method, terminal and computer-readable recording medium
CN107516289A (en) A kind of certificate image acquisition methods and equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant