CN106447639A - Mobile terminal photograph processing method and device - Google Patents

Mobile terminal photograph processing method and device Download PDF

Info

Publication number
CN106447639A
CN106447639A CN201610909225.8A CN201610909225A CN106447639A CN 106447639 A CN106447639 A CN 106447639A CN 201610909225 A CN201610909225 A CN 201610909225A CN 106447639 A CN106447639 A CN 106447639A
Authority
CN
China
Prior art keywords
vector
photo
absorbance
mist elimination
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
CN201610909225.8A
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.)
LeTV Holding Beijing Co Ltd
LeTV Mobile Intelligent Information Technology Beijing Co Ltd
Original Assignee
LeTV Holding Beijing Co Ltd
LeTV Mobile Intelligent Information Technology Beijing 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 LeTV Holding Beijing Co Ltd, LeTV Mobile Intelligent Information Technology Beijing Co Ltd filed Critical LeTV Holding Beijing Co Ltd
Priority to CN201610909225.8A priority Critical patent/CN106447639A/en
Publication of CN106447639A publication Critical patent/CN106447639A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/73Deblurring; Sharpening
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10004Still image; Photographic image
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10024Color image

Landscapes

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

Abstract

The embodiment of the invention discloses a mobile terminal photograph processing method and device. The method comprises the steps that the dark primary channel vector of each pixel in a photographed photograph is acquired, and the first transmittance vector is calculated according to the dark primary channel vector; and if the first transmittance vector conforms to a defogging condition, the photograph is defogged according to the first transmittance vector. According to the embodiment of the invention, the photograph is preprocessed to acquire the first transmittance vector; if the first transmittance vector conforms to the defogging condition, defogging is carried out; and the influence of the defogging of a photograph with minor haze on the performance of a mobile terminal is reduced.

Description

