CN107526515A - A kind of method and electronic equipment of focusing of taking pictures - Google Patents
A kind of method and electronic equipment of focusing of taking pictures Download PDFInfo
- Publication number
- CN107526515A CN107526515A CN201610459680.2A CN201610459680A CN107526515A CN 107526515 A CN107526515 A CN 107526515A CN 201610459680 A CN201610459680 A CN 201610459680A CN 107526515 A CN107526515 A CN 107526515A
- Authority
- CN
- China
- Prior art keywords
- pressure value
- target object
- display module
- focusing
- region
- 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.)
- Withdrawn
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/67—Focus control based on electronic image sensor signals
Abstract
The invention provides a kind of method and electronic equipment of focusing of taking pictures, wherein method includes:Detect the generation position of contact action and the caused first pressure value on the generation position in touches display module;The generation opening position is obtained, fisrt feature corresponding with the first pressure value extracts region in the touches display module, the characteristic information of target object of the extraction present image in the fisrt feature extracts region, obtains characteristic matching information;According to the characteristic matching information, target following and focusing are carried out to the successive image shown in the touches display module.The program is realized in the moving process of object, and dynamic focus process is carried out with the motion of target object, meets the actual demand of user, lifts Consumer's Experience.
Description
Technical field
The present invention relates to communication technical field, more particularly to a kind of method and electronic equipment of focusing of taking pictures.
Background technology
With the development of electronic equipment, electronic equipment of new generation, such as modular pressure is employed on mobile phone, shield
Curtain can interpolate that the application of pressure is more and more, does not apply pressure to screen and is carried out in the case of applying pressure
Operation can realize different operating effects.
In existing end product, contact action is carried out with finger when taking pictures, operating position can be carried out
Focusing, but be applied to carry out stationary body focus operation in existing focusing method of taking pictures, or be applicable
The state of geo-stationary is between electronic equipment and made thing body, existing method is shooting static object
When it is more useful, but cannot be focused well for mobile object, such as when user's contact action
The object clicked on position is a mobile object, or when user wishes electronic device terminal movement
When still being focused to this object, only user ceaselessly clicks on corresponding with mobile object on screen
Display location, could realize and focusing process, existing method are carried out to the target object that is moved in display picture
It cannot be perfectly suitable for needing mobile situation about focusing, user's degree easy to use is relatively low, and reducing user makes
With experience.
The content of the invention
A kind of method and electronic equipment of focusing of taking pictures are provided in the embodiment of the present invention, to solve existing focusing side
Method is more useful when shooting static object, but is asked for what mobile object cannot focus well
Topic.
In order to solve the above-mentioned technical problem, the embodiment of the present invention adopts the following technical scheme that:
On the one hand, the embodiment of the present invention provides a kind of method for focusing of taking pictures, including:
Detect in touches display module the generation position of contact action and the caused by the generation position
One pressure value;
Obtain the generation opening position, in the touches display module with the first pressure value corresponding first
Feature extraction region, the feature letter of target object of the extraction present image in the fisrt feature extracts region
Breath, obtains characteristic matching information;
According to the characteristic matching information, target is carried out to the successive image shown in the touches display module
Tracking and focusing.
Alternatively, it is described to obtain the generation opening position, in the touches display module with the first pressure
Fisrt feature corresponding to value extracts region, target of the extraction present image in the fisrt feature extracts region
The characteristic information of object, the step of obtaining characteristic matching information, including:
According to the first pressure value, in the area corresponding table in a default pressure value Yu feature extraction region,
First area corresponding to obtaining the first pressure value, formed in the touches display module with the generation position
Center is set to, and area extracts region for the fisrt feature of first area;
Feature extraction is carried out to the target object in fisrt feature extraction region, obtains the target object
Characteristic information, obtain characteristic matching information.
Alternatively, it is described according to the characteristic matching information, it is follow-up to being shown in the touches display module
Image is carried out the step of target following and focusing, including:
According to the characteristic matching information, matched with the successive image shown in the touches display module,
The target object being consistent in the successive image with the characteristic matching information is identified, and obtains the object
On-screen display (osd) area corresponding to body;
Picture focusing is carried out in the on-screen display (osd) area.
Alternatively, it is described according to the characteristic matching information, it is follow-up to being shown in the touches display module
After image carries out the step of target following and focusing, methods described also includes:
The on-screen display (osd) area where the target object that progress target following obtains, determine that second feature extracts area
Domain;
Feature extraction is carried out to the target object in second feature extraction region, obtains the target object
Characteristic information, obtain the new characteristic matching information, and enter according to the characteristic matching information, it is right
The successive image shown in the touches display module carries out the step of target following and focusing.
Alternatively, it is described detection touches display module on contact action generation position and in the generation position
Caused by upper during first pressure value, methods described also includes:
Obtain duration of the contact action on the generation position;
When judging that the duration reaches predetermined time period, picture pair is carried out on the generation position
Jiao, and enter and obtain the generation opening position, it is corresponding with the first pressure value in the touches display module
Fisrt feature extraction region, target object of the extraction present image in the fisrt feature extracts region
Characteristic information, the step of obtaining characteristic matching information.
Alternatively, it is described detection touches display module on contact action generation position and in the generation position
After first pressure value caused by upper, methods described also includes:
Judge whether the first pressure value is in preset threshold range;
It is described into the acquisition generation opening position when the first pressure value is in preset threshold range
Fisrt feature extraction region corresponding with the first pressure value, extraction present image exist in touches display module
The characteristic information of target object in fisrt feature extraction region, the step of obtaining characteristic matching information.
Alternatively, it is described to judge whether the first pressure value is in after preset threshold range, methods described
Also include:
When the first pressure value exceeds the maximum in preset threshold range, the exceeded warning of pressure is sent.
On the other hand, the embodiment of the present invention also provides a kind of electronic equipment, including:
Detection module, for detecting the generation position of contact action in touches display module and in the generation position
First pressure value caused by putting;
First acquisition module, for obtaining the generation opening position, with described in the touches display module
Fisrt feature corresponding to one pressure value extracts region, and extraction present image is extracted in the fisrt feature in region
Target object characteristic information, obtain characteristic matching information;
Tracking and Focusing module, for according to the characteristic matching information, to showing in the touches display module
The successive image shown carries out target following and focusing.
Alternatively, first acquisition module, including:
Acquisition submodule, for according to the first pressure value, in a default pressure value and feature extraction area
In the area corresponding table in domain, the first area corresponding to the first pressure value is obtained, described touch is formed and shows
On component centered on the generation position, and area extracts region for the fisrt feature of first area;
Feature extraction submodule, carried for carrying out feature to the target object in fisrt feature extraction region
Take, obtain the characteristic information of the target object, obtain characteristic matching information.
Alternatively, the tracking and Focusing module, including:
Match cognization submodule, for according to the characteristic matching information, with showing in the touches display module
The successive image shown is matched, and identifies the target being consistent in the successive image with the characteristic matching information
Object, and obtain on-screen display (osd) area corresponding to the target object;
Focusing submodule, for carrying out picture focusing in the on-screen display (osd) area.
Alternatively, the electronic equipment also includes:
Determining module, for the on-screen display (osd) area where the obtained target object of target following is carried out, it is determined that
Second feature extracts region;
Second acquisition module, for carrying out feature extraction to the target object in second feature extraction region,
The characteristic information of the target object is obtained, obtains the new characteristic matching information, and enter according to
Characteristic matching information, target following and focusing are carried out to the successive image shown in the touches display module
Step.
Alternatively, the electronic equipment also includes:
3rd acquisition module, for obtaining duration of the contact action on the generation position;
Focusing module, for when judging that the duration reaches predetermined time period, in the generation position
Put and carry out picture focusing, and enter and obtain the generation opening position, in the touches display module with it is described
Fisrt feature corresponding to first pressure value extracts region, and extraction present image extracts region in the fisrt feature
In target object characteristic information, the step of obtaining characteristic matching information.
Alternatively, the electronic equipment also includes:
Judge module, for judging whether the first pressure value is in preset threshold range;Described first
When pressure value is in preset threshold range, into obtaining the generation opening position, in the touches display module
Fisrt feature corresponding with the first pressure value extracts region, and extraction present image carries in the fisrt feature
The characteristic information of the target object in region is taken, the step of obtaining characteristic matching information.
Alternatively, the electronic equipment also includes:
Alarm module, for the first pressure value exceed preset threshold range in maximum when, send
The exceeded warning of pressure.
One or more embodiments of the invention has the advantages that:
Scheme in the embodiment of the present invention, during taking pictures, grasped by detecting touch screen in touches display module
The generation position of work and the caused first pressure value on the generation position, with reference to the generation position of contact action
And caused pressure value, the feature extraction region in touches display module is obtained, is carried in feature extraction region
Take the characteristic information of target object in present image, and with this to the successive image that is shown in touches display module
Target following and picture focusing are carried out, by the way that focusing is locked and tracked to mobile target object, is realized
In the moving process of object, dynamic focus process is carried out with the motion of target object, meets user's
Actual demand, lift Consumer's Experience.
Brief description of the drawings
Fig. 1 represent first embodiment of the invention in take pictures focusing method flow chart;
Fig. 2 represent second embodiment of the invention in take pictures focusing method flow chart;
Fig. 3 represent third embodiment of the invention in take pictures focusing method flow chart;
Fig. 4 represents in the embodiment of the present invention that fisrt feature extracts the schematic diagram in region in touches display module;
Fig. 5 represents the structured flowchart one of electronic equipment in this fourth embodiment of the invention;
Fig. 6 represents the structured flowchart two of electronic equipment in this fourth embodiment of the invention.
Reference:Wherein in figure:
21- electronic equipments, 22- touches display modules, 23- target objects, 24- fisrt feature extraction region.
Embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although shown in accompanying drawing
The exemplary embodiment of the disclosure, it being understood, however, that may be realized in various forms the disclosure without should be by
Embodiments set forth here is limited.Conversely, there is provided these embodiments are to be able to be best understood from this
It is open, and the scope of the present disclosure can be completely communicated to those skilled in the art.
First embodiment
A kind of method for focusing of taking pictures disclosed in the present embodiment, with reference to shown in Fig. 1, this method includes:
Step 101:Detect the generation position of contact action in touches display module and produced on the generation position
Raw first pressure value.
Under the state of taking pictures, user presses screen in touches display module, and somewhere, realization is entered here
Row focus operation, first by gather finger touch screen location parameter, positional information corresponding to acquisition and
Pressure value on the contact action position, according to being produced during the generation position of contact action and contact action
Raw pressure value size, the precondition performed as following operation.The first pressure value can pass through pressure
Force snesor collects.
, can be according to the contact action, in the generation position of the contact action with the generation of the contact action
Place carries out advance picture focusing process, then carries out the focusing of the target object after the ensuing movement to position
Processing procedure, and can make that apparent object features can be extracted in following characteristic extraction procedure.
Step 102:The generation opening position is obtained, corresponding with first pressure value first in touches display module
Feature extraction region, the characteristic information of target object of the extraction present image in the fisrt feature extracts region,
Obtain characteristic matching information.
Here, feature extraction is carried out to the present image shown in touches display module, feature extraction region
Scope and size are determined by the generation position of user's contact action and the pressure value size of contact action.The spy
The shape in sign extraction region could be arranged to border circular areas or square region;Wherein, object of extraction
The characteristic information of body can include:The colouring information of target object, shape information, contour of object information, line
Manage information etc..Camera image acquisition elements CCD (Charge Coupled Device, charge coupling device)
When acquisition characteristics extract the colouring information in region, the R in the range of specific pickup area, tri- sons of G, B
The colouring information of location of pixels, this R, the color data of tri- sub-pixels of G, B can be stored in caching list
In member;Or the image in this feature extraction region is changed into black and white binary image, this black and white binary image
Comprising objects' contour information, shape information, texture information etc., this data can be stored in buffer unit
In, for the calling in below step.
Step 103:According to this feature match information, the successive image shown in touches display module is carried out
Target following and focusing.
During being somebody's turn to do, the acquisition of the successive image to being shown in touches display module can be that interval one is default
Time, the display picture refreshed in touches display module, obtain the successive image shown in touches display module.
And corresponding to a display picture refresh operation in a time interval, exist once according to feature
Match information, a matching process of the image with being shown in touches display module is carried out, is realized to subsequent figure
The target identification tracking of target object, can get the change location of target object at different moments as in, and
The focus operation of picture is carried out on the change location of the target object traced into, the picture focus operation is specific
Completed by the camera device in terminal.
The method of focusing of taking pictures in the embodiment, during taking pictures, by detecting in touches display module
The generation position of contact action and the caused first pressure value on the generation position, with reference to the hair of contact action
Raw position and caused pressure value, the feature extraction region in touches display module is obtained, in feature extraction area
In domain extract present image in target object characteristic information, and with this to being shown in touches display module after
Continuous image carries out target following and picture focusing, real by the way that focusing is locked and tracked to mobile target object
Show in the moving process of object, dynamic focus process is carried out with the motion of target object, met
The actual demand of user, lift Consumer's Experience.
Second embodiment
With reference to focusing of taking pictures method in key step preferred embodiment specific implementation process, this implementation
A kind of method for focusing of taking pictures disclosed in example, with reference to shown in Fig. 2, this method includes:
Step 201:Detect the generation position of contact action in touches display module and occur described on position
Caused first pressure value.
In the step, the location parameter of screen, positional information corresponding to acquisition are touched by gathering finger first
And the pressure value on the contact action position, during the generation position of contact action and contact action
Caused pressure value size, it is used as the precondition that next operation performs.
, it is necessary to obtain the generation opening position after above-mentioned steps completion, with described the in touches display module
Fisrt feature corresponding to one pressure value extracts region, and extraction present image is extracted in the fisrt feature in region
The characteristic information of target object, obtain characteristic matching information.
Specifically, the acquisition generation opening position, corresponding with first pressure value in touches display module
One feature extraction region, the characteristic information of target object of the extraction present image in fisrt feature extracts region,
The step of obtaining characteristic matching information, specifically includes:
Step 202:According to the first pressure value, the area in a default pressure value Yu feature extraction region
In corresponding table, obtain the first pressure value corresponding to the first area, formed in the touches display module with
Centered on the generation position, and area extracts region for the fisrt feature of first area.
In the step, how specific implementation obtains the generation opening position of contact action, in touches display module with
Fisrt feature corresponding to first pressure value extracts region, wherein, the default pressure value and feature extraction region
Area corresponding table in, can be record specific pressure value and area value one-to-one relationship, either
The pressure value section of record and the corresponding relation of area value.
Accordingly, according to the first pressure value, the area pair in a default pressure value Yu feature extraction region
Answer in table, obtain the process of the first area corresponding to the first pressure value, including:Pass through pressure value and spy
In the area corresponding table in sign extraction region, the one-to-one relationship of pressure value and area value, first pressure is obtained
First area corresponding to value;Or matching first pressure value is in the area pair in pressure value Yu feature extraction region
Pressure value section residing in table is answered, obtains the first area corresponding with the pressure value section;Can in advance by
Pressure value divides into several different sections, by the pressure value detected compared with different sections,
Judge which section is first pressure value fall in, get first area corresponding with the section, realize root
Judge region area corresponding to pressure according to pressure state, and then obtain the fisrt feature with the first area and extract
Region.
Preferably, in the area corresponding table in the pressure value Yu feature extraction region, pressure value and feature extraction
Being proportionate property between the area in region, the area in the bigger corresponding feature extraction region of pressure value are also bigger.
Specifically, when feature extraction region is shaped to circle, according to the determination pair of the size of pressure value
The circular diameter and area answered, is formed centered on the generation position of contact action, and area is corresponding
The fisrt feature extraction region of first area.
Step 203:Feature extraction is carried out to the target object in fisrt feature extraction region, obtains institute
The characteristic information of target object is stated, obtains characteristic matching information.
With reference to shown in Fig. 4, in above-mentioned steps, formed centered on the generation position of contact action, and face
Product extracts region 24 for the fisrt feature of the first area, in this step, in touching for terminal electronic device 21
Touch on display module 22, the part that present image is shown in fisrt feature extraction region 24, which is formed, to be characterized
The object of extraction, the target object 23 in the part chosen to user carry out feature extraction, obtain target
The characteristic information of object 23, using this feature information as characteristic matching information, target under being fetched with
Track process.
On the basis of the above-described procedure, it is follow-up to what is shown in touches display module according to this feature match information
Image carries out the step of target following and focusing, specifically includes:
Step 204:According to this feature match information, carried out with the successive image shown in touches display module
Matching, the target object being consistent in successive image with this feature match information is identified, and obtain the target object
Corresponding on-screen display (osd) area.
The characteristic matching information obtained based on extraction, it is follow-up to what is shown in touches display module on this basis
Image is matched, and can be specifically to the color including target object, profile, line in the matching process
Feature including reason, shape etc. matched, can be when matching degree reaches certain proportion, such as matching
The goodness of fit be 80% when, it is believed that the match is successful, so identify present in successive image with this feature
The target object that match information is consistent, match cognization process is completed, and correspondingly got residing for the target object
On-screen display (osd) area, it is complete by the way that according to the object features extracted, match cognization is carried out to mobile object
The tracing process of the object of paired display location change, to realize after the change of object display location, can also enter
Real-time accurate focusing of the row to image.
During being somebody's turn to do, the acquisition of the successive image to being shown in touches display module can be that interval one is default
Time, the display picture refreshed in touches display module, obtain the successive image shown in touches display module.
Step 205:Picture focusing is carried out in the on-screen display (osd) area.
The step, complete with the on-screen display (osd) area corresponding to the target object in successive image, carrying out
Picture focus operation.Realized with final according to characteristic matching information, follow the trail of moving and carrying out pair for target object
The real-time focus process of display location where target object.
Specifically, focusing when, can by judging target object edge in on-screen display (osd) area, when
When the acutance at target object edge reaches maximum, now judge to reach target object pair in on-screen display (osd) area
Coke-like state.The present image and successive image can be specially the display in the camera picture preview interface of terminal
Image.Specifically, the picture focus operation is the camera device in terminal to perform.
The method of focusing of taking pictures in the embodiment, during taking pictures, by detecting in touches display module
The generation position of contact action and the caused first pressure value on the generation position, with reference to the hair of contact action
Raw position and caused pressure value, in the area corresponding table in a default pressure value Yu feature extraction region,
Area corresponding to pressure value, and then the generation opening position in touches display module are obtained, obtains that there is the face
The feature extraction region of product value, the characteristic information of target object in present image is extracted in feature extraction region,
And target following is carried out to the successive image that is shown in touches display module with this and picture is focused, realize pair
Mobile object carries out match cognization, completes the tracing process of the object to display location change, to realize in thing
After the change of body display location, the real-time accurate focusing to image can be also carried out, meets the actual demand of user,
Lift Consumer's Experience.
3rd embodiment
Further, with reference to the specific implementation process of the preferred embodiment of each step in the method for focusing of taking pictures,
A kind of method for focusing of taking pictures disclosed in the present embodiment, with reference to shown in Fig. 3, this method includes:
Step 301:Detect the generation position of contact action in touches display module and produced on the generation position
Raw first pressure value, and obtain duration of the contact action on the generation position.
In the step, detection touches display module on contact action generation position and in the generation position
Caused by upper during first pressure value, this method also includes:Obtain contact action holding on the generation position
The continuous time.Wherein, contact action can be obtained especially by timer built-in in terminal on position occurs
Duration.
Under the state of taking pictures, the location parameter of screen is touched by gathering finger, is obtained corresponding to contact action
Positional information and the pressure value on contact action generation position and duration, and according to contact action
Caused pressure value size and duration during generation position, contact action, held as following operation
Capable precondition.
Step 302:It is enterprising in the generation position when judging that the duration reaches predetermined time period
Row picture is focused.
The step, can judge it is a little with the time length of screen contact in contact action according to user's finger
Hit operation screen operator and still press screen operator, and then judge that user is photographing operation or focus operation.
For example, when the duration being not reaching to predetermined time period, judgement is click on operating, corresponding to the behaviour that takes pictures
Make, when the duration reaching predetermined time period, judgement is pressing operation, corresponding to focus operation, is entered
And be the generation position of contact action according to touch-screen pressing position, acquisition needs progress target object feature to carry
The position that takes and first focusing position.Picture focusing is carried out on the generation position, and enters and obtains the generation
Opening position, fisrt feature extraction region corresponding with first pressure value, extracts current figure in touches display module
As the characteristic information of the target object in extracting region in fisrt feature, the step of obtaining characteristic matching information.
Corresponding camera is taken pictures on preview image, and user is clicked by contact action in the generation position of the operation
Go out target object, motor of camera, adjustment shooting are started according to the acutance at target object edge on preview image
The distance of head mirror piece and CCD, imaging most clearly position is found, completes focus process.
After carrying out picture focus operation on position occurs, the display picture of focusing position is apparent, and feature carries
Take region to be arranged at generation opening position, that is, be arranged at picture focusing position, can extract it is apparent,
The characteristic information of accurate target object.
Further, detection touches display module on contact action generation position and on the generation position
After caused first pressure value, this method also includes:
Step 303:Judge whether the first pressure value is in preset threshold range.
The threshold range of a pressure can be pre-set, after the pressure value that terminal screen is born is got,
Judge whether the pressure value is in the threshold range, if being in, the pressure value meets preparatory condition, if should
Pressure value is more than or less than the threshold range, then is unsatisfactory for condition.
Specifically, pressure value is allocated as to several different sections from small to large, in grams, 50 grams of pressures
Equivalent to 50 grams counterweights of power are pressed in screen surface, set be judged as carrying out other from 50 grams of pressures below it is normal
The pressure value of contact action;Pressure between 50 grams to 500 grams is set to need to carry out target object selection
And the pressure value of succeeding target tracking and focus operation, specifically, should when feature extraction region is circular
Corresponding pressure range between 50 grams and 500 grams, corresponding 1 centimetre of circle for arriving 3 centimetres of diameter of diameter, at this
Feature recognition is carried out to target object in individual circle, wherein, pressure and diameter of a circle and area are proportional;
It is non-security pressure state to set pressure value corresponding to more than 500 grams.When first pressure value is in and 50 grams
, can be to prevent to during pressure value section, judging that the first pressure value is in preset threshold range corresponding to 500 grams
Only maloperation.
And when judging that first pressure value is in preset threshold range, opening position occurs into obtaining, touches
Fisrt feature extraction region corresponding with first pressure value on display module, extraction present image is in fisrt feature
Extract the characteristic information of the target object in region, the step of obtaining characteristic matching information.
Further, after judging whether the first pressure value is in preset threshold range, this method is also
Including:
Step 304:When first pressure value exceeds the maximum in preset threshold range, it is exceeded to send pressure
Warning.
Default threshold range be with 50 grams to 500 grams of corresponding pressure value sections when, with 500 grams with
Range of pressure values corresponding to upper scope is non-security pressure state, when first pressure value exceeds preset threshold range
In maximum, that is, when exceeding pressure value corresponding with 500 gram weights, terminal sends the exceeded warning of pressure,
The exceeded warning of the pressure can include motor vibrations, display screen color change, and loudspeaker send the sound, in screen
Carry out the modes such as text prompt.
With above-mentioned steps accordingly, this method also includes:
Step 305:The generation opening position is obtained, corresponding with first pressure value first in touches display module
Feature extraction region, the characteristic information of target object of the extraction present image in the fisrt feature extracts region,
Obtain characteristic matching information.
Here, feature extraction is carried out to the present image shown in touches display module, feature extraction region
Scope and size are determined by the generation position of user's contact action and the pressure value size of contact action.The spy
The shape in sign extraction region could be arranged to border circular areas or square region;Wherein, object of extraction
The characteristic information of body can include:The colouring information of target object, shape information, contour of object information, line
Manage information etc..
Step 306:According to this feature match information, the successive image shown in touches display module is carried out
Target following and focusing.
During being somebody's turn to do, the acquisition of the successive image to being shown in touches display module can be that interval one is default
Time, the display picture refreshed in touches display module, obtain the successive image shown in touches display module.
And corresponding to a display picture refresh operation in a time interval, exist once according to feature
Match information, a matching process of the image with being shown in touches display module is carried out, is realized to subsequent figure
The target identification tracking of target object, can get the change location of target object at different moments as in, and
The focus operation of picture is carried out on the change location of the target object traced into.
Specifically, separated in time refreshes to the display image in camera preview interface, with 0.5
Second refreshes a frame, the mesh after extraction refreshes each time in corresponding successive image with characteristic matching information match
Object is marked, specially extracts what is preserved in the information, with caching such as the color in successive image, profile, texture
Object features carry out contrast matching, identify target object, and obtain screen display corresponding with target object
Region, picture focusing is carried out on the on-screen display (osd) area.
Further, according to this feature match information, the successive image shown in touches display module is entered
After the step of row target following and focusing, this method also includes:
Step 307:The on-screen display (osd) area corresponding to carry out the obtained target object of target following, determine the
Two feature extraction regions.
Specifically, in above-mentioned steps, target following is carried out to the successive image shown in touches display module,
In the step, on the on-screen display (osd) area corresponding with target object that is obtained after tracking, it is determined that new feature
Extract region.Preferably, the new feature extraction region be above-mentioned second feature extraction region can be with
Fisrt feature extraction region has regional extent of the same area, and second feature extraction region can be with this
Centered on on-screen display (osd) area, area is the new regional extent for the area that fisrt feature extracts region.Can be with
Make to carry out target object new feature extraction in the second feature extracts region, and be saved in buffer unit,
Change, such as change, the profile variations of object angle are shown to adapt to the image occurred in object moving process
Etc..
Step 308:Feature extraction is carried out to the target object in second feature extraction region, obtains the target
The characteristic information of object, obtain new characteristic matching information.
In the step, new feature extraction is carried out to target object in the second feature extracts region, with suitable
The image that occurs in object moving process is answered to show change, such as the change of object angle, profile variations etc.,
Make in the target object after changing to display location carries out focus process, can be according to the motion of target object
During posture change, carry out more accurate target following, implement accurate focusing.
After new characteristic matching information is obtained, into according to characteristic matching information, to touches display module
The successive image of upper display carries out the step of target following and focusing, to realize movement for target object
Feature extraction and renewal are constantly carried out, and according to the characteristic matching information got every time, is carried out aobvious to touching
Show that the successive image that is shown on component carries out target following, identification when in the image of preceding camera preview interface with
The target object that each characteristic matching information is consistent, on-screen display (osd) area corresponding to target object is obtained, and
To being focused again on this band of position.Wherein, according to characteristic matching information, to being shown in touches display module
Successive image carry out target following and focusing the step of and to second feature extraction region in target object
The step of carrying out feature extraction, obtain the characteristic information of the target object, obtaining new characteristic matching information needs
Just to terminate when getting the photographing instruction of user.
The method of focusing of taking pictures in the embodiment, during taking pictures, by detecting in touches display module
The generation position of contact action and caused first pressure value and duration on the generation position, Jin Er
When it meets condition, the generation opening position in touches display module, obtain the feature with the area value and carry
Region is taken, the characteristic information of target object in present image is extracted in feature extraction region, with this to touching
The successive image shown on display module carries out target following and picture focusing, and to being carried during each target following
The new characteristic information of target object is taken, as the foundation for carrying out target following and picture focusing again, is realized
Match cognization is carried out to mobile object, completes the tracing process of the object to display location change, to realize
After changing in object display location, the real-time accurate focusing to image can be also carried out, meets the actual need of user
Ask, lift Consumer's Experience.
Fourth embodiment
A kind of electronic equipment is disclosed in the present embodiment, with reference to shown in Fig. 5, Fig. 6, including:Detection module
401st, the first acquisition module 402 and tracking and Focusing module 403.
Detection module 401, for detecting the generation position of contact action in touches display module and in the hair
Caused first pressure value on raw position.
First acquisition module 402, for obtaining the generation opening position, in the touches display module with institute
State fisrt feature corresponding to first pressure value and extract region, extraction present image extracts area in the fisrt feature
The characteristic information of target object in domain, obtain characteristic matching information.
Tracking and Focusing module 403, for according to the characteristic matching information, to the touches display module
The successive image of upper display carries out target following and focusing.
Wherein, first acquisition module 402, including:Acquisition submodule 4021 and feature extraction submodule
4022。
Acquisition submodule 4021, for according to the first pressure value, in default a pressure value and feature
In the area corresponding table for extracting region, the first area corresponding to the first pressure value is obtained, forms described touch
Touch on display module centered on the generation position, and area extracts for the fisrt feature of first area
Region.
Feature extraction submodule 4022, for being carried out to the target object in fisrt feature extraction region
Feature extraction, the characteristic information of the target object is obtained, obtain characteristic matching information.
Wherein, the tracking and Focusing module 403, including:Match cognization submodule 4031 and focusing submodule
Block 4032.
Match cognization submodule 4031, for according to the characteristic matching information, display group to be touched with described
The successive image shown on part is matched, and is identified in the successive image and is consistent with the characteristic matching information
Target object, and obtain on-screen display (osd) area corresponding to the target object.
Focusing submodule 4032, for carrying out picture focusing in the on-screen display (osd) area.
The electronic equipment also includes:The acquisition module 405 of determining module 404 and second.
Determining module 404, for the on-screen display (osd) area where the obtained target object of target following is carried out,
Determine that second feature extracts region.
Second acquisition module 405, for carrying out feature to the target object in second feature extraction region
Extraction, obtains the characteristic information of the target object, obtains the new characteristic matching information, and enter root
According to the characteristic matching information, the successive image shown in the touches display module is carried out target following and
The step of focusing.
The electronic equipment also includes:3rd acquisition module 406 and Focusing module 407.
3rd acquisition module 406, for obtaining duration of the contact action on the generation position.
Focusing module 407, for when judging that the duration reaches predetermined time period, in the hair
Picture focusing is carried out on raw position, and enters and obtains the generation opening position, in the touches display module with
Fisrt feature corresponding to the first pressure value extracts region, and extraction present image extracts in the fisrt feature
The characteristic information of target object in region, the step of obtaining characteristic matching information.
The electronic equipment also includes:Judge module 408.
Judge module 408, for judging whether the first pressure value is in preset threshold range;Described
When first pressure value is in preset threshold range, into the acquisition generation opening position, the touch display group
Fisrt feature extraction region corresponding with the first pressure value, extraction present image are special described first on part
The characteristic information of target object in sign extraction region, the step of obtaining characteristic matching information.
The electronic equipment also includes:Alarm module 409.
Alarm module 409, for the first pressure value exceed preset threshold range in maximum when,
Send the exceeded warning of pressure.
The electronic equipment can realize each process that the method for focusing of being taken pictures in previous embodiment is realized, to keep away
Exempt to repeat, repeat no more here.The electronic equipment can be mobile phone, tablet personal computer, mobile photographing device etc..
Electronic equipment in the embodiment, during taking pictures, grasped by detecting touch screen in touches display module
The generation position of work and the caused first pressure value on the generation position, with reference to the generation position of contact action
And caused pressure value, the feature extraction region in touches display module is obtained, is carried in feature extraction region
Take the characteristic information of target object in present image, and with this to the successive image that is shown in touches display module
Target following and picture focusing are carried out, by the way that focusing is locked and tracked to mobile target object, is realized
In the moving process of object, dynamic focus process is carried out with the motion of target object, meets user's
Actual demand, lift Consumer's Experience.
Each embodiment in this specification is described by the way of progressive, what each embodiment stressed
All be the difference with other embodiment, between each embodiment identical similar part mutually referring to.
Although having been described for the preferred embodiment of the embodiment of the present invention, those skilled in the art once obtain
Cicada basic creative concept, then other change and modification can be made to these embodiments.It is so appended
Claim is intended to be construed to include preferred embodiment and falls into being had altered for range of embodiment of the invention
And modification.
Finally, it is to be noted that, in embodiments of the present invention, such as first and second or the like pass
It is that term is used merely to make a distinction an entity or operation with another entity or operation, and not necessarily
It is required that either imply between these entities or operation any this actual relation or order be present.Moreover,
Term " comprising ", "comprising" or any other variant thereof is intended to cover non-exclusive inclusion, so that
Process, method, article or the terminal device of a series of elements, which must be included, not only includes those key elements, and
Also include the other element that is not expressly set out, or also include for this process, method, article or
The intrinsic key element of terminal device.In the absence of more restrictions, by sentence "including a ..."
The key element of restriction, it is not excluded that in the process including the key element, method, article or terminal device also
Other identical element be present.
Above-described is the preferred embodiment of the present invention, it should be pointed out that for the ordinary people of the art
For member, some improvements and modifications can also be made under the premise of principle of the present invention is not departed from, these
Improvements and modifications are also within the scope of the present invention.
Claims (14)
- A kind of 1. method for focusing of taking pictures, it is characterised in that including:Detect in touches display module the generation position of contact action and the caused by the generation position One pressure value;Obtain the generation opening position, in the touches display module with the first pressure value corresponding first Feature extraction region, the feature letter of target object of the extraction present image in the fisrt feature extracts region Breath, obtains characteristic matching information;According to the characteristic matching information, target is carried out to the successive image shown in the touches display module Tracking and focusing.
- 2. according to the method for claim 1, it is characterised in thatIt is described to obtain the generation opening position, it is corresponding with the first pressure value in the touches display module Fisrt feature extracts region, the spy of target object of the extraction present image in the fisrt feature extracts region Reference ceases, the step of obtaining characteristic matching information, including:According to the first pressure value, in the area corresponding table in a default pressure value Yu feature extraction region, First area corresponding to obtaining the first pressure value, formed in the touches display module with the generation position Center is set to, and area extracts region for the fisrt feature of first area;Feature extraction is carried out to the target object in fisrt feature extraction region, obtains the target object Characteristic information, obtain characteristic matching information.
- 3. according to the method for claim 1, it is characterised in thatIt is described according to the characteristic matching information, the successive image shown in the touches display module is carried out The step of target following and focusing, including:According to the characteristic matching information, matched with the successive image shown in the touches display module, The target object being consistent in the successive image with the characteristic matching information is identified, and obtains the object On-screen display (osd) area corresponding to body;Picture focusing is carried out in the on-screen display (osd) area.
- 4. according to the method for claim 1, it is characterised in thatIt is described according to the characteristic matching information, the successive image shown in the touches display module is carried out After the step of target following and focusing, methods described also includes:The on-screen display (osd) area where the target object that progress target following obtains, determine that second feature extracts area Domain;Feature extraction is carried out to the target object in second feature extraction region, obtains the target object Characteristic information, obtain the new characteristic matching information, and enter according to the characteristic matching information, it is right The successive image shown in the touches display module carries out the step of target following and focusing.
- 5. according to the method for claim 1, it is characterised in thatIn the detection touches display module generation position of contact action and it is described generation position on produce First pressure value when, methods described also includes:Obtain duration of the contact action on the generation position;When judging that the duration reaches predetermined time period, picture pair is carried out on the generation position Jiao, and enter and obtain the generation opening position, it is corresponding with the first pressure value in the touches display module Fisrt feature extraction region, target object of the extraction present image in the fisrt feature extracts region Characteristic information, the step of obtaining characteristic matching information.
- 6. according to the method for claim 1, it is characterised in thatIn the detection touches display module generation position of contact action and it is described generation position on produce First pressure value after, methods described also includes:Judge whether the first pressure value is in preset threshold range;It is described into the acquisition generation opening position when the first pressure value is in preset threshold range Fisrt feature extraction region corresponding with the first pressure value, extraction present image exist in touches display module The characteristic information of target object in fisrt feature extraction region, the step of obtaining characteristic matching information.
- 7. according to the method for claim 6, it is characterised in that described to judge that the first pressure value is No to be in after preset threshold range, methods described also includes:When the first pressure value exceeds the maximum in preset threshold range, the exceeded warning of pressure is sent.
- 8. a kind of electronic equipment, it is characterised in that including:Detection module, for detecting the generation position of contact action in touches display module and in the generation position First pressure value caused by putting;First acquisition module, for obtaining the generation opening position, with described in the touches display module Fisrt feature corresponding to one pressure value extracts region, and extraction present image is extracted in the fisrt feature in region Target object characteristic information, obtain characteristic matching information;Tracking and Focusing module, for according to the characteristic matching information, to showing in the touches display module The successive image shown carries out target following and focusing.
- 9. electronic equipment according to claim 8, it is characterised in that first acquisition module, bag Include:Acquisition submodule, for according to the first pressure value, in a default pressure value and feature extraction area In the area corresponding table in domain, the first area corresponding to the first pressure value is obtained, described touch is formed and shows On component centered on the generation position, and area extracts region for the fisrt feature of first area;Feature extraction submodule, carried for carrying out feature to the target object in fisrt feature extraction region Take, obtain the characteristic information of the target object, obtain characteristic matching information.
- 10. electronic equipment according to claim 8, it is characterised in that the tracking and Focusing module, Including:Match cognization submodule, for according to the characteristic matching information, with showing in the touches display module The successive image shown is matched, and identifies the target being consistent in the successive image with the characteristic matching information Object, and obtain on-screen display (osd) area corresponding to the target object;Focusing submodule, for carrying out picture focusing in the on-screen display (osd) area.
- 11. electronic equipment according to claim 8, it is characterised in that the electronic equipment also includes:Determining module, for the on-screen display (osd) area where the obtained target object of target following is carried out, it is determined that Second feature extracts region;Second acquisition module, for carrying out feature extraction to the target object in second feature extraction region, The characteristic information of the target object is obtained, obtains the new characteristic matching information, and enter according to Characteristic matching information, target following and focusing are carried out to the successive image shown in the touches display module Step.
- 12. electronic equipment according to claim 8, it is characterised in that the electronic equipment also includes:3rd acquisition module, for obtaining duration of the contact action on the generation position;Focusing module, for when judging that the duration reaches predetermined time period, in the generation position Put and carry out picture focusing, and enter and obtain the generation opening position, in the touches display module with it is described Fisrt feature corresponding to first pressure value extracts region, and extraction present image extracts region in the fisrt feature In target object characteristic information, the step of obtaining characteristic matching information.
- 13. electronic equipment according to claim 8, it is characterised in that the electronic equipment also includes:Judge module, for judging whether the first pressure value is in preset threshold range;Described first When pressure value is in preset threshold range, into obtaining the generation opening position, in the touches display module Fisrt feature corresponding with the first pressure value extracts region, and extraction present image carries in the fisrt feature The characteristic information of the target object in region is taken, the step of obtaining characteristic matching information.
- 14. electronic equipment according to claim 13, it is characterised in that the electronic equipment also includes:Alarm module, for the first pressure value exceed preset threshold range in maximum when, send The exceeded warning of pressure.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610459680.2A CN107526515A (en) | 2016-06-22 | 2016-06-22 | A kind of method and electronic equipment of focusing of taking pictures |
PCT/CN2016/099236 WO2017219515A1 (en) | 2016-06-22 | 2016-09-18 | Method for photographing focusing and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610459680.2A CN107526515A (en) | 2016-06-22 | 2016-06-22 | A kind of method and electronic equipment of focusing of taking pictures |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107526515A true CN107526515A (en) | 2017-12-29 |
Family
ID=60735387
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610459680.2A Withdrawn CN107526515A (en) | 2016-06-22 | 2016-06-22 | A kind of method and electronic equipment of focusing of taking pictures |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN107526515A (en) |
WO (1) | WO2017219515A1 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108989685A (en) * | 2018-08-31 | 2018-12-11 | 努比亚技术有限公司 | A kind of burnt processing method of drawing, terminal and computer readable storage medium |
CN109040460A (en) * | 2018-08-28 | 2018-12-18 | 深圳市必发达科技有限公司 | Image capturing method, computer readable storage medium and computer equipment |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110109568B (en) * | 2019-04-29 | 2023-09-22 | 努比亚技术有限公司 | Image processing method, device and computer readable storage medium |
CN110245678B (en) * | 2019-05-07 | 2021-10-08 | 华中科技大学 | Image matching method based on heterogeneous twin region selection network |
CN110908954B (en) * | 2019-11-13 | 2023-05-12 | 维沃移动通信有限公司 | File storage method, device, electronic equipment and medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101078754B1 (en) * | 2010-05-24 | 2011-11-01 | 주식회사 인스프리트 | Mobile terminal having automatic function for camera image acquisition, and automatic method for camera image acqusition of mobile terminal using the same |
CN103135927A (en) * | 2013-01-25 | 2013-06-05 | 广东欧珀移动通信有限公司 | Method and system for rapid focusing and photographing of mobile terminal |
CN104038691A (en) * | 2013-03-07 | 2014-09-10 | 联发科技股份有限公司 | Auto Focus method and auto focus apparatus |
CN105487775A (en) * | 2015-11-26 | 2016-04-13 | 惠州Tcl移动通信有限公司 | Touch screen control method and mobile terminal |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE102011010337A1 (en) * | 2011-02-04 | 2012-08-09 | Eads Deutschland Gmbh | Camera system for the detection and tracing of moving objects at a great distance |
CN105611143B (en) * | 2015-09-15 | 2018-03-02 | 广东欧珀移动通信有限公司 | The photographic method and electronic equipment of a kind of electronic equipment |
CN105159594A (en) * | 2015-09-29 | 2015-12-16 | 努比亚技术有限公司 | Touch photographing device and method based on pressure sensor, and mobile terminal |
-
2016
- 2016-06-22 CN CN201610459680.2A patent/CN107526515A/en not_active Withdrawn
- 2016-09-18 WO PCT/CN2016/099236 patent/WO2017219515A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101078754B1 (en) * | 2010-05-24 | 2011-11-01 | 주식회사 인스프리트 | Mobile terminal having automatic function for camera image acquisition, and automatic method for camera image acqusition of mobile terminal using the same |
CN103135927A (en) * | 2013-01-25 | 2013-06-05 | 广东欧珀移动通信有限公司 | Method and system for rapid focusing and photographing of mobile terminal |
CN104038691A (en) * | 2013-03-07 | 2014-09-10 | 联发科技股份有限公司 | Auto Focus method and auto focus apparatus |
CN105487775A (en) * | 2015-11-26 | 2016-04-13 | 惠州Tcl移动通信有限公司 | Touch screen control method and mobile terminal |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109040460A (en) * | 2018-08-28 | 2018-12-18 | 深圳市必发达科技有限公司 | Image capturing method, computer readable storage medium and computer equipment |
CN108989685A (en) * | 2018-08-31 | 2018-12-11 | 努比亚技术有限公司 | A kind of burnt processing method of drawing, terminal and computer readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
WO2017219515A1 (en) | 2017-12-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107526515A (en) | A kind of method and electronic equipment of focusing of taking pictures | |
CN104956292B (en) | The interaction of multiple perception sensing inputs | |
CN108076290B (en) | Image processing method and mobile terminal | |
CN105072327B (en) | A kind of method and apparatus of the portrait processing of anti-eye closing | |
CN108712603B (en) | Image processing method and mobile terminal | |
CN107562208A (en) | The intelligent terminal control method and intelligent terminal control system of a kind of view-based access control model | |
CN108052079A (en) | Apparatus control method, device, plant control unit and storage medium | |
CN105100461B (en) | Mobile terminal and method for realizing automatic answering | |
CN104021331A (en) | Information processing method applied to electronic device with human face identification function | |
CN104463145A (en) | Electronic equipment and obstacle reminding method | |
CN105117706B (en) | Image processing method and device, character identifying method and device | |
CN107091704A (en) | Pressure detection method and device | |
CN108416337A (en) | User is reminded to clean the method and device of camera lens | |
CN107688385A (en) | A kind of control method and device | |
CN107710221B (en) | Method and device for detecting living body object and mobile terminal | |
CN108012026B (en) | Eyesight protection method and mobile terminal | |
CN110807405A (en) | Detection method of candid camera device and electronic equipment | |
CN107341777A (en) | image processing method and device | |
CN109272466A (en) | A kind of tooth beautification method and device | |
CN105957037A (en) | Image enhancing method and image enhancing device | |
CN107092852A (en) | Pressure detection method and device | |
CN104346030A (en) | Display direction switching method, device and electronic equipment | |
CN105138956A (en) | Face detection method and device | |
CN110855897B (en) | Image shooting method and device, electronic equipment and storage medium | |
CN103795843B (en) | A kind of method received calls and a kind of electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20171229 |
|
WW01 | Invention patent application withdrawn after publication |