CN107277372A - Focusing method, device, computer-readable recording medium and mobile terminal - Google Patents
Focusing method, device, computer-readable recording medium and mobile terminal Download PDFInfo
- Publication number
- CN107277372A CN107277372A CN201710626268.XA CN201710626268A CN107277372A CN 107277372 A CN107277372 A CN 107277372A CN 201710626268 A CN201710626268 A CN 201710626268A CN 107277372 A CN107277372 A CN 107277372A
- Authority
- CN
- China
- Prior art keywords
- focusing
- physical distance
- pending image
- image
- information
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/67—Focus control based on electronic image sensor signals
Abstract
The present invention relates to a kind of focusing method, device, computer-readable recording medium and mobile terminal.Methods described includes:Obtain the corresponding pending image of present filming scene;The corresponding mist concentration parameter of the pending image is obtained according to parameter preset model, and according to the corresponding physical distance information of the pending image of mistiness degree parameter acquiring;The focusing area of present filming scene according to the physical distance acquisition of information.Above-mentioned focusing method, device, computer-readable recording medium and mobile terminal, in the not high photographed scene of visibility, also can rapidly and accurately find focusing area, improve the efficiency of photograph taking.
Description
Technical field
The present invention relates to field of computer technology, more particularly to a kind of focusing method, device, computer-readable storage medium
Matter and mobile terminal.
Background technology
It is essential work and entertainment selection in people's life to take pictures, but the scene taken pictures is often complicated and changeable
's.For example, light is often more dim in indoor environment, outdoor environment light is often brighter.But the day of outdoor environment
Gas is even more to change unpredictably, and for the different weather such as fine day, sleet, dense fog, the demand and processing mode when taking pictures are all different.
Generally require first to find a focusing in shooting process and shot, the focusing can have in the picture clearly into
Picture, generally can manually be focused, and can also automatically be focused by filming apparatus.In bright and clear, ring
In the case that border is bright, filming apparatus can soon find focusing accurately, then be shot again.However, in rather dark, sky
When being shot in the relatively low scene of gas visibility, filming apparatus is generally difficult to find the focus of shooting.
The content of the invention
The embodiment of the present invention provides a kind of focusing method, device, computer-readable recording medium and mobile terminal, Ke Yiti
The efficiency that hi-vision is shot.
A kind of focusing method, methods described includes:
Obtain the corresponding pending image of present filming scene;
The corresponding mist concentration parameter of the pending image is obtained according to parameter preset model, and joined according to the mistiness degree
Number obtains the corresponding physical distance information of pending image;
The focusing area of present filming scene according to the physical distance acquisition of information.
A kind of focusing mechanism, described device includes:
Image collection module, for obtaining the corresponding pending image of present filming scene;
Data obtaining module, for obtaining the corresponding mist concentration parameter of the pending image according to parameter preset model,
And according to the corresponding physical distance information of the pending image of mistiness degree parameter acquiring;
Focusing module, the focusing area for the present filming scene according to the physical distance acquisition of information.
A kind of computer-readable recording medium, is stored thereon with computer program, and the program is realized when being executed by processor
Following steps:
Obtain the corresponding pending image of present filming scene;
The corresponding mist concentration parameter of the pending image is obtained according to parameter preset model, and joined according to the mistiness degree
Number obtains the corresponding physical distance information of pending image;
The focusing area of present filming scene according to the physical distance acquisition of information.
A kind of mobile terminal, including memory, processor and storage are on a memory and the meter that can run on a processor
Calculation machine program, following steps are realized during the computing device described program:
Obtain the corresponding pending image of present filming scene;
The corresponding mist concentration parameter of the pending image is obtained according to parameter preset model, and joined according to the mistiness degree
Number obtains the corresponding physical distance information of pending image;
The focusing area of present filming scene according to the physical distance acquisition of information.
Focusing method provided in an embodiment of the present invention, device, computer-readable recording medium and mobile terminal, were shooting
The corresponding pending image of present filming scene is obtained in journey, the mist concentration parameter in pending image is obtained, and according to mistiness
The corresponding physical distance information of parameter acquiring is spent, then further according to the focusing area of physical distance acquisition of information present filming scene
Domain.Accordingly even when in the photographed scene that visibility is told somebody what one's real intentions are, also can rapidly and accurately find focusing area, photo bat is improved
The efficiency taken the photograph.
Brief description of the drawings
Fig. 1 is the internal structure schematic diagram of electronic equipment in one embodiment;
Fig. 2 is the flow chart of focusing method in one embodiment;
Fig. 3 is the flow chart of focusing method in another embodiment;
Fig. 4 is the display schematic diagram of focusing area in one embodiment;
Fig. 5 is the schematic diagram of focusing principle in one embodiment;
Fig. 6 is the structural representation of Focusing module in one embodiment;
Fig. 7 is the schematic diagram of image processing circuit in one embodiment.
Embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and Examples
The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and
It is not used in the restriction present invention.
It is appreciated that term " first " used in the present invention, " second " etc. can be used to describe various elements herein,
But these elements should not be limited by these terms.These terms are only used for distinguishing first element and another element.Citing comes
Say, without departing from the scope of the invention, the first client can be referred to as the second client, and similarly, can be by
Second client is referred to as the first client.First client and the second client both clients, but it is not same visitor
Family end.
Fig. 1 is the internal structure schematic diagram of electronic equipment in one embodiment.As shown in figure 1, the electronic equipment includes leading to
Cross processor, non-volatile memory medium, built-in storage, display screen and the input unit of system bus connection.Wherein, electronics is set
Standby non-volatile memory medium is stored with operating system and computer-readable instruction.The computer-readable instruction is held by processor
To realize a kind of focusing method during row.The processor, which is used to provide, to be calculated and control ability, supports the operation of whole electronic equipment.
Built-in storage in electronic equipment provides environment for the operation of the computer-readable instruction in non-volatile memory medium.Electronics is set
Standby display screen can be LCDs or electric ink display screen etc., and input unit can be touching of being covered on display screen
Touch the button set on layer or electronic equipment casing, trace ball or Trackpad or external keyboard, touch-control
Plate or mouse etc..Wherein, display screen is displayed for the image shot, and input unit can be used for user's input photographing instruction
Deng.The electronic equipment can be mobile phone, tablet personal computer or personal digital assistant or Wearable etc..Those skilled in the art
It is appreciated that the structure shown in Fig. 1, is only the block diagram of the part-structure related to application scheme, do not constitute to this
The restriction for the electronic equipment that application scheme is applied thereon, specific electronic equipment can include more more or more than shown in figure
Few part, either combines some parts or is arranged with different parts.
Fig. 2 is the flow chart of focusing method in one embodiment.As shown in Fig. 2 the focusing method includes step 202 to step
Rapid 206.Wherein:
Step 202, the corresponding pending image of present filming scene is obtained.
In the embodiment that the present invention is provided, pending image refers to what is shot for present filming scene, for positioning
The image of focusing area in present filming scene.It is understood that the pending image can pass through image collecting device
It is acquired.Image collecting device refers to the device for gathering image, and such as image collecting device can be camera, mobile terminal
On the device such as camera, video camera.
For example, when shooting photo by mobile terminal, user needs to input photographing instruction by mobile terminal, mobile
Terminal shoots photo after the photographing instruction is detected by camera.Wherein, photographing instruction can be mobile terminal
Physical button or contact action are triggered or phonetic order etc..Before photo is shot, the camera of mobile terminal has
Mobile terminal can find a focusing area in one focus process, the focus process.Found pair in the camera of mobile terminal
After burnt region, then receive the photographing instruction progress photograph taking of user's input.
Step 204, the corresponding mist concentration parameter of pending image is obtained according to parameter preset model, and joined according to mistiness degree
Number obtains the corresponding physical distance information of pending image.
In the embodiment that the present invention is provided, mist concentration parameter refers to represent the mist of scene shown in pending image
The parameter of concentration, parameter preset model refers to obtain the data model of the mist concentration parameter in pending image, according to pre-
Setting parameter model can obtain the mist concentration parameter in pending image.Furthermore it is also possible to will be pending according to mist concentration parameter
Image is handled, and makes pending image restoring into original fog free images.
Physical distance information refers to represent in pending image shown object to the physical distance of image collecting device
Relevant information.It can be included according to the corresponding physical distance information of the pending image of mistiness degree parameter acquiring:According to mistiness degree
Parameter and mist concentration parameter and the corresponding relation of physical distance information, obtain the physical distance information in pending image.
Usually, the corresponding relation of mist concentration parameter and physical distance information can be pre-established, it is to be understood that should
Corresponding relation can be, but not limited to be linear functional relation, nonlinear function etc..After getting mist concentration parameter, according to
Mist concentration parameter and the corresponding relation can just obtain the physical distance information of pending image.
Step 206, according to the focusing area of physical distance acquisition of information present filming scene.
In the embodiment that the present invention is provided, focusing area refers to the light of photographed scene during photo is shot
Convergent point, the corresponding imaging region of the focusing area is most clearly generally after being imaged by image collecting device.Usually,
Image collecting device can change lens to the distance of imaging plane by adjusting the position of lens, so that focus function is realized,
Different objects are made to be imaged in imaging plane.Wherein, lens refer to the device for being converged the light of photographed scene,
Imaging plane refers to the device that photographed scene is carried out to imaging display.
It is understood that after getting physical distance information in step 204, the physical distance information can embody
Physical distance in photographed scene between different objects and image collecting device, is then obtained by the physical distance and shoots field again
Focusing area in scape, focusing is realized by changing the position of lens.
Specifically, can by the corresponding region of physical distance information in pending image in the range of pre-determined distance, as
The focusing area of present filming scene.Wherein, pre-determined distance scope refers to the span of physical distance information set in advance.
For example, pre-determined distance scope can be scope of the physical distance information within 10 to 15 meters.
Because pending image is made up of several pixels, each pixel has corresponding mist concentration parameter, so as to obtain
The corresponding physical distance information of each pixel.Therefore, it is possible to judge that whether the physical distance information of each pixel is in preset range
It is interior, if the physical distance information of some pixel regard this pixel as the picture in focusing area in the range of pre-determined distance
Element.
In one of the embodiments, the physical distance information and corresponding quantity in pending image are counted, according to thing
Manage the focusing area that the corresponding quantity of range information obtains the present filming scene.Because each pixel has corresponding thing
Range information is managed, therefore obtains the corresponding physical distance information of each pixel, can be with the corresponding number of Statistical Physics range information
Amount.
Specifically, if the quantity of the physical distance information of statistics is predetermined number, by corresponding to the physical distance information
Region as present filming scene focusing area.For example, the region corresponding to the most physical distance information of quantity is made
Focusing area for present filming scene or using the region corresponding to the physical distance information of minimum number as current
The focusing area of photographed scene.
In one embodiment, can be further according to focusing area it is determined that after the focusing area of present filming scene
The physical distance information in domain determines an object distance, then corresponding apart according to this pair of object distance acquisition, further according to this at a distance of regulation
The distance of lens and imaging plane, to gather the corresponding shooting image of present filming scene.Wherein, object distance just refers to object of focusing
To the distance of the optical center of lens of image collecting device, apart refer to the optical center of lens of image collecting device to imaging plane away from
From.
Above-mentioned focusing method, obtains corresponding pending image in shooting process, and current clap is obtained in shooting process
The corresponding pending image of scene is taken the photograph, the mist concentration parameter in pending image is obtained, and according to mistiness degree parameter acquiring correspondence
Physical distance information, then further according to the focusing area of physical distance acquisition of information present filming scene.Accordingly even when in energy
In the photographed scene that degree of opinion is told somebody what one's real intentions are, focusing area also can be rapidly and accurately found, the efficiency of photograph taking is improved.
Fig. 3 is the flow chart of focusing method in another embodiment.As shown in figure 3, the focusing method include step 302 to
Step 308.Wherein:
Step 302, the corresponding pending image of present filming scene is obtained.
In one embodiment, when being shot by image collecting device to present filming scene, image collector
Put and ceaselessly moving, and the picture of present filming scene is often shown on the display screen of image collecting device.That is,
The image of image collecting device meeting timing acquiring present filming scene, and the image of collection is shown on a display screen.
In the embodiment that the present invention is provided, preset time can be spaced and obtain once pending image, then passed through again
The pending image obtained finds the focusing area of present filming scene.It is understood that being obtained in image collecting device timing
During the image for taking present filming scene, can using each image of acquisition all as pending image, can also between
Pending image is obtained again every certain time.For example, image collecting device can be at interval of the present filming scene of collection in 0.5 second
Corresponding image, and the image of collection is shown on a display screen, during these images are obtained, we can be with every
Image of a frame or multiple frame capture is spaced as pending image.
In the embodiment that the present invention is provided, the first image collecting device and the second image collecting device can be included, this
Two image collecting devices are shot for same photographed scene.Wherein, the pending image of the first image acquisition device,
So as to obtain focusing area by pending image;Second image collecting device carries out focusing and shooting figure according to the focusing area
Picture.
Step 304, the corresponding mist concentration parameter of pending image is obtained according to parameter preset model, and joined according to mistiness degree
Number obtains the corresponding physical distance information of pending image.
It is understood that in dense fog, sleet or haze weather, being often affected, making when shooting out of doors
Shoot the image come especially unintelligible, do not see the object in image.Meanwhile, it is also not allow during photo is shot
Easily find focusing area.
Further, pending image is made up of several pixels, and each pixel has corresponding gray value, simultaneously
Each pixel has corresponding RGB triple channels value, for representing the colouring information of pixel in image.Wherein, RGB triple channels value
Refer to represent the value of three color component sizes of red, green, blue in pending image.Pending figure is obtained according to parameter preset model
The mist concentration parameter of each pixel as in, defogging can be carried out according to mist concentration parameter to each pixel in pending image
Processing, and according to the corresponding physical distance information of each pixel in the pending image of mistiness degree parameter acquiring.
For example, defogging processing is carried out to pending image by dark primary priori defogging algorithm, it is first based on dark primary
The step of checking method carries out defogging to pending image includes:
Obtain atmospherical scattering model
I (x)=J (x) t (x)+A (1-t (x))
Wherein, I (x) is the image information observed, and J (x) is the nothing after the radiation information from target, that is, recovery
Mist image, x represents the locus of a certain pixel in image, and t (x) is transmissivity, and A is the air light value of infinite point.Air
Light value can be calculated by the gray-scale map of pending image and obtain, also pass through pair of air light value and weather condition and current time
Answer Relation acquisition.Under normal conditions, the pixel that can select maximum intensity in image is used as the estimation of air light value.Assuming that A is
There is channel value very low passage in given value, pending image in tri- passages of RGB, and the channel value then may be used close to zero
To obtain:
Can get transmissivity by above formula is:
WhereinAs image containing mist can introduce one 0 to 1 in the dark primary value in x fields
Between weights ω transmissivity is adjusted, then the i.e. transmissivity expression formula of mist concentration parameter finally asked for is as follows:
In order to ensure defog effect, a threshold value t can be set to transmissivity0, then the light intensity of scenery when fogless
For:
Usually, transmissivity is bigger in above formula, represents that the mistiness degree in pending image is smaller, pending image with it is original
Fog free images it is smaller closer to the degree of, that is to say, that defogging processing;On the contrary, then illustrating that the mistiness degree in pending image is got over
Greatly, the degree of defogging processing is bigger.
Transmissivity t (x) and physical distance information d relational expression is as follows:
D=-Clnt (x)
Wherein, C is a constant, and corresponding physics can be obtained according to the transmissivity t (x) in pending image by above formula
Range information d.
Step 306, pending image is divided into by multiple shooting areas according to physical distance information, by each shooting area
Focusing shooting is carried out as the focusing area of present filming scene.
In the embodiment that the present invention is provided, each pixel in pending image has corresponding physical distance to believe
Breath, and the distance of the object distance image collecting device in the pending image of physical distance message reflection.Therefore, pending figure
Physical distance information as in is consecutive variations in certain areas, and some regions are sudden transformations.
Specifically, each pixel in pending image can be traveled through, the corresponding physical distance of each pixel is believed
Breath physical distance information corresponding with the pixel of adjacent area is compared acquisition difference, and this is thought if difference exceedes threshold value
Pixel physical distance information corresponding with the pixel of adjacent area is sudden transformation, and this is thought if difference is less than threshold value
The physical distance information of pixel and the pixel of adjacent area is consecutive variations, and the pixel of physical distance information consecutive variations is drawn
Divide in a shooting area.
In another embodiment, physical distance information directly can be divided into different grades according to value, will be same
The corresponding pixel of physical distance information of one grade is divided into a shooting area.The shooting area so divided may have many
It is individual, then it can carry out focusing shooting successively using ready-portioned each shooting area as the focusing area of present filming scene.
For example, pixel of the physical distance information in the range of 0 to 10 meters is divided in into same region, physical distance is believed
Cease the pixel more than 10 meters and be divided in same region, then determined that two shooting areas, shoot area by two respectively
Domain carries out focusing shooting respectively as focusing area, obtains two shooting images.
Fig. 4 is the display schematic diagram of focusing area in one embodiment.As shown in figure 4, showing a focusing area in figure
Domain 402, the focusing area 402 is the physical distance acquisition of information in pending image, after determining focusing area,
Relevant position in current scene is marked by rectangle frame.
Further, it is determined that after focusing area in pending image, can be, but not limited to obtain focusing area
The most physical distance information of middle quantity as object distance, then according to the object distance obtain apart, further according at a distance of regulation lens with
The distance of imaging plane, to gather shooting image.
Fig. 5 is the schematic diagram of focusing principle in one embodiment.As shown in figure 5, image collecting device can include imaging
Plane 502 and lens 504, the rays pass through lens 504 of object 508 are converged to be imaged in imaging 502, formation clearly into
As 506.Object 508 reaches that the distance of the photocentre of lens 504 is object distance, and the distance of lens 504 to imaging plane 502 is apart.
Above-mentioned focusing method, obtains the corresponding pending image of present filming scene, obtains pending in shooting process
Mist concentration parameter in image, and according to the corresponding physical distance information of mistiness degree parameter acquiring, then further according to physical distance
The focusing area of acquisition of information present filming scene.Accordingly even when in the photographed scene that visibility is told somebody what one's real intentions are, also can be quickly accurate
Focusing area really is found, the efficiency of photograph taking is improved.
Fig. 6 is the structural representation of Focusing module in one embodiment.As shown in fig. 6, the Focusing module 600 includes image
Acquisition module 602, data obtaining module 604 and Focusing module 606.Wherein:
Image collection module 602, for obtaining the corresponding pending image of present filming scene.
Data obtaining module 604, joins for obtaining the corresponding mistiness degree of the pending image according to parameter preset model
Number, and according to the corresponding physical distance information of the pending image of mistiness degree parameter acquiring.
Focusing module 606, the focusing area for the present filming scene according to the physical distance acquisition of information.
Above-mentioned focusing mechanism, obtains the corresponding pending image of present filming scene, obtains pending in shooting process
Mist concentration parameter in image, and according to the corresponding physical distance information of mistiness degree parameter acquiring, then further according to physical distance
The focusing area of acquisition of information present filming scene.Accordingly even when in the photographed scene that visibility is told somebody what one's real intentions are, also can be quickly accurate
Focusing area really is found, the efficiency of photograph taking is improved.
In one of the embodiments, Focusing module 606 is additionally operable in the pending image in the range of pre-determined distance
The corresponding region of physical distance information, be used as the focusing area of present filming scene.
In one embodiment, Focusing module 606 is additionally operable to the pending image according to the physical distance information
Multiple shooting areas are divided into, the focusing area of each shooting area as present filming scene is subjected to focusing shooting.
In the embodiment that provides of the present invention, Focusing module 606 be additionally operable to count physics in the pending image away from
From information and corresponding quantity, the focusing area of the present filming scene is obtained according to the corresponding quantity of the physical distance information
Domain.
The division of modules is only used for for example, in other embodiments, can fill focusing in above-mentioned focusing mechanism
Put and be divided into different modules as required, to complete all or part of function of above-mentioned focusing mechanism.
The embodiment of the present invention additionally provides a kind of computer-readable recording medium.A kind of computer-readable recording medium, its
On be stored with computer program, the program realizes following steps when being executed by processor:
Obtain the corresponding pending image of present filming scene;
The corresponding mist concentration parameter of the pending image is obtained according to parameter preset model, and joined according to the mistiness degree
Number obtains the corresponding physical distance information of pending image;
The focusing area of present filming scene according to the physical distance acquisition of information.
In one embodiment, the current shooting according to the physical distance acquisition of information being executed by processor
The focusing area of scene includes:
By the corresponding region of physical distance information in the pending image in the range of pre-determined distance, current shooting is used as
The focusing area of scene.
In one of the embodiments, be executed by processor it is described obtained according to the physical distance information field it is described ought
The focusing area of preceding photographed scene includes:
The pending image is divided into by multiple shooting areas according to the physical distance information, by each shooting area
Focusing shooting is carried out as the focusing area of present filming scene.
In another embodiment, what is be executed by processor described currently claps according to the physical distance acquisition of information
Taking the photograph the focusing area of scene includes:
The physical distance information and corresponding quantity in the pending image are counted, according to the physical distance information pair
The quantity answered obtains the focusing area of the present filming scene.
The embodiment of the present invention also provides a kind of computer equipment.Above computer equipment includes image processing circuit, figure
As process circuit can be realized using hardware and/or component software, it may include define ISP (Image Signal
Processing, picture signal processing) pipeline various processing units.Fig. 7 is that image processing circuit shows in one embodiment
It is intended to.As shown in fig. 7, for purposes of illustration only, only showing the various aspects of the image processing techniques related to the embodiment of the present invention.
As shown in fig. 7, image processing circuit includes ISP processors 740 and control logic device 750.Imaging device 710 is caught
View data handled first by ISP processors 740, ISP processors 740 view data is analyzed with catch can be used for it is true
The image statistics of one or more control parameters of fixed and/or imaging device 710.Imaging device 710 may include there is one
The camera of individual or multiple lens 712 and imaging sensor 714.Imaging sensor 714 may include colour filter array (such as
Bayer filters), imaging sensor 714 can obtain the luminous intensity caught with each imaging pixel of imaging sensor 714 and wavelength
Information, and the one group of raw image data that can be handled by ISP processors 740 is provided.Sensor 720 can be connect based on sensor 720
Raw image data is supplied to ISP processors 740 by mouth type.The interface of sensor 720 can utilize SMIA (Standard
Mobile Imaging Architecture, Standard Mobile Imager framework) interface, other serial or parallel camera interfaces or
The combination of above-mentioned interface.
ISP processors 740 handle raw image data pixel by pixel in various formats.For example, each image pixel can
Bit depth with 8,10,12 or 14 bits, ISP processors 740 can be carried out at one or more images to raw image data
Reason operation, statistical information of the collection on view data.Wherein, image processing operations can be by identical or different bit depth precision
Carry out.
ISP processors 740 can also receive pixel data from video memory 730.For example, from the interface of sensor 720 by original
The raw pixel data that beginning pixel data is sent in video memory 730, video memory 730 is available to ISP processors
740 is for processing.Video memory 730 can be independent in a part, storage device or the electronic equipment of storage arrangement
Private memory, and may include DMA (Direct Memory Access, direct direct memory access (DMA)) feature.
When receiving the raw image data from the interface of sensor 720 or from video memory 730, ISP processing
Device 740 can carry out one or more image processing operations, such as time-domain filtering.View data after processing, which can be transmitted, gives image storage
Device 730, to carry out other processing before shown.ISP processors 740 can also be from the reception processing of video memory 730
Data, the image real time transfer in original domain and in RGB and YCbCr color spaces is carried out to above-mentioned processing data.After processing
View data may be output to display 780, for user watch and/or by graphics engine or GPU (Graphics
Processing Unit, graphics processor) further processing.In addition, the output of ISP processors 740 also can be transmitted and be deposited to image
Reservoir 730, and display 780 can read view data from video memory 730.In one embodiment, video memory 730
It can be configured as realizing one or more frame buffers.In addition, the output of ISP processors 740 can be transmitted to encoder/decoder
770, so as to encoding/decoding image data.The view data of coding can be saved, and be shown in the equipment of display 780 it
Preceding decompression.
View data after ISP processing can be transmitted to defogging module 760, to carry out defogging to image before shown
Processing.Defogging module 760, which carries out defogging processing to view data, may include to obtain the pending figure according to parameter preset model
Defogging processing etc. is carried out to pending image as corresponding mist concentration parameter, and according to mist concentration parameter.Wherein, defogging module
760 can be CPU (Central Processing Unit, central processing unit) or GPU (Graphics in mobile terminal
Processing Unit, graphics processor) etc..Defogging module 760 carries out view data after defogging processing, can be by defogging
View data after reason is sent to encoder/decoder 770, so as to encoding/decoding image data.The view data of coding can quilt
Preserve, and in display and the equipment of display 780 before decompress.It is understood that the image after the processing of defogging module 760
Data can directly be issued display 780 and shown without encoder/decoder 770.After the processing of ISP processors 740
View data can also first pass through encoder/decoder 770 and handle, and then be handled again by defogging module 760.
The statistics that ISP processors 740 are determined, which can be transmitted, gives the unit of control logic device 750.For example, statistics can be wrapped
Include the image sensings such as automatic exposure, AWB, automatic focusing, flicker detection, black level compensation, the shadow correction of lens 712
The statistical information of device 714.Control logic device 750 may include the processor and/or micro-control for performing one or more routines (such as firmware)
Device processed, one or more routines can determine control parameter and the ISP processing of imaging device 710 according to the statistics of reception
The control parameter of device 740.For example, control parameter may include the control parameter of sensor 720 (such as integration of gain, spectrum assignment
Time), camera flash control parameter, the group of the control parameter of lens 712 (such as focus on or zoom focal length) or these parameters
Close.ISP control parameters may include to be used for AWB and color adjustment (for example, RGB processing during) gain level and
Color correction matrix, and the shadow correction parameter of lens 712.
Below for the step of realizing focusing method with image processing techniques in Fig. 7:
Obtain the corresponding pending image of present filming scene;
The corresponding mist concentration parameter of the pending image is obtained according to parameter preset model, and joined according to the mistiness degree
Number obtains the corresponding physical distance information of pending image;
The focusing area of present filming scene according to the physical distance acquisition of information.
In one embodiment, the focusing area of the present filming scene according to the physical distance acquisition of information
Including:
By the corresponding region of physical distance information in the pending image in the range of pre-determined distance, current shooting is used as
The focusing area of scene.
In one of the embodiments, pair that the present filming scene is obtained according to the physical distance information field
Burnt region includes:
The pending image is divided into by multiple shooting areas according to the physical distance information, by each shooting area
Focusing shooting is carried out as the focusing area of present filming scene.
In another embodiment, the focusing area of the present filming scene according to the physical distance acquisition of information
Domain includes:
The physical distance information and corresponding quantity in the pending image are counted, according to the physical distance information pair
The quantity answered obtains the focusing area of the present filming scene.
One of ordinary skill in the art will appreciate that realize all or part of flow in above-described embodiment method, being can be with
The hardware of correlation is instructed to complete by computer program, described program can be stored in a non-volatile computer and can be read
In storage medium, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, described storage is situated between
Matter can be magnetic disc, CD, read-only memory (Read-Only Memory, ROM) etc..
Embodiment described above only expresses the several embodiments of the present invention, and it describes more specific and detailed, but simultaneously
Therefore the limitation to the scope of the claims of the present invention can not be interpreted as.It should be pointed out that for one of ordinary skill in the art
For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the guarantor of the present invention
Protect scope.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.
Claims (10)
1. a kind of focusing method, it is characterised in that methods described includes:
Obtain the corresponding pending image of present filming scene;
The corresponding mist concentration parameter of the pending image is obtained according to parameter preset model, and obtained according to the mist concentration parameter
Take the corresponding physical distance information of pending image;
The focusing area of present filming scene according to the physical distance acquisition of information.
2. focusing method according to claim 1, it is characterised in that described according to the physical distance acquisition of information
The focusing area of present filming scene includes:
By the corresponding region of physical distance information in the pending image in the range of pre-determined distance, present filming scene is used as
Focusing area.
3. focusing method according to claim 1, it is characterised in that described that institute is obtained according to the physical distance information field
Stating the focusing area of present filming scene includes:
The pending image is divided into by multiple shooting areas according to the physical distance information, using each shooting area as
The focusing area of present filming scene carries out focusing shooting.
4. focusing method according to claim 1, it is characterised in that described according to the physical distance acquisition of information
The focusing area of present filming scene includes:
The physical distance information and corresponding quantity in the pending image are counted, it is corresponding according to the physical distance information
Quantity obtains the focusing area of the present filming scene.
5. a kind of focusing mechanism, it is characterised in that described device includes:
Image collection module, for obtaining the corresponding pending image of present filming scene;
Data obtaining module, for obtaining the corresponding mist concentration parameter of the pending image, and root according to parameter preset model
According to the corresponding physical distance information of the pending image of mistiness degree parameter acquiring;
Focusing module, the focusing area for the present filming scene according to the physical distance acquisition of information.
6. focusing mechanism according to claim 5, it is characterised in that the Focusing module is additionally operable to the pending figure
The corresponding region of physical distance information as in the range of pre-determined distance, is used as the focusing area of present filming scene.
7. focusing mechanism according to claim 5, it is characterised in that the Focusing module be additionally operable to according to the physics away from
The pending image is divided into multiple shooting areas from information, using each shooting area as present filming scene focusing
Region carries out focusing shooting.
8. focusing mechanism according to claim 5, it is characterised in that it is described pending that the Focusing module is additionally operable to statistics
Physical distance information and corresponding quantity in image, the current bat is obtained according to the corresponding quantity of the physical distance information
Take the photograph the focusing area of scene.
9. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that the program is held by processor
The focusing method as any one of Claims 1-4 is realized during row.
10. a kind of mobile terminal, including memory, processor and storage are on a memory and the calculating that can run on a processor
Machine program, it is characterised in that pair as any one of Claims 1-4 is realized during the computing device described program
Burnt method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710626268.XA CN107277372B (en) | 2017-07-27 | 2017-07-27 | Focusing method, focusing device, computer readable storage medium and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710626268.XA CN107277372B (en) | 2017-07-27 | 2017-07-27 | Focusing method, focusing device, computer readable storage medium and mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107277372A true CN107277372A (en) | 2017-10-20 |
CN107277372B CN107277372B (en) | 2021-04-23 |
Family
ID=60074697
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710626268.XA Active CN107277372B (en) | 2017-07-27 | 2017-07-27 | Focusing method, focusing device, computer readable storage medium and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107277372B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114125300A (en) * | 2021-11-29 | 2022-03-01 | 维沃移动通信有限公司 | Photographing method, photographing apparatus, electronic device, and readable storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008271309A (en) * | 2007-04-23 | 2008-11-06 | Olympus Corp | Mobile terminal with camera, image associated information acquiring system, image associated information providing server, and mobile communication terminal with camera |
CN103034977A (en) * | 2011-09-30 | 2013-04-10 | 株式会社日立制作所 | Image defogging method and corresponding image defogging device |
CN104333702A (en) * | 2014-11-28 | 2015-02-04 | 广东欧珀移动通信有限公司 | Method, device and terminal for automatic focusing |
CN105933589A (en) * | 2016-06-28 | 2016-09-07 | 广东欧珀移动通信有限公司 | Image processing method and terminal |
CN106033597A (en) * | 2015-03-17 | 2016-10-19 | 杭州海康威视数字技术股份有限公司 | Image defogging method and equipment thereof |
-
2017
- 2017-07-27 CN CN201710626268.XA patent/CN107277372B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008271309A (en) * | 2007-04-23 | 2008-11-06 | Olympus Corp | Mobile terminal with camera, image associated information acquiring system, image associated information providing server, and mobile communication terminal with camera |
CN103034977A (en) * | 2011-09-30 | 2013-04-10 | 株式会社日立制作所 | Image defogging method and corresponding image defogging device |
CN104333702A (en) * | 2014-11-28 | 2015-02-04 | 广东欧珀移动通信有限公司 | Method, device and terminal for automatic focusing |
CN106033597A (en) * | 2015-03-17 | 2016-10-19 | 杭州海康威视数字技术股份有限公司 | Image defogging method and equipment thereof |
CN105933589A (en) * | 2016-06-28 | 2016-09-07 | 广东欧珀移动通信有限公司 | Image processing method and terminal |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114125300A (en) * | 2021-11-29 | 2022-03-01 | 维沃移动通信有限公司 | Photographing method, photographing apparatus, electronic device, and readable storage medium |
CN114125300B (en) * | 2021-11-29 | 2023-11-21 | 维沃移动通信有限公司 | Shooting method, shooting device, electronic equipment and readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN107277372B (en) | 2021-04-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108419028B (en) | Image processing method, image processing device, computer-readable storage medium and electronic equipment | |
CN107704798B (en) | Image blurring method and device, computer readable storage medium and computer device | |
CN110072052A (en) | Image processing method, device, electronic equipment based on multiple image | |
CN107493432A (en) | Image processing method, device, mobile terminal and computer-readable recording medium | |
CN110062159A (en) | Image processing method, device, electronic equipment based on multiple image | |
CN107424133A (en) | Image defogging method, device, computer can storage medium and mobile terminals | |
CN109242794B (en) | Image processing method, image processing device, electronic equipment and computer readable storage medium | |
CN107465903B (en) | Image white balance method, device and computer readable storage medium | |
CN109712177A (en) | Image processing method, device, electronic equipment and computer readable storage medium | |
CN107613216A (en) | Focusing method, device, computer-readable recording medium and electronic equipment | |
CN107277299A (en) | Image processing method, device, mobile terminal and computer-readable recording medium | |
CN107194901B (en) | Image processing method, image processing device, computer equipment and computer readable storage medium | |
CN107454317B (en) | Image processing method, image processing device, computer-readable storage medium and computer equipment | |
CN107464225B (en) | Image processing method, image processing device, computer-readable storage medium and mobile terminal | |
CN108600631B (en) | Image processing method, image processing device, computer-readable storage medium and electronic equipment | |
CN107295261B (en) | Image defogging method and device, storage medium and mobile terminal | |
CN107277369B (en) | Image processing method, device, computer readable storage medium and computer equipment | |
CN107454318B (en) | Image processing method, image processing device, mobile terminal and computer readable storage medium | |
CN107341782B (en) | Image processing method, image processing device, computer equipment and computer readable storage medium | |
CN107392870B (en) | Image processing method, image processing device, mobile terminal and computer readable storage medium | |
CN107454319A (en) | Image processing method, device, mobile terminal and computer-readable recording medium | |
CN107481199B (en) | Image defogging method and device, storage medium and mobile terminal | |
CN109040598B (en) | Image processing method, image processing device, computer-readable storage medium and electronic equipment | |
CN107277372A (en) | Focusing method, device, computer-readable recording medium and mobile terminal | |
CN107424135A (en) | Image processing method, device, computer-readable recording medium and computer 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 | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |