CN105242853B - A kind of focusing method and electronic equipment - Google Patents

A kind of focusing method and electronic equipment Download PDF

Info

Publication number
CN105242853B
CN105242853B CN201510700481.1A CN201510700481A CN105242853B CN 105242853 B CN105242853 B CN 105242853B CN 201510700481 A CN201510700481 A CN 201510700481A CN 105242853 B CN105242853 B CN 105242853B
Authority
CN
China
Prior art keywords
focusing
graphics field
focusing area
user
area
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510700481.1A
Other languages
Chinese (zh)
Other versions
CN105242853A (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 CN201510700481.1A priority Critical patent/CN105242853B/en
Publication of CN105242853A publication Critical patent/CN105242853A/en
Application granted granted Critical
Publication of CN105242853B publication Critical patent/CN105242853B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention provides a kind of focusing method, which includes: at least one graphics field for obtaining user and drawing on camera preview interface;According to the graphics field of acquisition, focusing area is determined;According to the determining focusing area, controls camera and focus.The present invention also provides a kind of corresponding electronic equipments.Focusing method provided by the invention allows user that focusing area is flexibly arranged according to the demand of focusing, ensure that user can carry out the accurate setting of focus target, improves the precision of focusing, improves user's operation experience.

Description

A kind of focusing method and electronic equipment
Technical field
The present invention relates to the communications fields, and more particularly, to a kind of focusing method and electronic equipment.
Background technique
Present smart phone screen is increasing, and performance is more and more stronger, and camera performance more highlights.Traditional focusing side Formula is broadly divided into the focusing of fixed center window and touch-control focusing.
The characteristics of fixed center window is focused are as follows: one focus frame of setting is focused, this focus frame was used in user It can neither greatly can not be small in journey;And the characteristics of touch-control focusing, is: a certain fixed area focusing in specified preview interface, and this The focusing area that kind focusing mode is chosen may not be the true demand of user.
When mobile phone screen is bigger (such as IPAD etc) leave for user operating space it is increasing, fixed center Window focusing or touch-control focusing mode may not met the needs of users, and cause user's operation experience bad.
Summary of the invention
The embodiment of the present invention provides a kind of focusing method and electronic equipment, with solve existing fixed center window focusing or Touch-control focusing mode is single, is not able to satisfy the true demand of user, user's operation is caused to experience bad problem.
On the one hand, the embodiment of the present invention provides a kind of focusing method, comprising:
Obtain at least one graphics field that user draws on camera preview interface;
According to the graphics field of acquisition, focusing area is determined;
According to the determining focusing area, controls camera and focus.
On the other hand, the embodiment of the present invention also provides a kind of electronic equipment, comprising:
Obtain module, at least one graphics field drawn on camera preview interface for obtaining user;
Determining module determines focusing area for the graphics field according to acquisition;
Control module, for controlling camera and focusing according to the determining focusing area.
Focusing method provided in an embodiment of the present invention, by way of drawing focusing area for user, so that user can Focusing area is flexibly arranged according to the demand of focusing;Due to such mode, user can be made to carry out the essence of focus target Really setting, improves the precision of focusing, improves user's operation experience.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be in embodiment or description of the prior art Required attached drawing is briefly described, it should be apparent that, the accompanying drawings in the following description is only some realities of the invention Example is applied, it for those of ordinary skill in the art, without any creative labor, can also be attached according to these Figure obtains other attached drawings.
Fig. 1 shows the flow charts of the focusing method of first embodiment of the invention;
Fig. 2 indicates the implementation flow chart of step 103 in first embodiment of the invention;
Fig. 3 indicates the flow chart of the focusing method of second embodiment of the invention;
Fig. 4 indicates the flow chart of the focusing method of third embodiment of the invention;
Fig. 5 indicates the realization process schematic of the focusing method of third embodiment of the invention in practical applications;
Fig. 6 be similar round and ellipse the figure that user is drawn be converted to the smallest regular circle shapes of area coverage with The schematic diagram of ellipse;
Fig. 7 is that the similar rectangular figure for drawing user is converted to the schematic diagram of the smallest regular square of area coverage;
Fig. 8 shows the flow charts of the focusing method of fourth embodiment of the invention;
Fig. 9 indicates the realization process schematic of the focusing method of fourth embodiment of the invention in practical applications;
Figure 10 indicates to carry out the camera preview interface schematic diagram one after contour of object matching;
Figure 11 indicates to carry out the camera preview interface schematic diagram two after contour of object matching;
Figure 12 indicates the basic structure schematic diagram one of the electronic equipment of fifth embodiment of the invention;
Figure 13 indicates the basic structure schematic diagram two of the electronic equipment of fifth embodiment of the invention;
Figure 14 indicates the basic structure schematic diagram three of the electronic equipment of fifth embodiment of the invention;
Figure 15 indicates the basic structure schematic diagram four of the electronic equipment of fifth embodiment of the invention;
Figure 16 indicates the internal entity structural block diagram of the electronic equipment of sixth embodiment of the invention;
Figure 17 indicates the structural schematic diagram of the electronic equipment of seventh embodiment of the invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete It is described at ground, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
First embodiment
As shown in Figure 1, the flow chart of the focusing method for first embodiment of the invention.Have below with reference to Ben Tu and Fig. 2 Body illustrates the realization process of focusing method.
The embodiment of the present invention provides a kind of focusing method, comprising:
Step 101, at least one graphics field that user draws on camera preview interface is obtained.
What needs to be explained here is that in step 101 for user provide can on camera preview interface graphing area The function in domain, existing most of electronic equipments all have touch screen functionality, when user is using the camera function on electronic equipment When, before user's triggering is taken pictures, the built-in system of electronic equipment acquires the figure that user draws on camera preview interface in real time Shape;When because of user's graphing be usually drawn one by one, therefore, electronic equipment be also when being acquired in real time, It is acquired one by one.
Step 102, according to the graphics field of acquisition, focusing area is determined.
The step 102 is that the process of focusing area is determined according to the graphics field that user draws, in the present invention, the first reality Existing mode are as follows: the graphics field for directly drawing user can most accurately be drawn according to user as focusing area, which Figure carries out the acquisition of focusing area, and the acquisition speed of focusing area is very fast;It should be noted that in the first implementation In, because the figure of user's hand drawn has characteristic more casual in form, electronic equipment is carried out according to this focusing area Focusing will increase the difficulty of focusing, and therefore, the present invention is directed to second of implementation of the step 102 are as follows: draws user Graphics field is converted to test pattern in this way, the complexity for reducing focusing improves focusing rate;It is needed in user When focusing to jobbie, possible user can not accurately draw out the shape of the object, therefore, provided by the invention to be somebody's turn to do The third implementation of step 102 are as follows: the shape for needing the object focused is directly acquired in the graphics field that user draws Region in this way, realize the exact focus to object.
Step 103, it according to the determining focusing area, controls camera and focuses.
In above-mentioned steps 103, the setting control camera according to focusing area carries out focus operation, ensure that camera can be by Take the shooting that user demand carries out picture.It should be noted that mainly control camera lens is mobile here and then realizes focus operation.
It should be noted that focusing can be flexibly arranged according to the focusing demand of oneself in user in the embodiment of the present invention Region improves the precision of focusing, improves user's operation experience.
Further, above-mentioned steps 103 are specifically included when realizing:
Step 1031, the region parameter of the focusing area is obtained, the region parameter is the coordinate of focusing area;
Mainly according to determining focusing area in step 1031, and then determine the main coordinate of the focusing area, i.e., by The main coordinate just can accurately determine the focusing area.
Step 1032, it according to the region parameter, controls camera and focuses.
In the step 1032, according to the coordinate of focusing area, the movement of camera lens is controlled, the focusing of camera is completed.
In the present embodiment, focusing area can be flexibly arranged, and according to focusing area according to the focusing demand of oneself in user The coordinate parameters control camera lens in domain is mobile to complete focusing, ensure that the precision of focusing.
Second embodiment
As shown in figure 3, the flow chart of the focusing method for second embodiment of the invention.It should be noted that second reality Applying example is mainly to be realized by the first implementation of step 102 in above-mentioned first embodiment.
The focusing method of second embodiment of the invention, comprising:
Step 301, at least one graphics field that user draws on camera preview interface is obtained.
What needs to be explained here is that in step 301 for user provide can on camera preview interface graphing area The function in domain, existing most of electronic equipments all have touch screen functionality, when user is using the camera function on electronic equipment When, before user's triggering is taken pictures, the built-in system of electronic equipment acquires the figure that user draws on camera preview interface in real time Shape;When because of user's graphing be usually drawn one by one, therefore, electronic equipment be also when being acquired in real time, It is acquired one by one.
Step 302, the graphics field that will acquire is as focusing area.
In the step 302, the graphics field that do not draw to user carries out any processing, i.e., the graph area drawn user Domain not will increase processing due to not needing to carry out any processing to the graphics field that user draws directly as focusing area Complexity, focusing speed are fast.
Step 303, it according to the determining focusing area, controls camera and focuses.
In above-mentioned steps 303, the setting control camera according to focusing area carries out focus operation, ensure that camera can be by Take the shooting that user demand carries out picture.It should be noted that mainly control camera lens is mobile here and then realizes focus operation.
It should be noted that relatively simple to the processing of user's drawing image, the processing time is shorter, drop in the present embodiment Low focusing time delay.
3rd embodiment
As shown in figure 4, the flow chart of the focusing method for third embodiment of the invention.It should be noted that the third is real Applying example is mainly to be realized by second of implementation of step 102 in above-mentioned first embodiment.
The focusing method of third embodiment of the invention, comprising:
Step 401, at least one graphics field that user draws on camera preview interface is obtained.
What needs to be explained here is that in step 401 for user provide can on camera preview interface graphing area The function in domain, existing most of electronic equipments all have touch screen functionality, when user is using the camera function on electronic equipment When, before user's triggering is taken pictures, the built-in system of electronic equipment acquires the figure that user draws on camera preview interface in real time Shape;When because of user's graphing be usually drawn one by one, therefore, electronic equipment be also when being acquired in real time, It is acquired one by one.
Step 402, the graphics field that will acquire is converted to the first intermediate pattern region, first intermediate pattern area Domain is the graphics field with regular shape for presetting type.
Step 403, using first intermediate pattern region as focusing area.
It should be noted that step 402 and step 403 provide a kind of processing mode of graphics field, above-mentioned steps 402 It is uncomplicated with the processing mode of step 403, it will not influence focusing speed.For example, when the graphics field for detecting that user draws is When one similar circular shape, the extraction of focusing area is carried out for convenience, which is converted into covering user and is drawn The smallest circular region of the regional scope of system, using the border circular areas being converted to as focusing area.
Step 404, it according to the determining focusing area, controls camera and focuses.
In above-mentioned steps 404, the setting control camera according to focusing area carries out focus operation, ensure that camera can be by Take the shooting that user demand carries out picture.It should be noted that mainly control camera lens is mobile here and then realizes focus operation.
It should be noted that being converted to the focusing with regular shape by the figure for drawing user in the present embodiment Region, it is relatively simple in graphics process, shorten processing delay.
The specific implementation process of the embodiment in practical applications is illustrated below.
As shown in figure 5, the main realization process of the embodiment of the present invention focusing method are as follows:
Step 501, user's track drafting is tracked.
In this step, user using finger in camera preview (Preview) interface graphing, supervise by camera preview interface User's finger touch screen report point initial position is measured, then in real time shows each report point line on camera preview interface;When Camera preview interface detects inside the connected region feedback to camera system that after user's finger lifts, user is drawn.
Step 502, user's track drafting is converted.
In this step, inside camera system when receiving the graphics field of user's drafting, calculates and divide by fuzzy matching Analysis, and the graphics field that user draws is converted to by rule according to preset shape special parameter (such as round, oval, rectangular) Shape (such as the figure for the similar ellipse that user draws is converted into ellipse) then.Fig. 6 expression is to draw user Similar round and ellipse figure be converted to the schematic diagrames of the smallest regular circle shapes of area coverage and ellipse, user draws As shown by the solid line in the drawings, the focusing area 602 after converting is as shown in phantom in FIG. for track 601;Fig. 7 expression is by user The similar rectangular figure drawn is converted to the schematic diagram of the smallest regular square of area coverage, and user's track drafting 701 is as schemed In it is shown in solid, focusing area 702 after converting is as shown in phantom in FIG..
It should be noted that after user's track drafting is converted to focusing area, it should also be real on camera preview interface When show the focusing area after converting, facilitate user to determine whether the focusing area is accurate focusing area, if User is unsatisfied with the focusing area, can carry out the drafting of focusing figure again.
Step 503, the transmitting of focusing area parameter is carried out.
It is directed to step 503, carries out the extraction of coordinate parameters, the seat that will be extracted inside camera system to the focusing area Region parameter of the parameter as the focusing area is marked, the region parameter is then passed into Focusing module.Such as: work as focusing area When for circle, the circular central coordinate of circle O (x, y), radius r are obtained;When focusing area is ellipse, the ellipse is obtained Two focus O1 (x1, y1), O2 (x2, y2), long axis a, short axle b;When focusing area is rectangular, obtains the rectangular starting point and sit It marks T (x, y), long side a, short side b.
Step 504, Focusing module carries out the calculating of Focusing parameter.
In this step, it is anti-that Focusing module according to the region parameter connecting inner algorithm logic received calculates area image Then the Focusing parameters such as difference or phase value obtain the driver shift position (Actuator) and direction according to algorithm logic.
Step 505, control camera lens is mobile completes focusing.
In this step, according to the shift position Actuator and direction that Focusing module exports, it is converted into Actuator Analog signal is driven, then drives camera lens is mobile to complete focusing.
It, can be according to object when user needs to shoot some or several objects within the vision in the present embodiment Body general shape feature draws out it in camera preview interface, and camera preview interface receives the shape track of user's drafting Afterwards, it is first converted into focusing area to update onto camera preview interface in real time, then feeds back the focusing area after conversion To focusing system module, focusing system module completes focus operation according to each area information feature.Such mode, may be implemented The focusing of multizone increases quantity of finding a view, and can accurately hold target object, improves focusing accuracy, mentions simultaneously User's operation experience is risen.
Fourth embodiment
As shown in figure 8, the flow chart of the focusing method for fourth embodiment of the invention.It should be noted that the 4th is real Applying example is mainly to be realized by the third implementation of step 102 in above-mentioned first embodiment.
Fourth embodiment of the invention provides a kind of focusing method, comprising:
Step 801, at least one graphics field that user draws on camera preview interface is obtained.
What needs to be explained here is that in step 801 for user provide can on camera preview interface graphing area The function in domain, existing most of electronic equipments all have touch screen functionality, when user is using the camera function on electronic equipment When, before user's triggering is taken pictures, the built-in system of electronic equipment acquires the figure that user draws on camera preview interface in real time Shape;When because of user's graphing be usually drawn one by one, therefore, electronic equipment be also when being acquired in real time, It is acquired one by one.
Step 802, the graphics field is detected with the presence or absence of object outline.
It should be noted that the detection of object outline can be using information such as the shading values of existing detection image color Mode realizes that details are not described herein.
There are when object outline in the graphics field, step 803 is executed;Object is not present in the graphics field When profile, step 805 is executed.
Step 803, the object outline region in the graphics field is determined.
Step 804, using the object outline region as focusing area.
It should be noted that above-mentioned steps 803 and step 804 can accurately extract the focusing in user's graphing region The profile of object carries out the focusing of object according to the profile of the focusing object, realizes the exact focus to object.
Step 805, the graphics field is converted into the second intermediate pattern region, second intermediate pattern region is pre- First set the graphics field with regular shape of type.
Step 806, using second intermediate pattern region as focusing area.
Above-mentioned steps 805 and step 806 are accomplished that, when not detecting object outline in graphics field, at this time for Guarantee smoothly to realize focusing, the determination of focusing area can be carried out by the way of in 3rd embodiment, i.e., according to user The graphics field is converted to regular figure, such as the shapes such as round, rectangular, polygon by the feature of the graphics field of drafting, will The regular figure is formed by region as focusing area and carries out subsequent focus operation.
Step 807, it according to the determining focusing area, controls camera and focuses.
In above-mentioned steps 807, the setting control camera lens according to focusing area carries out focus operation, ensure that camera can be by Take the shooting that user demand carries out picture.
In the present embodiment, outline identification is carried out by the object in the graphics field drawn to user, can effectively be determined Position focus target region improves focusing analysis data accounting to improve focusing precision and speed and improves user's operation Experience.
The specific implementation process of the embodiment in practical applications is illustrated below.
As shown in figure 9, the main realization process of the embodiment of the present invention focusing method are as follows:
Step 901, user's track drafting is tracked.
In this step, for user using finger in camera preview interface graphing, camera preview interface monitors user Finger touch screen report point initial position, then in real time shows each report point line on camera preview interface;Work as camera preview Interface detects inside the connected region feedback to camera system that after user's finger lifts, user is drawn.
Step 902, detection object profile.
In this step, the provincial characteristics that camera system internal combustion user draws is calculated by edge extracting, contour detecting etc. Method finally precisely gets the object closed loop outline data in user's drawing area.
Step 903, user's track drafting is converted.
It, can be directly using object closed loop profile as focusing if can smoothly obtain object closed loop profile in step 902 Region;Figure 10 indicates that the camera preview interface schematic diagram one after progress contour of object matching, the dashed region in figure are drawn for user Track 1001 processed, solid region domain representation are the shape of the focusing area 1002 obtained according to user's track drafting 1001.Figure 11 It indicates to carry out the camera preview interface schematic diagram two after contour of object matching, the dashed region in figure is user's track drafting 1101, solid region domain representation is the shape of the focusing area 1102 obtained according to user's track drafting 1101.
Recited above is the case where capable of smoothly obtaining object closed loop profile, to close when that cannot get object in step 902 When ring profile, analysis is calculated by fuzzy matching inside camera system, the track that user draws is converted into circle, polygon etc. Connected region with regular figure, in this, as focusing area.
Step 904, the transmitting of focusing area parameter is carried out.
It is directed to step 904, carries out the extraction of coordinate parameters, the seat that will be extracted inside camera system to the focusing area Region parameter of the parameter as the focusing area is marked, the region parameter is then passed into Focusing module.
When focusing area is actual contour of object, acquisition is the coordinate parameters of contour of object, and works as focusing area When for regular figure, acquisition is the coordinate parameters of the regular figure.
Step 905, Focusing module carries out the calculating of Focusing parameter.
In this step, it is anti-that Focusing module according to the region parameter connecting inner algorithm logic received calculates area image Then the Focusing parameters such as difference or phase value obtain the driver shift position (Actuator) and direction according to algorithm logic.
Step 906, control camera lens is mobile, completes focusing.
In this step, according to the shift position Actuator and direction that Focusing module exports, it is converted into Actuator Analog signal is driven, then drives camera lens is mobile to complete focusing.
It is mainly accomplished that accurate acquisition user focusing object in the present embodiment, improves focusability.User can be in camera Body form is focused using polygon or circular mode track drafting, when user completes according to target in preview interface Afterwards, inside the track feedback to camera system that user is drawn at camera preview interface, according to the region object inside camera system Feature obtains final goal focusing object closed loop profile information, then updates profile information onto camera preview interface.At certain A little contour of object are not that possibly can not detect reliable object in detection zone inside camera system in the case where being apparent The track that user draws can be converted to the shapes such as similar polygon or round and shown by body profile, in such cases, camera system On camera preview interface.Focusing area information obtained above is passed into Focusing module inside camera system, is finally focused Module completes focus operation according to the focusing area image information.
In the embodiment, outline identification directly is carried out to object in user's drawing area, focus target region is accurately positioned, The exact focus for realizing object improves user's operation experience.
It should be noted that above-mentioned second embodiment, 3rd embodiment and fourth embodiment are obtain focusing area three Kind mode, this three kinds of modes can select a setting on camera, can also be arranged simultaneously.When three kinds of modes are arranged simultaneously, lead to A model selection function often can be set, so that user according to demand, selects the acquisition of suitable mode progress focusing area.
5th embodiment
As shown in figure 12, it is the basic structure schematic diagram of the electronic equipment of the embodiment of the present invention, should schemes below and combine The electronic equipment based on the focusing method is specifically described in Figure 13, Figure 14 and Figure 15.
Fifth embodiment of the invention provides a kind of electronic equipment, comprising:
Obtain module 1201, at least one graphics field drawn on camera preview interface for obtaining user.
The module 1201 that obtains is mainly used for carrying out the tracking of user's track drafting, gets after user completes Complete user's track drafting, then passes to determining module 1202 for user's track drafting.Lead to when because of user's graphing It is often to be drawn one by one, therefore, electronic equipment is also to be acquired in real time, one by one when being acquired.
Determining module 1202 determines focusing area for the graphics field according to acquisition.
Determining module 1202 is mainly accomplished that the extraction of focusing area, and the focusing area extracted is then passed to control Molding block 1203.The determining module 1202 can carry out the extraction of focusing area using three kinds of modes.
First way: the graphics field for directly drawing user is as focusing area.
The second way: the graphics field that user draws is converted into test pattern.
The third mode: the shape area for needing the object focused is directly acquired in the graphics field that user draws.
It should be noted that after obtaining the focusing area, it usually needs focusing area label display is pre- in camera It lookes on interface.
Control module 1203, for controlling camera and focusing according to the determining focusing area.
It should be noted that control module 1203 can be existing already present module, usually realized using Focusing module The function of control module 1203.It should be noted that mainly control camera lens is mobile here and then realizes focus operation.
Optionally, determining module 1202 described in the present embodiment includes:
First determination unit 12021, the graphics field for will acquire is as focusing area.
The graphics field that first determination unit 12021 does not draw user carries out any processing, i.e., draws user Graphics field directly as focusing area, due to not needing to carry out any processing, Bu Huizeng to the graphics field that user draws Add the complexity of processing, focusing speed is fast.
Optionally, determining module 1202 described in the present embodiment includes:
First converting unit 12022, the graphics field for will acquire is converted to the first intermediate pattern region, described First intermediate pattern region is the graphics field with regular shape for presetting type.
Second determination unit 12023, for using first intermediate pattern region as focusing area.
Optionally, determining module 1202 described in the present embodiment includes:
Detection unit 12024, for detecting the graphics field with the presence or absence of object outline.
The detection unit 12024 can carry out the determination of object outline according to information such as the shading values of image color.
First acquisition unit 12025, for when detecting that the graphics field there are when object outline, determines the figure Object outline region in region.
Third determination unit 12026, for using the object outline region as focusing area.
Above-mentioned first acquisition unit 12025 and third determination unit 12026 can accurately extract user's graphing area The profile of the focusing object in domain, the focusing of object is carried out according to the profile of the focusing object, ensure that the exact focus of object.
Second converting unit 12027, for when the graphics field is not detected there are when object outline, by the figure Region is converted to the second intermediate pattern region, second intermediate pattern region be preset type there is regular shape Graphics field.
4th determination unit 12028, for using second intermediate pattern region as focusing area.
Above-mentioned second converting unit 12027 and the 4th determination unit 12028 ought not detect object wheel in graphics field When wide, focus at this time in order to guarantee smoothly to realize, the realization rate generallyd use are as follows: according to the graphics field of user's drafting The graphics field is converted to regular figure, such as the shapes such as round, rectangular, polygon, which is formed by feature Region carry out subsequent focus operation as focusing area.
Optionally, the control module 1203 includes:
Second acquisition unit 12031, for obtaining the region parameter of the focusing area, the region parameter is focusing area The coordinate in domain;
The second acquisition unit 12031 determines the master of the focusing area mainly according to determining focusing area Coordinate is wanted, i.e., the focusing area just can accurately be determined by the main coordinate.
Control unit 12032, for controlling camera and focusing according to the region parameter.
The coordinate of the control unit 12032 according to focusing area, controls the movement of camera lens, completes the focusing of camera.
It should be noted that the embodiment of the present invention electronic equipment is corresponding to focusing method with above method embodiment Electronic equipment, all implementations can also reach suitable for the embodiment of the electronic equipment in above method embodiment Identical technical effect.
It should be noted that the electronic equipment can be the smart machines such as digital camera, smart phone, tablet computer, In This is no longer described in detail.
Sixth embodiment
It as shown in figure 16, is the internal entity structural block diagram of the electronic equipment of the embodiment of the present invention.Have below with reference to the figure Body illustrates the application entity of focusing method of the invention.
Electronic equipment 1600 as shown in figure 16 includes: at least one processor 1601, memory 1602, at least one net Network interface 1604 and other users interface 1603.Various components in electronic equipment 1600 are coupled in one by bus system 1605 It rises.It is understood that bus system 1605 is for realizing the connection communication between these components.It includes that data are total that bus system 1605, which is removed, It further include power bus, control bus and status signal bus in addition except line.It, will in Figure 16 but for the sake of clear explanation Various buses are all designated as bus system 1605.
Wherein, user interface 1603 may 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 1602 in the embodiment of the present invention can be volatile memory or non-volatile memories Device, or may include both volatile and non-volatile memories.Wherein, nonvolatile memory can be read-only memory (Read-OnlyMemory, ROM), programmable read only memory (ProgrammableROM, PROM), erasable programmable are read-only Memory (ErasablePROM, EPROM), electrically erasable programmable read-only memory (ElectricallyEPROM, EEPROM) Or flash memory.Volatile memory can be random access memory (RandomAccessMemory, RAM), be used as external high Speed caching.By exemplary but be not restricted explanation, the RAM of many forms is available, such as static random access memory (StaticRAM, SRAM), dynamic random access memory (DynamicRAM, DRAM), Synchronous Dynamic Random Access Memory (SynchronousDRAM, SDRAM), double data speed synchronous dynamic RAM (DoubleDataRate SDRAM, DDRSDRAM), enhanced Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronized links Dynamic random access memory (SynchlinkDRAM, SLDRAM) and direct rambus random access memory (DirectRambusRAM, DRRAM).The memory 1302 of system and method described herein is intended to include but is not limited to these With the memory of any other suitable type.
In some embodiments, memory 1602 stores following element, executable modules or data structures, or Their subset of person or their superset: operating system 16021 and application program 16022.
Wherein, operating system 16021 include various system programs, such as ccf layer, core library layer, driving layer etc., are used for Realize various basic businesses and the hardware based task of processing.Application program 16022 includes various application programs, such as matchmaker Body player (MediaPlayer), 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 16022.
In embodiments of the present invention, by the program or instruction of calling memory 1602 to store, the specific can be that answering With the program or instruction stored in program 16022, processor 1601 for obtain user drawn on camera preview interface to A few graphics field;According to the graphics field of acquisition, focusing area is determined;According to the determining focusing area, control Camera processed is focused.
The method that the embodiments of the present invention disclose can be applied in processor 1601, or real by processor 1601 It is existing.Processor 1601 may be a kind of IC chip, the processing capacity with signal.During realization, the above method Each step can be completed by the instruction of the integrated logic circuit of the hardware in processor 1601 or software form.Above-mentioned Processor 1601 can be general processor, digital signal processor (DigitalSignalProcessor, DSP), dedicated collection At circuit (ApplicationSpecificIntegratedCircuit, ASIC), ready-made programmable gate array (FieldProgrammableGateArray, FPGA) either other programmable logic device, discrete gate or transistor logic Device, discrete hardware components.It may be implemented or execute disclosed each method, step and the logical box in the embodiment of the present invention Figure.General processor can be microprocessor or the processor is also possible to any conventional processor etc..In conjunction with the present invention The step of method disclosed in embodiment, can be embodied directly in hardware decoding processor and execute completion, or use decoding processor In hardware and software module combination execute completion.Software module can be located at random access memory, and flash memory, read-only memory can In the storage medium of this fields such as program read-only memory or electrically erasable programmable memory, register maturation.The storage Medium is located at memory 1602, and processor 1601 reads the information in memory 1602, completes the above method in conjunction with its hardware Step.
It is understood that embodiments described herein can with hardware, software, firmware, middleware, microcode or its Combination is to realize.For hardware realization, processing unit be may be implemented in one or more specific integrated circuit (Application SpecificIntegratedCircuits, ASIC), digital signal processor (DigitalSignalProcessing, DSP), Digital signal processing appts (DSPDevice, DSPD), programmable logic device (ProgrammableLogicDevice, PLD), Field programmable gate array (Field-ProgrammableGateArray, FPGA), general processor, controller, microcontroller In device, microprocessor, other electronic units for executing herein described function or combinations thereof.
For software implementations, it can be realized herein by executing the module (such as process, function etc.) of function described herein The technology.Software code is storable in memory and is executed by processor.Memory can in the processor or It is realized outside processor.
Optionally, which is used for:
The graphics field that will acquire is as focusing area.
Optionally, which is also used to:
The graphics field that will acquire is converted to the first intermediate pattern region, and first intermediate pattern region is preparatory Set the graphics field with regular shape of type;
Using first intermediate pattern region as focusing area.
Optionally, which is also used to:
The graphics field is detected with the presence or absence of object outline;
When detecting that there are object outline regions when object outline, determined in the graphics field for the graphics field;
Using the object outline region as focusing area;
When the graphics field is not detected there are when object outline, the graphics field is converted into the second intermediate pattern Region, second intermediate pattern region are the graphics field with regular shape for presetting type;
Using second intermediate pattern region as focusing area.
After getting focusing area, optionally, which is also used to: by focusing area label display in camera In preview interface.
Optionally, which is also used to:
The region parameter of the focusing area is obtained, the region parameter is the coordinate of focusing area;
According to the region parameter, controls camera and focus.
Electronic equipment 1600 can be realized each process that electronic equipment is realized in previous embodiment, to avoid repeating, this In repeat no more.Using the electronic equipment of such focusing method, user can be made flexibly to be set according to the focusing demand of itself Focusing area is set, the precision of focusing is improved, improves user's operation experience.
7th embodiment
Figure 17 is the structural schematic diagram of the electronic equipment of the embodiment of the present invention.Specifically, the electronic equipment in Figure 17 can be with For mobile phone, tablet computer, personal digital assistant (PersonalDigital Assistant, PDA) or vehicle-mounted computer etc..
Electronic equipment in Figure 17 includes radio frequency (RadioFrequency, RF) circuit 1710, memory 1720, input list First 1730, display unit 1740, processor 1750, voicefrequency circuit 1760,1770 He of WiFi (WirelessFidelity) module Power supply 1780.
Wherein, input unit 1730 can be used for receiving the number or character information of user's input, and generates and set with electronics The related signal input of standby user setting and function control.Specifically, in the embodiment of the present invention, which can To include touch panel 1731.Touch panel 1731, also referred to as touch screen collect the touch operation of user on it or nearby (for example user uses the operations of any suitable object or attachment on touch panel 1731 such as finger, stylus), and according to pre- The formula first set drives corresponding attachment device.Optionally, touch panel 1731 may include touch detecting apparatus and touch control Two parts of device processed.Wherein, the touch orientation of touch detecting apparatus detection user, and touch operation bring signal is detected, it will Signal sends touch controller to;Touch controller receives touch information from touch detecting apparatus, and is converted into contact Coordinate, then give the processor 1750, and order that processor 1750 is sent can be received and executed.Furthermore, it is possible to using The multiple types such as resistance-type, condenser type, infrared ray and surface acoustic wave realize touch panel 1731.In addition to touch panel 1731, Input unit 1730 can also include other input equipments 1732, other input equipments 1732 can include but is not limited to secondary or physical bond One of disk, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. are a variety of.
Wherein, display unit 1740 can be used for showing information input by user or be supplied to the information and electronics of user The various menu interfaces of equipment.Display unit 1740 may include display panel 1741, optionally, can use LCD or organic hair The forms such as optical diode (OrganicLight-EmittingDiode, OLED) configure display panel 1741.
It should be noted that touch panel 1731 can cover display panel 1741, touch display screen is formed, when the touch display screen After detecting touch operation on it or nearby, processor 1750 is sent to determine the type of touch event, is followed by subsequent processing Device 1750 provides corresponding visual output according to the type of touch event in touch display screen.
Touch display screen includes Application Program Interface viewing area and common control viewing area.The Application Program Interface viewing area And arrangement mode of the common 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 elements such as the icon comprising at least one application program and/or widget desktop control.The Application Program Interface viewing area Or the empty interface not comprising any content.This commonly uses control viewing area for showing the higher control of utilization rate, for example, Application icons such as button, interface number, scroll bar, phone directory icon etc. are set.
Wherein processor 1750 is the control centre of electronic equipment, utilizes each of various interfaces and connection whole mobile phone A part by running or execute the software program and/or module that are stored in first memory 1721, and is called and is stored in Data in second memory 1722 execute the various functions and processing data of electronic equipment, to carry out to electronic equipment whole Body monitoring.Optionally, processor 1750 may include one or more processing units.
In embodiments of the present invention, by call store the first memory 1721 in software program and/or module and/ Or the data in the second memory 1722, processor 1750 is for obtaining user draws on camera preview interface at least one A graphics field;According to the graphics field of acquisition, focusing area is determined;According to the determining focusing area, phase is controlled Machine is focused.
Optionally, processor 1750 is also used to:
The graphics field that will acquire is as focusing area.
Optionally, processor 1750 is also used to:
The graphics field that will acquire is converted to the first intermediate pattern region, and first intermediate pattern region is preparatory Set the graphics field with regular shape of type;
Using first intermediate pattern region as focusing area.
Optionally, processor 1750 is also used to: detecting the graphics field with the presence or absence of object outline;
When detecting that there are object outline regions when object outline, determined in the graphics field for the graphics field;
Using the object outline region as focusing area;
When the graphics field is not detected there are when object outline, the graphics field is converted into the second intermediate pattern Region, second intermediate pattern region are the graphics field with regular shape for presetting type;
Using second intermediate pattern region as focusing area.
Optionally, processor 1750 is also used to: by focusing area label display on camera preview interface.
Optionally, processor 1750 is also used to:
The region parameter of the focusing area is obtained, the region parameter is the coordinate of focusing area;
According to the region parameter, controls camera and focus.
The electronic equipment of the embodiment of the present invention can be realized each process that electronic equipment is realized in previous embodiment, to keep away Exempt to repeat, which is not described herein again.Using the electronic equipment of such focusing method, user can be made according to the focusing need of itself It asks, focusing area is flexibly set, improve the precision of focusing, improve user's operation experience.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician Each specific application can be used different methods to achieve the described function, 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, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In embodiment provided herein, it should be understood that disclosed device and method can pass through others Mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, only A kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of device or unit It connects, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention. And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, ROM, RAM, magnetic or disk etc. are various can store program code Medium.
All the embodiments in this specification are described in a progressive manner, the highlights of each of the examples are with The difference of other embodiments, the same or similar parts between the embodiments can be referred to each other.
It should also be noted that, herein, relational terms such as first and second and the like are used merely to one Entity or operation are distinguished with another entity or operation, without necessarily requiring or implying between these entities or operation There are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant are intended to contain Lid non-exclusive inclusion, so that the process, method, article or the terminal device that include a series of elements not only include that A little elements, but also including other elements that are not explicitly listed, or further include for this process, method, article or The intrinsic element of terminal device.In the absence of more restrictions, the element limited by sentence "including a ...", and It is not precluded in the process, method including the element, article or terminal device that there is also other identical elements.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.

Claims (10)

1. a kind of focusing method characterized by comprising
Obtain at least two graphics fields that user draws on camera preview interface;
According to the graphics field of acquisition, focusing area is determined;
According to the determining focusing area, controls camera and focus;
Wherein, each graphics field is corresponding with a focusing area;
Wherein, the graphics field according to acquisition, the step of determining focusing area include:
The graphics field is detected with the presence or absence of object outline;
When detecting that there are object outline regions when object outline, determined in the graphics field for the graphics field;
Using the object outline region as focusing area;
Wherein, the focusing area is shown on camera preview interface by label.
2. focusing method according to claim 1, which is characterized in that the graphics field according to acquisition determines The step of focusing area includes:
The graphics field that will acquire is as focusing area.
3. focusing method according to claim 1, which is characterized in that the graphics field according to acquisition determines The step of focusing area includes:
The graphics field that will acquire is converted to the first intermediate pattern region, and first intermediate pattern region is to preset The graphics field with regular shape of type;
Using first intermediate pattern region as focusing area.
4. focusing method according to claim 1, which is characterized in that the graphics field according to acquisition determines The step of focusing area further include:
When the graphics field is not detected there are when object outline, the graphics field is converted into the second intermediate pattern area Domain, second intermediate pattern region are the graphics field with regular shape for presetting type;
Using second intermediate pattern region as focusing area.
5. focusing method according to claim 1, which is characterized in that described according to the determining focusing area, control The step of camera is focused include:
The region parameter of the focusing area is obtained, the region parameter is the coordinate of focusing area;
According to the region parameter, controls camera and focus.
6. a kind of electronic equipment characterized by comprising
Obtain module, at least two graphics fields drawn on camera preview interface for obtaining user;
Determining module determines focusing area for the graphics field according to acquisition;
Control module, for controlling camera and focusing according to the determining focusing area;
Wherein, each graphics field is corresponding with a focusing area;
Wherein, the determining module includes:
Detection unit, for detecting the graphics field with the presence or absence of object outline;
First acquisition unit, for when detecting that the graphics field there are when object outline, determines in the graphics field Object outline region;
Third determination unit, for using the object outline region as focusing area;
Wherein, the focusing area is shown on camera preview interface by label.
7. electronic equipment according to claim 6, which is characterized in that the determining module includes:
First determination unit, the graphics field for will acquire is as focusing area.
8. electronic equipment according to claim 6, which is characterized in that the determining module includes:
First converting unit, the graphics field for will acquire are converted to the first intermediate pattern region, among described first Graphics field is the graphics field with regular shape for presetting type;
Second determination unit, for using first intermediate pattern region as focusing area.
9. electronic equipment according to claim 6, which is characterized in that the determining module further include:
Second converting unit, for when the graphics field is not detected there are when object outline, the graphics field to be converted For the second intermediate pattern region, second intermediate pattern region is the graph area with regular shape for presetting type Domain;
4th determination unit, for using second intermediate pattern region as focusing area.
10. electronic equipment according to claim 6, which is characterized in that the control module includes:
Second acquisition unit, for obtaining the region parameter of the focusing area, the region parameter is the coordinate of focusing area;
Control unit, for controlling camera and focusing according to the region parameter.
CN201510700481.1A 2015-10-23 2015-10-23 A kind of focusing method and electronic equipment Active CN105242853B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510700481.1A CN105242853B (en) 2015-10-23 2015-10-23 A kind of focusing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510700481.1A CN105242853B (en) 2015-10-23 2015-10-23 A kind of focusing method and electronic equipment

Publications (2)

Publication Number Publication Date
CN105242853A CN105242853A (en) 2016-01-13
CN105242853B true CN105242853B (en) 2019-11-29

Family

ID=55040520

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510700481.1A Active CN105242853B (en) 2015-10-23 2015-10-23 A kind of focusing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN105242853B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105704375B (en) * 2016-01-29 2019-05-21 Oppo广东移动通信有限公司 A kind of method of image procossing, terminal and computer readable storage medium
CN106506953A (en) * 2016-10-28 2017-03-15 山东鲁能智能技术有限公司 The substation equipment image acquisition method of servo is focused on and is exposed based on designated area
CN108076278B (en) * 2016-11-10 2021-03-19 斑马智行网络(香港)有限公司 Automatic focusing method and device and electronic equipment
CN108304134A (en) * 2018-01-31 2018-07-20 上海与德科技有限公司 Preview interface processing method and electronic equipment
CN108234884B (en) * 2018-02-12 2019-12-10 西安电子科技大学 camera automatic focusing method based on visual saliency

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101567975A (en) * 2009-05-26 2009-10-28 深圳华为通信技术有限公司 Method and device for selecting focusing zone
CN102109737A (en) * 2009-12-24 2011-06-29 比亚迪股份有限公司 Method and device for focusing user-defined area
CN104104787A (en) * 2013-04-12 2014-10-15 上海果壳电子有限公司 Shooting method, shooting system and hand-held device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100111441A1 (en) * 2008-10-31 2010-05-06 Nokia Corporation Methods, components, arrangements, and computer program products for handling images

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101567975A (en) * 2009-05-26 2009-10-28 深圳华为通信技术有限公司 Method and device for selecting focusing zone
CN102109737A (en) * 2009-12-24 2011-06-29 比亚迪股份有限公司 Method and device for focusing user-defined area
CN104104787A (en) * 2013-04-12 2014-10-15 上海果壳电子有限公司 Shooting method, shooting system and hand-held device

Also Published As

Publication number Publication date
CN105242853A (en) 2016-01-13

Similar Documents

Publication Publication Date Title
CN105242853B (en) A kind of focusing method and electronic equipment
CN107181913B (en) A kind of photographic method and mobile terminal
CN105827754B (en) A kind of generation method and mobile terminal of high dynamic range images
CN106126108B (en) A kind of generation method and mobile terminal of thumbnail
CN106227488B (en) A kind of display methods and mobile terminal of reminder message
CN105959544B (en) A kind of image processing method and mobile terminal of mobile terminal
CN105847674A (en) Preview image processing method based on mobile terminal, and mobile terminal therein
CN107368150A (en) A kind of photographic method and mobile terminal
CN108958627B (en) Touch operation method and device, storage medium and electronic equipment
CN107613203B (en) Image processing method and mobile terminal
CN107172346A (en) A kind of weakening method and mobile terminal
CN106657806B (en) A kind of exposure method and mobile terminal
CN106354303B (en) A kind of photographic method and mobile terminal of mobile terminal
CN107302655B (en) It is a kind of to shoot the adjusting method and mobile terminal found a view
CN106210512B (en) A kind of camera switching method and mobile terminal
CN106354411B (en) A kind of interface starting method and mobile terminal
CN107678644A (en) A kind of image processing method and mobile terminal
CN107124543A (en) A kind of image pickup method and mobile terminal
CN107665434B (en) Payment method and mobile terminal
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
CN106155480A (en) The interface display method of a kind of application program and mobile terminal
CN105867830B (en) A kind of processing method and mobile terminal based on fingerprint recognition
CN106911897B (en) A kind of determination method and mobile terminal shooting focus
CN107657591A (en) A kind of image processing method and mobile terminal

Legal Events

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