A kind of mobile terminal photo processing method and device
Technical field
The present invention relates to photo disposal correlative technology field, particularly a kind of mobile terminal photo processing method and device.
Background technology
In recent years, environmental pollution is more serious, and city haze also is being continuously increased.The presence of haze makes it possible to see Degree substantially reduces.In the case of greasy weather, in air, there is substantial amounts of granule medium, such as the globule, dust granule etc..Target object anti- Penetrate light when air, can be by these medium scatters and absorption, light intensity decays, and leads to the contrast of photo to reduce, Minutia is capped, color serious distortion.Mist, the appearance of haze reduce the visibility of scene, change the color of capture photo Coloured silk, reduces contrast and the definition of photo, and this also brings difficulty for follow-up photo disposal.
Therefore, in order to improve the definition of photo, need to carry out mist elimination process to photo.However, inventor is realizing sending out Find in bright process, photo is being carried out when mist elimination is processed, can seriously consume the operational capability of terminal, if therefore to institute Some photos all carry out mist elimination process, can affect mobile terminal performance.
Content of the invention
The present invention provides a kind of mobile terminal photo processing method and device, to solve the photo mist elimination technology of prior art The technical problem of impact mobile terminal performance.
The embodiment of the present invention provides a kind of mobile terminal photo processing method, including:
Obtain the dark primary passage vector shooting each pixel in the photo obtaining, according to described dark primary passage to gauge Calculate the first absorbance vector;
If described first absorbance vector meets mist elimination condition, mist elimination process is carried out to described photo
Further, if described first absorbance vector meets mist elimination condition, described photo is carried out at mist elimination Reason, specifically includes:
The described first absorbance vector meeting mist elimination condition is converted into the second absorbance vector, saturating using described second Penetrate rate vector and mist elimination process is carried out to described photo.
Further, described first absorbance vector meets mist elimination condition, specifically includes:
The vector element of default absorbance threshold value will be less than as low transmissivity element vector in described first absorbance vector Element, calculates the quantity of described low transmissivity vector element, if described quantity exceedes predetermined number threshold value, judges described first Absorbance vector meets mist elimination condition.
Further, described first absorbance vector meets mist elimination condition, specifically includes:
By in described first absorbance vector, vector element corresponding with the pixel of predeterminable area in photo is as waiting to sentence Disconnected vector element;
The vector element to be judged that will be less than default absorbance threshold value, as low transmissivity vector element, calculates described low Penetrate the quantity of rate vector element, if described quantity exceedes predetermined number threshold value, judge that described first absorbance vector meets Mist elimination condition.
Further, described predeterminable area is the central area of described photo.
Further, if described first absorbance vector meets mist elimination condition, mist elimination is carried out to described photo Process, specifically include:
First absorbance vector is met the described photo upload of mist elimination condition to server, obtains described server to institute State the photo after photo carries out mist elimination process
The embodiment of the present invention provides a kind of mobile terminal picture processing device, including:
Photograph acquisition module, is used for:Obtain the dark primary passage vector shooting each pixel in the photo obtaining, according to institute State dark primary passage vector and calculate the first absorbance vector;
Mist elimination processing module, is used for:If described first absorbance vector meets mist elimination condition, described photo is gone Mist is processed.
Further, described mist elimination processing module, specifically for:
The described first absorbance vector meeting mist elimination condition is converted into the second absorbance vector, saturating using described second Penetrate rate vector and mist elimination process is carried out to described photo.
Further, described first absorbance vector meets mist elimination condition, specifically includes:
The vector element of default absorbance threshold value will be less than as low transmissivity element vector in described first absorbance vector Element, calculates the quantity of described low transmissivity vector element, if described quantity exceedes predetermined number threshold value, judges described first Absorbance vector meets mist elimination condition.
Further, described first absorbance vector meets mist elimination condition, specifically includes:
By in described first absorbance vector, vector element corresponding with the pixel of predeterminable area in photo is as waiting to sentence Disconnected vector element;
The vector element to be judged that will be less than default absorbance threshold value, as low transmissivity vector element, calculates described low Penetrate the quantity of rate vector element, if described quantity exceedes predetermined number threshold value, judge that described first absorbance vector meets Mist elimination condition.
Further, described predeterminable area is the central area of described photo.
Further, described mist elimination processing module, specifically for:
First absorbance vector is met the described photo upload of mist elimination condition to server, obtains described server to institute State the photo after photo carries out mist elimination process.
The embodiment of the present invention selects to photo, only meets and just carries out mist elimination process during mist elimination condition, thus reducing The not serious photo of haze situation is carried out with mist elimination and processes impact mobile terminal performance.
Brief description
A kind of workflow diagram of mobile terminal photo processing method that Fig. 1 provides for one embodiment of the invention;
A kind of workflow diagram of mobile terminal photo processing method that Fig. 2 provides for another embodiment of the present invention;
A kind of workflow diagram of mobile terminal photo processing method that Fig. 3 provides for yet another embodiment of the invention;
A kind of workflow diagram of mobile terminal photo processing method that Fig. 4 provides for further embodiment of this invention;
A kind of apparatus module figure of mobile terminal picture processing device that Fig. 5 provides for further embodiment of this invention;
The hardware configuration of the electronic equipment of the execution real time image processing that Fig. 6 provides for further embodiment of this invention shows It is intended to.
Specific embodiment
The present invention will be further described in detail with specific embodiment below in conjunction with the accompanying drawings.
Embodiment one
A kind of workflow diagram of mobile terminal photo processing method of one embodiment of the invention offer is provided, Including:
Step S101, obtains the dark primary passage vector shooting each pixel in the photo obtaining, according to described dark primary Passage vector calculates the first absorbance vector.
Step S102, if described first absorbance vector meets mist elimination condition, carries out mist elimination process to described photo.
When user uses mobile terminal to shoot photo, step S101 can be triggered, then in step s 102, judge whether Need to carry out mist elimination process.
Specifically, calculate the dark primary passage of each pixel of photo first, obtain dark primary passage vector.Then adopt With calculate atmosphere light signal component value mode determine atmosphere light signal component value A, and calculate first absorbance vector t, the first absorbance to In amount, each vector element is corresponding with each pixel of photo, and i-th vector element of the first absorbance vector t is in photo Ith pixel point the first absorbance.
Wherein, the first absorbance vector can calculate in the following way:
CalculateWherein, tiFor ith pixel point in the first absorbance vector first Absorbance, ωiFor the window centered on ith pixel point in photo,For the c passage of ith pixel point in photo Value, AcFor the value of the c passage of atmosphere light signal component value, c is one of R passage, G passage or channel B, and θ is the first constant, and 0<θ ≤1.
In actual life, just at last under sunny weather, in air or can exist part dust particale (such as we When enjoying the cool under the tree greatly, it may be seen that dust particale floats in atmosphere from the light that leaveves transmission comes).Therefore, exist Also with the presence of faint mist in the picture capturing under actual fair weather.The present embodiment introduces the first constant θ (0<θ≤1), A small amount of mist, haze composition is retained, after mist elimination, photo seems truer in photo after making mist elimination.Preferably, θ=0.95.With When, calculate the first absorbance when, use the value of the dark of atmosphere light signal component value so that the calculating of the first absorbance more For accurate.
Then, step S102 judges whether to need to carry out mist elimination process according to the first absorbance vector.Due to calculating the The operand of one absorbance vector less, therefore can't constitute impact to mobile terminal performance.Therefore, first get first saturating Penetrate rate vector, then, judge whether to need to carry out mist elimination process according to it.The photo of mist elimination process only must be carried out, just right Photo carries out mist elimination process.And for the photo of mist elimination process need not be carried out, can select to show Original Photo piece.
The embodiment of the present invention selects to photo, only meets and just carries out mist elimination process during mist elimination condition, thus reducing The not serious photo of haze situation is carried out with mist elimination and processes impact mobile terminal performance.
Embodiment two
A kind of workflow of mobile terminal photo processing method of another embodiment of the present invention offer is provided Figure, including:
Step S201, obtains the dark primary passage vector shooting each pixel in the photo obtaining, according to described dark primary Passage vector calculates the first absorbance vector.
First absorbance vector can calculate in the following way:
CalculateWherein, tiFor ith pixel point in the first absorbance vector first Absorbance, ωiFor the window centered on ith pixel point in photo,For the c passage of ith pixel point in photo Value, AcFor the value of the c passage of atmosphere light signal component value, c is one of R passage, G passage or channel B, and θ is the first constant, and 0<θ ≤1.
Step S202, will be less than the vector element of default absorbance threshold value as low transmission in described first absorbance vector Rate vector element, calculates the quantity of described low transmissivity vector element, if described quantity exceedes predetermined number threshold value, judges Described first absorbance vector meets mist elimination condition, execution step S203, otherwise execution step S204.
Each vector element of first absorbance vector is corresponding to represent first absorbance, and absorbance t is expressed as currently Ray relative propagates the remaining ratio of light in original scene, and its interval is [0,1].And when t=1 mean fogless or Completely clear, that is, scene reflected light is not affected by any decay;Mean as t=0 to obscure completely or opaque, that is, scene is anti- Penetrate light to be attenuated completely;When 0<t<1 means or partly obscures, that is, scene reflected light is in part attenuation state translucent.Therefore, When the vector element in the first absorbance vector is less than default absorbance threshold value, represent the more mould of the pixel of corresponding photo Paste, if fuzzy pixel is excessive, should carry out mist elimination process.
Step S203, the described first absorbance vector meeting mist elimination condition is converted into the second absorbance vector, uses Described second absorbance vector carries out mist elimination process to described photo.
Specifically, using the conjugate gradient method of interative computation, (L+ λ U) t'=λ t is solved, wherein, L is to have mist The Laplacian Matrix of photo, U is unit matrix, and t is the first absorbance vector, and t ' is the second absorbance vector, and λ is 10-4.Its In often walk the product for conjugate vector p of Laplacian Matrix L and back iteration gained for the intermediate result vector of interative computation Lp, and the product Lp that often step interative computation obtains, as the conjugate vector of next step interative computation, often walks what interative computation obtained I-th vector element of product LpWherein:
And the radius of window is 10, wherein ωi For having the window centered on ith pixel point, p in mist photoiFor the value of i-th vector element of conjugate vector p, OrgiFor There are the rgb value of the ith pixel point of mist photo, ωkFor having the window centered on k-th pixel, Org in mist photomFor having The rgb value of m-th pixel of mist photo, pmFor the value of m-th vector element of conjugate vector p, | ωk| for ωkWindow is wrapped The pixel quantity including, μkFor ωkThe meansigma methodss of the rgb value of the pixel included by window,Conjugate vector p is in ωkIn window Meansigma methodss,kFor ωkThe covariance of the rgb value of the pixel included by window,Normal for the 3rd Amount.
Finally, can adoptObtain fogless photo, wherein JiI-th picture for fog free images The rgb value of vegetarian refreshments, ti' it is i-th vectorial vector element of the second absorbance, ε is the second constant of default very little, generally takes 0.1, to ensure that above formula denominator is not 0.
Step S204, does not carry out mist elimination process to photo.
Operand due to calculating the first absorbance vector is little, therefore can't constitute impact to mobile terminal performance. Therefore, first get the first absorbance vector, then, judge whether to need to carry out mist elimination process according to it.Only must carry out Described first absorbance vector is just refined as the second absorbance vector using stingy nomography, using institute by the photo that mist elimination is processed State the second absorbance vector and mist elimination process is carried out to photo.And for the photo of mist elimination process need not be carried out, can select to show Original Photo piece, or mist elimination process is carried out using the first absorbance vector or is selected described first absorbance by user Vector is refined as the second absorbance vector using stingy nomography, using described second absorbance vector, photo is carried out at mist elimination Reason.
The embodiment of the present invention carries out the first absorbance vector that pretreatment obtains to photo, when the first absorbance vector meets Just carry out mist elimination process during mist elimination condition, move eventually thus reducing and the not serious photo of haze situation being carried out with mist elimination process impact End performance.Meanwhile, the quantity by judging fuzzy pixel determines whether to carry out mist elimination process, thus avoiding photo only few The fuzzy pixel of amount then carries out mist elimination process, reduces the impact to mobile terminal performance.
Embodiment three
A kind of workflow of mobile terminal photo processing method of yet another embodiment of the invention offer is provided Figure, including:
Step S301, obtains the dark primary passage vector shooting each pixel in the photo obtaining, according to described dark primary Passage vector calculates the first absorbance vector.
First absorbance vector can calculate in the following way:
CalculateWherein, tiFor ith pixel point in the first absorbance vector first Absorbance, ωiFor the window centered on ith pixel point in photo,For the c passage of ith pixel point in photo Value, AcFor the value of the c passage of atmosphere light signal component value, c is one of R passage, G passage or channel B, and θ is the first constant, and 0<θ ≤1.
Step S302, in vectorial for described first absorbance, element vector corresponding with the pixel of predeterminable area in photo , as vector element to be judged, the vector element to be judged that will be less than default absorbance threshold value is as low transmissivity element vector for element Element, calculates the quantity of described low transmissivity vector element, if described quantity exceedes predetermined number threshold value, judges described first Absorbance vector meets mist elimination condition, execution step S303, otherwise execution step S304.
In photo, not all region is all important area, occurs fuzzy for some unimportant regions, not Need to carry out mist elimination process.
Specifically, predeterminable area can be configured by user, to meet the needs of user.In addition, described predeterminable area The central area of described photo can also be set as.
Central area refers to the region of a pre-set radius scope centered on the central pixel point of photo, this region Can be border circular areas or square region.In general, user takes pictures and its part interested can be positioned over photo central authorities, Therefore, if photo central area is excessively fuzzy can affect the satisfaction to photo for the user.By entering to the central area of photo Row absorbance judges, so that it is determined that needing to carry out the photo of mist elimination process so that the photo carrying out mist elimination process more meets use Family demand.
Step S303, the described first absorbance vector meeting mist elimination condition is converted into the second absorbance vector, uses Described second absorbance vector carries out mist elimination process to described photo.
Specifically, using the conjugate gradient method of interative computation, (L+ λ U) t'=λ t is solved, wherein, L is to have mist The Laplacian Matrix of photo, U is unit matrix, and t is the first absorbance vector, and t ' is the second absorbance vector, and λ is 10-4.Its In often walk the product for conjugate vector p of Laplacian Matrix L and back iteration gained for the intermediate result vector of interative computation Lp, and the product Lp that often step interative computation obtains, as the conjugate vector of next step interative computation, often walks what interative computation obtained I-th vector element of product LpWherein:
And the radius of window is 10, wherein ωi For having the window centered on ith pixel point, p in mist photoiFor the value of i-th vector element of conjugate vector p, OrgiFor There are the rgb value of the ith pixel point of mist photo, ωkFor having the window centered on k-th pixel, Org in mist photomFor having The rgb value of m-th pixel of mist photo, pmFor the value of m-th vector element of conjugate vector p, | ωk| for ωkWindow is wrapped The pixel quantity including, μkFor ωkThe meansigma methodss of the rgb value of the pixel included by window,For conjugate vector p in ωkWindow In meansigma methodss,kFor ωkThe covariance of the rgb value of the pixel included by window,For the 3rd Constant.
Finally, can adoptObtain fogless photo, wherein JiI-th picture for fog free images The rgb value of vegetarian refreshments, ti' it is i-th vectorial vector element of the second absorbance, ε is the second constant of default very little, generally takes 0.1, to ensure that above formula denominator is not 0.
Step S304, does not carry out mist elimination process to photo.
The embodiment of the present invention carries out the first absorbance vector that pretreatment obtains to photo, when the first absorbance vector meets Just carry out mist elimination process during mist elimination condition, move eventually thus reducing and the not serious photo of haze situation being carried out with mist elimination process impact End performance.Meanwhile, the predeterminable area that the present embodiment delimited according to photo, then the first transmission according to corresponding to predeterminable area Rate judges whether to need to carry out mist elimination process, can avoid the impact to mobile terminal performance further.
Example IV
A kind of workflow of mobile terminal photo processing method of further embodiment of this invention offer is provided Figure, including:
Step S401, obtains the dark primary passage vector shooting each pixel in the photo obtaining, according to described dark primary Passage vector calculates the first absorbance vector.
First absorbance vector can calculate in the following way:
CalculateWherein, tiFor ith pixel point in the first absorbance vector first Absorbance, ωiFor the window centered on ith pixel point in photo,For the c passage of ith pixel point in photo Value, AcFor the value of the c passage of atmosphere light signal component value, c is one of R passage, G passage or channel B, and θ is the first constant, and 0<θ ≤1.
Step S402, if described first absorbance vector meets mist elimination condition, execution step S404, otherwise executes step Rapid S404.
Step S404, the first absorbance vector is met the described photo upload of mist elimination condition to server, obtains described Server carries out the photo after mist elimination process to described photo.
Specifically, can only upload mist photo, by server to have mist photo calculate each pixel of photo secretly former Chrominance channel, obtains dark primary passage vector, calculates the first absorbance vector according to described dark primary passage vector, or upload is shone Piece and the first absorbance vector.Then server adopts the conjugate gradient method of interative computation that (L+ λ U) t'=λ t is solved, Wherein, L is the Laplacian Matrix of photo, and U is unit matrix, and t is the first absorbance vector, and t ' is the second absorbance vector, λ For 10-4.Wherein often the intermediate result vector of step interative computation is the conjugate vector of Laplacian Matrix L and back iteration gained The product Lp of p, and the product Lp that often step interative computation obtains, as the conjugate vector of next step interative computation, often walks interative computation I-th vector element of the product Lp obtainingWherein:
And the radius of window is 10, wherein ωi For the window centered on ith pixel point, p in photoiFor the value of i-th vector element of conjugate vector p, OrgiFor photo Ith pixel point rgb value, ωkFor the window centered on k-th pixel, Org in photomM-th picture for photo The rgb value of vegetarian refreshments, pmFor the value of m-th vector element of conjugate vector p, | ωk| for ωkPixel quantity included by window, μkFor ωkThe meansigma methodss of the rgb value of the pixel included by window,For conjugate vector p in ωkMeansigma methodss in window,kFor ωkThe covariance of the rgb value of the pixel included by window,For the 3rd constant.
Finally, server can adoptObtain fogless photo and return, wherein JiFor fogless figure The rgb value of the ith pixel point of picture, ti' for the second absorbance vector i-th vector element, ε is the second normal of default very little Amount, generally takes 0.1, to ensure that above formula denominator is not 0.
Step S404, does not carry out mist elimination process to photo.
The embodiment of the present invention carries out the first absorbance vector that pretreatment obtains to photo, when the first absorbance vector meets Just carry out mist elimination process during mist elimination condition, move eventually thus reducing and the not serious photo of haze situation being carried out with mist elimination process impact End performance.Meanwhile, the present embodiment will need to carry out the photo upload of mist elimination process to server, carries out mist elimination by server Reason, thus macrooperation amount is transferred to server process, avoids the impact to mobile terminal performance further.
Embodiment five
A kind of apparatus module of mobile terminal picture processing device of further embodiment of this invention offer is provided Figure, including:
Photograph acquisition module 501, is used for:Obtain the dark primary passage vector shooting each pixel in the photo obtaining, root Calculate the first absorbance vector according to described dark primary passage vector;
Mist elimination processing module 502, is used for:If described first absorbance vector meets mist elimination condition, described photo is entered Row mist elimination is processed.
When user uses mobile terminal to shoot photo, photograph acquisition module 501 can be executed, then in mist elimination processing module In 502, judge whether to need to carry out mist elimination process.
Specifically, calculate the dark primary passage of each pixel of photo first, obtain dark primary passage vector.Then adopt Determine atmosphere light signal component value A with existing calculating atmosphere light signal component value mode, and calculate the first absorbance vector t, first is saturating During rate of penetrating is vectorial, each vector element is corresponding with each pixel of photo, and i-th vector element of the first absorbance vector t is First absorbance of the ith pixel point in photo.
Then described first absorbance vector is refined as the second absorbance vector using stingy nomography, using described second Absorbance vector obtains the photo after mist elimination to photo mist elimination.
The embodiment of the present invention selects to photo, only meets and just carries out mist elimination process during mist elimination condition, thus reducing The not serious photo of haze situation is carried out with mist elimination and processes impact mobile terminal performance.
Embodiment six
A kind of mobile terminal picture processing device that further embodiment of this invention provides, including:
Photograph acquisition module, is used for:Obtain the dark primary passage vector shooting each pixel in the photo obtaining, according to institute State dark primary passage vector and calculate the first absorbance vector;
Mist elimination processing module, is used for:The described first absorbance vector meeting mist elimination condition is converted into the second absorbance Vector, carries out mist elimination process using described second absorbance vector to described photo.
Specifically, the vector element of default absorbance threshold value will be less than as low transmission in described first absorbance vector Rate vector element, calculates the quantity of described low transmissivity vector element, if described quantity exceedes predetermined number threshold value, judges Described first absorbance vector meets mist elimination condition, and described first absorbance vector is refined as the second transmission using stingy nomography Rate vector, carries out mist elimination process according to described second absorbance vector to described photo.
The present embodiment determines whether to carry out mist elimination process by the quantity judging fuzzy pixel, thus only avoiding photo There is the pixel obscuring on a small quantity then to carry out mist elimination process, reduce the impact to mobile terminal performance.
Embodiment seven
A kind of mobile terminal picture processing device that further embodiment of this invention provides, including:
Photograph acquisition module, is used for:Obtain the dark primary passage vector shooting each pixel in the photo obtaining, according to institute State dark primary passage vector and calculate the first absorbance vector;
Mist elimination processing module, is used for:The described first absorbance vector meeting mist elimination condition is converted into the second absorbance Vector, carries out mist elimination process using described second absorbance vector to described photo.
Specifically, in will be vectorial for described first absorbance, element vector corresponding with the pixel of predeterminable area in photo , as vector element to be judged, the vector element to be judged that will be less than default absorbance threshold value is as low transmissivity element vector for element Element, calculates the quantity of described low transmissivity vector element, if described quantity exceedes predetermined number threshold value, judges described first Absorbance vector meets mist elimination condition, and described first absorbance vector is refined as the second absorbance vector using stingy nomography, Mist elimination process is carried out to described photo according to described second absorbance vector.
The predeterminable area that the present embodiment delimited according to photo, then the first absorbance according to corresponding to predeterminable area sentence Break the need of carrying out mist elimination process, the impact to mobile terminal performance can be avoided further.
Wherein, described predeterminable area can be the central area of described photo.By carrying out to the central area of photo Rate of penetrating judges, so that it is determined that needing to carry out the photo of mist elimination process so that the photo carrying out mist elimination process more meets user's need Ask.
Embodiment eight
A kind of mobile terminal picture processing device that yet another embodiment of the invention provides, including:
Photograph acquisition module, is used for:Obtain the dark primary passage vector shooting each pixel in the photo obtaining, according to institute State dark primary passage vector and calculate the first absorbance vector;
Mist elimination processing module, is used for:The described first absorbance vector meeting mist elimination condition is converted into the second absorbance Vector, carries out mist elimination process using described second absorbance vector to described photo.
Specifically, the described photo upload the first absorbance vector being met mist elimination condition, to server, obtains described Server carries out the photo after mist elimination process to described photo.
The present embodiment, it would be desirable to carry out the photo upload of mist elimination process to server, carries out mist elimination process by server, from And macrooperation amount is transferred to server process, avoid the impact to mobile terminal performance further.
Ninth embodiment of the invention provides a kind of nonvolatile computer storage media, and described computer-readable storage medium is deposited Contain computer executable instructions, this computer executable instructions can perform the real time imaging in above-mentioned any means embodiment Processing method.
The hardware of the electronic equipment of execution real time image processing of tenth embodiment of the invention offer is provided Structural representation, it mainly includes:One or more processors 610, memorizer 620 etc., in Fig. 6 with a processor 610 be Example.
The electronic equipment of execution real time image processing can also include:Input equipment 630 and output device 640.
Processor 610, memorizer 620, input equipment 630 and display device 640 can pass through bus or other modes Connect, in Fig. 6 taking connected by bus as a example.
Memorizer 620, as a kind of non-volatile computer readable storage medium storing program for executing, can be used for storing non-volatile software journey Real time image processing in sequence, non-volatile computer executable program and module, such as the embodiment of the present application is corresponding Programmed instruction/module, for example, the photograph acquisition module 501 shown in accompanying drawing 5, mist elimination processing module 502.Processor 610 passes through fortune The capable non-volatile software program being stored in memorizer 620, instruction and module, thus execute various function application and number According to process, that is, realize the real time image processing in above-described embodiment.
Memorizer 620 can include storing program area and storage data field, and wherein, storing program area can store operation system Application program required for system, at least one function;Storage data field can store the use institute according to scan picture device Data creating etc..Additionally, memorizer 620 can include high-speed random access memory, non-volatile memories can also be included Device, for example, at least one disk memory, flush memory device or other non-volatile solid state memory parts.In some embodiments In, memorizer 620 is optional to include the memorizer remotely located with respect to processor 610, and these remote memories can pass through net Network connects to the device of execution real time image processing.The example of above-mentioned network includes but is not limited to the Internet, enterprises Net, LAN, mobile radio communication and combinations thereof.
Input equipment 630 can the user of receives input be clicked on, and produces and the user setup of scan picture device And the signal input that function control is relevant.Display device 640 may include the display devices such as display screen.
In one or more of module stores in described memorizer 620, when by one or more of process When device 610 runs, execute the real time image processing in above-mentioned any means embodiment.
The said goods can perform the method that the embodiment of the present application is provided, and possesses the corresponding functional module of execution method and has Beneficial effect.The not ins and outs of detailed description in the present embodiment, can be found in the method that the embodiment of the present application is provided.
The electronic equipment of the embodiment of the present invention exists in a variety of forms, including but not limited to:
(1) mobile communication equipment:The feature of this kind equipment is that possess mobile communication function, and to provide speech, data Communicate as main target.This Terminal Type includes:Smart mobile phone (such as iPhone), multimedia handset, feature mobile phone, and low End mobile phone etc..
(2) super mobile personal computer equipment:This kind equipment belongs to the category of personal computer, has calculating and processes work( Can, typically also possess mobile Internet access characteristic.This Terminal Type includes:PDA, MID and UMPC equipment etc..
(3) portable entertainment device:This kind equipment can show and play content of multimedia.This kind equipment includes:Audio frequency, Video player (such as iPod), handheld device, e-book, and intelligent toy and portable car-mounted navigator.
(4) server:There is provided the equipment of the service of calculating, it is total that the composition of server includes processor, hard disk, internal memory, system Line etc., server is similar with general computer architecture, but due to needing to provide highly reliable service, is therefore processing energy The aspects such as power, stability, reliability, safety, extensibility, manageability require higher.
(5) other have the electronic installation of data interaction function.Additionally, the logical order in above-mentioned memorizer 602 can Using by the form of SFU software functional unit realize and as independent production marketing or use when, a computer can be stored in In read/write memory medium.Based on such understanding, technical scheme substantially makes tribute to prior art in other words Partly being embodied in the form of software product of the part offered or this technical scheme, this computer software product stores In a storage medium, including some instructions with so that mobile terminal (can be personal computer, server, or Person's network equipment etc.) execution each embodiment methods described of the present invention all or part of step.And aforesaid storage medium bag Include:USB flash disk, portable hard drive, read only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can be with the medium of store program codes.
Device embodiment described above is only that schematically the wherein said unit illustrating as separating component can To be or to may not be physically separate, as the part that unit shows can be or may not be physics list Unit, you can with positioned at a place, or can also be distributed on multiple NEs.Can be selected it according to the actual needs In the purpose to realize embodiment of the present invention scheme for some or all of module.Those of ordinary skill in the art are not paying wound In the case of the work of the property made, you can to understand and to implement.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can Mode by software plus necessary general hardware platform to be realized naturally it is also possible to pass through hardware.Based on such understanding, on That states that technical scheme substantially contributes to prior art in other words partly can be embodied in the form of software product, should Computer software product can store in a computer-readable storage medium, such as ROM/RAM, magnetic disc, CD etc., including some fingers Order is with so that a computer equipment (can be personal computer, server, or network equipment etc.) executes each enforcement Example or some partly described methods of embodiment.
Finally it should be noted that:Above example is only in order to illustrating the technical scheme of the embodiment of the present invention, rather than it is limited System;Although being described in detail to the embodiment of the present invention with reference to the foregoing embodiments, those of ordinary skill in the art should Understand:It still can be modified to the technical scheme described in foregoing embodiments, or to wherein some technical characteristics Carry out equivalent;And these modifications or replacement, do not make the essence of appropriate technical solution depart from various embodiments of the present invention skill The spirit and scope of art scheme.

Claims (12)

1. a kind of mobile terminal photo processing method is it is characterised in that include:
Obtain the dark primary passage vector shooting each pixel in the photo obtaining, calculated according to described dark primary passage vector First absorbance vector;
If described first absorbance vector meets mist elimination condition, mist elimination process is carried out to described photo.
If 2. mobile terminal photo processing method according to claim 1 is it is characterised in that described first transmission Rate vector meets mist elimination condition, carries out mist elimination process to described photo, specifically includes:
The described first absorbance vector meeting mist elimination condition is converted into the second absorbance vector, using described second absorbance Vector carries out mist elimination process to described photo.
3. mobile terminal photo processing method according to claim 1 is it is characterised in that described first absorbance vector accords with Close mist elimination condition, specifically include:
, count in described first absorbance vector less than presetting the vector element of absorbance threshold value as low transmissivity vector element Calculate the quantity of described low transmissivity vector element, if described quantity exceedes predetermined number threshold value, judge described first transmission Rate vector meets mist elimination condition.
4. mobile terminal photo processing method according to claim 1 is it is characterised in that described first absorbance vector accords with Close mist elimination condition, specifically include:
By described first absorbance vector in, vector element corresponding with the pixel of predeterminable area in photo as wait to judge to Secondary element;
The vector element to be judged that will be less than default absorbance threshold value, as low transmissivity vector element, calculates described low transmissivity The quantity of vector element, if described quantity exceedes predetermined number threshold value, judges that described first absorbance vector meets mist elimination Condition.
5. mobile terminal photo processing method according to claim 4 is it is characterised in that described predeterminable area is described photograph The central area of piece.
6. if the mobile terminal photo processing method according to any one of Claims 1 to 5 is it is characterised in that described institute State the first absorbance vector and meet mist elimination condition, mist elimination process is carried out to described photo, specifically includes:
First absorbance vector is met the described photo upload of mist elimination condition to server, obtains described server to described photograph Piece carries out the photo after mist elimination process.
7. a kind of mobile terminal picture processing device is it is characterised in that include:
Photograph acquisition module, is used for:Obtain the dark primary passage vector shooting each pixel in the photo obtaining, according to described dark Primary channel vector calculates the first absorbance vector;
Mist elimination processing module, is used for:If described first absorbance vector meets mist elimination condition, described photo is carried out at mist elimination Reason.
8. mobile terminal picture processing device according to claim 7, it is characterised in that described mist elimination processing module, has Body is used for:
The described first absorbance vector meeting mist elimination condition is converted into the second absorbance vector, using described second absorbance Vector carries out mist elimination process to described photo.
9. mobile terminal picture processing device according to claim 8 is it is characterised in that described first absorbance vector accords with Close mist elimination condition, specifically include:
, count in described first absorbance vector less than presetting the vector element of absorbance threshold value as low transmissivity vector element Calculate the quantity of described low transmissivity vector element, if described quantity exceedes predetermined number threshold value, judge described first transmission Rate vector meets mist elimination condition.
10. mobile terminal picture processing device according to claim 8 is it is characterised in that described first absorbance is vectorial Meet mist elimination condition, specifically include:
By described first absorbance vector in, vector element corresponding with the pixel of predeterminable area in photo as wait to judge to Secondary element;
The vector element to be judged that will be less than default absorbance threshold value, as low transmissivity vector element, calculates described low transmissivity The quantity of vector element, if described quantity exceedes predetermined number threshold value, judges that described first absorbance vector meets mist elimination Condition.
11. mobile terminal picture processing devices according to claim 10 are it is characterised in that described predeterminable area is described The central area of photo.
12. mobile terminal picture processing devices according to any one of claim 7~11 are it is characterised in that described mist elimination Processing module, specifically for:
First absorbance vector is met the described photo upload of mist elimination condition to server, obtains described server to described photograph Piece carries out the photo after mist elimination process.
CN201610909225.8A 2016-10-18 2016-10-18 Mobile terminal photograph processing method and device Pending CN106447639A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610909225.8A CN106447639A (en) 2016-10-18 2016-10-18 Mobile terminal photograph processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610909225.8A CN106447639A (en) 2016-10-18 2016-10-18 Mobile terminal photograph processing method and device

Publications (1)

Publication Number Publication Date
CN106447639A true CN106447639A (en) 2017-02-22

Family

ID=58175459

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610909225.8A Pending CN106447639A (en) 2016-10-18 2016-10-18 Mobile terminal photograph processing method and device

Country Status (1)

Country Link
CN (1) CN106447639A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107481199A (en) * 2017-07-27 2017-12-15 广东欧珀移动通信有限公司 Image defogging processing method, device, storage medium and mobile terminal
CN115225810A (en) * 2022-05-24 2022-10-21 浙江大华技术股份有限公司 Image pickup mode switching method, image pickup device, and computer-readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102202163A (en) * 2011-05-13 2011-09-28 成都西图科技有限公司 Adaptive enhancement method and device for monitored video
CN102411774A (en) * 2011-08-08 2012-04-11 安防科技(中国)有限公司 Processing method, device and system based on single-image defogging
CN102654914A (en) * 2011-03-04 2012-09-05 富士通株式会社 Method for accelerating image haze removal by utilizing image processing unit
CN103440117A (en) * 2013-08-29 2013-12-11 广东威创视讯科技股份有限公司 Method and system for video image processing
CN104077750A (en) * 2014-06-18 2014-10-01 深圳市金立通信设备有限公司 Image processing method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102654914A (en) * 2011-03-04 2012-09-05 富士通株式会社 Method for accelerating image haze removal by utilizing image processing unit
CN102202163A (en) * 2011-05-13 2011-09-28 成都西图科技有限公司 Adaptive enhancement method and device for monitored video
CN102411774A (en) * 2011-08-08 2012-04-11 安防科技(中国)有限公司 Processing method, device and system based on single-image defogging
CN103440117A (en) * 2013-08-29 2013-12-11 广东威创视讯科技股份有限公司 Method and system for video image processing
CN104077750A (en) * 2014-06-18 2014-10-01 深圳市金立通信设备有限公司 Image processing method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107481199A (en) * 2017-07-27 2017-12-15 广东欧珀移动通信有限公司 Image defogging processing method, device, storage medium and mobile terminal
CN115225810A (en) * 2022-05-24 2022-10-21 浙江大华技术股份有限公司 Image pickup mode switching method, image pickup device, and computer-readable storage medium

Similar Documents

Publication Publication Date Title
CN110610463A (en) Image enhancement method and device
CN107247510A (en) A kind of social contact method based on augmented reality, terminal, server and system
CN105809647A (en) Automatic defogging photographing method, device and equipment
CN111160175A (en) Intelligent pedestrian violation behavior management method and related product
CN108021923A (en) A kind of image characteristic extracting method for deep neural network
CN108513069B (en) Image processing method, image processing device, storage medium and electronic equipment
CN109409210B (en) Face detection method and system based on SSD (solid State disk) framework
WO2023005827A1 (en) Exposure compensation method and apparatus, and electronic device
CN107909638A (en) Rendering intent, medium, system and the electronic equipment of dummy object
CN106791466A (en) Shoot light compensation method and device
CN106954051A (en) A kind of image processing method and mobile terminal
CN106485682A (en) A kind of real time image processing and device
CN110838088B (en) Multi-frame noise reduction method and device based on deep learning and terminal equipment
CN108596070A (en) Character recognition method, device, storage medium, program product and electronic equipment
CN104869309A (en) Shooting method and shooting apparatus
CN106447639A (en) Mobile terminal photograph processing method and device
CN107886039A (en) Parking system panoramic view generation method and device
CN114187515A (en) Image segmentation method and image segmentation device
CN106570437A (en) Two-dimensional code scanning processing method and mobile terminal thereof
WO2024061194A1 (en) Sample label acquisition method and lens failure detection model training method
CN116630354B (en) Video matting method, electronic device, storage medium and program product
CN112446845A (en) Map construction method, map construction device, SLAM system, and storage medium
CN112511890A (en) Video image processing method and device and electronic equipment
CN107464225A (en) Image processing method, device, computer-readable recording medium and mobile terminal
TWI698757B (en) Smart engine with dynamic profiles and method of operating smart engine

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20170222