CN103795934B - A kind of image processing method and electronic equipment - Google Patents

A kind of image processing method and electronic equipment Download PDF

Info

Publication number
CN103795934B
CN103795934B CN201410075128.4A CN201410075128A CN103795934B CN 103795934 B CN103795934 B CN 103795934B CN 201410075128 A CN201410075128 A CN 201410075128A CN 103795934 B CN103795934 B CN 103795934B
Authority
CN
China
Prior art keywords
preview image
focus point
depth information
image
imaging modules
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410075128.4A
Other languages
Chinese (zh)
Other versions
CN103795934A (en
Inventor
郑启忠
黄茂林
李锐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201410075128.4A priority Critical patent/CN103795934B/en
Publication of CN103795934A publication Critical patent/CN103795934A/en
Application granted granted Critical
Publication of CN103795934B publication Critical patent/CN103795934B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Studio Devices (AREA)

Abstract

This application discloses a kind of image processing method and electronic equipments, and preview image is obtained by described image acquisition module;Obtain the depth information of each pixel in the preview image;It determines the focus point in the preview image, and extracts the depth information of the focus point;According to the depth information of the focus point that extraction obtains, calculate the Focusing parameter of the imaging modules in described image acquisition module, by the imaging modules adjust to the corresponding state of the Focusing parameter, complete focus process.So, the Focusing parameter of imaging modules can be directly determined by the depth information of the focus point in preview image, and directly by the imaging modules adjust to the corresponding state of the Focusing parameter, complete focus process, the eyeglass being not required in repeated multiple times mobile imaging modules finds the relative distance of imaging contrast maximum to realize accurate focusing, the time spent by focus process can be shortened, promote user experience.

Description

A kind of image processing method and electronic equipment
Technical field
This application involves image processing field, more particularly to a kind of image processing method and electronic equipment.
Background technology
With the development of scientific and technological level, more and more it is integrated in the electronic equipments such as mobile phone, tablet computer, intelligent glasses Shooting function, people also more and more use electronic equipment in daily leisure and entertainment life in shooting function, it is right It is higher and higher in the requirement of the shooting function of electronic equipment.
When using the shooting function of camera, it is necessary to carry out accurate adjustment focusing, the incident light of camera lens can just focused on In on the photo-sensitive cell of camera, captured image is made to reach fine definition, obtain preferable imaging effect.At present, camera There are three types of focusing schemes, contrast comparison method, phase-detection method, mixing method.Wherein, phase-detection method needs special phase-detection Focusing system is generally used for the isometric slightly larger mm professional camera special of slr camera;Mixing method is the integrated phase on cmos sensor Pixel is detected, it is necessary to which special sensor, a degree of sacrifice has been carried out to the quality of image;And contrast comparison method is by comparing Contrast in image between imaging pixel, and then judge whether focusing is accurate, is most often applied live view pattern.Therefore electronics Camera focusing scheme in equipment generally uses contrast comparison method.
But at least there are the following problems in the prior art:Camera in the electronic device is carried out with contrast comparison method , it is necessary to which convex lens and concavees lens in the voice coil motor drive camera lens of camera relatively move during focusing, it is altered in steps The relative distance of convex lens and concavees lens often changes the contrast that a relative distance is just carried out between Polaroid pixel and compares, when When the contrast between imaging pixel on photo-sensitive cell is inadequate, voice coil motor is made to drive the convex lens in camera lens and concavees lens phase again To movement, to find out the relative distance of contrast maximum, as most suitable focal length.This process needs repeated multiple times movement It could be realized with comparing so that entire focus process is quite time-consuming, causes photographer bad using the experience of camera.
The content of the invention
In view of this, the embodiment of the present application provides a kind of image processing method and electronic equipment, is focused with shortening camera Time spent by journey promotes user experience.
To achieve these goals, technical solution provided by the embodiments of the present application is as follows:
A kind of image processing method, applied in the electronic equipment with image capture module, described image acquisition module Include imaging modules, described image processing method includes:
Preview image is obtained by described image acquisition module;
Obtain the depth information of each pixel in the preview image;
It determines the focus point in the preview image, and extracts the depth information of the focus point;
According to the depth information of the focus point that extraction obtains, imaging modules in described image acquisition module are calculated Focusing parameter, by the imaging modules adjust to the corresponding state of the Focusing parameter, complete focus process.
Preferably, the depth information for obtaining each pixel in the preview image, specifically includes:
Corresponding with the preview image depth map of generation, in the pixel and the preview image in the depth map Pixel corresponds, and the depth information each pixel apart from described image acquisition module is included in the depth map;
Depth information corresponding with each pixel in the preview image is extracted from the depth map.
Preferably, generation depth map corresponding with the preview image, specially:Using structure light, camera gusts Row calibration or infrared imaging mode generate depth map corresponding with the preview image.
Preferably, the focus point determined in the preview image, including:
It detects and whether there is preset imaged body in the preview image;
If it does, preset imaged body in the preview image is automatically selected, as in the preview image Focus point;
If it does not exist, then based on the preview image, the imaged body in the preview image manually selected is determined, As the focus point in the preview image.
Preferably, the depth information of the focus point obtained according to extraction, calculates in described image acquisition module Imaging modules Focusing parameter, including:
Preset the correspondence list of the depth information of focus point and the Focusing parameter of imaging modules;
Pair corresponding to the depth information of the focus point extracted and obtained is determined from the correspondence list Burnt parameter.
A kind of electronic equipment, including image capture module, described image acquisition module includes imaging modules, the electronics Equipment includes:
Preview image acquisition module obtains preview image for passing through described image acquisition module;
Depth information acquistion module, for obtaining the depth information of each pixel in the preview image;
Focus point determining module for determining the focus point in the preview image, and extracts the depth of the focus point Information;
Focusing parameter adjusts module, for the depth information of the focus point obtained according to extraction, calculates described image The Focusing parameter of imaging modules in acquisition module, by the imaging modules adjust to the corresponding shape of the Focusing parameter State completes focus process.
Preferably, the depth information acquistion module, specifically includes:
Depth map generating unit, for generating corresponding with preview image depth map, the pixel in the depth map Point is corresponded with the pixel in the preview image, and is adopted in the depth map comprising each pixel apart from described image Collect the depth information of module;
Depth information determination unit, it is corresponding with each pixel in the preview image for being extracted from the depth map Depth information.
Preferably, the depth map generating unit, is specifically used for:Using structure light, camera array calibratings or it is infrared into Image space formula generates depth map corresponding with the preview image.
Preferably, the focus point determining module, including:
Detection unit whether there is preset imaged body for detecting in the preview image;
Automatic selected cell, if for, there are preset imaged body, automatically selecting institute in the preview image Preset imaged body in preview image is stated, as the focus point in the preview image;
Unit is manually selected, if for preset imaged body to be not present in the preview image, based on institute Preview image is stated, the imaged body in the preview image manually selected is determined, as the focus point in the preview image.
Preferably, the Focusing parameter adjustment module, including:
List cell, for presetting the correspondence of the Focusing parameter of the depth information of focus point and imaging modules row Table;
Focusing parameter extraction unit, for the focus point that the definite extraction obtains from the correspondence list Depth information corresponding to Focusing parameter, by the imaging modules adjust to the corresponding state of the Focusing parameter, it is complete Into focus process.
Using a kind of image processing method and electronic equipment that the application provides, obtained by described image acquisition module pre- Look at image;Obtain the depth information of each pixel in the preview image;It determines the focus point in the preview image, and carries Take the depth information of the focus point;According to the depth information for the focus point that extraction obtains, described image acquisition mould is calculated The Focusing parameter of imaging modules in the block, by the imaging modules adjust to the corresponding state of the Focusing parameter, complete Focus process.In this way, the Focusing parameter of imaging modules can be directly determined by the depth information of the focus point in preview image, And directly by the imaging modules adjust to the corresponding state of the Focusing parameter, complete focus process, need not be repeatedly Eyeglass in multiple mobile imaging modules finds the relative distance of imaging contrast maximum to realize accurate focusing, can shorten pair Time spent by burnt process promotes user experience.
Description of the drawings
It in order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, below will be to embodiment or existing There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments described in application, for those of ordinary skill in the art, without creative efforts, It can also be obtained according to these attached drawings other attached drawings.
Fig. 1 is the flow chart for the image processing method that the embodiment of the present application one provides;
Fig. 2 is the flow chart for the image processing method that the embodiment of the present application two provides;
Fig. 3 is the flow chart for the image processing method that the embodiment of the present application three provides.
Fig. 4 is the flow chart for the image processing method that the embodiment of the present application four provides;
Fig. 5 is the structure diagram for a kind of electronic equipment that the application provides;
Fig. 6 is the structure diagram for another electronic equipment that the application provides;
Fig. 7 is the structure diagram for another electronic equipment that the application provides;
Fig. 8 is the structure diagram for another electronic equipment that the application provides.
Specific embodiment
It is in order to make those skilled in the art better understand the technical solutions in the application, real below in conjunction with the application The attached drawing in example is applied, the technical solution in the embodiment of the present application is clearly and completely described, it is clear that described implementation Example is merely a part but not all of the embodiments of the present application.Based on the embodiment in the application, this field is common Technical staff's all other embodiments obtained without making creative work should all belong to the application protection Scope.
The invention discloses a kind of image processing methods, applied in the electronic equipment with image capture module, are leading to It crosses during electronic equipment taken pictures, the depth information for passing through the focus point in preview image directly determines imaging modules Focusing parameter, and directly by the imaging modules adjust to the corresponding state of the Focusing parameter, complete focus process, no The eyeglass in repeated multiple times mobile imaging modules is needed to find the relative distance of imaging contrast maximum to realize accurate focusing, energy Enough shorten the time spent by focus process, promote user experience.Electronic equipment in the present invention can be mobile phone, tablet electricity Brain, camera, or PDA.
The above are the core concept of the application, in order to which those skilled in the art is made to more fully understand application scheme, under Face is described in further detail the application with reference to attached drawing.
Embodiment one:
Fig. 1 is the flow chart for the image processing method that the embodiment of the present application one provides.
With reference to shown in Fig. 1, image processing method provided by the embodiments of the present application, applied to the electricity with image capture module In sub- equipment, described image acquisition module includes imaging modules, and image processing method provided by the embodiments of the present application includes:
Step S11:Preview image is obtained by described image acquisition module.
In the embodiment of the present application, for preview image for determining focus point, focus point can be the imaged body being taken, Such as the person of being taken, it may not be the imaged body being taken, such as the face for the person of being taken.
Image capture module includes lens module and illuminant module, and lens module is used to gather the incidence of shooting area Light, and the incident light that lens module is gathered is projected on illuminant module, and the preview graph of shooting area is formed on illuminant module Picture.
Step S12:Obtain the depth information of each pixel in the preview image.
In the embodiment of the present application, the depth information of each pixel is embodied in the depth of each pixel in preview image Value can be realized by technologies such as structure light, camera array calibratings, infrared detection, range sensor detections to preview image In each pixel depth information acquisition, details are not described herein again.
Step S13:It determines the focus point in the preview image, and extracts the depth information of the focus point.
In the embodiment of the present application, the focus point of preview image can be determined according to preview image, after focus point is determined, It needs accurately to focus to focus point, the depth of focus point can be obtained according to the depth information of each pixel in step S12 at this time Information.
Step S14:According to the depth information of the focus point that extraction obtains, calculate in described image acquisition module into As the Focusing parameter of module, by the imaging modules adjust to the corresponding state of the Focusing parameter, complete focus process.
In the embodiment of the present application, if detecting the depth information of focus point, it is possible to according to correspondence, according to right The depth information of focus calculates Focusing parameter, then adjusts imaging modules according to Focusing parameter, imaging modules are directly adjusted to With the corresponding state of the Focusing parameter, focus process is completed, that is, is done directly and standard is carried out to the focus point in preview image The process really focused.
Can be that the depth information of each pixel sets a smaller model it should be noted that in the embodiment of the present application Enclose, with caused by focusing main body during preventing from taking pictures the either slight jitter of the operator of focus point or electronic equipment by mistake Difference after the depth information of each pixel is determined, if the depth information of each pixel changes, but is not out presetting Scope when, then can normally focus, if it is larger that depth information is caused since movement range is excessive to occur in focus process Variation then restarts focus process beyond default scope.
Further, complete to defocused, second preview image can also be obtained again.It if it is necessary, can be to twice Preview image carry out comparison and show, can judge whether to need to focus again again according to second preview image at this time or Replace focus point, if it is desired, the step of S11~S14 can be repeated, if it is not needed, can be according to second preview image Carry out subsequent operation.
It is understood that after the process for completing directly accurately to focus, if second preview image works well, Electronic equipment can be triggered to take pictures, the photo accurately focused, that is to say, that focal length after adjustment cannot make pre- It when the clarity for the focus point look in image meets predetermined threshold value, can be finely adjusted with focusing, until in preview image The clarity of focus point meets predetermined threshold value.
Using image processing method provided by the embodiments of the present application, preview image is obtained by described image acquisition module; Obtain the depth information of each pixel in the preview image;Determine the focus point in the preview image, and described in extraction The depth information of focus point;According to the depth information for the focus point that extraction obtains, calculate in described image acquisition module The Focusing parameter of imaging modules, by the imaging modules adjust to the corresponding state of the Focusing parameter, completion focused Journey.In this way, the Focusing parameter of imaging modules can be directly determined by the depth information of the focus point in preview image, and directly By the imaging modules adjust to the corresponding state of the Focusing parameter, complete focus process, be not required repeated multiple times Eyeglass in mobile imaging modules finds the relative distance of imaging contrast maximum to realize accurate focusing, can shorten focus process The spent time promotes user experience.
Embodiment two:
Fig. 2 is the flow chart for the image processing method that the embodiment of the present application two provides.
With reference to shown in Fig. 2, image processing method provided by the embodiments of the present application includes:
Step S21:Preview image is obtained by described image acquisition module.
Step S22:Corresponding with the preview image depth map of generation, pixel and the preview in the depth map Pixel in image corresponds, and the depth each pixel apart from described image acquisition module is included in the depth map Information.
While generating a preview image, depth map corresponding with preview image is generated, depth map is based on preview image Identical shooting environmental, photographed scene and shooting progress, it is fully synchronized and corresponding with preview image, pixel in depth map and Pixel in preview image corresponds, and what is included in the depth map unlike preview image is in preview image Each depth information of the pixel apart from described image acquisition module.Here depth map can by structure light, camera gusts Row calibration, infrared detection, range sensor detection are generated when technologies are gathering preview image, and details are not described herein again.
Step S23:Depth information corresponding with each pixel in the preview image is extracted from the depth map.
Depth map includes depth information of each pixel apart from described image acquisition module in preview image, therefore The depth information of each pixel can be extracted from depth map, shows as the depth value of pixel.
Step S24:It determines the focus point in the preview image, and extracts the depth information of the focus point.
Step S25:According to the depth information of the focus point that extraction obtains, calculate in described image acquisition module into As the Focusing parameter of module, by the imaging modules adjust to the corresponding state of the Focusing parameter, complete focus process.
Using image processing method provided by the embodiments of the present application, preview image is obtained by described image acquisition module, And the depth information of each pixel in the preview image is obtained according to the depth map of synchronous with preview image and corresponding generation, So as to obtain the depth information of focus point, and then the Focusing parameter of the imaging modules in described image acquisition module is directly calculated, And by the imaging modules adjust to the corresponding state of the Focusing parameter, complete focus process.In this way, can by with The depth information of the synchronous focus point in corresponding depth map of preview image directly determines the Focusing parameter of imaging modules, and directly By the imaging modules adjust to the corresponding state of the Focusing parameter, complete focus process, be not required repeated multiple times Eyeglass in mobile imaging modules finds the relative distance of imaging contrast maximum to realize accurate focusing, can shorten focus process The spent time promotes user experience.
Embodiment three:
Fig. 3 is the flow chart for the image processing method that the embodiment of the present application three provides.
With reference to shown in Fig. 3, image processing method provided by the embodiments of the present application, including:
Step S31:Preview image is obtained by described image acquisition module.
Step S32:Obtain the depth information of each pixel in the preview image.
Step S33:It detects and whether there is preset imaged body in the preview image.
In the embodiment of the present application, imaging main body can be pre-set in electronic equipment, for example selection personage is preferential, face Preferential or center-spot etc., when being taken a picture, electronic equipment can be according to pre-set imaged body, in preview graph Detect whether there is the imaging region to match with preset imaged body as in.
Step S34:There are preset imaged body in the preview image, automatically select pre- in the preview image The imaged body first set as the focus point in the preview image, and extracts the depth information of the focus point.
In the embodiment of the present application, if existed and preset imaged body phase in electronic equipment in preview image The imaging region matched somebody with somebody, then automatically using the imaging region as focus point.
Herein, the focus point of the imaging region can be in the imaging region central point of each pixel or The point given prominence to the key points in the imaging region, when imaging region is as focus point, the depth information of focus point can be imaging area The depth information for the point given prominence to the key points in the average value or the imaging region of the depth information of each pixel in domain, also It can be the depth information of imaging region center point.
Step S35:If there is no preset imaged body in the preview image, based on the preview graph Picture determines the imaged body in the preview image manually selected, as the focus point in the preview image, and extracts institute State the depth information of focus point.
In the embodiment of the present application, if preset imaged body or preview image are not present in preview image In can not match the imaging region being adapted with preset imaged body, then can manually be selected according to the preview image Select suitable focus point, then the depth information of the focus point manually selected at this time can serve as calculating the foundation of Focusing parameter, Complete subsequent step.
Step S36:According to the depth information of the focus point that extraction obtains, calculate in described image acquisition module into As the Focusing parameter of module, by the imaging modules adjust to the corresponding state of the Focusing parameter, complete focus process.
Using image processing method provided by the embodiments of the present application, can be automatically selected according to preview image preset Focus point manually selects focus point, and the depth information of focus point is then determined according to the depth information of each pixel, according to The depth information of the obtained focus point is extracted, calculates the Focusing parameter of the imaging modules in described image acquisition module, it will The imaging modules adjust to the corresponding state of the Focusing parameter, complete focus process.In this way, preview graph can be passed through The depth information of focus point being selected either automatically or manually as in directly determines the Focusing parameter of imaging modules, and directly by it is described into As module adjust to the corresponding state of the Focusing parameter, complete focus process, be not required and repeated multiple times be moved into picture Eyeglass in module finds the relative distance of imaging contrast maximum to realize accurate focusing, can shorten spent by focus process Time promotes user experience.
Example IV:
Fig. 4 is the flow chart for the image processing method that the embodiment of the present application four provides.
With reference to shown in Fig. 4, image processing method provided by the embodiments of the present application, including:
Step S41:Preview image is obtained by described image acquisition module.
Step S42:Obtain the depth information of each pixel in the preview image.
Step S43:It determines the focus point in the preview image, and extracts the depth information of the focus point.
Step S44:Preset the correspondence list of the depth information of focus point and the Focusing parameter of imaging modules.
In the embodiment of the present application, the Focusing parameter of imaging modules is directly determined by the depth information of focus point, it can In the case of by pre-trial or calculating, to set between the depth information of focus point and the Focusing parameter of imaging modules Correspondence, and this correspondence can be preserved into a correspondence list.
In the correspondence list, the depth information of focus point and the Focusing parameter of imaging modules correspond, when right After the depth information of focus determines, you can to obtain the Focusing parameter of imaging modules from table, herein, Focusing parameter includes coke Away from.
Step S45:The depth information institute of the focus point extracted and obtained is determined from the correspondence list Corresponding Focusing parameter, by the imaging modules adjust to the corresponding state of the Focusing parameter, complete focus process.
After extraction obtains the depth information of focus point, focusing ginseng accordingly can be determined directly from correspondence list Number, then can directly by imaging modules adjust to the corresponding state of the Focusing parameter, i.e., by the focal length of imaging modules Adjust to the corresponding focal length of the depth information of focus point, complete focus process.
In the embodiment of the present application, after the completion of focusing, second preview image can also be obtained, and it is pre- according to second Image of looking at judges whether to need to focus or change focus point again again, if it is desired, the step of S41~S45 can be repeated, If it is not required, then can take pictures, accurate photo of focusing is obtained.
It, can be according to the depth of the focus point of the preview image of acquisition using image processing method provided by the embodiments of the present application Information is spent, in the correspondence list of the Focusing parameter of the depth information and imaging modules of the focus point previously generated, directly Obtain the Focusing parameter of the imaging modules in described image acquisition module, so the imaging modules can directly be adjusted to The corresponding state of Focusing parameter completes focus process.In this way, it can be believed by the depth of the focus point in preview image Breath directly determines the Focusing parameter of imaging modules, and directly adjusts the imaging modules to corresponding with the Focusing parameter State completes focus process, and the eyeglass in repeated multiple times mobile imaging modules is not required to find the opposite of imaging contrast maximum Distance realizes accurate focusing, can shorten the time spent by focus process, promotes user experience.
For foregoing each method embodiment, in order to be briefly described, therefore it is all expressed as to a series of combination of actions, but It is that those skilled in the art should know, the present invention and from the limitation of described sequence of movement, because according to the present invention, certain A little steps may be employed other orders or be carried out at the same time.
Present invention image processing method disclosed above, correspondingly, the invention also discloses apply above-mentioned image processing method The electronic equipment of method, the electronic equipment are used for the rapidly and accurately focal length when taking pictures, and shorten the time spent by focus process, carry Rise user experience..
Fig. 5 is the structure diagram for a kind of electronic equipment that the application provides.
With reference to shown in Fig. 5, electronic equipment provided by the embodiments of the present application, including image capture module, described image acquisition Module includes imaging modules, and the electronic equipment includes:
Preview image acquisition module 1 obtains preview image for passing through described image acquisition module.
Depth information acquistion module 2, for obtaining the depth information of each pixel in the preview image.
Focus point determining module 3 for determining the focus point in the preview image, and extracts the depth of the focus point Information.
Focusing parameter adjusts module 4, for the depth information of the focus point obtained according to extraction, calculates described image The Focusing parameter of imaging modules in acquisition module, by the imaging modules adjust to the corresponding shape of the Focusing parameter State completes focus process.
In practical application, Focusing parameter adjustment module 4 can determine the focus point in preview image according to depth map Depth value, and according to default pulsewidth and the correspondence of the depth value of focus point adjusts described image by adjusting pulsewidth The focal length of harvester.
At this point, focal length processing module and voice coil motor, focal length processing module can also be included in Focusing parameter adjustment module 4 For determining the depth value of the focus point in preview image according to depth map, and according to the depth value of default pulsewidth and focus point Correspondence, determine the pulsewidth of voice coil motor corresponding with the depth value of the focus point in preview image, and to voice coil motor Pulse-width signal is sent, setting voice coil motor adjusts the relative distance of the convex lens and concavees lens in imaging modules, and will adjust Focal length of the relative distance of convex lens in imaging modules and concavees lens after whole as imaging modules.
Herein, the depth value of the focus point in the pulsewidth and preview image of voice coil motor corresponds, and voice coil motor Pulsewidth and preview image in focus point depth value it is negatively correlated.
The image processing method in above method embodiment may be employed in electronic equipment provided by the embodiments of the present application, this Place repeats no more.
Depth information acquistion module 2 is in the depth information of each pixel in obtaining preview image, it is necessary to which multiple units are assisted With cooperation, therefore depth information acquistion module 2 is correspondingly arranged multiple units.
Fig. 6 is the structure diagram for another electronic equipment that the application provides.
With reference to shown in Fig. 6, electronic equipment provided by the embodiments of the present application, including:
Preview image acquisition module 1 obtains preview image for passing through described image acquisition module.
Depth map generating unit 21, for generating corresponding with preview image depth map, the picture in the depth map Vegetarian refreshments is corresponded with the pixel in the preview image, and each pixel is included in the depth map apart from described image The depth information of acquisition module.
In specific implementation, structure light, camera array calibratings or infrared imaging side may be employed in depth map generating unit 2 Formula generates depth map corresponding with the preview image, and details are not described herein again.
When use camera array calibrating modes, it is necessary at least two groups of image capture modules, two groups of image capture modules It is arranged in parallel to be separated by fixed range, and two groups of image capture modules are towards same direction, i.e. shooting direction.At this point, depth map Acquisition is the parallax of the preview image of the same shooting area gathered according to two groups of image capture modules, generation and the preview graph As corresponding depth map.
When using infrared imaging mode, one group of image capture module can be only set, at this time depth map generating unit 21 It is arranged in parallel to be separated by fixed range with image capture module, and depth map generating unit 21 and image capture module are towards same side To depth map of the depth map generating unit 21 corresponding to for the directly preview image of acquisition image capture module shooting.
Depth information determination unit 22, for the extraction from the depth map and each pixel pair in the preview image The depth information answered.
Focus point determining module 3 for determining the focus point in the preview image, and extracts the depth of the focus point Information.
Focusing parameter adjusts module 4, for the depth information of the focus point obtained according to extraction, calculates described image The Focusing parameter of imaging modules in acquisition module, by the imaging modules adjust to the corresponding shape of the Focusing parameter State completes focus process.
The image processing method in above method embodiment may be employed in electronic equipment provided by the embodiments of the present application, this Place repeats no more.
It can also be manually selected since focus point can automatically select, focus point determining module 3 is correspondingly arranged difference Unit.
Fig. 7 is the structure diagram for another electronic equipment that the application provides.
With reference to shown in Fig. 7, electronic equipment provided by the embodiments of the present application, including:
Preview image acquisition module 1 obtains preview image for passing through described image acquisition module.
Depth information acquistion module 2, for obtaining the depth information of each pixel in the preview image.
Detection unit 31 whether there is preset imaged body for detecting in the preview image.
Automatic selected cell 32, if for, there are preset imaged body, being automatically selected in the preview image Preset imaged body in the preview image, as the focus point in the preview image.
Unit 33 is manually selected, if for preset imaged body to be not present in the preview image, is based on The preview image determines the imaged body in the preview image manually selected, as the focusing in the preview image Point.
Focusing parameter adjusts module 4, for the depth information of the focus point obtained according to extraction, calculates described image The Focusing parameter of imaging modules in acquisition module, by the imaging modules adjust to the corresponding shape of the Focusing parameter State completes focus process.
The image processing method in above method embodiment may be employed in electronic equipment provided by the embodiments of the present application, this Place repeats no more.
After the depth information of focus point is obtained, in order to shorten focusing time, user experience is further promoted, the application is real The Focusing parameter of imaging modules can directly be determined by the depth information of focus point by applying the electronic equipment of example offer.
Fig. 8 is the structure diagram for another electronic equipment that the application provides.
With reference to shown in Fig. 8, electronic equipment provided by the embodiments of the present application, including:
Preview image acquisition module 1 obtains preview image for passing through described image acquisition module.
Depth information acquistion module 2, for obtaining the depth information of each pixel in the preview image.
Focus point determining module 3 for determining the focus point in the preview image, and extracts the depth of the focus point Information.
List cell 41, for presetting the correspondence of the Focusing parameter of the depth information of focus point and imaging modules List.
Focusing parameter extraction unit 42, for the focusing that the definite extraction obtains from the correspondence list Point depth information corresponding to Focusing parameter, by the imaging modules adjust to the corresponding state of the Focusing parameter, Complete focus process.
The image processing method in above method embodiment may be employed in electronic equipment provided by the embodiments of the present application, this Place repeats no more.
Using a kind of image processing method and electronic equipment that the application provides, obtained by described image acquisition module pre- Look at image;Obtain the depth information of each pixel in the preview image;It determines the focus point in the preview image, and carries Take the depth information of the focus point;According to the depth information for the focus point that extraction obtains, described image acquisition mould is calculated The Focusing parameter of imaging modules in the block, by the imaging modules adjust to the corresponding state of the Focusing parameter, complete Focus process.In this way, the Focusing parameter of imaging modules can be directly determined by the depth information of the focus point in preview image, And directly by the imaging modules adjust to the corresponding state of the Focusing parameter, complete focus process, need not be repeatedly Eyeglass in multiple mobile imaging modules finds the relative distance of imaging contrast maximum to realize accurate focusing, can shorten pair Time spent by burnt process promotes user experience.
For convenience of description, it is divided into various units during description apparatus above with function to describe respectively.Certainly, this is being implemented The function of each unit is realized can in the same or multiple software and or hardware during application.
Each embodiment in this specification is described by the way of progressive, identical similar portion between each embodiment Point just to refer each other, and the highlights of each of the examples are difference from other examples.Especially for device or For system embodiment, since it is substantially similar to embodiment of the method, so describing fairly simple, related part is referring to method The part explanation of embodiment.Apparatus and system embodiment described above is only schematical, wherein the conduct The unit that separating component illustrates may or may not be it is physically separate, the component shown as unit can be or Person may not be physical location, you can be located at a place or can also be distributed in multiple network element.It can root Factually border needs to select some or all of module therein realize the purpose of this embodiment scheme.Ordinary skill Personnel are without creative efforts, you can to understand and implement.
Professional further appreciates that, with reference to each exemplary unit of the embodiments described herein description And algorithm steps, can be realized with the combination of electronic hardware, computer software or the two, in order to clearly demonstrate hardware and The interchangeability of software generally describes each exemplary composition and step according to function in the above description.These Function is performed actually with hardware or software mode, specific application and design constraint depending on technical solution.Specialty Technical staff can realize described function to each specific application using distinct methods, but this realization should not Think beyond the scope of this invention.
It can directly be held with reference to the step of method or algorithm that the embodiments described herein describes with hardware, processor The combination of capable software module or the two is implemented.Software module can be placed in random access memory(RAM), memory, read-only deposit Reservoir(ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology In any other form of storage medium well known in field.
The foregoing description of the disclosed embodiments enables professional and technical personnel in the field to realize or use the present invention. A variety of modifications of these embodiments will be apparent for those skilled in the art, it is as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, it is of the invention The embodiments shown herein is not intended to be limited to, and is to fit to and the principles and novel features disclosed herein phase one The most wide scope caused.

Claims (8)

1. a kind of image processing method, applied in the electronic equipment with image capture module, in described image acquisition module Including imaging modules, which is characterized in that described image processing method includes:
One preview image is obtained by described image acquisition module;
Obtain the depth information of each pixel in the preview image;
It determines the focus point in the preview image, and extracts the depth information of the focus point;
According to the depth information for the focus point that extraction obtains, the focusing of the imaging modules in described image acquisition module is calculated Parameter, by the imaging modules adjust to the corresponding state of the Focusing parameter, complete focus process;
The depth information for obtaining each pixel in the preview image, specifically includes:
Corresponding with the preview image depth map of generation, the pixel in the depth map and the pixel in the preview image Point corresponds, and the depth information each pixel apart from described image acquisition module is included in the depth map;
Depth information corresponding with each pixel in the preview image is extracted from the depth map.
2. image processing method according to claim 1, which is characterized in that the generation is corresponding with the preview image Depth map, specially:It is generated using structure light, camera array calibratings or infrared imaging mode corresponding with the preview image Depth map.
3. image processing method according to claim 1, which is characterized in that the focusing determined in the preview image Point, including:
It detects and whether there is preset imaged body in the preview image;
If it does, preset imaged body in the preview image is automatically selected, as pair in the preview image Focus;
If it does not exist, then based on the preview image, the imaged body in the preview image manually selected is determined, as Focus point in the preview image.
4. image processing method according to claim 1, which is characterized in that the focus point obtained according to extraction Depth information, calculate described image acquisition module in imaging modules Focusing parameter, including:
Preset the correspondence list of the depth information of focus point and the Focusing parameter of imaging modules;
The focusing ginseng corresponding to the depth information of the focus point extracted and obtained is determined from the correspondence list Number.
5. a kind of electronic equipment, including image capture module, described image acquisition module includes imaging modules, and feature exists In the electronic equipment includes:
Preview image acquisition module obtains a preview image for passing through described image acquisition module;
Depth information acquistion module, for obtaining the depth information of each pixel in the preview image;
Focus point determining module for determining the focus point in the preview image, and extracts the depth information of the focus point;
Focusing parameter adjusts module, for the depth information of the focus point obtained according to extraction, calculates described image acquisition The Focusing parameter of mould imaging modules in the block, by the imaging modules adjust to the corresponding state of the Focusing parameter, it is complete Into focus process;
The depth information acquistion module, specifically includes:
Depth map generating unit, for generating corresponding with preview image depth map, pixel in the depth map and Pixel in the preview image corresponds, and gathers mould apart from described image comprising each pixel in the depth map The depth information of block;
Depth information determination unit, for extracting depth corresponding with each pixel in the preview image from the depth map Spend information.
6. electronic equipment according to claim 5, which is characterized in that the depth map generating unit is specifically used for:Using Structure light, camera array calibratings or infrared imaging mode generate depth map corresponding with the preview image.
7. electronic equipment according to claim 5, which is characterized in that the focus point determining module, including:
Detection unit whether there is preset imaged body for detecting in the preview image;
Automatic selected cell, if for, there are preset imaged body, being automatically selected described pre- in the preview image Preset imaged body in image is look at, as the focus point in the preview image;
Unit is manually selected, if for preset imaged body to be not present in the preview image, based on described pre- It lookes at image, the imaged body in the preview image manually selected is determined, as the focus point in the preview image.
8. electronic equipment according to claim 5, which is characterized in that the Focusing parameter adjusts module, including:
List cell, for presetting the correspondence list of the Focusing parameter of the depth information of focus point and imaging modules;
Focusing parameter extraction unit, for determining the depth for extracting the obtained focus point from the correspondence list Spend information corresponding to Focusing parameter, by the imaging modules adjust to the corresponding state of the Focusing parameter, complete pair Burnt process.
CN201410075128.4A 2014-03-03 2014-03-03 A kind of image processing method and electronic equipment Active CN103795934B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410075128.4A CN103795934B (en) 2014-03-03 2014-03-03 A kind of image processing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410075128.4A CN103795934B (en) 2014-03-03 2014-03-03 A kind of image processing method and electronic equipment

Publications (2)

Publication Number Publication Date
CN103795934A CN103795934A (en) 2014-05-14
CN103795934B true CN103795934B (en) 2018-06-01

Family

ID=50671176

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410075128.4A Active CN103795934B (en) 2014-03-03 2014-03-03 A kind of image processing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN103795934B (en)

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104023177A (en) * 2014-06-04 2014-09-03 华为技术有限公司 Camera control method, device and camera
CN104410784B (en) 2014-11-06 2019-08-06 北京智谷技术服务有限公司 Optical field acquisition control method and device
CN105744138B (en) * 2014-12-09 2020-02-21 联想(北京)有限公司 Quick focusing method and electronic equipment
CN104680478B (en) 2015-02-15 2018-08-21 青岛海信移动通信技术股份有限公司 A kind of choosing method and device of destination image data
CN104680563B (en) 2015-02-15 2018-06-01 青岛海信移动通信技术股份有限公司 The generation method and device of a kind of image data
CN106303267B (en) * 2015-05-25 2019-06-04 北京智谷睿拓技术服务有限公司 Image capture device and method
CN105592266A (en) * 2015-12-22 2016-05-18 歌尔声学股份有限公司 Bokeh image processing method and system
CN105744163B (en) * 2016-02-23 2019-01-25 湖南拓视觉信息技术有限公司 A kind of video camera and image capture method based on depth information tracking focusing
TWI583996B (en) * 2016-05-27 2017-05-21 致伸科技股份有限公司 Method for measuring depth of field and image pickup device using the same
CN106131399B (en) * 2016-06-24 2019-09-27 维沃移动通信有限公司 A kind of video capture method and mobile terminal
CN107493427A (en) * 2017-07-31 2017-12-19 广东欧珀移动通信有限公司 Focusing method, device and the mobile terminal of mobile terminal
WO2019037088A1 (en) * 2017-08-25 2019-02-28 深圳市大疆创新科技有限公司 Exposure control method and device, and unmanned aerial vehicle
WO2019113746A1 (en) * 2017-12-11 2019-06-20 深圳市大疆创新科技有限公司 Manual-focus prompt method, control apparatus, photography device, and controller
CN109451241B (en) * 2018-12-10 2021-06-18 无锡祥生医疗科技股份有限公司 Automatic focus adjusting method and device for ultrasonic image
CN109561257B (en) 2019-01-18 2020-09-18 深圳看到科技有限公司 Picture focusing method, device, terminal and corresponding storage medium
CN115546306B (en) * 2022-01-30 2023-06-02 荣耀终端有限公司 Camera calibration method and device, electronic equipment and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101951525A (en) * 2009-07-09 2011-01-19 索尼公司 Image processing equipment, image processing method and program
TW201300930A (en) * 2011-06-24 2013-01-01 Mstar Semiconductor Inc Auto focusing method and apparatus
CN102984530A (en) * 2011-09-02 2013-03-20 宏达国际电子股份有限公司 Image processing system and automatic focusing method
CN103454833A (en) * 2012-05-31 2013-12-18 Lg伊诺特有限公司 Camera system and auto focusing method thereof

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9485495B2 (en) * 2010-08-09 2016-11-01 Qualcomm Incorporated Autofocus for stereo images

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101951525A (en) * 2009-07-09 2011-01-19 索尼公司 Image processing equipment, image processing method and program
TW201300930A (en) * 2011-06-24 2013-01-01 Mstar Semiconductor Inc Auto focusing method and apparatus
CN102984530A (en) * 2011-09-02 2013-03-20 宏达国际电子股份有限公司 Image processing system and automatic focusing method
CN103454833A (en) * 2012-05-31 2013-12-18 Lg伊诺特有限公司 Camera system and auto focusing method thereof

Also Published As

Publication number Publication date
CN103795934A (en) 2014-05-14

Similar Documents

Publication Publication Date Title
CN103795934B (en) A kind of image processing method and electronic equipment
CN103197491B (en) The method of fast automatic focusing and image collecting device
CN104363378B (en) camera focusing method, device and terminal
CN103209302B (en) Image processing apparatus, camera head and control method
CN103795933B (en) A kind of image processing method and electronic equipment
CN106507087B (en) A kind of terminal imaging method and system
CN108076278B (en) Automatic focusing method and device and electronic equipment
CN102483508B (en) Imaging device and imaging method
CN109379537A (en) Slide Zoom effect implementation method, device, electronic equipment and computer readable storage medium
WO2017185562A1 (en) Method and device for projection focusing
CN105814875A (en) Selecting camera pairs for stereoscopic imaging
CN104363377B (en) Display methods, device and the terminal of focus frame
TW200807311A (en) Imaging apparatus, imaging apparatus control method, and computer program
CN103905725B (en) Image processing equipment and image processing method
TW200815892A (en) Imaging apparatus, imaging apparatus control method, and computer program
CN104159027B (en) A kind of method and device according to picture pace of change automatic camera
TW200822715A (en) Imaging apparatus, control method of imaging apparatus, and computer program
CN105872363A (en) Adjustingmethod and adjusting device of human face focusing definition
CN104113702B (en) Flash control method and control device, image-pickup method and harvester
CN108305223B (en) Image background blurring processing method and device
TW201228351A (en) Method for capturing three-dimensional image
WO2017143933A1 (en) Method, device, mobile terminal, and camera for identifying photograph subject
CN103780843A (en) Image processing method and electronic device
CN103188428A (en) Shooting device and method
CN104639927A (en) Method for shooting stereoscopic image and electronic device

Legal Events

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