CN107509030A - A kind of focusing method and mobile terminal - Google Patents

A kind of focusing method and mobile terminal Download PDF

Info

Publication number
CN107509030A
CN107509030A CN201710691598.7A CN201710691598A CN107509030A CN 107509030 A CN107509030 A CN 107509030A CN 201710691598 A CN201710691598 A CN 201710691598A CN 107509030 A CN107509030 A CN 107509030A
Authority
CN
China
Prior art keywords
focusing
default
captured
default focusing
target reference
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
CN201710691598.7A
Other languages
Chinese (zh)
Other versions
CN107509030B (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201710691598.7A priority Critical patent/CN107509030B/en
Publication of CN107509030A publication Critical patent/CN107509030A/en
Application granted granted Critical
Publication of CN107509030B publication Critical patent/CN107509030B/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/10Terrestrial scenes

Abstract

The invention provides a kind of focusing method and mobile terminal, when solution mobile terminal is taken pictures, it is impossible to the problem of selecting corresponding subject to be focused according to the demand of user.The focusing method of the present invention includes:Reference object in preview interface of currently taking pictures is identified, obtains at least one object to be captured in current preview interface of taking pictures;If at least one target reference object with default focusing match objects in object to be captured be present, according to the priority of the default focusing object to match with least one target reference object, it is determined that focusing object.The present invention can set corresponding default focusing object according to user's request, when at least one target reference object with default focusing match objects in the object to be captured in preview interface of taking pictures be present, focusing object is then determined according to the priority of the default focusing object to match with the destination object, the purpose that focusing object is determined according to the demand of user is realized, reduces the number of user's manual focus.

Description

A kind of focusing method and mobile terminal
Technical field
The present invention relates to the technical field of communications applications, more particularly to a kind of focusing method and mobile terminal.
Background technology
At present, after mobile terminal opens camera, phase chance is focused to the object at preview center automatically, rather than according to The object of the shooting hobby selection respective type of user is focused, it is necessary to which user adjusts focusing object, focusing speed manually again Degree is slow, reduces the usage experience of user.
The content of the invention
It is an object of the invention to provide a kind of focusing method and mobile terminal, is taken pictures to solve mobile terminal When, it is impossible to the problem of selecting corresponding subject to be focused according to the demand of user.
To achieve these goals, the invention provides a kind of focusing method, applied to mobile terminal, including:
Reference object in preview interface of currently taking pictures is identified, obtained in the current preview interface of taking pictures extremely A few object to be captured;
If at least one target reference object with default focusing match objects, root in the object to be captured be present According to the priority of the default focusing object to match with least one target reference object, it is determined that focusing object.
To achieve these goals, embodiments of the invention additionally provide a kind of mobile terminal, including:
First acquisition module, for the reference object in preview interface of currently taking pictures to be identified, obtain described current At least one object to be captured in preview interface of taking pictures;
First determining module, if at least one with default focusing match objects for existing in the object to be captured The priority of target reference object, the then default focusing object that basis matches with least one target reference object, really Surely focus object.
To achieve these goals, embodiments of the invention additionally provide a kind of mobile terminal, including memory, processor And the focusing program that can be run on a memory and on a processor is stored, realized described in the computing device during focusing program Step in focusing method as described above.
To achieve these goals, embodiments of the invention additionally provide a kind of computer-readable recording medium, deposit thereon Focusing program is contained, the focusing program realizes the step in focusing method as described above when being executed by processor.
The embodiment of the present invention has the advantages that:
The above-mentioned technical proposal of the embodiment of the present invention, the reference object in preview interface of currently taking pictures is identified, obtained Obtain at least one object to be captured in the current preview interface of taking pictures;If exist and default focusing in the object to be captured At least one target reference object of match objects, then it is default according to matching with least one target reference object The priority of focusing object, it is determined that focusing object.Corresponding default focusing can be set in the embodiment of the present invention according to user's request Object, exist in the object to be captured in preview interface of taking pictures and shot with least one target of default focusing match objects During object, then focusing object is determined according to the priority of default focusing object to match with the destination object, realize according to The demand at family determines the purpose of focusing object, reduces the number of user's manual focus, improves the experience of taking pictures of user.
Brief description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below by institute in the description to the embodiment of the present invention The accompanying drawing needed to use is briefly described, it should be apparent that, drawings in the following description are only some implementations of the present invention Example, for those of ordinary skill in the art, without having to pay creative labor, can also be according to these accompanying drawings Obtain other accompanying drawings.
Fig. 1 is the first workflow diagram of the focusing method of the embodiment of the present invention;
Fig. 2 is the second workflow diagram of the focusing method of the embodiment of the present invention;
Fig. 3 is the 3rd workflow diagram of the focusing method of the embodiment of the present invention;
Fig. 4 is the first structure block diagram of the mobile terminal of the embodiment of the present invention;
Fig. 5 is the second structured flowchart of the mobile terminal of the embodiment of the present invention;
Fig. 6 is the 3rd structured flowchart of the mobile terminal of the embodiment of the present invention;
Fig. 7 is the 4th structured flowchart of the mobile terminal of the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not made Embodiment, belong to the scope of protection of the invention.
The embodiment provides a kind of focusing method and mobile terminal, when solving mobile terminal and being taken pictures, The problem of according to the demand of user corresponding subject can not being selected to be focused.
As shown in figure 1, the embodiment provides a kind of focusing method, applied to mobile terminal, including:
Step 101:Reference object in preview interface of currently taking pictures is identified, obtains current preview circle of taking pictures At least one object to be captured in face.
After mobile terminal opens preview interface of taking pictures, it can be clapped according to the existing article identification technology based on image current It is identified according to the reference object in preview interface, obtains above-mentioned object to be captured.
Step 102:Shot if existing in the object to be captured with least one target of default focusing match objects Object, then according to the priority of the default focusing object to match with least one target reference object, it is determined that focusing pair As.
The default focusing object is to be determined according to the history photographing information of user, such as according to the history photographing information of user Using user's filming frequency highest reference object as default focusing object.
In the embodiment of the present invention, reference object when user usually takes pictures can be collected in advance, according to the reference object of collection The reference object that user likes is counted, and the reference object that user is liked is defined as default focusing object, in order to which certain is treated When reference object is with default focusing object matching, the object to be captured is preferentially defined as object of focusing, can be largely The focusing number of taking pictures of user is reduced, experience of preferably taking pictures is brought to user.
Further, above-mentioned steps 102 include:
Step 1021:Shot if existing in the object to be captured with least two targets of default focusing match objects Object, then according to the priority of default focusing object, choose and clapped with the target of the default focusing match objects of highest priority Object is taken the photograph as focusing object.
Here, multiple target reference objects match one by one with default focusing object.It is assumed that the plurality of target reference object bag Include the second mesh with the first object reference object of the first default focusing object matching and with the second default focusing object matching Reference object is marked, and the priority of the first default focusing object presets the priority of focusing object higher than second, then with the first mesh Mark reference object is taken pictures as focusing object.
Step 1022:If the target shooting pair with default focusing match objects in the object to be captured be present As then using the target reference object as focusing object.
Here, when only existing a target reference object in object to be captured, directly using the object to be captured as focusing Object is to reduce the number of user's manual focus.
Further, before above-mentioned steps 102, in addition to:
Each reference object in the historical photograph of the mobile terminal shooting is obtained, and as default focusing object;Press According to predetermined order rule, the default focusing object is ranked up, obtains the priority of the default focusing object.
Here corresponding ordering rule can be set with specific reference to the demand of user, and according to the ordering rule of setting, to pre- If focusing object is ranked up, the priority of default focusing object is obtained, selection phase is needed according to user subsequently to realize The purpose that the subject answered is focused.
Preferably, according to predetermined order rule, the default focusing object is ranked up, obtains the default focusing pair The step of priority of elephant, including:
According to each default frequency of occurrences of the focusing object in the historical photograph, each default focusing pair The first weighted value and/or the second weighted value of elephant, the default focusing object is ranked up, obtains the default focusing object Priority;
Wherein, first weighted value is the difference meter according to the shooting time and current time of the default object of focusing Obtain, second weighted value is that the number being focused according to the default focusing object is calculated.Here, preset The shooting time of focusing object and the difference of current time are smaller, and numerical value corresponding to the first weighted value is bigger, i.e. the first weighted value Increase with the reduction of the difference.The number being focused is more, and the second weighted value is bigger, i.e. the second weighted value is secondary with being focused Several increases and increases.
In a particular embodiment of the present invention, at least one historical photograph that same default focusing object be present is obtained first Shooting time, according to the shooting time of each historical photograph and the difference of current time of acquisition, for each of acquisition The historical photograph distributes a target weight value, using the average value of at least one target weight value as the default focusing First weighted value of object.
It is assumed that preset focusing object A in 3 historical photographs, the shooting time of 3 historical photographs and the difference of current time Respectively difference 1, difference 2 and difference 3, weighted value corresponding to difference 1 is the first numerical value, weighted value is second corresponding to difference 2 Weighted value corresponding to numerical value, difference 3 is third value, then by the average value of first numerical value, second value and third value The first weighted value as the default focusing object A.
Preferably, in a particular embodiment of the present invention, according to each default focusing object in the historical photograph In the frequency of occurrences, the first weighted value and the second weighted value of each default focusing object, to the default focusing object It is ranked up.
Here, according to the frequency of occurrences, the first weighted value and the second weighted value, default focusing object is ranked up, specifically , the frequency of occurrences, the first weighted value and the second weighted value are handled according to preset algorithm, such as addition processing, obtain one Final numerical value, and default focusing object is ranked up according to the final numerical value of each default focusing object.
Further, as shown in Fig. 2 after above-mentioned steps 101, in addition to:
Step 103:If the target reference object with default focusing match objects is not present in the object to be captured, Using positioned at the object to be captured of the current preview interface center of taking pictures as object of focusing.
In the embodiment of the present invention, the target reference object with default focusing match objects is not present in object to be captured When, then the object to be captured positioned at the current preview interface center of taking pictures is focused as focusing object.
Further, after above-mentioned steps 101, in addition to:
If the target reference object with default focusing match objects is not present in the object to be captured, according to reception The focusing Object Selection instruction arrived, it is determined that focusing object.
The instruction for being used to select focusing object that above-mentioned focusing Object Selection instruction specially user is manually entered, the present invention The target reference object with default focusing match objects is not present in embodiment in object to be captured, can be manually selected by user Focusing object, and then improve the usage experience of user.
The focusing method of the embodiment of the present invention, the reference object in preview interface of currently taking pictures is identified, obtains institute State at least one object to be captured in current preview interface of taking pictures;If exist and default focusing object in the object to be captured The target reference object to match, then focusing object is determined according to the target reference object.Can basis in the embodiment of the present invention The corresponding default focusing object of user's request setting, is present in the object to be captured in preview interface of taking pictures and default focusing pair As match target reference object when, then according to the destination object determine focusing object, realize according to the demand of user determine The purpose of focusing object, reduces the number of user's manual focus, improves the experience of taking pictures of user.
It is as follows to a concrete application process description of the embodiment of the present invention below.
As shown in figure 3, the application flow includes:
Step 301:Mobile terminal opens preview interface of taking pictures.
Step 302:Reference object in preview interface of taking pictures is identified, obtains at least one object to be captured.
Step 303:Judge to whether there is the target reference object with default focusing object matching in the object to be captured.
Step 304:If the target reference object with default focusing match objects, root in the object to be captured be present According to the priority of default focusing object, the target reference object conduct with the default focusing match objects of highest priority is chosen Focusing object is focused.
Step 305:If the target reference object with default focusing match objects is not present in the object to be captured, Object to be captured positioned at the current preview interface center of taking pictures is focused as focusing object.
The focusing method of the embodiment of the present invention, it can be focused according to the hobby of taking pictures of user usually, largely On reduce the focusing number of taking pictures of user, bring to user and preferably take pictures experience.
As shown in figure 4, embodiments of the invention additionally provide a kind of mobile terminal, including:
First acquisition module 401, for the reference object in preview interface of currently taking pictures to be identified, obtain described work as Before at least one object to be captured for taking pictures in preview interface;
First determining module 402, if for existing in the object to be captured with default focusing match objects at least One target reference object, then according to the preferential of the default focusing object to match with least one target reference object Level, it is determined that focusing object.
The mobile terminal of the embodiment of the present invention, as shown in figure 5, first determining module 402 includes:
First determination sub-module 4021, if for existing in the object to be captured with default focusing match objects extremely Few two target reference objects, then according to the priority of default focusing object, choose the default focusing object with highest priority The target reference object to match is as focusing object;
Second determination sub-module 4022, if for one with default focusing match objects in the object to be captured be present Individual target reference object, then using the target reference object as focusing object.
The mobile terminal of the embodiment of the present invention, in addition to:
Second acquisition module 403, each reference object in historical photograph for obtaining the mobile terminal shooting, and As default focusing object;
3rd acquisition module 404, for according to predetermined order rule, being ranked up, obtaining to the default focusing object The priority of the default focusing object.
The mobile terminal of the embodiment of the present invention, the 3rd acquisition module 404 are used for according to each default focusing pair As the frequency of occurrences in the historical photograph, the first weighted value and/or the second weighted value of each default focusing object, The default focusing object is ranked up, obtains the priority of the default focusing object;
Wherein, first weighted value is the difference meter according to the shooting time and current time of the default object of focusing Obtain, second weighted value is that the number being focused according to the default focusing object is calculated.
The mobile terminal of the embodiment of the present invention, in addition to:
Second determining module 405, if for the mesh with default focusing match objects to be not present in the object to be captured Mark reference object, then using positioned at the object to be captured of the current preview interface center of taking pictures as object of focusing.
The mobile terminal of the embodiment of the present invention, in addition to:
3rd determining module 406, if for the mesh with default focusing match objects to be not present in the object to be captured Reference object is marked, then according to the focusing Object Selection instruction received, it is determined that focusing object.
It should be noted that the mobile terminal is mobile terminal corresponding with above method embodiment, the above method is implemented All implementations can also reach identical technique effect suitable for the embodiment of the mobile terminal in example.
The mobile terminal of the embodiment of the present invention, the reference object in preview interface of currently taking pictures is identified, obtains institute State at least one object to be captured in current preview interface of taking pictures;If exist and default focusing object in the object to be captured At least one target reference object to match, then according to the default focusing to match with least one target reference object The priority of object, it is determined that focusing object.Corresponding default focusing object can be set in the embodiment of the present invention according to user's request, At least one target reference object with default focusing match objects in object to be captured in preview interface of taking pictures be present When, then focusing object is determined according to the priority of the default focusing object to match with the destination object, realized according to user's Demand determines the purpose of focusing object, reduces the number of user's manual focus, improves the experience of taking pictures of user.
Embodiments of the invention additionally provide a kind of mobile terminal, including:Memory, processor and storage are on a memory And the focusing program that can be run on a processor, realize that above-mentioned focusing method is real when the focusing program is by the computing device Each process in example is applied, and identical technique effect can be reached, to avoid repeating, is repeated no more here.
Embodiments of the invention additionally provide a kind of computer-readable recording medium, on the computer-readable recording medium Focusing program is stored with, the focusing program realizes each process in above-mentioned focusing method embodiment when being executed by processor, And identical technique effect can be reached, to avoid repeating, repeat no more here.Wherein, described computer-readable recording medium, Such as read-only storage (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, letter Claim RAM), magnetic disc or CD etc..
As shown in fig. 6, embodiments of the invention additionally provide a kind of mobile terminal, the mobile terminal 600 shown in Fig. 6 wraps Include:At least one processor 601, memory 602, at least one network interface 604 and other users interface 603.Mobile terminal Each component in 600 is coupled by bus system 605.It is understood that bus system 605 be used for realize these components it Between connection communication.Bus system 605 is in addition to including data/address bus, in addition to power bus, controlling bus and status signal Bus.But for the sake of clear explanation, various buses are all designated as bus system 605 in figure 6.
Wherein, user interface 603 can include display, keyboard or pointing device (for example, mouse, trace ball (trackball), touch-sensitive plate or touch-screen etc..
It is appreciated that the memory 602 in the embodiment of the present invention can be volatile memory or nonvolatile memory, Or it may include both volatibility and nonvolatile memory.Wherein, nonvolatile memory can be read-only storage (Read- Only Memory, ROM), programmable read only memory (Programmable ROM, PROM), the read-only storage of erasable programmable Device (Erasable PROM, EPROM), Electrically Erasable Read Only Memory (Electrically EPROM, EEPROM) or Flash memory.Volatile memory can be random access memory (Random Access Memory, RAM), and it is used as outside high Speed caching.By exemplary but be not restricted explanation, the RAM of many forms can use, such as static RAM (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), Synchronous Dynamic Random Access Memory (Synchronous DRAM, SDRAM), double data speed synchronous dynamic RAM (Double Data Rate SDRAM, DDRSDRAM), enhanced Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronized links Dynamic random access memory (Synchlink DRAM, SLDRAM) and direct rambus random access memory (Direct Rambus RAM, DRRAM).The memory 602 of system and method described herein be intended to including but not limited to these and it is any its It is adapted to the memory of type.
In some embodiments, memory 602 stores following element, can perform module or data structure, or Their subset of person, or their superset:Operating system 6021 and application program 6022.
Wherein, operating system 6021, comprising various system programs, such as ccf layer, core library layer, driving layer etc., it is used for Realize various basic businesses and the hardware based task of processing.Application program 6022, include various application programs, such as media Player (Media Player), browser (Browser) etc., for realizing various applied business.Realize the embodiment of the present invention The program of method may be embodied in application program 6022.
In one embodiment of this invention, by call memory 602 store program or instruction, can be specifically The program stored in application program 6022 or instruction, computer program realize following steps when being performed by processor 601:
Reference object in preview interface of currently taking pictures is identified, obtained in the current preview interface of taking pictures extremely A few object to be captured;
If at least one target reference object with default focusing match objects, root in the object to be captured be present According to the priority of the default focusing object to match with least one target reference object, it is determined that focusing object.
Optionally, following steps are realized when computer program is performed by processor 601:
If at least two target reference objects with default focusing match objects, root in the object to be captured be present According to the priority of default focusing object, the target reference object conduct with the default focusing match objects of highest priority is chosen Focusing object;
If a target reference object with default focusing match objects in the object to be captured be present, by described in Target reference object is as focusing object.
Optionally, following steps are realized when computer program is performed by processor 601:
Each reference object in the historical photograph of the mobile terminal shooting is obtained, and as default focusing object;Press According to predetermined order rule, the default focusing object is ranked up, obtains the priority of the default focusing object.
Optionally, following steps are realized when computer program is performed by processor 601:
According to each default frequency of occurrences of the focusing object in the historical photograph, each default focusing pair The first weighted value and/or the second weighted value of elephant, the default focusing object is ranked up, obtains the default focusing object Priority;Wherein, first weighted value is the difference according to the shooting time and current time of the default object of focusing It is calculated, second weighted value is that the number being focused according to the default focusing object is calculated.
Optionally, following steps are realized when computer program is performed by processor 601:
If the target reference object with default focusing match objects is not present in the object to be captured, institute will be located at The object to be captured of current preview interface center of taking pictures is stated as focusing object.
Optionally, following steps are realized when computer program is performed by processor 601:
If the target reference object with default focusing match objects is not present in the object to be captured, according to reception The focusing Object Selection instruction arrived, it is determined that focusing object.
The mobile terminal 600 of the embodiment of the present invention, processor 601 are used for the reference object in preview interface of currently taking pictures It is identified, obtains at least one object to be captured in the current preview interface of taking pictures;If deposited in the object to be captured With it is default focusing match objects at least one target reference object, then according to and at least one target reference object The priority of the default focusing object to match, it is determined that focusing object.Phase can be set according to user's request in the embodiment of the present invention The default focusing object answered, exist in the object to be captured in preview interface of taking pictures with default focusing match objects at least During one target reference object, then focusing pair is determined according to the priority of the default focusing object to match with the destination object As realizing the purpose that focusing object is determined according to the demand of user, reducing the number of user's manual focus, improve user's Take pictures experience.
The mobile terminal of the present invention such as can be mobile phone, tablet personal computer, personal digital assistant (Personal Digital Assistant, PDA) or vehicle-mounted computer etc. terminal.
Mobile terminal 600 can realize each process that terminal is realized in previous embodiment, to avoid repeating, here no longer Repeat.
The method that the embodiments of the present invention disclose can apply in processor 601, or real by processor 601 It is existing.Processor 601 is probably a kind of IC chip, has the disposal ability of signal.In implementation process, the above method Each step can be completed by the integrated logic circuit of the hardware in processor 601 or the instruction of software form.Above-mentioned place Reason device 601 can be general processor, digital signal processor (Digital Signal Processor, DSP), special integrated Circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field Programmable Gate Array, FPGA) either other PLDs, discrete gate or transistor logic, Discrete hardware components.It can realize or perform disclosed each method, step and the logic diagram in the embodiment of the present invention.It is general Processor can be microprocessor or the processor can also be any conventional processor etc..With reference to institute of the embodiment of the present invention The step of disclosed method, can be embodied directly in hardware decoding processor and perform completion, or with the hardware in decoding processor And software module combination performs completion.Software module can be located at random access memory, flash memory, read-only storage, may be programmed read-only In the ripe storage medium in this area such as memory or electrically erasable programmable memory, register.The storage medium is located at Memory 602, processor 601 read the information in memory 602, with reference to the step of its hardware completion above method.
It is understood that embodiments described herein can use hardware, software, firmware, middleware, microcode or its Combine to realize.Realized for hardware, processing unit can be realized in one or more application specific integrated circuit (Application Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing, DSP), digital signal processing appts (DSP Device, DSPD), programmable logic device (Programmable Logic Device, PLD), field programmable gate array (Field-Programmable Gate Array, FPGA), general processor, In controller, microcontroller, microprocessor, other electronic units for performing herein described function or its combination.
Realize, can be realized herein by performing the module (such as process, function etc.) of function described herein for software Described technology.Software code is storable in memory and passes through computing device.Memory can within a processor or Realized outside processor.
As shown in fig. 7, embodiments of the invention additionally provide a kind of mobile terminal, the mobile terminal 700 shown in Fig. 7 includes Radio frequency (Radio Frequency, RF) circuit 710, memory 720, input block 730, display unit 740, processor 760, Voicefrequency circuit 770, WiFi (Wireless Fidelity) modules 780 and power supply 790.
Wherein, input block 730 can be used for the numeral or character information for receiving user's input, and generation and mobile terminal The signal input that 700 user is set and function control is relevant.Specifically, in the embodiment of the present invention, the input block 730 can With including contact panel 731.Contact panel 731, also referred to as touch-screen, collect touch operation of the user on or near it (for example user uses the operations of any suitable object or annex on contact panel 731 such as finger, stylus), and according to advance The formula of setting drives corresponding attachment means.Optionally, contact panel 731 may include touch detecting apparatus and touch controller Two parts.Wherein, the touch orientation of touch detecting apparatus detection user, and the signal that touch operation is brought is detected, by signal Send touch controller to;Touch controller receives touch information from touch detecting apparatus, and is converted into contact coordinate, Give the processor 760 again, and the order sent of reception processing device 760 and can be performed.Furthermore, it is possible to using resistance-type, The polytypes such as condenser type, infrared ray and surface acoustic wave realize contact panel 731.Except contact panel 731, input block 730 can also include other input equipments 732, and other input equipments 732 can include but is not limited to physical keyboard, function key One or more in (such as volume control button, switch key etc.), trace ball, mouse, action bars etc..
Wherein, display unit 740 can be used for display by the information of user's input or be supplied to information and the movement of user The various menu interfaces of terminal 700.Display unit 740 may include display panel 741, optionally, can use LCD or organic hairs The forms such as optical diode (Organic Light-Emitting Diode, OLED) configure display panel 741.
It should be noted that contact panel 731 can cover display panel 741, touch display screen is formed, when the touch display screen is examined After measuring the touch operation on or near it, processor 760 is sent to determine the type of touch event, is followed by subsequent processing device 760 provide corresponding visual output according to the type of touch event in touch display screen.
Touch display screen includes Application Program Interface viewing area and conventional control viewing area.The Application Program Interface viewing area And arrangement mode of the conventional control viewing area does not limit, can be arranged above and below, left-right situs etc. can distinguish two it is aobvious Show the arrangement mode in area.The Application Program Interface viewing area is displayed for the interface of application program.Each interface can be with The interface element such as the icon comprising at least one application program and/or widget desktop controls.The Application Program Interface viewing area It can also be the empty interface not comprising any content.The conventional control viewing area is used to show the higher control of utilization rate, for example, Application icons such as settings button, interface numbering, scroll bar, phone directory icon etc..
Wherein processor 760 is the control centre of mobile terminal 700, utilizes various interfaces and connection whole mobile phone Various pieces, by running or performing the software program and/or module that are stored in first memory 721, and call storage Data in second memory 722, the various functions and processing data of mobile terminal 700 are performed, so as to mobile terminal 700 Carry out integral monitoring.Optionally, processor 760 may include one or more processing units.
In one embodiment of this invention, by calling the software program and/or module that store in the first memory 721 And/or the data in the second memory 722, computer program realize following steps when being performed by processor 760:Clap current It is identified according to the reference object in preview interface, it is at least one to be captured right in the current preview interface of taking pictures to obtain As;
If at least one target reference object with default focusing match objects, root in the object to be captured be present According to the priority of the default focusing object to match with least one target reference object, it is determined that focusing object.
Optionally, following steps are realized when computer program is performed by processor 760:
If at least two target reference objects with default focusing match objects, root in the object to be captured be present According to the priority of default focusing object, the target reference object conduct with the default focusing match objects of highest priority is chosen Focusing object;If a target reference object with default focusing match objects in the object to be captured be present, by institute Target reference object is stated as focusing object.
Optionally, following steps are realized when computer program is performed by processor 760:
Each reference object in the historical photograph of the mobile terminal shooting is obtained, and as default focusing object;Press According to predetermined order rule, the default focusing object is ranked up, obtains the priority of the default focusing object.
Optionally, following steps are realized when computer program is performed by processor 760:
According to each default frequency of occurrences of the focusing object in the historical photograph, each default focusing pair The first weighted value and/or the second weighted value of elephant, the default focusing object is ranked up, obtains the default focusing object Priority;
Wherein, first weighted value is the difference meter according to the shooting time and current time of the default object of focusing Obtain, second weighted value is that the number being focused according to the default focusing object is calculated.
Optionally, following steps are realized when computer program is performed by processor 760:
If the target reference object with default focusing match objects is not present in the object to be captured, institute will be located at The object to be captured of current preview interface center of taking pictures is stated as focusing object.
Optionally, following steps are realized when computer program is performed by processor 760:
If the target reference object with default focusing match objects is not present in the object to be captured, according to reception The focusing Object Selection instruction arrived, it is determined that focusing object.
The mobile terminal of the present invention such as can be mobile phone, tablet personal computer, personal digital assistant (Personal Digital Assistant, PDA) or vehicle-mounted computer etc. terminal.
Mobile terminal 700 can realize each process that terminal is realized in previous embodiment, to avoid repeating, here no longer Repeat.
The mobile terminal 700 of the embodiment of the present invention, processor 760 are used for the reference object in preview interface of currently taking pictures It is identified, obtains at least one object to be captured in the current preview interface of taking pictures;If deposited in the object to be captured With it is default focusing match objects at least one target reference object, then according to and at least one target reference object The priority of the default focusing object to match, it is determined that focusing object.Phase can be set according to user's request in the embodiment of the present invention The default focusing object answered, exist in the object to be captured in preview interface of taking pictures with default focusing match objects at least During one target reference object, then focusing pair is determined according to the priority of the default focusing object to match with the destination object As realizing the purpose that focusing object is determined according to the demand of user, reducing the number of user's manual focus, improve user's Take pictures experience.
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein Member and algorithm steps, it can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually Performed with hardware or software mode, application-specific and design constraint depending on technical scheme.Professional and technical personnel Described function can be realized using distinct methods to each specific application, but this realization is it is not considered that exceed The scope of the present invention.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, the corresponding process in preceding method embodiment is may be referred to, will not be repeated here.
In embodiment provided herein, it should be understood that disclosed apparatus and method, others can be passed through Mode is realized.For example, device embodiment described above is only schematical, for example, the division of the unit, is only A kind of division of logic function, can there is an other dividing mode when actually realizing, for example, multiple units or component can combine or Person is desirably integrated into another system, or some features can be ignored, or does not perform.Another, shown or discussed is mutual Between coupling or direct-coupling or communication connection can be INDIRECT COUPLING or communication link by some interfaces, device or unit Connect, can be electrical, mechanical or other forms.
The unit illustrated as separating component can be or may not be physically separate, show as unit The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also That unit is individually physically present, can also two or more units it is integrated in a unit.
If the function is realized in the form of SFU software functional unit and is used as independent production marketing or in use, can be with It is stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially in other words The part to be contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter Calculation machine software product is stored in a storage medium, including some instructions are causing a computer equipment (can be People's computer, server, or network equipment etc.) perform all or part of step of each embodiment methods described of the present invention. And foregoing storage medium includes:USB flash disk, mobile hard disk, ROM, RAM, magnetic disc or CD etc. are various can be with store program codes Medium.
One of ordinary skill in the art will appreciate that realize all or part of flow in above-described embodiment method, being can be with The hardware of correlation is controlled to complete by computer program, described program can be stored in a computer read/write memory medium In, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention God any modification, equivalent substitution and improvements made etc., should be included in the scope of the protection with principle.

Claims (14)

  1. A kind of 1. focusing method, applied to mobile terminal, it is characterised in that including:
    Reference object in preview interface of currently taking pictures is identified, obtains at least one in the current preview interface of taking pictures Individual object to be captured;
    If in the object to be captured exist with it is default focusing match objects at least one target reference object, according to The priority for the default focusing object that at least one target reference object matches, it is determined that focusing object.
  2. 2. focusing method according to claim 1, it is characterised in that if existing in the object to be captured with presetting Focus at least one target reference objects of match objects, then according to matching with least one target reference object The priority of default focusing object, it is determined that the step of focusing object, including:
    If at least two target reference objects with default focusing match objects in the object to be captured be present, according to pre- If the priority for object of focusing, choose with the target reference object of the default focusing match objects of highest priority as focusing Object;
    If a target reference object with default focusing match objects in the object to be captured be present, by the target Reference object is as focusing object.
  3. 3. focusing method according to claim 1, it is characterised in that if existing in the object to be captured with presetting Focus at least one target reference objects of match objects, then according to matching with least one target reference object The priority of default focusing object, it is determined that before the step of focusing object, in addition to:
    Each reference object in the historical photograph of the mobile terminal shooting is obtained, and as default focusing object;
    According to predetermined order rule, the default focusing object is ranked up, obtains the priority of the default focusing object.
  4. 4. focusing method according to claim 3, it is characterised in that it is described according to predetermined order rule, to described default Focusing object be ranked up, obtain it is described it is default focusing object priority the step of, including:
    According to each default frequency of occurrences of the focusing object in the historical photograph, each default focusing object First weighted value and/or the second weighted value, the default focusing object is ranked up, obtains the excellent of the default focusing object First level;
    Wherein, first weighted value is obtained according to the shooting time of the default focusing object and the mathematic interpolation of current time Arrive, second weighted value is that the number being focused according to the default focusing object is calculated.
  5. 5. focusing method according to claim 1, it is characterised in that the shooting pair in preview interface of currently taking pictures As being identified, after the step of obtaining at least one object to be captured in the current preview interface of taking pictures, in addition to:
    If the target reference object with default focusing match objects is not present in the object to be captured, described work as will be located at Before take pictures preview interface center object to be captured as focusing object.
  6. 6. focusing method according to claim 1, it is characterised in that the shooting pair in preview interface of currently taking pictures As being identified, after the step of obtaining at least one object to be captured in the current preview interface of taking pictures, in addition to:
    If the target reference object with default focusing match objects is not present in the object to be captured, according to what is received Object Selection of focusing instruction, it is determined that focusing object.
  7. A kind of 7. mobile terminal, it is characterised in that including:
    First acquisition module, for the reference object in preview interface of currently taking pictures to be identified, acquisition is described currently to take pictures At least one object to be captured in preview interface;
    First determining module, if at least one target with default focusing match objects in the object to be captured be present Reference object, then according to the priority of the default focusing object to match with least one target reference object, it is determined that pair Burnt object.
  8. 8. mobile terminal according to claim 7, it is characterised in that first determining module includes:
    First determination sub-module, if at least two mesh with default focusing match objects in the object to be captured be present Reference object is marked, then according to the priority of default focusing object, is chosen and the default focusing match objects of highest priority Target reference object is as focusing object;
    Second determination sub-module, if being clapped for the target existed in the object to be captured with default focusing match objects Object is taken the photograph, then using the target reference object as focusing object.
  9. 9. mobile terminal according to claim 7, it is characterised in that also include:
    Second acquisition module, each reference object in historical photograph for obtaining the mobile terminal shooting, and as pre- If focus object;
    3rd acquisition module, for according to predetermined order rule, being ranked up, obtaining described default to the default focusing object The priority of focusing object.
  10. 10. mobile terminal according to claim 9, it is characterised in that the 3rd acquisition module is used for according to each institute State the frequency of occurrences of the default focusing object in the historical photograph, each default focusing object the first weighted value and/ Or second weighted value, the default focusing object is ranked up, obtains the priority of the default focusing object;
    Wherein, first weighted value is obtained according to the shooting time of the default focusing object and the mathematic interpolation of current time Arrive, second weighted value is that the number being focused according to the default focusing object is calculated.
  11. 11. mobile terminal according to claim 7, it is characterised in that also include:
    Second determining module, if for the target shooting pair with default focusing match objects to be not present in the object to be captured As, then using positioned at the object to be captured of the current preview interface center of taking pictures as object of focusing.
  12. 12. mobile terminal according to claim 7, it is characterised in that also include:
    3rd determining module, if for the target shooting pair with default focusing match objects to be not present in the object to be captured As then according to the focusing Object Selection instruction received, it is determined that focusing object.
  13. 13. a kind of mobile terminal, including memory, processor and storage are on a memory and the focusing that can run on a processor Program, it is characterised in that the focusing as described in any one of claim 1 to 6 is realized during program of being focused described in the computing device Step in method.
  14. 14. a kind of computer-readable recording medium, it is stored thereon with focusing program, it is characterised in that the focusing program is located Manage the step realized when device performs in the focusing method as described in any one of claim 1 to 6.
CN201710691598.7A 2017-08-14 2017-08-14 focusing method and mobile terminal Active CN107509030B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710691598.7A CN107509030B (en) 2017-08-14 2017-08-14 focusing method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710691598.7A CN107509030B (en) 2017-08-14 2017-08-14 focusing method and mobile terminal

Publications (2)

Publication Number Publication Date
CN107509030A true CN107509030A (en) 2017-12-22
CN107509030B CN107509030B (en) 2019-12-17

Family

ID=60691822

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710691598.7A Active CN107509030B (en) 2017-08-14 2017-08-14 focusing method and mobile terminal

Country Status (1)

Country Link
CN (1) CN107509030B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108462833A (en) * 2018-03-26 2018-08-28 北京小米移动软件有限公司 Image pickup method, device and computer readable storage medium
CN109151310A (en) * 2018-09-03 2019-01-04 合肥智慧龙图腾知识产权股份有限公司 A kind of auto-focusing image pickup method, computer equipment and readable storage medium storing program for executing
CN109889720A (en) * 2018-11-15 2019-06-14 乐蜜有限公司 A kind of video capture method, apparatus, electronic equipment and storage medium
CN111050060A (en) * 2018-10-12 2020-04-21 华为技术有限公司 Focusing method and device applied to terminal equipment and terminal equipment
CN111212226A (en) * 2020-01-10 2020-05-29 Oppo广东移动通信有限公司 Focusing shooting method and device
CN111773658A (en) * 2020-07-03 2020-10-16 珠海金山网络游戏科技有限公司 Game interaction method and device based on computer vision library
CN112637504A (en) * 2020-12-23 2021-04-09 维沃移动通信有限公司 Focusing method and device
CN113297876A (en) * 2020-02-21 2021-08-24 佛山市云米电器科技有限公司 Motion posture correction method based on intelligent refrigerator, intelligent refrigerator and storage medium
WO2022040886A1 (en) * 2020-08-24 2022-03-03 深圳市大疆创新科技有限公司 Photographing method, apparatus and device, and computer-readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070201851A1 (en) * 2006-02-27 2007-08-30 Fujifilm Corporation Imaging apparatus
CN105549300A (en) * 2016-02-29 2016-05-04 北京小米移动软件有限公司 Automatic focusing method and device
CN106357977A (en) * 2016-08-29 2017-01-25 珠海市魅族科技有限公司 Focusing method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070201851A1 (en) * 2006-02-27 2007-08-30 Fujifilm Corporation Imaging apparatus
CN105549300A (en) * 2016-02-29 2016-05-04 北京小米移动软件有限公司 Automatic focusing method and device
CN106357977A (en) * 2016-08-29 2017-01-25 珠海市魅族科技有限公司 Focusing method and device

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108462833A (en) * 2018-03-26 2018-08-28 北京小米移动软件有限公司 Image pickup method, device and computer readable storage medium
CN108462833B (en) * 2018-03-26 2021-01-22 北京小米移动软件有限公司 Photographing method, photographing device and computer-readable storage medium
CN109151310A (en) * 2018-09-03 2019-01-04 合肥智慧龙图腾知识产权股份有限公司 A kind of auto-focusing image pickup method, computer equipment and readable storage medium storing program for executing
CN111050060A (en) * 2018-10-12 2020-04-21 华为技术有限公司 Focusing method and device applied to terminal equipment and terminal equipment
US11363187B2 (en) 2018-10-12 2022-06-14 Huawei Technologies Co., Ltd. Focusing method and apparatus applied to terminal device, and terminal device
CN109889720A (en) * 2018-11-15 2019-06-14 乐蜜有限公司 A kind of video capture method, apparatus, electronic equipment and storage medium
CN111212226A (en) * 2020-01-10 2020-05-29 Oppo广东移动通信有限公司 Focusing shooting method and device
CN113297876A (en) * 2020-02-21 2021-08-24 佛山市云米电器科技有限公司 Motion posture correction method based on intelligent refrigerator, intelligent refrigerator and storage medium
CN111773658A (en) * 2020-07-03 2020-10-16 珠海金山网络游戏科技有限公司 Game interaction method and device based on computer vision library
CN111773658B (en) * 2020-07-03 2024-02-23 珠海金山数字网络科技有限公司 Game interaction method and device based on computer vision library
WO2022040886A1 (en) * 2020-08-24 2022-03-03 深圳市大疆创新科技有限公司 Photographing method, apparatus and device, and computer-readable storage medium
CN112637504A (en) * 2020-12-23 2021-04-09 维沃移动通信有限公司 Focusing method and device
CN112637504B (en) * 2020-12-23 2022-05-03 维沃移动通信有限公司 Focusing method and device

Also Published As

Publication number Publication date
CN107509030B (en) 2019-12-17

Similar Documents

Publication Publication Date Title
CN107509030A (en) A kind of focusing method and mobile terminal
CN107343149B (en) A kind of photographic method and mobile terminal
CN106657793B (en) A kind of image processing method and mobile terminal
CN107466077A (en) A kind of method for switching network and mobile terminal
CN107678641A (en) A kind of method and mobile terminal into target display interface
CN106648382B (en) A kind of picture browsing method and mobile terminal
CN106951141B (en) A kind of processing method and mobile terminal of icon
CN106791357A (en) A kind of image pickup method and mobile terminal
CN107404577B (en) A kind of image processing method, mobile terminal and computer readable storage medium
CN107395976A (en) A kind of acquisition parameters method to set up and mobile terminal
CN106354303B (en) A kind of photographic method and mobile terminal of mobile terminal
CN107390990A (en) The method of adjustment and mobile terminal of a kind of image
CN107172346A (en) A kind of weakening method and mobile terminal
CN107454331A (en) The switching method and mobile terminal of a kind of screening-mode
CN106911897B (en) A kind of determination method and mobile terminal shooting focus
CN106502697B (en) A kind of method for sorting and mobile terminal of desktop application icon
CN105843501B (en) A kind of method of adjustment and mobile terminal of parameter of taking pictures
CN107026982B (en) A kind of photographic method and mobile terminal of mobile terminal
CN107734156A (en) A kind of image pickup method and mobile terminal
CN106888354A (en) A kind of singlehanded photographic method and mobile terminal
CN107665434A (en) A kind of method of payment and mobile terminal
CN106713659A (en) panoramic shooting method and mobile terminal
CN107566458A (en) Preparation method, terminal, server and the computer-readable recording medium of photo
CN105827909B (en) A kind of dual camera quick start method and mobile terminal
CN107480500A (en) The method and mobile terminal of a kind of face verification

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