CN108668086A - Atomatic focusing method, device, storage medium and terminal - Google Patents

Atomatic focusing method, device, storage medium and terminal Download PDF

Info

Publication number
CN108668086A
CN108668086A CN201810935373.6A CN201810935373A CN108668086A CN 108668086 A CN108668086 A CN 108668086A CN 201810935373 A CN201810935373 A CN 201810935373A CN 108668086 A CN108668086 A CN 108668086A
Authority
CN
China
Prior art keywords
focusing
focusing area
photographic subjects
quality score
shooting
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810935373.6A
Other languages
Chinese (zh)
Other versions
CN108668086B (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810935373.6A priority Critical patent/CN108668086B/en
Publication of CN108668086A publication Critical patent/CN108668086A/en
Application granted granted Critical
Publication of CN108668086B publication Critical patent/CN108668086B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/67Focus control based on electronic image sensor signals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • H04N17/002Diagnosis, testing or measuring for television systems or their details for television cameras

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • General Health & Medical Sciences (AREA)
  • Studio Devices (AREA)
  • Automatic Focus Adjustment (AREA)

Abstract

The embodiment of the present application discloses a kind of Atomatic focusing method, device, storage medium and terminal, this method:Focusing area division is carried out to the shooting visual field, and determines the default scoring range of each focusing area;Determine the focusing area where photographic subjects in the shooting image obtained;Quality score is carried out to the focusing area where the photographic subjects;If the quality score is unsatisfactory for the default scoring range of the focusing area where the photographic subjects, focus operation is re-started to the photographic subjects.The efficiency and accuracy of auto-focusing can be improved.

Description

Atomatic focusing method, device, storage medium and terminal
Technical field
The invention relates to technical field of mobile terminals more particularly to Atomatic focusing method, device, storage medium and Terminal.
Background technology
Currently, camera function has become the standard configuration of most terminal devices, terminal user can pass through portable shifting Dynamic terminal quickly and easily realizes photographing operation.
The development of terminal device is more and more intelligent, in order to improve the clarity of shooting image, common terminal device meeting Automatically it focuses to photographic subjects.However, the real-time of terminal device auto-focusing is poor, can not find currently to focus in time As a result inaccuracy still carries out the acquisition of image using original Focusing parameter, causes shooting image there is a problem of out of focus, urgently It needs to improve.
Invention content
The purpose of the embodiment of the present application is to provide a kind of Atomatic focusing method, device, storage medium and terminal, can improve The efficiency and accuracy of auto-focusing.
In a first aspect, the embodiment of the present application provides a kind of Atomatic focusing method, including:
Focusing area division is carried out to the shooting visual field, and determines the default scoring range of each focusing area;
Determine the focusing area where photographic subjects in the shooting image obtained;
Quality score is carried out to the focusing area where the photographic subjects;
If the quality score is unsatisfactory for the default scoring range of the focusing area where the photographic subjects, to institute It states photographic subjects and re-starts focus operation.
Second aspect, the embodiment of the present application provide a kind of automatic focusing mechanism, including:
Region division module, for carrying out focusing area division to the shooting visual field;
Score range determination module, the default scoring range of each focusing area for determining the division of region division module;
Area determination module, for determining the focusing area in the shooting image obtained where photographic subjects;
Quality score module, for the focusing area where the photographic subjects that are determined to the area determination module into Row quality score;
Focusing module, if the quality score for the quality score module is unsatisfactory for pair where the photographic subjects The default scoring range in burnt region, then re-start focus operation to the photographic subjects.
The third aspect, the embodiment of the present application provide a kind of computer readable storage medium, are stored thereon with computer journey Sequence realizes the Atomatic focusing method as shown in first aspect when the program is executed by processor.
Fourth aspect, the embodiment of the present application provide a kind of terminal, including memory, and processor and storage are on a memory And the computer program that can be run in processor, the processor are realized when executing the computer program as shown in first aspect Atomatic focusing method.
The auto-focusing scheme provided in the embodiment of the present application carries out focusing area division to the shooting visual field first, and really The default scoring range of fixed each focusing area;Secondly, the focusing area where photographic subjects in the shooting image obtained is determined;Again It is secondary, quality score is carried out to the focusing area where the photographic subjects;Finally, if the quality score is unsatisfactory for the bat The default scoring range for taking the photograph the focusing area where target, then re-start focus operation to the photographic subjects, can improve The efficiency and accuracy of auto-focusing.
Description of the drawings
Fig. 1 is a kind of flow diagram of Atomatic focusing method provided by the embodiments of the present application;
Fig. 2 is the flow diagram of another Atomatic focusing method provided by the embodiments of the present application;
Fig. 3 is the flow diagram of another Atomatic focusing method provided by the embodiments of the present application;
Fig. 4 is the flow diagram of another Atomatic focusing method provided by the embodiments of the present application;
Fig. 5 is the flow diagram of another Atomatic focusing method provided by the embodiments of the present application;
Fig. 6 is the flow diagram of another Atomatic focusing method provided by the embodiments of the present application;
Fig. 7 is a kind of structural schematic diagram of automatic focusing mechanism provided by the embodiments of the present application;
Fig. 8 is a kind of structural schematic diagram of terminal device provided by the embodiments of the present application.
Specific implementation mode
Further illustrate the technical solution of the application below with reference to the accompanying drawings and specific embodiments.It is appreciated that It is that specific embodiment described herein is used only for explaining the application, rather than the restriction to the application.It further needs exist for illustrating , illustrate only for ease of description, in attached drawing and the relevant part of the application rather than entire infrastructure.
It should be mentioned that some exemplary embodiments are described as before exemplary embodiment is discussed in greater detail The processing described as flow chart or method.Although each step is described as the processing of sequence, many of which by flow chart Step can be implemented concurrently, concomitantly or simultaneously.In addition, the sequence of each step can be rearranged.When its operation The processing can be terminated when completion, it is also possible to the additional step being not included in attached drawing.The processing can be with Corresponding to method, function, regulation, subroutine, subprogram etc..
Currently, camera function has become the standard configuration of most mobile terminals, terminal user can pass through portable end End equipment quickly and easily realizes photographing operation.The development of terminal device is more and more intelligent, in order to improve the clear of shooting image Clear degree, common terminal device can automatically focus to shooting image.However, the real-time of terminal device auto-focusing compared with Difference, if for example, photographic subjects position changes, focusing result at this time is inaccurate, but terminal device can not The inaccuracy for finding current focusing result in time, still carries out the acquisition of image using original Focusing parameter, causes to take There are problems out of focus for image, and there is an urgent need for improve.
The embodiment of the present application provides a kind of Atomatic focusing method, can before shooting will shooting the visual field be divided into it is multiple right Burnt region, and determine the default scoring range of each focusing area, focusing area where when shooting first determines photographic subjects, judging should Whether the quality score of focusing area meets the corresponding default scoring range of the focusing area, to photographic subjects weight if being unsatisfactory for New focusing, simplifies focus operation, improves the efficiency and accuracy of focusing.Concrete scheme is as follows:
Fig. 1 is the flow diagram of Atomatic focusing method provided by the embodiments of the present application, and this method exists for terminal device The case where starting during camera shot, auto-focusing is carried out to photographic subjects, this method can be by carrying image The terminal device of shooting function is equipped with the mobile terminal of image taking class application program to execute, which can be Smart mobile phone, tablet computer, wearable device, laptop etc., this method specifically comprises the following steps:
Step 110 carries out focusing area division to the shooting visual field, and determines the default scoring range of each focusing area.
Wherein, the shooting visual field can be the maximum magnitude that the camera on terminal device can take, and shoot the visual field Size is determined by the characteristic of camera, for example, the shooting visual field of wide-angle camera is just greater than focal length camera.It is default to comment Point range be it is pre- first pass through after at least two cameras synchronize and carry out focusing shooting to the different zones for shooting the visual field, according to focusing What the shooting result of different zones afterwards determined, for weighing whether photographic subjects quality in image meets the requirements, i.e., whether need Re-start focus operation.
In the embodiment of the present application, to shooting the visual field carry out focusing area division when can according to certain division rule into Row divides, and specific division rule the application can will shoot the visual field to be divided into shape size identical extremely without limiting Few two focusing areas, for example, the shooting visual field to be divided into the grid spaces of the sizes such as four of Tian-shaped;Can also be by At least two focusing areas are divided into according to the significance level of shooting visual field inner region, for example, when terminal user shoots, custom Photographic subjects are placed on to the central area in the shooting visual field, therefore can be in the form of concentric circles divided into from center to edge more A focusing area.Optionally, the shapes and sizes of each focusing area after division can be the same or different, to this application Without limiting.
After dividing the shooting visual field, need to determine a default scoring model to each focusing area after division It encloses.Illustratively, when determining the corresponding default scoring range in the region for each focusing area, camera can first be controlled Focusing shooting is carried out to the focusing area;Then focusing shooting result (such as clarity, contrast, white of the focusing area is analyzed Balance, brightness value etc.), and then one default scoring range is set to the shooting quality of the focusing area.The embodiment of the present application The operation for being carried out focusing shooting for each focusing area after division, determining default scoring range, it is default with fixing one Scoring range is compared, and more can accurately show the shooting quality of each focusing area, and then improve and whether judge photographic subjects It focuses successful accuracy.
Step 120 determines the focusing area where photographic subjects in the shooting image obtained.
Illustratively, under exposal model, it can be in the image preview stage to obtain shooting image, and camera is completed automatic To defocused, shooting image is obtained according to the Focusing parameter determined after current auto-focusing.It, can be every default under image pickup mode The Focusing parameter used when number of image frames is according to acquisition previous frame image obtains primary shooting image.Optionally, pre-set image frame Number can be 0, i.e., all obtain primary shooting image for each frame image, can also be the numerical value more than 0, such as obtained every 3 frames Take primary shooting image.After obtaining shooting image, determine that the focusing area where photographic subjects, the wherein focusing area refer to To be step S110 carry out the shooting visual field in one or more regions after focusing area division.
Optionally, when determining the focusing area where photographic subjects, photographic subjects region, Jin Ergen can first be determined The focusing area where photographic subjects is determined according to photographic subjects region.Wherein, photographic subjects region is included in one Or in multiple focusing areas.Specifically, determining that photographic subjects regions can be photographic subjects in the shooting image of acquisition The position range at place.In the embodiment of the present application, the method for determining photographic subjects region has very much, can be that extraction is clapped The edge contour for taking the photograph target, the region that edge contour is surrounded is as photographic subjects region;Can also be to judge shooting mesh It is marked on which of the multiple focusing areas divided in advance to the shooting visual field focusing area.It is gone back when determining photographic subjects region Can be the center of first determining photographic subjects, then using the region in the center preset range as photographic subjects institute In region, for example, using 10 × 10 pixel coverages around the center of photographic subjects as photographic subjects region.It is optional , specific preset range can change according to the size of subject, can be that terminal user is adjusted manually as needed, Can be size of the system according to the automatic change preset range of detection to photographic subjects.Photographic subjects region is being determined Afterwards, judge the focusing area comprising photographic subjects region as shooting mesh in multiple focusing areas that step S110 is divided Focusing area where marking.For example, the shooting visual field is divided into four focusing areas of Tian-shaped, photographic subjects are fallen in Tian-shaped Upper left focusing area, then using the upper left focusing area of Tian-shaped as the focusing area where photographic subjects in shooting image.
Step 130 carries out quality score to the focusing area where photographic subjects.
Wherein, quality score can carry out assessment marking to the shooting effect of focusing area where photographic subjects.
In the embodiment of the present application, quality score is carried out to focusing area where photographic subjects, can is based on shooting mesh The statistical nature of focusing area carries out quality score where mark, specifically, can be the pixel for calculating photographic subjects region Mean value, standard deviation and average gradient, mean value, standard deviation and average gradient pixel-based carry out the scoring of quality.Wherein, mean value The average brightness of focusing area where reacting photographic subjects, mean value is bigger in a certain range, and quality score is higher;Average brightness Standard deviation reacts dispersion degree of the gray value relative to mean value in the focusing area of photographic subjects place, in a certain range standard deviation Bigger, quality score is higher;The readability of focusing area where average gradient reflects photographic subjects, it is average in a certain range Gradient is bigger, and clarity is higher, and corresponding quality score is also higher.Can also be from the clear of focusing area where photographic subjects The angle of the one or more mass parameter such as clear degree, contrast, white balance is analyzed, and is carried out in conjunction with the analysis result of multi-angle Quality score or weighted quality scoring, for example, it may be its corresponding score-system is designed for each mass parameter, in conjunction with each quality The quality score of focusing area where the score-system of parameter completes photographic subjects.
If step 140, quality score are unsatisfactory for the default scoring range of the focusing area where photographic subjects, to clapping It takes the photograph target and re-starts focus operation.
In the embodiment of the present application, if quality score is unsatisfactory for the default scoring model of photographic subjects place focusing area It encloses, illustrates that the shooting effect for shooting photographic subjects region in image is not met the requirements, i.e., the image is in photographic subjects It is shot in the case of out of focus, needs to re-start focus operation to photographic subjects, if quality score meets photographic subjects institute In the default scoring range of focusing area, illustrate that the shooting effect for shooting photographic subjects region in image is met the requirements, it is right It is burnt accurate, it can continue to be shot using the Focusing parameter.
The embodiment of the present application is the default scoring range of the default setting of each focusing one, and the default of each focusing area is commented Point range can be set in conjunction with the feature under focusing state in the region, and fixed scoring model is used with all focusing areas It encloses that the quality score of focusing area where photographic subjects assess and compares, more can accurately judge that photographic subjects are It is no to be under focusing state.
It, can be with it should be noted that the embodiment of the present application re-starts the method for focusing without limiting to photographic subjects It is any type Atomatic focusing method in this field.Such as common utilization ultrasonic wave, range sensor or at least two camera shootings Head measures the distance between photographic subjects and terminal device, is carried out further according to the distance between photographic subjects and terminal device automatic Focusing etc..
The Atomatic focusing method provided in the embodiment of the present application carries out focusing area division to the shooting visual field first, and really The default scoring range of fixed each focusing area;Secondly, the focusing area where photographic subjects in the shooting image obtained is determined;Again It is secondary, quality score is carried out to the focusing area where photographic subjects;Finally, if quality score is unsatisfactory for where photographic subjects The default scoring range of focusing area, then re-start focus operation to photographic subjects, and the embodiment of the present application can be before shooting The shooting visual field is divided into multiple focusing areas, and determines the default scoring range of each focusing area, when shooting first determines shooting Focusing area where target, judges whether the quality score of the focusing area meets the corresponding default scoring model of the focusing area It encloses, focuses again to photographic subjects if being unsatisfactory for, simplify focus operation, improve the efficiency and accuracy of focusing.
Fig. 2 is the flow diagram of another Atomatic focusing method provided by the embodiments of the present application, as to above-mentioned implementation The further explanation of example, including:
Step 210, according to photographic subjects in shooting the visual field proportion, determine the division rule of focusing area.
Illustratively, it can be divided according to certain division rule when dividing the shooting visual field, wherein division rule Can be that proportion determines in shooting the visual field according to photographic subjects, for example, it may be pre-setting drawing for plurality of specifications Divider then, e.g., if shooting visual field size is 100*200 pixel, can be divided into 10*10 pixel, 50*50 picture in advance The division rule of the plurality of specifications such as element, 100*100 pixel, it is shared in shooting the visual field that each specification corresponds to a photographic subjects Ratio, for example, the corresponding photographic subjects of the division rule of 10*10 pixel proportion in shooting the visual field is 1%-20%; The corresponding photographic subjects of division rule of 100*100 pixel proportion in shooting the visual field is 40% or more.It determines and divides Rule is it is also possible that calculate photographic subjects proportion in shooting the visual field, according to the face shared by ratio calculating photographic subjects Product, then the division area of reference after the area is scaled up as division rule.For example, if photographic subjects are in the shooting visual field Middle proportion is 20%, and shooting visual field size is 100*200 pixel, then the area that photographic subjects can be obtained is 4000 pictures Element refers to after 4000 pixels of area of photographic subjects are expanded 25% using 5000 pixels as the division of this division rule Area.
Optionally, according to photographic subjects, proportion determines the division area of reference of division rule in shooting the visual field Afterwards, optionally, division rule can also be further improved in conjunction with the style characteristic of photographic subjects, for example, according to photographic subjects Style characteristic, photographic subjects are divided into rectangle, square, three kinds round, can be according to shooting mesh when determining division rule It is marked on the division area of reference that proportion in the shooting visual field determines division rule, is determined and is drawn according to the style characteristic of photographic subjects The division shape of divider then.
In the embodiment of the present application, proportion determines the division of focusing area in shooting the visual field according to photographic subjects Rule can ensure the accuracy divided to the shooting visual field, and when avoiding division focusing area, it is excessive focusing area division occur Or the too small situation for leading to auto-focusing inaccuracy.
The shooting visual field is divided at least two focusing areas by step 220, the division rule according to focusing area.
Illustratively, it how contains in division rule to the shooting detailed description that is divided of the visual field, is advised according to dividing Then the shooting visual field can be divided at least two focusing areas.For example, if photographic subjects proportion in shooting the visual field is 45%, it is 40% or more to meet in division rule photographic subjects proportion in shooting the visual field, according to 100*100 pixel Specification is divided, then shooting 100*200, visual field pixel is divided into the focusing area of 2 100*100 pixels.For another example, If photographic subjects proportion 20% in the shooting visual field that size is 100*200 pixel, therefore, the area of photographic subjects is 4000 pixels are 5000 pixels after expanding 25%, and the style characteristic of photographic subjects is circle, then when dividing the shooting visual field Can the shooting visual field be subjected to concentric circles division, wherein first round area is 5000 pixels, each concentric disc thereafter Product increases by 5000 pixels compared with previous.
Step 230, the default scoring range for determining each focusing area.
Step 240 determines the focusing area where photographic subjects in the shooting image obtained.
Step 250 carries out quality score to the focusing area where photographic subjects.
If step 260, quality score are unsatisfactory for the default scoring range of the focusing area where photographic subjects, to clapping It takes the photograph target and re-starts focus operation.
Atomatic focusing method provided by the embodiments of the present application, can before shooting according to photographic subjects in shooting the visual field institute Ratio-dependent division rule is accounted for divide the shooting visual field, and determine divide after each focusing area default scoring range, when shooting It first determines the focusing area where photographic subjects, it is corresponding to judge whether the quality score of the focusing area meets the focusing area Default scoring range, focuses again to photographic subjects if being unsatisfactory for so that the focusing area of division is more reasonable, and then improves The efficiency and accuracy of focusing.
Fig. 3 is the flow diagram of another Atomatic focusing method provided by the embodiments of the present application, as to above-mentioned implementation The further explanation of example, including:
Step 310 carries out focusing area division to the shooting visual field.
Step 320, control camera carry out focusing shooting to each focusing area.
Illustratively, after carrying out focusing area division to the shooting visual field, the camera in control terminal equipment is successively to drawing Each focusing area after point carries out focusing shooting.Specific focusing image pickup method the application can be this field without limiting Technical staff commonly focuses image pickup method, for example, common utilizes ultrasonic wave, range sensor or at least two cameras The distance between photographic subjects and terminal device are measured, it is automatic right to be carried out further according to the distance between photographic subjects and terminal device Coke etc..
Optionally, in order to improve the efficiency of focusing shooting, when control camera carries out focusing shooting to each focusing area, At least two cameras can be controlled simultaneously, focus operation is carried out to the focusing area of division simultaneously, if for example, dividing altogether 10 focusing areas can control two cameras simultaneously, each to carry out focusing shooting to 5 focusing areas, highly shortened It focuses the time shot.It optionally, can be with when carrying out focus operation to multiple focusing areas of division using multiple cameras Corresponding focusing area is set for it according to the characteristic of each camera, for example, for wide-angle camera setting shooting vision periphery Focusing area.
The shooting result of step 330, each focusing area of analysis, and determine the default scoring range of each focusing area.
Illustratively, the shooting result for analyzing each focusing area carries out the shooting result of each focusing area Quality score.Optionally, to the shooting result of each focusing area carry out quality score process can with it is right in above-described embodiment The process that photographic subjects region carries out quality score is identical, can also use other quality score methods, the application couple This is without limiting.
After the shooting result for analyzing each focusing area carries out quality score, it is each right to be determined according to each quality score The default scoring range in burnt region.The embodiment of the present application is to the mode of the default scoring range of each focusing area of determination without limit It is fixed, can add and subtract default value by the quality score of each focusing area or expand diminution preset ratio to obtain the focusing area Default scoring range adds and subtracts 5 by 60, obtains the default of the focusing area for example, if the quality score of a certain focusing area is 60 The range that scores 55-65.
It should be noted that default scoring range should be a specific range, it is not that the higher the better.For example, logical Contrast is crossed when weighing the quality for shooting image, if contrast is excessively high, can to shoot image fault, lead to shooting result Effect it is poor.Only the image effect of shooting can be made best in a certain range.
Step 340 determines the focusing area where photographic subjects in the shooting image obtained.
Step 350 carries out quality score to the focusing area where photographic subjects.
If step 360, quality score are unsatisfactory for the default scoring range of the focusing area where photographic subjects, to clapping It takes the photograph target and re-starts focus operation.
Atomatic focusing method provided by the embodiments of the present application can divide the shooting visual field before shooting, control camera pair Each focusing area after division carries out focusing shooting, analyzes the default scoring model that each focusing shooting result determines each focusing area It encloses, the focusing area where photographic subjects is first determined when shooting, judges whether the quality score of the focusing area meets the focusing The corresponding default scoring range in region, focuses again to photographic subjects if being unsatisfactory for, according to the shooting result of each focusing area Determine the region corresponding preset quality scoring, improve the accuracy of focusing area quality score, so improve it is automatic right Burnt efficiency and accuracy.
Fig. 4 is the flow diagram of another Atomatic focusing method provided by the embodiments of the present application, as to above-mentioned implementation The further explanation of example is suitable for the case where photographic subjects region includes at least two focusing area.Specifically, this method Including:
Step 410 carries out focusing area division to the shooting visual field, and determines the default scoring range of each focusing area.
Step 420 determines photographic subjects region in the shooting image obtained.
If step 430, photographic subjects region include at least two focusing areas, merge at least two focusing areas Domain.
Illustratively, it if photographic subjects region is not fallen in some focusing area after division, but falls In at least two focusing areas, then this at least two focusing area is merged, obtains a new focusing area, new The region where photographic subjects can be completely included in focusing area.For example, the shooting visual field has been partitioned into 4 pros of Tian-shaped Shape region, and photographic subjects are exactly in right side centre position, then the photographic subjects region may includes the right or more 2 A square focusing area.Then 2 of the right square focusing areas are merged, shooting can be completely included by obtaining one The new focusing area of target.
Step 440 carries out quality score to the focusing area after merging.
In the embodiment of the present application, quality score is carried out to the focusing area after merging, can is the focusing after merging A new region is regarded in region as, and statistical nature or mass parameter based on the new region after merging carry out quality score.May be used also To be the weighted value for each focusing area that photographic subjects region includes before first determining merging;Further according to photographic subjects before merging The quality score and weighted value for each focusing area that region includes determine the quality score of the focusing area after merging.
Can be foundation specifically, determining the weighted value for merging each focusing area that preceding photographic subjects region includes The significance level at each position of photographic subjects, for comprising each focusing area be arranged weighted value, for example, photographic subjects behave, clapping The shooting quality requirement to people foot is higher than to the shooting quality of face when taking the photograph photo, therefore, when determining weighted value, It can be by the higher of the weighted value setting of focusing area where face, by the low of the weight setting of focusing area where foot Some.The weighted value of each focusing area of ratio-dependent according to photographic subjects shared by each focusing area is can also be, for example, clapping It includes focusing area 1 and focusing area 2 to take the photograph target region, and photographic subjects are largely all fallen in focusing area 1, only There is fraction to fall in focusing area 2, then the weighted value of focusing area 1 is higher than the weighted value of focusing area 2.
After the weighted value for each focusing area that photographic subjects region includes determines, it is also necessary to be carried out to each shooting area Mass distribution combines the weighted value of the corresponding focusing area of each quality score, calculates the matter of the focusing area after merging Amount scoring.For example, photographic subjects region includes focusing area 1 and focusing area 2, the quality score of focusing area 1 is A, Weighted value is a, and the quality score of focusing area 2 is the quality after B, weighted value b, then focusing area 1 and focusing area 2 merge Scoring is A × a+B × b.
Step 450, the corresponding default scoring range of at least two focusing areas for including according to photographic subjects region, Determine the default scoring range of target.
Wherein, the default scoring range of target can be the corresponding default scoring range of focusing area after merging.It can be with It is that the corresponding default scoring range of at least two focusing areas for including is determined according to photographic subjects region before merging.Show Example property, can be the corresponding default scoring range of at least two focusing areas that photographic subjects region includes before merging Mean value as the default scoring range of target.It can also be at least two focusings for including for photographic subjects region before merging Weighted value is arranged (for example, it may be according to each focusing area of ratio-dependent of the photographic subjects shared by each focusing area in region Weighted value), it determines that target is default according to the corresponding default scoring range of the weighted value of each focusing area and each focusing area and comments Divide range, for example, photographic subjects region includes focusing area 1 and focusing area 2, and the weight of focusing area 1 before merging Value is a, presets scoring ranging from C, the weighted value of focusing area 2 is b, presets scoring ranging from D, then the default scoring range of target For C × a+D × b.
If the quality score of the focusing area after step 460, merging is discontented with the default scoring range of foot-eye, to shooting Target re-starts focus operation.
Illustratively, by the quality score of the focusing area after merging with merge after focusing area the default scoring of target Range is compared, and judges what whether photographic subjects shot in the case of focusing, if not (i.e. discontented foot-eye is default to be commented Divide range), then focus operation is re-started to photographic subjects.
Atomatic focusing method provided by the embodiments of the present application can include at least two divisions in photographic subjects region Focusing area when, by comprising at least two focusing areas merge, determine merge after focusing area quality score The default scoring range of target corresponding with its, and then judge whether photographic subjects need to re-start focusing, it can be in shooting mesh Mark also can fast and accurately determine the need for re-starting focus operation when being scattered in multiple focusing areas, improve focusing Efficiency and accuracy.
Fig. 5 is the flow diagram of another Atomatic focusing method provided by the embodiments of the present application, as to above-mentioned implementation The further explanation of example, including:
Step 510 carries out focusing area division to the shooting visual field, and determines the default scoring range of each focusing area.
Step 520 determines the focusing area where photographic subjects in the shooting image obtained.
Step 530 carries out quality score to the focusing area where photographic subjects.
If step 540, quality score are unsatisfactory for the default scoring range of the focusing area where photographic subjects, again It obtains shooting image and carries out quality score.
Illustratively, quality score is unsatisfactory for default scoring range, may be not caused by focusing is inaccurate, it is also possible to It is caused by extraneous uncontrollable environmental factor.For example, when user's hand-held terminal device photographic subjects, cause to shoot due to handshaking Fuzzy, for another example, user shoots the flower on tree, and a gust of wind is blown, and flower shake causes shooting fuzzy, and above-mentioned phenomenon can cause Quality score is unsatisfactory for the default scoring range of the focusing area where photographic subjects, and it is automatically right when shooting to illustrate at this time It is burnt inaccurate, but due to caused by extraneous uncontrollable environmental factor, it is unsatisfactory for photographic subjects institute there is quality score Focusing area default scoring range when, can not focus again to photographic subjects directly first, but return re-execute Step 510- steps 520 are obtained shooting image with same Focusing parameter, are carried out to the focusing area where photographic subjects again Quality score.Carry out quality score by repeatedly obtaining shooting image, come exclude shooting caused by outside environmental elements it is fuzzy and Blooming is shot caused by non-automatic focusing is inaccurate, reduces unnecessary focus operation.If for example, obtaining again for the second time After taking shooting image and carrying out quality score to focusing area where photographic subjects, it is found where quality score meets photographic subjects The default scoring range of focusing area can then continue to be shot using original Focusing parameter, reduce primary unnecessary Focus operation.
If the quality score of step 550, the shooting image reacquired is still unsatisfactory for the focusing area where photographic subjects The default scoring range in domain, then re-start focus operation to photographic subjects.
Illustratively, if the quality score of the shooting image reacquired still not satisfies the focusing where photographic subjects The default scoring range in region illustrates that shooting picture quality scoring to be unsatisfactory for default scoring range is led because photographic subjects are out of focus It causes, is not to need to re-start focus operation to photographic subjects caused by extraneous uncontrollable environmental factor.
The shooting visual field can be divided into multiple focusing areas by Atomatic focusing method provided by the embodiments of the present application before shooting Domain, and determine the default scoring range of each focusing area, when shooting, first determines the focusing area where photographic subjects, in the focusing It is right where photographic subjects by repeatedly obtaining when the quality score in region is unsatisfactory for the focusing area corresponding default scoring range The image in burnt region carries out quality score default scoring range corresponding with the focusing area and is judged, if it is right to be still unsatisfactory for this The corresponding default scoring range in burnt region re-starts focus operation to photographic subjects again.It avoids because extraneous uncontrollable factor is led The case where causing quality score to be unsatisfactory for requiring and starting focus operation again, reduces unnecessary focus operation again, improves The efficiency and accuracy of auto-focusing.
Fig. 6 is the flow diagram of another Atomatic focusing method provided by the embodiments of the present application, as to above-mentioned implementation The further explanation of example, including:
Step 610 carries out focusing area division to the shooting visual field, and determines the default scoring range of each focusing area.
Step 620 determines the focusing area where photographic subjects in the shooting image obtained.
Step 630 carries out quality score to the focusing area where photographic subjects.
Step 640 judges whether quality score meets the default scoring range of the focusing area where photographic subjects, if It is to execute step 680, if it is not, executing step 650.
Focusing area determination has deviation that quality score is caused to be unsatisfactory for the focusing area where photographic subjects in order to prevent Default scoring range, can be first directly again not right to photographic subjects when quality score occur and being unsatisfactory for default scoring range Coke, but execute step 640 and expand focusing area where photographic subjects, a step 620 is executed again to the shooting after expansion Focusing area carries out quality score where target.If the quality score of focusing area meets the focusing area where photographic subjects Default scoring range, is thened follow the steps 670, the shooting of image is still carried out with former Focusing parameter.
Focusing area where step 650, expansion photographic subjects re-starts quality score.
Optionally, the mode of focusing area where expanding photographic subjects has very much, to this application without limiting, example Such as, can be the photographic subjects region that first surrounds photographic subjects edge on the original basis, it is each up and down expand it is pre- If range (as all expanded 10 pixels up and down), the photographic subjects region after being expanded, then further according to expansion Photographic subjects region afterwards determines the focusing area where photographic subjects after expanding.Can also be by original photographic subjects The focusing area at least one sub- focusing area adjacent with the focusing area in place merges the photographic subjects to be formed after expanding Region.It is to be divided into multiple focusings in the form of concentric circles from center to edge for example, when being divided to the shooting visual field Region, it is assumed that first concentric circles region where the photographic subjects that step 610 determines centered on focusing area, at this time into When row photographic subjects region expands, can merging the first concentric circles and the second concentric circles, by two after merging Focusing area where a concentric circles is as focusing area where the photographic subjects after expanding.
In the embodiment of the present application, after expanding photographic subjects region, a step 620 is executed again, to expanding Focusing area carries out quality score where photographic subjects after big.
Step 660, judgement re-start the default scoring range for whether meeting the focusing area after expanding after quality score, If so, step 680 is executed, if it is not, executing step 670.
Wherein, former focusing area and newly-increased focusing area are contained in the focusing area after expansion, therefore after expansion The default scoring range of focusing area can be determined according to the default scoring range of former focusing area and newly-increased focusing area, It is specific to determine that method the application, without limiting, be using the mean value of the two as the pre- of the focusing area after expanding to this Can be that weighted value is set for former focusing area and newly-increased focusing area if scoring range, by the default scoring range of the two and Its weighted value is combined the default scoring range for calculating the focusing area after expanding.
Illustratively, if the quality score of the photographic subjects place focusing area after expanded scope still not satisfies the expansion The default scoring range of focusing area afterwards illustrates that it is because of shooting mesh to shoot picture quality scoring to be unsatisfactory for default scoring range Mark it is out of focus caused by, be not photographic subjects region determine have deviation caused by, need execute step 660 to photographic subjects Re-start focus operation.If the quality score of focusing area meets pair after the expansion where the photographic subjects after expanded scope The default scoring range in burnt region illustrates that the auto-focusing of photographic subjects is accurate, and picture quality scoring, which is unsatisfactory for requirement, is Caused by determining that focusing area where photographic subjects is deviated before, step 670 is executed at this time, figure is carried out with former Focusing parameter As shooting.
Step 670 re-starts focus operation to photographic subjects.
Step 680 carries out image taking with former Focusing parameter.
The shooting visual field can be divided into multiple focusing areas by Atomatic focusing method provided by the embodiments of the present application before shooting Domain, and determine the default scoring range of each focusing area, when shooting, first determines the focusing area where photographic subjects, in the focusing When the quality score in region is unsatisfactory for the focusing area corresponding default scoring range, expand focusing area weight where photographic subjects It is new to carry out quality score, which is compared with the default scoring range of the focusing area after expansion, if still discontented The default scoring range of focusing area after foot expansion re-starts focus operation again.It avoids because of area of focusing where photographic subjects Domain determines the case where having deviation and starting focus operation again, reduces unnecessary focus operation again, improves focusing Efficiency and accuracy.
Fig. 7 is a kind of structural schematic diagram of automatic focusing mechanism provided by the embodiments of the present application.As shown in fig. 7, the device Including:Region division module 710, score range determination module 720, area determination module 730, quality score module 740, focusing Module 750.
Region division module 710, for carrying out focusing area division to the shooting visual field;
Score range determination module 720, the default scoring of each focusing area for determining the division of region division module 710 Range;
Area determination module 730, for determining the focusing area in the shooting image obtained where photographic subjects;
Quality score module 740, the focusing where the photographic subjects for being determined to the area determination module 730 Region carries out quality score;
Focusing module 750, if the quality score for the quality score module 740 is unsatisfactory for the photographic subjects institute Focusing area default scoring range, then focus operation is re-started to the photographic subjects.
Further, region division module 710 is used for, according to photographic subjects in the shooting visual field proportion, really Determine the division rule of focusing area;According to the division rule of the focusing area, the shooting visual field is divided at least two focusing areas Domain.
Further, scoring range determination module 720 is used for, and control camera carries out focusing shooting to each focusing area; The shooting result of each focusing area is analyzed, and determines the default scoring range of each focusing area.
Further, quality score module 740 is additionally operable to, if the photographic subjects region includes at least two focusings Region then merges at least two focusing area;
Quality score is carried out to the focusing area after merging;
Correspondingly, Focusing module 750 is used for, at least two focusing areas for including according to the photographic subjects region Corresponding default scoring range determines the default scoring range of target;
If the quality score of the focusing area after the merging is unsatisfactory for the default scoring range of the target, to described Photographic subjects re-start focus operation.
Further, it is specifically used for when quality score module 740 carries out quality score to the focusing area after merging, determines The weighted value for each focusing area that the photographic subjects region includes before merging;
According to the quality score and weighted value of each focusing area that the photographic subjects region before merging includes, determine The quality score of focusing area after merging.
Further, Focusing module 750 is used for, if the quality score is unsatisfactory for the focusing where the photographic subjects The default scoring range in region then reacquires shooting image and carries out quality score;
If the quality score of the shooting image reacquired is still unsatisfactory for the focusing area where the photographic subjects Default scoring range, then re-start focus operation to the photographic subjects.
Further, Focusing module 750 is used for, if the quality score is unsatisfactory for the focusing where the photographic subjects The default scoring range in region, then focusing area where expanding the photographic subjects re-start quality score;
If the default scoring range that quality score is still unsatisfactory for the focusing area after expanding is re-started, to the bat It takes the photograph target and re-starts focus operation.
The automatic focusing mechanism provided in the embodiment of the present application, first region division module 710 carry out pair the shooting visual field Burnt region division, scoring range determination module 720 determine the default scoring model for each focusing area that region division module 710 divides It encloses;Then, area determination module 730 determines the focusing area where photographic subjects, quality score mould in the shooting image obtained Block 740, the focusing area where the photographic subjects determined to the area determination module 720 carry out quality score;Finally, Focusing module 750, then the quality score of the quality score module 740 are unsatisfactory for the focusing area where the photographic subjects When default scoring range, focus operation is re-started to the photographic subjects.The embodiment of the present application can will be shot before shooting The visual field is divided into multiple focusing areas, and determines the default scoring range of each focusing area, and when shooting first determines photographic subjects institute In focusing area, judge whether the quality score of the focusing area meets the corresponding default scoring range of the focusing area, if not Satisfaction then focuses again to photographic subjects, simplifies focus operation, improves the efficiency and accuracy of focusing.
Above-mentioned apparatus can perform the method that the aforementioned all embodiments of the application are provided, and it is corresponding to have the execution above method Function module and advantageous effect.The not technical detail of detailed description in the present embodiment, reference can be made to the aforementioned all implementations of the application The method that example is provided.
Fig. 8 is a kind of structural schematic diagram of terminal device provided by the embodiments of the present application.As shown in figure 8, the terminal can be with Including:Shell (not shown), memory 801, central processing unit (Central Processing Unit, CPU) 802 are (again Claim processor, hereinafter referred to as CPU), the computer program, the circuit that are stored on memory 801 and can be run on processor 802 Plate (not shown) and power circuit (not shown).The circuit board is placed in the space interior that the shell surrounds; The CPU802 and the memory 801 are arranged on the circuit board;The power circuit, for being each of the terminal Circuit or device power supply;The memory 801, for storing executable program code;The CPU802 described in reading by depositing The executable program code stored in reservoir 801 runs program corresponding with the executable program code.
The terminal further includes:Peripheral Interface 803, RF (Radio Frequency, radio frequency) circuit 805, voicefrequency circuit 806, loud speaker 811, power management chip 808, input/output (I/O) subsystem 809, touch screen 812, other input/controls Equipment 810 and outside port 804, these components are communicated by one or more communication bus or signal wire 807.
It should be understood that graphic terminal 800 is only an example of terminal, and terminal device 800 can be with With than shown in the drawings more or less component, two or more components can be combined, or can have Different component configurations.Various parts shown in the drawings can be including one or more signal processings and/or special integrated It is realized in the combination of hardware, software or hardware and software including circuit.
Just provided in this embodiment below to be described in detail for a kind of terminal device, the terminal device is with intelligent hand For machine.
Memory 801, the memory 801 can be by access such as CPU802, Peripheral Interfaces 803, and the memory 801 can Can also include nonvolatile memory to include high-speed random access memory, such as one or more disk memory, Flush memory device or other volatile solid-state parts.
The peripheral hardware that outputs and inputs of equipment can be connected to CPU802 and deposited by Peripheral Interface 803, the Peripheral Interface 803 Reservoir 801.
I/O subsystems 809, the I/O subsystems 809 can be by the input/output peripherals in equipment, such as touch screen 812 With other input/control devicess 810, it is connected to Peripheral Interface 803.I/O subsystems 809 may include 8091 He of display controller One or more input controllers 8092 for controlling other input/control devicess 810.Wherein, one or more input controls Device 8092 processed receives electric signal from other input/control devicess 810 or sends electric signal to other input/control devicess 810, Other input/control devicess 810 may include physical button (pressing button, rocker buttons etc.), dial, slide switch, behaviour Vertical pole clicks idler wheel.It is worth noting that input controller 8092 can with it is following any one connect:Keyboard, infrared port, The indicating equipment of USB interface and such as mouse.
Wherein, according to the operation principle of touch screen and transmission information medium classification, touch screen 812 can be resistance-type, Capacitor induction type, infrared-type or surface acoustic wave type.Classify according to mounting means, touch screen 812 can be:It is external hanging type, built-in Formula or monoblock type.Classify according to technical principle, touch screen 812 can be:Vector pressure sensing technology touch screen, resistive technologies are touched Touch screen, capacitance technology touch screen, infrared technology touch screen or surface acoustic wave technique touch screen.
Touch screen 812, the touch screen 812 are the input interface and output interface between user terminal and user, can It is shown to user depending on output, visual output may include figure, text, icon, video etc..Optionally, touch screen 812 is by user The electric signal (electric signal of such as contact surface) triggered on touch screen curtain, is sent to processor 802.
Display controller 8091 in I/O subsystems 809 receives electric signal from touch screen 812 or is sent out to touch screen 812 Electric signals.Touch screen 812 detects the contact on touch screen, and the contact detected is converted to and is shown by display controller 8091 The interaction of user interface object on touch screen 812, that is, realize human-computer interaction, the user interface being shown on touch screen 812 Object can be the icon of running game, be networked to the icon etc. of corresponding network.It is worth noting that equipment can also include light Mouse, light mouse are the extensions for the touch sensitive surface for not showing the touch sensitive surface visually exported, or formed by touch screen.
RF circuits 805 are mainly used for establishing the communication of intelligent sound box and wireless network (i.e. network side), realize intelligent sound box Data receiver with wireless network and transmission.Such as transmitting-receiving short message, Email etc..
Voicefrequency circuit 806 is mainly used for receiving audio data from Peripheral Interface 803, which is converted to telecommunications Number, and the electric signal is sent to loud speaker 811.
Loud speaker 811, the voice signal for receiving intelligent sound box from wireless network by RF circuits 805, is reduced to Sound simultaneously plays the sound to user.
Power management chip 808, the hardware for being connected by CPU802, I/O subsystem and Peripheral Interface are powered And power management.
In the present embodiment, central processing unit 802 is used for:
Focusing area division is carried out to the shooting visual field, and determines the default scoring range of each focusing area;
Determine the focusing area where photographic subjects in the shooting image obtained;
Quality score is carried out to the focusing area where the photographic subjects;
If the quality score is unsatisfactory for the default scoring range of the focusing area where the photographic subjects, to institute It states photographic subjects and re-starts focus operation.
Further, the described pair of shooting visual field carries out focusing area division, including:
According to photographic subjects in the shooting visual field proportion, determine the division rule of focusing area;
According to the division rule of the focusing area, the shooting visual field is divided at least two focusing areas.
Further, the default scoring range of each focusing area of the determination, including:
Control camera carries out focusing shooting to each focusing area;
The shooting result of each focusing area is analyzed, and determines the default scoring range of each focusing area.
Further, the focusing area to where the photographic subjects carries out quality score, including:
If the photographic subjects region includes at least two focusing areas, merge at least two focusing area Domain;
Quality score is carried out to the focusing area after merging;
If correspondingly, the quality score is unsatisfactory for the default scoring of the focusing area where the photographic subjects Range then re-starts focus operation to the photographic subjects, including:
The corresponding default scoring range of at least two focusing areas for including according to the photographic subjects region determines The default scoring range of target;
If the quality score of the focusing area after the merging is unsatisfactory for the default scoring range of the target, to described Photographic subjects re-start focus operation.
Further, the focusing area after described pair of merging carries out quality score, including:
Determine the weighted value for each focusing area that the photographic subjects region includes before merging;
According to the quality score and weighted value of each focusing area that the photographic subjects region before merging includes, determine The quality score of focusing area after merging.
Further, if the quality score is unsatisfactory for the default of focusing area where the photographic subjects and comments Divide range, then focus operation is re-started to the photographic subjects, including:
If the quality score is unsatisfactory for the default scoring range of the focusing area where the photographic subjects, again It obtains shooting image and carries out quality score;
If the quality score of the shooting image reacquired is still unsatisfactory for the focusing area where the photographic subjects Default scoring range, then re-start focus operation to the photographic subjects.
Further, if the quality score is unsatisfactory for the default of focusing area where the photographic subjects and comments Divide range, then focus operation is re-started to the photographic subjects, including:
If the quality score is unsatisfactory for the default scoring range of the focusing area where the photographic subjects, expand Focusing area where the photographic subjects re-starts quality score;
If the default scoring range that quality score is still unsatisfactory for the focusing area after expanding is re-started, to the bat It takes the photograph target and re-starts focus operation.
The embodiment of the present application also provides a kind of storage medium including terminal device executable instruction, and the terminal device can It executes instruction when being executed by terminal device processor for executing a kind of Atomatic focusing method, this method includes:
Focusing area division is carried out to the shooting visual field, and determines the default scoring range of each focusing area;
Determine the focusing area where photographic subjects in the shooting image obtained;
Quality score is carried out to the focusing area where the photographic subjects;
If the quality score is unsatisfactory for the default scoring range of the focusing area where the photographic subjects, to institute It states photographic subjects and re-starts focus operation.
Further, the described pair of shooting visual field carries out focusing area division, including:
According to photographic subjects in the shooting visual field proportion, determine the division rule of focusing area;
According to the division rule of the focusing area, the shooting visual field is divided at least two focusing areas.
Further, the default scoring range of each focusing area of the determination, including:
Control camera carries out focusing shooting to each focusing area;
The shooting result of each focusing area is analyzed, and determines the default scoring range of each focusing area.
Further, the focusing area to where the photographic subjects carries out quality score, including:
If the photographic subjects region includes at least two focusing areas, merge at least two focusing area Domain;
Quality score is carried out to the focusing area after merging;
If correspondingly, the quality score is unsatisfactory for the default scoring of the focusing area where the photographic subjects Range then re-starts focus operation to the photographic subjects, including:
The corresponding default scoring range of at least two focusing areas for including according to the photographic subjects region determines The default scoring range of target;
If the quality score of the focusing area after the merging is unsatisfactory for the default scoring range of the target, to described Photographic subjects re-start focus operation.
Further, the focusing area after described pair of merging carries out quality score, including:
Determine the weighted value for each focusing area that the photographic subjects region includes before merging;
According to the quality score and weighted value of each focusing area that the photographic subjects region before merging includes, determine The quality score of focusing area after merging.
Further, if the quality score is unsatisfactory for the default of focusing area where the photographic subjects and comments Divide range, then focus operation is re-started to the photographic subjects, including:
If the quality score is unsatisfactory for the default scoring range of the focusing area where the photographic subjects, again It obtains shooting image and carries out quality score;
If the quality score of the shooting image reacquired is still unsatisfactory for the focusing area where the photographic subjects Default scoring range, then re-start focus operation to the photographic subjects.
Further, if the quality score is unsatisfactory for the default of focusing area where the photographic subjects and comments Divide range, then focus operation is re-started to the photographic subjects, including:
If the quality score is unsatisfactory for the default scoring range of the focusing area where the photographic subjects, expand Focusing area where the photographic subjects re-starts quality score;
If the default scoring range that quality score is still unsatisfactory for the focusing area after expanding is re-started, to the bat It takes the photograph target and re-starts focus operation.
The arbitrary of one or more computer-readable media may be used in the computer storage media of the embodiment of the present application Combination.Computer-readable medium can be computer-readable signal media or computer readable storage medium.It is computer-readable Storage medium for example may be-but not limited to-the system of electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, device or Device, or the arbitrary above combination.The more specific example (non exhaustive list) of computer readable storage medium includes:Tool There are one or the electrical connection of multiple conducting wires, portable computer diskette, hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD- ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.In this document, computer-readable storage Medium, which can be any, includes or the tangible medium of storage program, which can be commanded execution system, device or device Using or it is in connection.
Computer-readable signal media may include in a base band or as the data-signal that a carrier wave part is propagated, Wherein carry computer-readable program code.Diversified forms may be used in the data-signal of this propagation, including but unlimited In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can Any computer-readable medium other than storage medium is read, which can send, propagates or transmit and be used for By instruction execution system, device either device use or program in connection.
The program code for including on computer-readable medium can transmit with any suitable medium, including --- but it is unlimited In wireless, electric wire, optical cable, RF etc. or above-mentioned any appropriate combination.
Can with one or more programming languages or combinations thereof come write for execute the application operation computer Program code, programming language include object oriented program language-such as Java, Smalltalk, C++, are also wrapped Include conventional procedural programming language-such as " C " language or similar programming language.Program code can be complete Ground executes, partly executes on the user computer, being executed as an independent software package, partly being existed on the user computer Part executes or executes on a remote computer or server completely on the remote computer on subscriber computer.It is being related to In the situation of remote computer, remote computer can pass through the network of any kind --- including LAN (LAN) or wide area Net (WAN)-be connected to subscriber computer, or, it may be connected to outer computer (such as utilize ISP To be connected by internet).
Certainly, a kind of storage medium including computer executable instructions that the embodiment of the present application is provided, computer The operation of auto-focusing that executable instruction is not limited to the described above, can also be performed the application any embodiment provided it is automatic Relevant operation in focusing method.
Note that above are only preferred embodiment and the institute's application technology principle of the application.It will be appreciated by those skilled in the art that The application is not limited to specific embodiment described here, can carry out for a person skilled in the art it is various it is apparent variation, The protection domain readjusted and substituted without departing from the application.Therefore, although being carried out to the application by above example It is described in further detail, but the application is not limited only to above example, in the case where not departing from the application design, also May include other more equivalent embodiments, and scope of the present application is determined by scope of the appended claims.

Claims (10)

1. a kind of Atomatic focusing method, which is characterized in that including:
Focusing area division is carried out to the shooting visual field, and determines the default scoring range of each focusing area;
Determine the focusing area where photographic subjects in the shooting image obtained;
Quality score is carried out to the focusing area where the photographic subjects;
If the quality score is unsatisfactory for the default scoring range of the focusing area where the photographic subjects, to the bat It takes the photograph target and re-starts focus operation.
2. Atomatic focusing method according to claim 1, which is characterized in that the described pair of shooting visual field carries out focusing area and draw Point, including:
According to photographic subjects in the shooting visual field proportion, determine the division rule of focusing area;
According to the division rule of the focusing area, the shooting visual field is divided at least two focusing areas.
3. Atomatic focusing method according to claim 1, which is characterized in that the default scoring of each focusing area of determination Range, including:
Control camera carries out focusing shooting to each focusing area;
The shooting result of each focusing area is analyzed, and determines the default scoring range of each focusing area.
4. Atomatic focusing method according to claim 1, which is characterized in that the focusing to where the photographic subjects Region carries out quality score, including:
If the photographic subjects region includes at least two focusing areas, merge at least two focusing area;
Quality score is carried out to the focusing area after merging;
If correspondingly, the quality score is unsatisfactory for the default scoring model of the focusing area where the photographic subjects It encloses, then focus operation is re-started to the photographic subjects, including:
The corresponding default scoring range of at least two focusing areas for including according to the photographic subjects region, determines target Default scoring range;
If the quality score of the focusing area after the merging is unsatisfactory for the default scoring range of the target, to the shooting Target re-starts focus operation.
5. Atomatic focusing method according to claim 4, which is characterized in that the focusing area after described pair of merging carries out matter Amount scoring, including:
Determine the weighted value for each focusing area that the photographic subjects region includes before merging;
According to the quality score and weighted value of each focusing area that the photographic subjects region before merging includes, determines and merge The quality score of focusing area afterwards.
6. Atomatic focusing method according to claim 1, which is characterized in that if the quality score is unsatisfactory for institute The default scoring range for stating the focusing area where photographic subjects, then re-start focus operation to the photographic subjects, including:
If the quality score is unsatisfactory for the default scoring range of the focusing area where the photographic subjects, reacquire It shoots image and carries out quality score;
If the quality score of the shooting image reacquired is still unsatisfactory for the default of the focusing area where the photographic subjects Score range, then re-starts focus operation to the photographic subjects.
7. Atomatic focusing method according to claim 1, which is characterized in that if the quality score is unsatisfactory for institute The default scoring range for stating the focusing area where photographic subjects, then re-start focus operation to the photographic subjects, including:
If the quality score is unsatisfactory for the default scoring range of the focusing area where the photographic subjects, expand described in Focusing area where photographic subjects re-starts quality score;
If the default scoring range that quality score is still unsatisfactory for the focusing area after expanding is re-started, to the shooting mesh Mark re-starts focus operation.
8. a kind of automatic focusing mechanism, which is characterized in that including:
Region division module, for carrying out focusing area division to the shooting visual field;
Score range determination module, the default scoring range of each focusing area for determining the division of region division module;
Area determination module, for determining the focusing area in the shooting image obtained where photographic subjects;
Quality score module, the focusing area where the photographic subjects for being determined to the area determination module carry out matter Amount scoring;
Focusing module, if the quality score for the quality score module is unsatisfactory for the focusing area where the photographic subjects The default scoring range in domain, then re-start focus operation to the photographic subjects.
9. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is held by processor The Atomatic focusing method as described in any in claim 1-7 is realized when row.
10. a kind of terminal, including memory, processor and storage are on a memory and can be in the computer journey of processor operation Sequence, which is characterized in that it is automatic right as described in claim 1-7 is any that the processor is realized when executing the computer program Burnt method.
CN201810935373.6A 2018-08-16 2018-08-16 Automatic focusing method and device, storage medium and terminal Active CN108668086B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810935373.6A CN108668086B (en) 2018-08-16 2018-08-16 Automatic focusing method and device, storage medium and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810935373.6A CN108668086B (en) 2018-08-16 2018-08-16 Automatic focusing method and device, storage medium and terminal

Publications (2)

Publication Number Publication Date
CN108668086A true CN108668086A (en) 2018-10-16
CN108668086B CN108668086B (en) 2021-05-04

Family

ID=63788412

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810935373.6A Active CN108668086B (en) 2018-08-16 2018-08-16 Automatic focusing method and device, storage medium and terminal

Country Status (1)

Country Link
CN (1) CN108668086B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111182212A (en) * 2019-12-31 2020-05-19 Oppo广东移动通信有限公司 Image processing method, image processing apparatus, storage medium, and electronic device
CN111358425A (en) * 2020-03-17 2020-07-03 苏州微清医疗器械有限公司 Automatic focusing method and fundus camera
CN111970452A (en) * 2020-08-31 2020-11-20 北京百度网讯科技有限公司 Method, device and equipment for adjusting focal length and storage medium
CN112004019A (en) * 2019-05-27 2020-11-27 福建天晴数码有限公司 Tracking focusing method and computer readable storage medium
WO2021102961A1 (en) * 2019-11-29 2021-06-03 深圳市大疆创新科技有限公司 Focusing method for photographing apparatus, image processing device, and storage medium
CN113810615A (en) * 2021-09-26 2021-12-17 展讯通信(上海)有限公司 Focusing processing method and device, electronic equipment and storage medium
CN114598811A (en) * 2022-01-18 2022-06-07 影石创新科技股份有限公司 Panoramic video view quality evaluation method, electronic device and computer-readable storage medium

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101494737B (en) * 2009-03-09 2011-04-20 杭州海康威视数字技术股份有限公司 Integrated camera device and self-adapting automatic focus method
US8717490B2 (en) * 2009-06-19 2014-05-06 Casio Computer Co., Ltd Imaging apparatus, focusing method, and computer-readable recording medium recording program
JP5883654B2 (en) * 2012-01-06 2016-03-15 株式会社 日立産業制御ソリューションズ Image signal processing device
CN104270562B (en) * 2014-08-15 2017-10-17 广东欧珀移动通信有限公司 One kind, which is taken pictures, focusing method and takes pictures focusing mechanism
CN105472250B (en) * 2015-12-23 2018-12-07 浙江宇视科技有限公司 Auto focusing method and device
CN106934790B (en) * 2015-12-30 2019-09-17 浙江大华技术股份有限公司 A kind of evaluation method of image definition, the method focused automatically and related device
CN105872363A (en) * 2016-03-28 2016-08-17 广东欧珀移动通信有限公司 Adjustingmethod and adjusting device of human face focusing definition
JP6739369B2 (en) * 2017-01-30 2020-08-12 アイホン株式会社 How to adjust the camera focus in the intercom device with camera

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112004019A (en) * 2019-05-27 2020-11-27 福建天晴数码有限公司 Tracking focusing method and computer readable storage medium
WO2021102961A1 (en) * 2019-11-29 2021-06-03 深圳市大疆创新科技有限公司 Focusing method for photographing apparatus, image processing device, and storage medium
CN111182212A (en) * 2019-12-31 2020-05-19 Oppo广东移动通信有限公司 Image processing method, image processing apparatus, storage medium, and electronic device
CN111182212B (en) * 2019-12-31 2021-08-24 Oppo广东移动通信有限公司 Image processing method, image processing apparatus, storage medium, and electronic device
CN111358425A (en) * 2020-03-17 2020-07-03 苏州微清医疗器械有限公司 Automatic focusing method and fundus camera
CN111970452A (en) * 2020-08-31 2020-11-20 北京百度网讯科技有限公司 Method, device and equipment for adjusting focal length and storage medium
CN113810615A (en) * 2021-09-26 2021-12-17 展讯通信(上海)有限公司 Focusing processing method and device, electronic equipment and storage medium
CN114598811A (en) * 2022-01-18 2022-06-07 影石创新科技股份有限公司 Panoramic video view quality evaluation method, electronic device and computer-readable storage medium

Also Published As

Publication number Publication date
CN108668086B (en) 2021-05-04

Similar Documents

Publication Publication Date Title
CN108668086A (en) Atomatic focusing method, device, storage medium and terminal
EP4199529A1 (en) Electronic device for providing shooting mode based on virtual character and operation method thereof
CN108474657B (en) Environment information acquisition method, ground station and aircraft
KR102566998B1 (en) Apparatus and method for determining image sharpness
CN109547701A (en) Image capturing method, device, storage medium and electronic equipment
CN105320695A (en) Picture processing method and device
CN109639896A (en) Block object detecting method, device, storage medium and mobile terminal
CN109040523B (en) Artifact eliminating method and device, storage medium and terminal
KR102423295B1 (en) An apparatus for composing objects using depth map and a method thereof
EP3641294B1 (en) Electronic device and method for obtaining images
CN111092748B (en) Alarm rule setting method, device, equipment and storage medium for Internet of things equipment
KR20160038460A (en) Electronic device and control method of the same
CN108650457A (en) Automatic photographing method, device, storage medium and mobile terminal
CN110442521B (en) Control unit detection method and device
CN109040524A (en) Artifact eliminating method, device, storage medium and terminal
CN109120864B (en) Light supplement processing method and device, storage medium and mobile terminal
CN109327691A (en) Image capturing method, device, storage medium and mobile terminal
CN108769538A (en) Atomatic focusing method, device, storage medium and terminal
KR102646344B1 (en) Electronic device for image synthetic and operating thereof
CN108665510A (en) Rendering intent, device, storage medium and the terminal of continuous shooting image
CN108683859A (en) It takes pictures optimization method, device, storage medium and terminal device
CN108683858A (en) It takes pictures optimization method, device, storage medium and terminal device
CN111353946B (en) Image restoration method, device, equipment and storage medium
CN109040729B (en) Image white balance correction method and device, storage medium and terminal
US9684828B2 (en) Electronic device and eye region detection method in electronic device

Legal Events

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