CN103795934A - Image processing method and electronic device - Google Patents
Image processing method and electronic device Download PDFInfo
- Publication number
- CN103795934A CN103795934A CN201410075128.4A CN201410075128A CN103795934A CN 103795934 A CN103795934 A CN 103795934A CN 201410075128 A CN201410075128 A CN 201410075128A CN 103795934 A CN103795934 A CN 103795934A
- Authority
- CN
- China
- Prior art keywords
- focusing
- preview image
- depth information
- image
- imaging
- 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
Images
Landscapes
- Studio Devices (AREA)
Abstract
The invention discloses an image processing method and an electronic device. A preview image is acquired through an image acquisition module; depth information of each pixel in the preview image is obtained; a focus point in the preview image is determined, and the depth information of the focus point is extracted; a focusing parameter of an imaging module in the image acquisition module is calculated, the imaging module is adjusted to be in a state corresponding to the focusing parameter, and the focusing process is completed. Thus, the focusing parameter of the imaging module can be directly determined through the depth information of the focusing point in the preview image, the imaging module is adjusted to be in a state corresponding to the focusing parameter, and the focusing process is completed. It is unnecessary to repeatedly move a lens in the imaging module to find the relative distance with the largest image contrast to achieve accurate focusing, time consumed in the focusing process can be shortened, and user experience is improved.
Description
Technical field
The application relates to image processing field, particularly relates to a kind of image processing method and electronic equipment.
Background technology
Along with the development of scientific and technological level, increasing integrated shoot function in the electronic equipments such as mobile phone, panel computer, intelligent glasses, people also more and more use the shoot function in electronic equipment in daily leisure and entertainment life, more and more higher for the requirement of the shoot function of electronic equipment.
In the time using the shoot function of camera, must carry out the accurate focusing of adjusting, just can make the incident light of camera lens focus on the photo-sensitive cell of camera, make captured image reach high definition, obtain good imaging effect.At present, the focusing scheme of camera has three kinds, contrast comparison method, phase-detection method, mixing method.Wherein, phase-detection method needs special phase-detection focusing system, is generally used for the mm professional camera special that slr camera equal-volume is slightly large; Mixing method is that integrated phase detects pixel on cmos sensor, needs special transducer, and the quality of image has been carried out to sacrifice to a certain degree; And contrast comparison method is passed through the contrast between imaging pixel in movement images, and then judge whether focusing is accurate, is the live view pattern of the most often applying.Therefore the focusing of the camera in electronic equipment scheme generally adopts contrast comparison method.
But, in prior art, at least there are the following problems: in the process that the camera utilization contrast comparison method in electronic equipment is focused, need the voice coil motor of camera to drive convex lens and concavees lens in camera lens to relatively move, progressively change the relative distance of convex lens and concavees lens, relative distance of every change is just carried out contrast ratio between Polaroid pixel, in the time that the contrast between the imaging pixel on photo-sensitive cell is inadequate, make voice coil motor again drive convex lens and concavees lens in camera lens to relatively move, to find out the relative distance of contrast maximum, as most suitable focal length.The movement that this process need is repeated multiple times and comparison could realize, and make whole focus process very consuming time, cause photographer to use the experience of camera not good.
Summary of the invention
In view of this, the embodiment of the present application provides a kind of image processing method and electronic equipment, to shorten the spent time of camera focus process, promotes user and experiences.
To achieve these goals, the technical scheme that the embodiment of the present application provides is as follows:
A kind of image processing method, is applied in the electronic equipment with image capture module, and described image capture module comprises imaging modules, and described image processing method comprises:
Obtain preview image by described image capture module;
Obtain the depth information of the each pixel in described preview image;
Determine the focusing in described preview image, and extract the depth information of described focusing;
The depth information of the described focusing obtaining according to extraction, calculates the focusing parameter of the imaging modules in described image capture module, and described imaging modules is adjusted to the state corresponding with described focusing parameter, completes focus process.
Preferably, described in obtain the depth information of the each pixel in described preview image, specifically comprise:
Generate the depth map corresponding with described preview image, the pixel in described depth map is corresponding one by one with the pixel in described preview image, and in described depth map, comprises the depth information of the described image capture module of each pixel distance;
From described depth map, extract the depth information corresponding with each pixel in described preview image.
Preferably, the depth map that described generation is corresponding with described preview image, is specially: adopt structured light, camera array calibrating or infrared imaging mode to generate the depth map corresponding with described preview image.
Preferably, the described focusing of determining in described preview image, comprising:
Detect and in described preview image, whether have predefined imaging main body;
If exist, automatically select predefined imaging main body in described preview image, as the focusing in described preview image;
If there is no,, based on described preview image, determine the imaging main body in the described preview image of manually selecting, as the focusing in described preview image.
Preferably, the depth information of the described described focusing obtaining according to extraction, calculates the focusing parameter of the imaging modules in described image capture module, comprising:
Preset the corresponding relation list of the depth information of focusing and the focusing parameter of imaging modules;
The corresponding focusing parameter of depth information of the described focusing that definite described extraction obtains from described corresponding relation list.
A kind of electronic equipment, comprises image capture module, and described image capture module comprises imaging modules, and described electronic equipment comprises:
Preview image acquisition module, for obtaining preview image by described image capture module;
Depth Information Acquistion module, for obtaining the depth information of each pixel of described preview image;
Focusing determination module, for determining the focusing of described preview image, and extracts the depth information of described focusing;
Focusing parameter adjustment module, be used for the depth information of the described focusing obtaining according to extraction, calculate the focusing parameter of the imaging modules in described image capture module, described imaging modules is adjusted to the state corresponding with described focusing parameter, complete focus process.
Preferably, described Depth Information Acquistion module, specifically comprises:
Depth map generation unit, for generating the depth map corresponding with described preview image, pixel in described depth map is corresponding one by one with the pixel in described preview image, and in described depth map, comprises the depth information of the described image capture module of each pixel distance;
Depth information determining unit, for extracting the depth information corresponding with each pixel described preview image from described depth map.
Preferably, described depth map generation unit, specifically for: adopt structured light, camera array calibrating or infrared imaging mode to generate the depth map corresponding with described preview image.
Preferably, described focusing determination module, comprising:
Detecting unit, for detection of whether there being predefined imaging main body in described preview image;
Automatic selected cell, if there is predefined imaging main body for described preview image, selects predefined imaging main body in described preview image, automatically as the focusing in described preview image;
Manually selected cell, if there is not predefined imaging main body for described preview image, based on described preview image, determines the imaging main body in the described preview image of manually selecting, as the focusing in described preview image.
Preferably, described focusing parameter adjustment module, comprising:
List cell, for presetting the corresponding relation list of the depth information of focusing and the focusing parameter of imaging modules;
Focusing parameter extraction unit, for determine the corresponding focusing parameter of depth information of the described focusing that obtains of described extraction from described corresponding relation list, is adjusted to the state corresponding with described focusing parameter by described imaging modules, completes focus process.
A kind of image processing method and electronic equipment that application the application provides, obtain preview image by described image capture module; Obtain the depth information of the each pixel in described preview image; Determine the focusing in described preview image, and extract the depth information of described focusing; The depth information of the described focusing obtaining according to extraction, calculates the focusing parameter of the imaging modules in described image capture module, and described imaging modules is adjusted to the state corresponding with described focusing parameter, completes focus process.Like this, can directly determine by the depth information of the focusing in preview image the focusing parameter of imaging modules, and directly described imaging modules is adjusted to the state corresponding with described focusing parameter, complete focus process, do not need the relative distance of the eyeglass searching imaging contrast maximum in repeated multiple times mobile imaging module to realize accurate focusing, can shorten the spent time of focus process, promote user and experience.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present application or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, the accompanying drawing the following describes is only some embodiment that record in the application, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
The flow chart of the image processing method that Fig. 1 provides for the embodiment of the present application one;
The flow chart of the image processing method that Fig. 2 provides for the embodiment of the present application two;
The flow chart of the image processing method that Fig. 3 provides for the embodiment of the present application three.
The flow chart of the image processing method that Fig. 4 provides for the embodiment of the present application four;
The structural representation of a kind of electronic equipment that Fig. 5 provides for the application;
The structural representation of the another kind of electronic equipment that Fig. 6 provides for the application;
The structural representation of another electronic equipment that Fig. 7 provides for the application;
The structural representation of another electronic equipment that Fig. 8 provides for the application.
Embodiment
In order to make those skilled in the art person understand better the technical scheme in the application, below in conjunction with the accompanying drawing in the embodiment of the present application, technical scheme in the embodiment of the present application is clearly and completely described, obviously, described embodiment is only the application's part embodiment, rather than whole embodiment.Based on the embodiment in the application, those of ordinary skills are not making the every other embodiment obtaining under creative work prerequisite, all should belong to the scope of the application's protection.
The invention discloses a kind of image processing method, be applied in the electronic equipment with image capture module, in the process of taking pictures by electronic equipment, directly determine the focusing parameter of imaging modules by the depth information of the focusing in preview image, and directly described imaging modules is adjusted to the state corresponding with described focusing parameter, complete focus process, do not need the relative distance of the eyeglass searching imaging contrast maximum in repeated multiple times mobile imaging module to realize accurate focusing, can shorten the spent time of focus process, promote user and experience.Electronic equipment in the present invention can be mobile phone, panel computer, camera, can be also PDA.
Be more than the application's core concept, in order to make those skilled in the art person understand better the application's scheme, below in conjunction with accompanying drawing, the application be described in further detail.
Embodiment mono-:
The flow chart of the image processing method that Fig. 1 provides for the embodiment of the present application one.
Shown in Fig. 1, the image processing method that the embodiment of the present application provides, is applied in the electronic equipment with image capture module, and described image capture module comprises imaging modules, and the image processing method that the embodiment of the present application provides comprises:
Step S11: obtain preview image by described image capture module.
In the embodiment of the present application, preview image can be for determining focusing, and focusing can be the imaging main body being taken, and such as the person of being taken, can not be also the imaging main body being taken, such as the person's of being taken face.
Image capture module comprises lens module and illuminant module, and lens module is used for gathering the incident light of shooting area, and the incident light of lens module collection is projected on illuminant module, forms the preview image of shooting area on illuminant module.
Step S12: the depth information that obtains the each pixel in described preview image.
In the embodiment of the present application, in preview image, the depth information of each pixel is embodied in the depth value of each pixel, can realize obtaining of depth information to each pixel in preview image by technology such as structured light, camera array calibrating, infrared detection, range sensor detections, repeat no more herein.
Step S13: determine the focusing in described preview image, and extract the depth information of described focusing.
In the embodiment of the present application, can determine the focusing of preview image according to preview image, when determining after focusing, need to accurately focus to focusing, now can obtain according to the depth information of each pixel in step S12 the depth information of focusing.
Step S14: the depth information of the described focusing obtaining according to extraction, calculate the focusing parameter of the imaging modules in described image capture module, described imaging modules is adjusted to the state corresponding with described focusing parameter, complete focus process.
In the embodiment of the present application, if the depth information of focusing detected, just can be according to corresponding relation, calculate focusing parameter according to the depth information of focusing, then according to focusing parameter adjustment imaging modules, imaging modules is directly adjusted to the state corresponding with described focusing parameter, completes focus process, directly complete the focusing in preview image is carried out to the accurately process of focusing.
It should be noted that, in the embodiment of the present application, can a less scope be set for the depth information of each pixel, the error causing with the operator's of prevent from focusing in the process of taking pictures main body or focusing or electronic equipment slight jitter, when determining after the depth information of each pixel, if the depth information of each pixel changes, but while not exceeding default scope, can normally focus, exceed default scope if cause depth information that larger variation occurs because movement range is excessive in focus process, restart focus process.
Further, complete defocused, can also again obtain second preview image.If necessary, can contrast demonstration to the preview image of twice, now can again judge whether again to focus or to change focusing according to second preview image, if needed, can repeat the step of S11~S14, if do not needed, can carry out subsequent operation according to second preview image.
Be understandable that, after completing the process of directly accurately focusing, if second preview image is respond well, just can trigger electronic equipment takes pictures, the focal length after adjusting obtains the accurately photo of focusing, that is to say, when can not make the definition of the focusing in preview image meet predetermined threshold value, can also focusing finely tune, until the definition of the focusing in preview image meets predetermined threshold value.
The image processing method that application the embodiment of the present application provides, obtains preview image by described image capture module; Obtain the depth information of the each pixel in described preview image; Determine the focusing in described preview image, and extract the depth information of described focusing; The depth information of the described focusing obtaining according to extraction, calculates the focusing parameter of the imaging modules in described image capture module, and described imaging modules is adjusted to the state corresponding with described focusing parameter, completes focus process.Like this, can directly determine by the depth information of the focusing in preview image the focusing parameter of imaging modules, and directly described imaging modules is adjusted to the state corresponding with described focusing parameter, complete focus process, do not need the relative distance of the eyeglass searching imaging contrast maximum in repeated multiple times mobile imaging module to realize accurate focusing, can shorten the spent time of focus process, promote user and experience.
Embodiment bis-:
The flow chart of the image processing method that Fig. 2 provides for the embodiment of the present application two.
Shown in Fig. 2, the image processing method that the embodiment of the present application provides comprises:
Step S21: obtain preview image by described image capture module.
Step S22: generate the depth map corresponding with described preview image, the pixel in described depth map is corresponding one by one with the pixel in described preview image, and in described depth map, comprise the depth information of each pixel apart from described image capture module.
In generating preview image, generate the depth map corresponding with preview image, depth map is the shooting environmental based on identical, photographed scene and shooting progress with preview image, with preview image Complete Synchronization and corresponding, pixel in depth map is corresponding one by one with the pixel in preview image, and different from preview image is, and what in described depth map, to comprise is the depth information of the described image capture module of each pixel distance in preview image.The depth map here can generate by technology such as structured light, camera array calibrating, infrared detection, range sensor detections in the time gathering preview image, repeats no more herein.
Step S23: extract the depth information corresponding with each pixel in described preview image from described depth map.
Depth map comprises the depth information of the described image capture module of each pixel distance in preview image, therefore can from depth map, extract the depth information of each pixel, shows as the depth value of pixel.
Step S24: determine the focusing in described preview image, and extract the depth information of described focusing.
Step S25: the depth information of the described focusing obtaining according to extraction, calculate the focusing parameter of the imaging modules in described image capture module, described imaging modules is adjusted to the state corresponding with described focusing parameter, complete focus process.
The image processing method that application the embodiment of the present application provides, obtain preview image by described image capture module, and obtain the depth information of the each pixel in described preview image according to the depth map of and corresponding generation synchronous with preview image, thereby obtain the depth information of focusing, and then directly calculate the focusing parameter of the imaging modules in described image capture module, and described imaging modules is adjusted to the state corresponding with described focusing parameter, complete focus process.Like this, can directly determine by the depth information of the focusing in the depth map synchronous corresponding with preview image the focusing parameter of imaging modules, and directly described imaging modules is adjusted to the state corresponding with described focusing parameter, complete focus process, do not need the relative distance of the eyeglass searching imaging contrast maximum in repeated multiple times mobile imaging module to realize accurate focusing, can shorten the spent time of focus process, promote user and experience.
Embodiment tri-:
The flow chart of the image processing method that Fig. 3 provides for the embodiment of the present application three.
Shown in Fig. 3, the image processing method that the embodiment of the present application provides, comprising:
Step S31: obtain preview image by described image capture module.
Step S32: the depth information that obtains the each pixel in described preview image.
Step S33: detect whether there is predefined imaging main body in described preview image.
In the embodiment of the present application, in electronic equipment, can set in advance imaging main body, such as selecting that personage is preferential, face is preferential or center-spot etc., in the time taking a picture, electronic equipment just can, according to the imaging main body setting in advance, detect and whether have the imaging region matching with predefined imaging main body in preview image.
Step S34: have predefined imaging main body in described preview image, automatically select predefined imaging main body in described preview image, as the focusing in described preview image, and extract the depth information of described focusing.
In the embodiment of the present application, if in preview image, exist with electronic equipment in the imaging region that matches of predefined imaging main body, automatically using this imaging region as focusing.
Here, the focusing of this imaging region can be the central point of each pixel in this imaging region, also can be the point of giving prominence to the key points in this imaging region, when imaging region is during as focusing, the depth information of focusing can be the mean value of the depth information of each pixel of imaging region, also can be the depth information of the point of giving prominence to the key points in this imaging region, can also be the depth information of imaging region central point.
Step S35: if there is not predefined imaging main body in described preview image, based on described preview image, determine the imaging main body in the described preview image of manually selecting, as the focusing in described preview image, and extract the depth information of described focusing.
In the embodiment of the present application, if there is not predefined imaging main body in preview image, or in preview image, cannot match the imaging region adapting with predefined imaging main body, can be according to this preview image, manually select suitable focusing, the depth information of the focusing of now manually selecting just can be used as the foundation of calculating focusing parameter, completes subsequent step.
Step S36: the depth information of the described focusing obtaining according to extraction, calculate the focusing parameter of the imaging modules in described image capture module, described imaging modules is adjusted to the state corresponding with described focusing parameter, complete focus process.
The image processing method that application the embodiment of the present application provides, can automatically select predefined focusing according to preview image, or manually select focusing, then determine the depth information of focusing according to the depth information of each pixel, the depth information of the described focusing obtaining according to extraction, calculate the focusing parameter of the imaging modules in described image capture module, described imaging modules is adjusted to the state corresponding with described focusing parameter, complete focus process.Like this, the depth information of the focusing that can select by automatic or manual in preview image is directly determined the focusing parameter of imaging modules, and directly described imaging modules is adjusted to the state corresponding with described focusing parameter, complete focus process, do not need the relative distance of the eyeglass searching imaging contrast maximum in repeated multiple times mobile imaging module to realize accurate focusing, can shorten the spent time of focus process, promote user and experience.
Embodiment tetra-:
The flow chart of the image processing method that Fig. 4 provides for the embodiment of the present application four.
Shown in Fig. 4, the image processing method that the embodiment of the present application provides, comprising:
Step S41: obtain preview image by described image capture module.
Step S42: the depth information that obtains the each pixel in described preview image.
Step S43: determine the focusing in described preview image, and extract the depth information of described focusing.
Step S44: preset the corresponding relation list of the depth information of focusing and the focusing parameter of imaging modules.
In the embodiment of the present application, to directly determine by the depth information of focusing the focusing parameter of imaging modules, can be through pre-trial or calculating in the situation that, set the corresponding relation between the depth information of focusing and the focusing parameter of imaging modules, and this corresponding relation can be preserved into a corresponding relation list.
In this corresponding relation list, the depth information of focusing is corresponding one by one with the focusing parameter of imaging modules, after the depth information of focusing is determined, can from table, obtain the focusing parameter of imaging modules, and here, focusing parameter comprises focal length.
Step S45: the corresponding focusing parameter of depth information of the described focusing that definite described extraction obtains from described corresponding relation list, described imaging modules is adjusted to the state corresponding with described focusing parameter, complete focus process.
Obtain in extraction after the depth information of focusing, can directly from corresponding relation list, determine corresponding focusing parameter, then can directly imaging modules be adjusted to the state corresponding with described focusing parameter, by the extremely focal length corresponding with the depth information of focusing of Focussing of imaging modules,, complete focus process.
In the embodiment of the present application, after focusing completes, can also obtain second preview image, and again judge whether again to focus or to change focusing according to second preview image, if need, can repeat the step of S41~S45, if do not needed, can take pictures, photo accurately obtains focusing.
The image processing method that application the embodiment of the present application provides, can be according to the depth information of the focusing of the preview image obtaining, in the corresponding relation list of the depth information of focusing generating in advance and the focusing parameter of imaging modules, directly obtain the focusing parameter of the imaging modules in described image capture module, and then described imaging modules directly can be adjusted to the state corresponding with described focusing parameter, complete focus process.Like this, can directly determine by the depth information of the focusing in preview image the focusing parameter of imaging modules, and directly described imaging modules is adjusted to the state corresponding with described focusing parameter, complete focus process, do not need the relative distance of the eyeglass searching imaging contrast maximum in repeated multiple times mobile imaging module to realize accurate focusing, can shorten the spent time of focus process, promote user and experience.
For aforesaid each embodiment of the method, for simple description, therefore it is all expressed as to a series of combination of actions, but those skilled in the art should know, the present invention is not subject to the restriction of described sequence of movement, because according to the present invention, some step can adopt other orders or carry out simultaneously.
The above-mentioned image processing method that discloses of the present invention, corresponding, the invention also discloses the electronic equipment of the above-mentioned image processing method of application, this electronic equipment, for focal length rapidly and accurately in the time taking pictures, shortens the spent time of focus process, promotes user and experiences.。
The structural representation of a kind of electronic equipment that Fig. 5 provides for the application.
Shown in Fig. 5, the electronic equipment that the embodiment of the present application provides, comprises image capture module, and described image capture module comprises imaging modules, and described electronic equipment comprises:
Preview image acquisition module 1, for obtaining preview image by described image capture module.
Depth Information Acquistion module 2, for obtaining the depth information of each pixel of described preview image.
Focusing determination module 3, for determining the focusing of described preview image, and extracts the depth information of described focusing.
Focusing parameter adjustment module 4, be used for the depth information of the described focusing obtaining according to extraction, calculate the focusing parameter of the imaging modules in described image capture module, described imaging modules is adjusted to the state corresponding with described focusing parameter, complete focus process.
In the time of practical application, focusing parameter adjustment module 4 can be determined according to depth map the depth value of the focusing in preview image, and according to the corresponding relation of the depth value of default pulsewidth and focusing, adjust the focal length of described image collecting device by adjusting pulsewidth.
Now, in focusing parameter adjustment module 4, can also comprise focal length processing module and voice coil motor, focal length processing module is for determining the depth value of the focusing of preview image according to depth map, and according to the corresponding relation of the depth value of default pulsewidth and focusing, determine and preview image in the pulsewidth of voice coil motor corresponding to the depth value of focusing, and send pulse-width signal to voice coil motor, convex lens in setting voice coil motor adjustment imaging modules and the relative distance of concavees lens, and convex lens in imaging modules after adjusting and the relative distance of concavees lens are as the focal length of imaging modules.
Here, the depth value of the focusing in pulsewidth and the preview image of voice coil motor is corresponding one by one, and the depth value negative correlation of focusing in pulsewidth and the preview image of voice coil motor.
The electronic equipment that the embodiment of the present application provides, can adopt the image processing method in said method embodiment, repeats no more herein.
Depth Information Acquistion module 2, in the time obtaining the depth information of each pixel in preview image, needs multiple unit coordinated, and therefore Depth Information Acquistion module 2 correspondences arrange multiple unit.
The structural representation of the another kind of electronic equipment that Fig. 6 provides for the application.
Shown in Fig. 6, the electronic equipment that the embodiment of the present application provides, comprising:
Preview image acquisition module 1, for obtaining preview image by described image capture module.
Depth map generation unit 21, for generating the depth map corresponding with described preview image, pixel in described depth map is corresponding one by one with the pixel in described preview image, and in described depth map, comprises the depth information of the described image capture module of each pixel distance.
In the time of specific implementation, depth map generation unit 2 can adopt structured light, camera array calibrating or infrared imaging mode to generate the depth map corresponding with described preview image, repeats no more herein.
In the time adopting camera array calibrating mode, need at least two group image capture modules, two groups of image capture modules fixed range of being separated by is arranged in parallel, and two groups of image capture modules are towards same direction, take direction.Now, obtaining of depth map is the parallax according to the preview image of the same shooting area of two groups of image capture modules collections, generates the depth map corresponding with described preview image.
In the time adopting infrared imaging mode, one group of image capture module can be only set, now depth map generation unit 21 and the image capture module fixed range of being separated by is arranged in parallel, and depth map generation unit 21 is with image capture module towards same direction, and depth map generation unit 21 is for directly gathering the corresponding depth map of preview image that image capture module is taken.
Depth information determining unit 22, for extracting the depth information corresponding with each pixel described preview image from described depth map.
Focusing determination module 3, for determining the focusing of described preview image, and extracts the depth information of described focusing.
Focusing parameter adjustment module 4, be used for the depth information of the described focusing obtaining according to extraction, calculate the focusing parameter of the imaging modules in described image capture module, described imaging modules is adjusted to the state corresponding with described focusing parameter, complete focus process.
The electronic equipment that the embodiment of the present application provides, can adopt the image processing method in said method embodiment, repeats no more herein.
Because focusing can be selected also can manually select automatically, therefore focusing determination module 3 correspondences arrange different unit.
The structural representation of another electronic equipment that Fig. 7 provides for the application.
Shown in Fig. 7, the electronic equipment that the embodiment of the present application provides, comprising:
Preview image acquisition module 1, for obtaining preview image by described image capture module.
Depth Information Acquistion module 2, for obtaining the depth information of each pixel of described preview image.
Detecting unit 31, for detection of whether there being predefined imaging main body in described preview image.
Automatic selected cell 32, if there is predefined imaging main body for described preview image, selects predefined imaging main body in described preview image, automatically as the focusing in described preview image.
Manually selected cell 33, if there is not predefined imaging main body for described preview image, based on described preview image, determines the imaging main body in the described preview image of manually selecting, as the focusing in described preview image.
Focusing parameter adjustment module 4, be used for the depth information of the described focusing obtaining according to extraction, calculate the focusing parameter of the imaging modules in described image capture module, described imaging modules is adjusted to the state corresponding with described focusing parameter, complete focus process.
The electronic equipment that the embodiment of the present application provides, can adopt the image processing method in said method embodiment, repeats no more herein.
Obtaining after the depth information of focusing, in order to shorten the focusing time, further promoting user and experience, the electronic equipment that the embodiment of the present application provides can directly be determined by the depth information of focusing the focusing parameter of imaging modules.
The structural representation of another electronic equipment that Fig. 8 provides for the application.
Shown in Fig. 8, the electronic equipment that the embodiment of the present application provides, comprising:
Preview image acquisition module 1, for obtaining preview image by described image capture module.
Depth Information Acquistion module 2, for obtaining the depth information of each pixel of described preview image.
Focusing determination module 3, for determining the focusing of described preview image, and extracts the depth information of described focusing.
Focusing parameter extraction unit 42, for determine the corresponding focusing parameter of depth information of the described focusing that obtains of described extraction from described corresponding relation list, is adjusted to the state corresponding with described focusing parameter by described imaging modules, completes focus process.
The electronic equipment that the embodiment of the present application provides, can adopt the image processing method in said method embodiment, repeats no more herein.
A kind of image processing method and electronic equipment that application the application provides, obtain preview image by described image capture module; Obtain the depth information of the each pixel in described preview image; Determine the focusing in described preview image, and extract the depth information of described focusing; The depth information of the described focusing obtaining according to extraction, calculates the focusing parameter of the imaging modules in described image capture module, and described imaging modules is adjusted to the state corresponding with described focusing parameter, completes focus process.Like this, can directly determine by the depth information of the focusing in preview image the focusing parameter of imaging modules, and directly described imaging modules is adjusted to the state corresponding with described focusing parameter, complete focus process, do not need the relative distance of the eyeglass searching imaging contrast maximum in repeated multiple times mobile imaging module to realize accurate focusing, can shorten the spent time of focus process, promote user and experience.
For convenience of description, while describing above device, being divided into various unit with function describes respectively.Certainly, in the time implementing the application, the function of each unit can be realized in same or multiple software and/or hardware.
Each embodiment in this specification all adopts the mode of going forward one by one to describe, between each embodiment identical similar part mutually referring to, what each embodiment stressed is and the difference of other embodiment.Especially,, for device or system embodiment, because it is substantially similar in appearance to embodiment of the method, so describe fairly simplely, relevant part is referring to the part explanation of embodiment of the method.Apparatus and system embodiment described above is only schematic, the wherein said unit as separating component explanation can or can not be also physically to separate, the parts that show as unit can be or can not be also physical locations, can be positioned at a place, or also can be distributed in multiple network element.Can select according to the actual needs some or all of module wherein to realize the object of the present embodiment scheme.Those of ordinary skills, in the situation that not paying creative work, are appreciated that and implement.
Professional can also further recognize, unit and the algorithm steps of each example of describing in conjunction with embodiment disclosed herein, can realize with electronic hardware, computer software or the combination of the two, for the interchangeability of hardware and software is clearly described, composition and the step of each example described according to function in the above description in general manner.These functions are carried out with hardware or software mode actually, depend on application-specific and the design constraint of technical scheme.Professional and technical personnel can realize described function with distinct methods to each specifically should being used for, but this realization should not thought and exceeds scope of the present invention.
The software module that the method for describing in conjunction with embodiment disclosed herein or the step of algorithm can directly use hardware, processor to carry out, or the combination of the two is implemented.Software module can be placed in the storage medium of any other form known in random asccess memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technical field.
To the above-mentioned explanation of the disclosed embodiments, make professional and technical personnel in the field can realize or use the present invention.To be apparent for those skilled in the art to the multiple modification of these embodiment, General Principle as defined herein can, in the situation that not departing from the spirit or scope of the present invention, realize in other embodiments.Therefore, the present invention will can not be restricted to these embodiment shown in this article, but will meet the widest scope consistent with principle disclosed herein and features of novelty.
Claims (10)
1. an image processing method, is applied in the electronic equipment with image capture module, and described image capture module comprises imaging modules, it is characterized in that, described image processing method comprises:
Obtain preview image by described image capture module;
Obtain the depth information of the each pixel in described preview image;
Determine the focusing in described preview image, and extract the depth information of described focusing;
The depth information of the described focusing obtaining according to extraction, calculates the focusing parameter of the imaging modules in described image capture module, and described imaging modules is adjusted to the state corresponding with described focusing parameter, completes focus process.
2. image processing method according to claim 1, is characterized in that, described in obtain the depth information of the each pixel in described preview image, specifically comprise:
Generate the depth map corresponding with described preview image, the pixel in described depth map is corresponding one by one with the pixel in described preview image, and in described depth map, comprises the depth information of the described image capture module of each pixel distance;
From described depth map, extract the depth information corresponding with each pixel in described preview image.
3. image processing method according to claim 2, it is characterized in that, the depth map that described generation is corresponding with described preview image, is specially: adopt structured light, camera array calibrating or infrared imaging mode to generate the depth map corresponding with described preview image.
4. image processing method according to claim 1, is characterized in that, the described focusing of determining in described preview image, comprising:
Detect and in described preview image, whether have predefined imaging main body;
If exist, automatically select predefined imaging main body in described preview image, as the focusing in described preview image;
If there is no,, based on described preview image, determine the imaging main body in the described preview image of manually selecting, as the focusing in described preview image.
5. image processing method according to claim 1, is characterized in that, the depth information of the described described focusing obtaining according to extraction calculates the focusing parameter of the imaging modules in described image capture module, comprising:
Preset the corresponding relation list of the depth information of focusing and the focusing parameter of imaging modules;
The corresponding focusing parameter of depth information of the described focusing that definite described extraction obtains from described corresponding relation list.
6. an electronic equipment, comprises image capture module, and described image capture module comprises imaging modules, it is characterized in that, described electronic equipment comprises:
Preview image acquisition module, for obtaining preview image by described image capture module;
Depth Information Acquistion module, for obtaining the depth information of each pixel of described preview image;
Focusing determination module, for determining the focusing of described preview image, and extracts the depth information of described focusing;
Focusing parameter adjustment module, be used for the depth information of the described focusing obtaining according to extraction, calculate the focusing parameter of the imaging modules in described image capture module, described imaging modules is adjusted to the state corresponding with described focusing parameter, complete focus process.
7. electronic equipment according to claim 6, is characterized in that, described Depth Information Acquistion module, specifically comprises:
Depth map generation unit, for generating the depth map corresponding with described preview image, pixel in described depth map is corresponding one by one with the pixel in described preview image, and in described depth map, comprises the depth information of the described image capture module of each pixel distance;
Depth information determining unit, for extracting the depth information corresponding with each pixel described preview image from described depth map.
8. electronic equipment according to claim 7, is characterized in that, described depth map generation unit, specifically for: adopt structured light, camera array calibrating or infrared imaging mode to generate the depth map corresponding with described preview image.
9. electronic equipment according to claim 6, is characterized in that, described focusing determination module, comprising:
Detecting unit, for detection of whether there being predefined imaging main body in described preview image;
Automatic selected cell, if there is predefined imaging main body for described preview image, selects predefined imaging main body in described preview image, automatically as the focusing in described preview image;
Manually selected cell, if there is not predefined imaging main body for described preview image, based on described preview image, determines the imaging main body in the described preview image of manually selecting, as the focusing in described preview image.
10. electronic equipment according to claim 6, is characterized in that, described focusing parameter adjustment module, comprising:
List cell, for presetting the corresponding relation list of the depth information of focusing and the focusing parameter of imaging modules;
Focusing parameter extraction unit, for determine the corresponding focusing parameter of depth information of the described focusing that obtains of described extraction from described corresponding relation list, is adjusted to the state corresponding with described focusing parameter by described imaging modules, completes focus process.
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 true CN103795934A (en) | 2014-05-14 |
CN103795934B 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) |
Cited By (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104023177A (en) * | 2014-06-04 | 2014-09-03 | 华为技术有限公司 | Camera control method, device and camera |
CN104410784A (en) * | 2014-11-06 | 2015-03-11 | 北京智谷技术服务有限公司 | Light field collecting control method and light field collecting control device |
CN104680563A (en) * | 2015-02-15 | 2015-06-03 | 青岛海信移动通信技术股份有限公司 | Image data generating method and device |
CN105592266A (en) * | 2015-12-22 | 2016-05-18 | 歌尔声学股份有限公司 | Bokeh image processing method and system |
CN105744138A (en) * | 2014-12-09 | 2016-07-06 | 联想(北京)有限公司 | Quick focusing method and electronic equipment |
CN105744163A (en) * | 2016-02-23 | 2016-07-06 | 湖南拓视觉信息技术有限公司 | Video camera and video recording method performing tracking focusing based on depth information |
CN106131399A (en) * | 2016-06-24 | 2016-11-16 | 维沃移动通信有限公司 | A kind of video capture method and mobile terminal |
CN106303267A (en) * | 2015-05-25 | 2017-01-04 | 北京智谷睿拓技术服务有限公司 | Image capture device and method |
TWI583996B (en) * | 2016-05-27 | 2017-05-21 | 致伸科技股份有限公司 | Method for measuring depth of field and image pickup device using the same |
US9769379B2 (en) | 2015-02-15 | 2017-09-19 | Hisense Mobile Communications Technology Co., Ltd. | Method and apparatus for selecting target image |
CN107493427A (en) * | 2017-07-31 | 2017-12-19 | 广东欧珀移动通信有限公司 | Focusing method, device and the mobile terminal of mobile terminal |
CN108401457A (en) * | 2017-08-25 | 2018-08-14 | 深圳市大疆创新科技有限公司 | A kind of control method of exposure, device and unmanned plane |
CN109451241A (en) * | 2018-12-10 | 2019-03-08 | 无锡祥生医疗科技股份有限公司 | The focus Automatic adjustment method and device of ultrasound image |
WO2019113746A1 (en) * | 2017-12-11 | 2019-06-20 | 深圳市大疆创新科技有限公司 | Manual-focus prompt method, control apparatus, photography device, and controller |
WO2020147790A1 (en) * | 2019-01-18 | 2020-07-23 | 深圳看到科技有限公司 | Picture focusing method, apparatus, and device, and corresponding storage medium |
CN115546306A (en) * | 2022-01-30 | 2022-12-30 | 荣耀终端有限公司 | Camera calibration method and device, electronic equipment and readable storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101951525A (en) * | 2009-07-09 | 2011-01-19 | 索尼公司 | Image processing equipment, image processing method and program |
US20120033051A1 (en) * | 2010-08-09 | 2012-02-09 | Qualcomm Incorporated | Autofocus for stereo images |
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 |
-
2014
- 2014-03-03 CN CN201410075128.4A patent/CN103795934B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101951525A (en) * | 2009-07-09 | 2011-01-19 | 索尼公司 | Image processing equipment, image processing method and program |
US20120033051A1 (en) * | 2010-08-09 | 2012-02-09 | Qualcomm Incorporated | Autofocus for stereo images |
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 |
Cited By (27)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104023177A (en) * | 2014-06-04 | 2014-09-03 | 华为技术有限公司 | Camera control method, device and camera |
WO2015184978A1 (en) * | 2014-06-04 | 2015-12-10 | 华为技术有限公司 | Camera control method and device, and camera |
CN104410784A (en) * | 2014-11-06 | 2015-03-11 | 北京智谷技术服务有限公司 | Light field collecting control method and light field collecting control device |
CN104410784B (en) * | 2014-11-06 | 2019-08-06 | 北京智谷技术服务有限公司 | Optical field acquisition control method and device |
US10269130B2 (en) | 2014-11-06 | 2019-04-23 | Beijing Zhigu Tech Co., Ltd. | Methods and apparatus for control of light field capture object distance adjustment range via adjusting bending degree of sensor imaging zone |
CN105744138B (en) * | 2014-12-09 | 2020-02-21 | 联想(北京)有限公司 | Quick focusing method and electronic equipment |
CN105744138A (en) * | 2014-12-09 | 2016-07-06 | 联想(北京)有限公司 | Quick focusing method and electronic equipment |
US9852508B2 (en) | 2015-02-15 | 2017-12-26 | Hisense Mobile Communications Technology Co., Ltd. | Image data generating method and apparatus |
US9769379B2 (en) | 2015-02-15 | 2017-09-19 | Hisense Mobile Communications Technology Co., Ltd. | Method and apparatus for selecting target image |
CN104680563B (en) * | 2015-02-15 | 2018-06-01 | 青岛海信移动通信技术股份有限公司 | The generation method and device of a kind of image data |
CN104680563A (en) * | 2015-02-15 | 2015-06-03 | 青岛海信移动通信技术股份有限公司 | Image data generating method and device |
CN106303267A (en) * | 2015-05-25 | 2017-01-04 | 北京智谷睿拓技术服务有限公司 | Image capture device and method |
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 |
CN105744163A (en) * | 2016-02-23 | 2016-07-06 | 湖南拓视觉信息技术有限公司 | Video camera and video recording method performing tracking focusing based on depth information |
TWI583996B (en) * | 2016-05-27 | 2017-05-21 | 致伸科技股份有限公司 | Method for measuring depth of field and image pickup device using the same |
CN106131399A (en) * | 2016-06-24 | 2016-11-16 | 维沃移动通信有限公司 | A kind of video capture method and mobile terminal |
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 |
CN108401457A (en) * | 2017-08-25 | 2018-08-14 | 深圳市大疆创新科技有限公司 | A kind of control method of exposure, device and unmanned plane |
WO2019113746A1 (en) * | 2017-12-11 | 2019-06-20 | 深圳市大疆创新科技有限公司 | Manual-focus prompt method, control apparatus, photography device, and controller |
CN109451241A (en) * | 2018-12-10 | 2019-03-08 | 无锡祥生医疗科技股份有限公司 | The focus Automatic adjustment method and device of ultrasound image |
WO2020147790A1 (en) * | 2019-01-18 | 2020-07-23 | 深圳看到科技有限公司 | Picture focusing method, apparatus, and device, and corresponding storage medium |
US11683583B2 (en) | 2019-01-18 | 2023-06-20 | Kandao Technology Co., Ltd. | Picture focusing method, apparatus, terminal, and corresponding storage medium |
CN115546306A (en) * | 2022-01-30 | 2022-12-30 | 荣耀终端有限公司 | Camera calibration method and device, electronic equipment and readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN103795934B (en) | 2018-06-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103795934A (en) | Image processing method and electronic device | |
CN105007420B (en) | A kind of focusing method and mobile terminal | |
US8830357B2 (en) | Image processing device and image processing method including a blurring process | |
TWI538512B (en) | Method for adjusting focus position and electronic apparatus | |
US8885091B2 (en) | Imaging device and distance information detecting method | |
CN106713769B (en) | Image shooting control method and device and electronic equipment | |
CN103795933B (en) | A kind of image processing method and electronic equipment | |
CN106226976B (en) | A kind of dual camera image pickup method, system and terminal | |
CN104079812B (en) | A kind of image information acquisition method and device | |
WO2017185562A1 (en) | Method and device for projection focusing | |
US20130141604A1 (en) | Image capturing device and method for capturing details of entire shooting scene | |
CN103780843A (en) | Image processing method and electronic device | |
WO2017008353A1 (en) | Capturing method and user terminal | |
CN104363377B (en) | Display methods, device and the terminal of focus frame | |
WO2016000330A1 (en) | Focal length adjustment method, device and terminal, and computer storage medium | |
CN102984530A (en) | Image processing system and automatic focusing method | |
JP2012173531A (en) | Imaging device, focus control method and program | |
CN108076278A (en) | A kind of Atomatic focusing method, device and electronic equipment | |
CN103905725B (en) | Image processing equipment and image processing method | |
CN104079837B (en) | A kind of focusing method and device based on imaging sensor | |
JP2015001609A (en) | Control device and storage medium | |
CN103188428A (en) | Shooting device and method | |
WO2011016322A1 (en) | Imaging device, editing device, and imaging system | |
JP2011087128A (en) | Pantoscopic camera and method for discrimination of object | |
CN102959942A (en) | Image capture device for stereoscopic viewing-use and control method of same |
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 |