CN106303192B - Terminal control method and terminal - Google Patents
Terminal control method and terminal Download PDFInfo
- Publication number
- CN106303192B CN106303192B CN201510272071.1A CN201510272071A CN106303192B CN 106303192 B CN106303192 B CN 106303192B CN 201510272071 A CN201510272071 A CN 201510272071A CN 106303192 B CN106303192 B CN 106303192B
- Authority
- CN
- China
- Prior art keywords
- terminal
- distance
- sensor
- front camera
- camera lens
- 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
Links
Landscapes
- Studio Devices (AREA)
Abstract
The disclosure is directed to a kind of terminal control method and terminals.The described method includes: the distance between the sensor detection object and the terminal;The distance between the object that the sensor will test and the terminal are sent to the processor;The processor executes predetermined registration operation according to the distance between the object and the terminal.The method provided using the disclosure, the distance that can be will test are sent to processor, and processor is allow to execute predetermined registration operation according to the distance between object and terminal.
Description
Technical field
This disclosure relates to field of computer technology more particularly to a kind of terminal control method and terminal.
Background technique
In the related technology, as the capture pixel and clarity of mobile phone are constantly promoted and people shoot hand-held
Equipment performance is more preferable, and the smaller demand of volume is taken pictures compared to using traditional camera, more and more people be more likely to using
Mobile phone is taken pictures.
Summary of the invention
The embodiment of the present disclosure provides a kind of terminal control method and terminal.The technical solution is as follows:
According to the first aspect of the embodiments of the present disclosure, a kind of terminal control method is provided, terminal, the terminal packet are applied to
Processor and front camera interconnected are included, the front camera includes having the function of phase-detection auto-focusing PDAF
Sensor, which comprises
The distance between the sensor detection object and the terminal;
The distance between the object that the sensor will test and the terminal are sent to the processor;
The processor executes predetermined registration operation according to the distance between the object and the terminal.
The technical scheme provided by this disclosed embodiment can include the following benefits: the distance that can be will test is sent
To processor, processor is allow to execute predetermined registration operation according to the distance between object and terminal.
In one embodiment, the terminal further includes screen controller, the processor according to the object with it is described
The distance between terminal executes predetermined registration operation, comprising:
In communication process, when the distance between the object and the terminal are less than or equal to the first preset threshold,
The processor generates first control signal and is sent to the screen controller, and the first control signal is described for controlling
The screen locking of terminal or closing;
When the distance between the object and the terminal are greater than or equal to the second preset threshold, the processor is generated
Second control signal is simultaneously sent to the screen controller, and the second control signal is used to control the unlocking screen of the terminal
Or it lights.
For example, when user converses, at this point, can be generated to mobile phone screen in order to avoid maloperation with human body
The distance of touch input presets one greater than the critical value close to threshold value, according to the side in step S11-S13 as critical value
Method obtains mobile phone at a distance from object.Due in communication process, being usually all earpiece close to user face, at this point, such as
When fruit determines mobile phone at a distance from user face for less than or equal to close to threshold value, processor generate an instruction screen locking or
The control signal of closing is sent to screen controller, and screen controller is according to the control semaphore lock or closes screen.
In addition, the distance can generate touch input to mobile phone screen presets one and is greater than the critical value as critical value
Gradually from threshold value;When user's unlatching hand-free function is conversed, perhaps end of conversation needs to hang up or in communication process
When needing operating handset, mobile phone is taken away from user face, when detect the mobile phone that is obtained according to the method in step S11-S13 with
The distance of object be greater than or equal to it is preset gradually from threshold value when, processor generates the instruction screen control that starts or light
Signal is sent to screen controller, and screen controller opens or light screen according to the control signal.
The technical scheme provided by this disclosed embodiment can include the following benefits: the distance that will test and default
Threshold value compares, when less than the first preset threshold, controlling terminal screen locking or closing, prevent user in communication process not
Maloperation occurs for careful touching screen;In addition, by unlocking screen or lighting, making the user do not need when being greater than the second preset threshold
Screen is lighted manually, the intelligence for realizing terminal screen is closed and lighted.
In one embodiment, the distance between the sensor detection object and the terminal, comprising:
When the camera lens of the front camera is accurate to object focusing, the sensor obtains the preposition camera shooting
The focal distance of head;
The sensor is according to the distance between camera lens of the front camera to photosensitive element and the focal distance
The object is calculated at a distance from the camera lens of the front camera, obtains the distance between the object and the terminal.
The technical scheme provided by this disclosed embodiment can include the following benefits: according to the camera lens of front camera
The distance between object and terminal can be calculated to the distance between photosensitive element and focal distance, it can not by distance
The distance between object and terminal are obtained in the case where sensor.
In one embodiment, the distance between the sensor detection object and the terminal, further includes:
The incident ray of the camera lens of the front camera is divided into pairs of image by the sensor;
The sensor calculates the phase difference of the pairs of image;
When the phase difference of the pairs of image is zero, determine that the camera lens of the front camera focuses to the object
Accurately.
The technical scheme provided by this disclosed embodiment can include the following benefits: can be directly by comparing figure in pairs
The phase difference of picture completes accurate focusing of the camera lens institute of front camera to object, without as tradition focusing mode from imaging
Obscure clearly arrive again it is fuzzy during imaging is compared repeatedly, so that the time used in focusing be greatly reduced.
In one embodiment, the method also includes:
When the phase difference is not equal to zero, the sensor determines focusing adjustment direction and focusing according to the phase difference
Adjustment amount;
The sensor is according to the focusing adjustment direction and position of the adjustment amount to the camera lens of the front camera of focusing
It sets and is adjusted.
The technical scheme provided by this disclosed embodiment can include the following benefits: when phase difference is not equal to zero,
Focusing adjustment direction and focusing adjustment amount can be determined according to phase difference, and then by focusing adjustment direction and focusing adjustment amount to the greatest extent
Head position is adjusted, thus, focusing can be completed by once focusing and once adjusting, further reduce used in focusing
Time.
According to the second aspect of an embodiment of the present disclosure, a kind of terminal is provided, comprising:
Processor;
Front camera, including the sensor with phase-detection auto-focusing PDAF function;
The sensor is connected to the processor, between the object that the sensor will test and the terminal away from
From being sent to the processor.
The technical scheme provided by this disclosed embodiment can include the following benefits: directly by front camera
Sensor detection object with phase-detection auto-focusing PDAF function makes terminal without installation the distance between to terminal
It can detecte object in the case where range sensor and arrive the distance between terminal, save the cost of manufacture of terminal.
In one embodiment, terminal further include: the screen controller being connected to the processor;
In communication process, when the distance between the object and the terminal are less than or equal to the first preset threshold,
The processor generation is controlled for controlling the screen locking of the terminal or the first control signal of closing, and by described first
Signal is sent to the screen controller;
When the distance between the object and the terminal are greater than or equal to the second preset threshold, the processor is generated
Second control signal for controlling the unlocking screen of the terminal or lighting, and send the second control signal to described
Screen controller;
The screen controller locks or closes screen according to the first control signal, or is believed according to second control
Number unlock or light screen.
The technical scheme provided by this disclosed embodiment can include the following benefits: without mobile phone sensor,
Without calculate screen and human body it is close when electric signal or coupled capacitor change in the case where realize screen intelligence close and
It lights.
In one embodiment, the sensor, when the camera lens of the front camera is accurate to object focusing,
Obtain the focal distance of the front camera;According to the distance between camera lens of the front camera to photosensitive element and institute
It states focal distance and calculates the object at a distance from the camera lens of the front camera, obtain between the object and the terminal
Distance.
The technical scheme provided by this disclosed embodiment can include the following benefits: according to the camera lens of front camera
The distance between object and terminal can be calculated to the distance between photosensitive element and focal distance, it can not by distance
The distance between object and terminal are obtained in the case where sensor.
In one embodiment, the sensor includes: separation camera lens, with the linear sensing mould for separating camera lens connection
Block, the processing module being connect with the linear sensing module;
The incident ray of the camera lens of the front camera, is divided into pairs of image by the separation camera lens;
The linear sensing module detects the phase difference between the pairs of image, according to the pairs of image it
Between phase difference generate linear signal, send the processing module for the linear signal;
The processing module is determined when determining that the phase difference of the pairs of image is zero according to the linear signal
It is accurate that the camera lens of the front camera focuses to the object.
The technical scheme provided by this disclosed embodiment can include the following benefits: can be directly by comparing figure in pairs
The phase difference of picture completes accurate focusing of the camera lens institute of front camera to object, without as tradition focusing mode from imaging
Obscure clearly arrive again it is fuzzy during imaging is compared repeatedly, so that the time used in focusing be greatly reduced.
In one embodiment, the sensor further include: the lens driving module being connect with processing module;
The processing module, when determining the phase difference not equal to zero according to the linear signal, according to described linear
Signal determines focusing adjustment direction and focusing adjustment amount, generates driving signal according to the burnt adjustment direction and focusing adjustment amount,
The lens driving module is sent by the driving signal;
The lens driving module is adjusted according to position of the driving signal to the camera lens of the front camera
It is whole.
The technical scheme provided by this disclosed embodiment can include the following benefits: when phase difference is not equal to zero,
Focusing adjustment direction and focusing adjustment amount can be determined according to phase difference, and then by focusing adjustment direction and focusing adjustment amount to the greatest extent
Head position is adjusted, thus, focusing can be completed by once focusing and once adjusting, further reduce used in focusing
Time.
In one embodiment, the front panel of the terminal has the aperture for the front camera.
The technical scheme provided by this disclosed embodiment can include the following benefits: by one for having PDAF
The front camera of function can have the function of camera and P-sensor (Proximity sensor, nearly object sensor) simultaneously
It can, it is only necessary to which the aperture of a camera reduces the number of openings of terminal.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not
The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure
Example, and together with specification for explaining the principles of this disclosure.
Fig. 1 is a kind of flow chart of terminal control method shown according to an exemplary embodiment;
Fig. 2 is a kind of flow chart of terminal control method shown according to an exemplary embodiment;
Fig. 3 is a kind of flow chart of terminal control method shown according to an exemplary embodiment;
Fig. 4 is a kind of flow chart of terminal control method shown according to an exemplary embodiment;
Fig. 5 is a kind of flow chart of terminal control method shown according to an exemplary embodiment;
Fig. 6 is a kind of flow chart of terminal control method shown according to an exemplary embodiment;
Fig. 7 is a kind of block diagram of terminal shown according to an exemplary embodiment;
Fig. 8 is a kind of block diagram of terminal shown according to an exemplary embodiment;
Fig. 9 is a kind of block diagram of terminal shown according to an exemplary embodiment;
Figure 10 is a kind of block diagram of terminal shown according to an exemplary embodiment;
Figure 11 is a kind of block diagram of terminal shown according to an exemplary embodiment;
Figure 12 is a kind of block diagram of terminal shown according to an exemplary embodiment.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended
The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
Fig. 1 is a kind of flow chart of terminal control method shown according to an exemplary embodiment, as shown in Figure 1, the end
Hold control method for including the following steps S11-S13 in terminal:
In step s 11, the distance between sensor detection object and terminal;
In step s 12, the distance between sensor will test object and terminal are sent to processor;
In step s 13, processor executes predetermined registration operation according to the distance between object and terminal.
The technical scheme provided by this disclosed embodiment can include the following benefits: the distance that can be will test is sent
To processor, processor is allow to execute predetermined registration operation according to the distance between object and terminal.
In one embodiment, as shown in Fig. 2, processor is according to object and terminal when terminal includes screen controller
The distance between execute predetermined registration operation may include following steps S21-S22:
In the step s 21, in communication process, when the distance between object and terminal are less than or equal to the first preset threshold
When, processor generates first control signal and is sent to screen controller, and first control signal is used for the screen lock of controlling terminal
Fixed or closing;
In step S22, when the distance between object and terminal are greater than or equal to the second preset threshold, processor is generated
Second control signal is simultaneously sent to screen controller, and second control signal is used for the unlocking screen of controlling terminal or lights.
For example, when user converses, at this point, can be generated to mobile phone screen in order to avoid maloperation with human body
The distance of touch input presets one greater than the critical value close to threshold value, according to the side in step S11-S13 as critical value
Method obtains mobile phone at a distance from object.Due in communication process, being usually all earpiece close to user face, at this point, such as
When fruit determines mobile phone at a distance from user face for less than or equal to close to threshold value, processor generate an instruction screen locking or
The control signal of closing is sent to screen controller, and screen controller is according to the control semaphore lock or closes screen.
In addition, the distance can generate touch input to mobile phone screen presets one and is greater than the critical value as critical value
Gradually from threshold value;When user's unlatching hand-free function is conversed, perhaps end of conversation needs to hang up or in communication process
When needing operating handset, mobile phone is taken away from user face, when detect the mobile phone that is obtained according to the method in step S11-S13 with
The distance of object be greater than or equal to it is preset gradually from threshold value when, processor generates the instruction screen control that starts or light
Signal is sent to screen controller, and screen controller opens or light screen according to the control signal.
The technical scheme provided by this disclosed embodiment can include the following benefits: the distance that will test and default
Threshold value compares, when less than the first preset threshold, controlling terminal screen locking or closing, prevent user in communication process not
Maloperation occurs for careful touching screen;In addition, by unlocking screen or lighting, making the user do not need when being greater than the second preset threshold
Screen is lighted manually, the intelligence for realizing terminal screen is closed and lighted.
In one embodiment, as shown in figure 3, the distance between sensor detection object and terminal may include following steps
S31-S32:
In step S31, when the camera lens of front camera is accurate to object focusing, sensor obtains front camera
Focal distance;
In step s 32, sensor is according to the distance between camera lens of front camera to photosensitive element and focal distance
Object is calculated at a distance from the camera lens of front camera, obtains the distance between object and terminal.
For example, when the camera lens of mobile phone front camera to it is accurate to object focusing when, photosensitive core built in mobile phone
Piece obtains the focal distance A of mobile phone front camera, i.e. the distance between object and imaging.And then pass through focal distance A
Subtract the distance between the photosensitive element built in the camera lens to mobile phone of mobile phone front camera B, focal distance A with mobile phone is preposition takes the photograph
The distance between mobile phone is arrived to object as the distance B of the camera lens of head subtracts each other the camera lens that gained difference is mobile phone front camera
C, i.e. A-B=C.
The technical scheme provided by this disclosed embodiment can include the following benefits: according to the camera lens of front camera
The distance between object and terminal can be calculated to the distance between photosensitive element and focal distance, it can not by distance
The distance between object and terminal are obtained in the case where sensor.
In one embodiment, as shown in figure 4, can also include the steps of S41-S43 before step S31:
In step S41, the incident ray of the camera lens of front camera is divided into pairs of image by sensor;
In step S42, the phase difference for the image that sensor is calculated as pair;
In step S43, when the phase difference of pairs of image is zero, determine that the camera lens of front camera focuses to object
Accurately.
The technical scheme provided by this disclosed embodiment can include the following benefits: can be directly by comparing figure in pairs
The phase difference of picture completes accurate focusing of the camera lens institute of front camera to object, without as tradition focusing mode from imaging
Obscure clearly arrive again it is fuzzy during imaging is compared repeatedly, so that the time used in focusing be greatly reduced.
In one embodiment, as shown in figure 5, method may also include step S51-S52:
In step s 51, when phase difference is not equal to zero, sensor determines focusing adjustment direction and focusing according to phase difference
Adjustment amount;
In step S52, sensor is according to focusing adjustment direction and position of the adjustment amount to the camera lens of front camera of focusing
It sets and is adjusted.
For example, the incident ray of the camera lens of front camera is divided into pairs of image by sensor;Sensor calculates
The phase difference of pairs of image;When phase difference is not zero, sensor determines that focusing adjustment direction and focusing are adjusted according to phase difference
Whole amount;And the position of the camera lens of front camera is adjusted according to focusing adjustment direction and focusing adjustment amount;When executing tune
It is whole operation it is correct when, the phase difference of the pairs of image after adjusting is zero, when the phase difference of pairs of image is zero, determine before
The camera lens for setting camera focuses accurately to object.Such scheme has abandoned the process compared repeatedly in traditional focus process, only
It only needs once to focus and primary adjustment can be completed accurately to focus.
The technical scheme provided by this disclosed embodiment can include the following benefits: when phase difference is not equal to zero,
Focusing adjustment direction and focusing adjustment amount can be determined according to phase difference, and then by focusing adjustment direction and focusing adjustment amount to the greatest extent
Head position is adjusted, thus, focusing can be completed by once focusing and once adjusting, further reduce used in focusing
Time.
Fig. 6 is a kind of flow chart of terminal control method shown according to an exemplary embodiment, as shown in fig. 6, the end
Hold control method for including the following steps S601-S610 in terminal:
In step s 601, the incident ray of the camera lens of front camera is divided into pairs of image by sensor;
In step S602, the phase difference for the image that sensor is calculated as pair;
In step S603, when phase difference is not equal to zero, sensor determines focusing adjustment direction and right according to phase difference
Burnt adjustment amount;
In step s 604, sensor is according to focusing adjustment direction and position of the adjustment amount to the camera lens of front camera of focusing
It sets and is adjusted;
In step s 605, when the phase difference of pairs of image is zero, determine the camera lens of front camera to object pair
It is burnt accurate;
In step S606, when the camera lens of front camera is accurate to object focusing, sensor obtains front camera
Focal distance;
In step S607, sensor is according to the distance between camera lens of front camera to photosensitive element and focal distance
Object is calculated at a distance from the camera lens of front camera, obtains the distance between object and terminal;
In step S608, the distance between object and terminal are sent processor by sensor;
In step S609, in communication process, when the distance between object and terminal are less than or equal to the first default threshold
When value, processor generates first control signal and is sent to screen controller, and first control signal is used for the screen of controlling terminal
Locking is closed;
In step S610, when the distance between object and terminal are greater than or equal to the second preset threshold, processor is raw
At second control signal and it is sent to screen controller, second control signal is used for the unlocking screen of controlling terminal or lights.
By taking user is conversed by mobile phone as an example, when mobile phone is close to human body, touch can be generated to mobile phone screen with human body
The distance of input presets one greater than the critical value close to threshold value as critical value, then default one is greater than the critical value
Gradually from threshold value, in communication process, mobile phone be to object people face, mobile phone built-in sensors are by the camera lens of front camera
Incident ray be divided into pairs of face image, and the phase difference to image is calculated as, when the phase difference of the pairs of image is not
When zero, sensor determines focusing adjustment direction and focusing adjustment amount according to the phase difference, and according to determining focusing adjustment direction
The position of the camera lens of front camera is adjusted with focusing adjustment amount, when the phase difference of pairs of image is zero, is determined
The camera lens of front camera to the focusing of object be accurately, the side that this phase difference by pairs of image is focused
The principle that formula is similar to animal or mankind's eyes are focused.And when focusing of the camera lens of preposition head portrait to object is accurate, mobile phone
Built-in sensitive chip obtains the focal distance A of mobile phone front camera, i.e. the distance between object and imaging.And then it is logical
Cross the distance between the photosensitive element that focal distance A is subtracted built in the camera lens to mobile phone of mobile phone front camera B, focal distance A
With the camera lens distance B of mobile phone front camera subtract each other gained difference be mobile phone front camera camera lens institute it is in one's hands to object
The distance between machine C, i.e. A-B=C.The distance between face and terminal are sent processor by sensor;If it is determined that mobile phone
When at a distance from user face for less than or equal to close to threshold value, processor generates the control of an instruction screen locking or closing
Signal is sent to screen controller, and screen controller is according to the control semaphore lock or closes screen.When user opens hands-free function
When needing operating handset when perhaps end of conversation needs to hang up when can be carried out call or in communication process, mobile phone is from user's face
Portion takes away, when mobile phone at a distance from object be greater than or equal to it is preset gradually from threshold value when, processor generate an instruction screen open
The control signal for beginning or lighting is sent to screen controller, and screen controller opens or light screen according to the control signal.
It should be noted that the distance between object and terminal can also obtain in the following way: when preposition head portrait
When camera lens is accurate to the focusing of object, photosensitive element is to camera lens distance b with parfocal plane with parfocal plane distance a
Definite value, therefore can be according to light in the incident angle of photosensitive element and the direction adjustment amount of camera lens and apart from both adjustment amounts
Obtain camera lens to parfocal plane incident angle, then by the refractive index of camera lens obtain the same point of object camera lens topmost
Topmost obtained with the lowermost distance with the incident angle and camera lens of two incident rays of the lowermost camera lens and object it
Between distance.
The technical scheme provided by this disclosed embodiment can include the following benefits: be not necessarily to mounting distance sensor
Electric signal or coupled capacitor when without calculating screen and close human body determine face between mobile phone in the case where changing
Distance, and being compared according to determining distance with preset threshold, when less than the first preset threshold, controlling terminal screen locking or
It closes, prevents user from accidentally touching screen in communication process and maloperation occurs;In addition, when being greater than the second preset threshold,
It by unlocking screen or lights, makes the user do not need to light screen manually.I.e. without mobile phone sensor, without calculating screen and people
Electric signal or coupled capacitor when body is close realize screen intelligence in the case where changing is closed and is lighted.
Fig. 7 is a kind of block diagram of terminal shown according to an exemplary embodiment, as shown in fig. 7, the terminal 700 includes:
Processor 71;
Front camera 72, the front camera 72 include the sensor with phase-detection auto-focusing PDAF function
721;
The sensor 721 is connect with processor 71, the distance between the object that sensor 721 will test and terminal 700
It is sent to processor 71.
The technical scheme provided by this disclosed embodiment can include the following benefits: directly by front camera
Sensor detection object with phase-detection auto-focusing PDAF function makes terminal without installation the distance between to terminal
It can detecte object in the case where range sensor and arrive the distance between terminal, save the cost of manufacture of terminal.
In one embodiment, as shown in figure 8, terminal 700 further include: the screen controller 81 being connect with processor 71;
In communication process, when the distance between object and terminal are less than or equal to the first preset threshold, processor 71
The screen locking for controlling terminal or the first control signal of closing are generated, and sends screen control for first control signal
Device 81;
When the distance between object and terminal are greater than or equal to the second preset threshold, processor 71 is generated for controlling end
The unlocking screen at end or the second control signal lighted, and screen controller 81 is sent by second control signal;
Screen controller 81 locks or closes screen according to first control signal, or according to second control signal unlock or point
Bright screen.
The technical scheme provided by this disclosed embodiment can include the following benefits: without mobile phone sensor,
Without calculate screen and human body it is close when electric signal or coupled capacitor change in the case where realize screen intelligence close and
It lights.
In one embodiment, when the camera lens of front camera is accurate to object focusing, pair of front camera is obtained
Defocus distance;Object and front camera are calculated according to the distance between camera lens of front camera to photosensitive element and focal distance
Camera lens distance, obtain the distance between object and terminal.
The technical scheme provided by this disclosed embodiment can include the following benefits: according to the camera lens of front camera
The distance between object and terminal can be calculated to the distance between photosensitive element and focal distance, it can not by distance
The distance between object and terminal are obtained in the case where sensor.
In one embodiment, as shown in figure 9, sensor 721 includes: separation camera lens 91, with the line for separating camera lens connection
Property sensing module 92, the processing module 93 being connect with linear sensing module;
Camera lens 91 is separated, the incident ray of the camera lens of front camera is divided into pairs of image;
Linear sensing module 92 detects the phase difference between pairs of image, according to the phase difference between pairs of image
Linear signal is generated, sends processing module 93 for linear signal;
Processing module 93 determines front camera when determining that the phase difference of pairs of image is zero according to linear signal
Camera lens focus to object it is accurate.
The technical scheme provided by this disclosed embodiment can include the following benefits: can be directly by comparing figure in pairs
The phase difference of picture completes accurate focusing of the camera lens institute of front camera to object, without as tradition focusing mode from imaging
Obscure clearly arrive again it is fuzzy during imaging is compared repeatedly, so that the time used in focusing be greatly reduced.
In one embodiment, as shown in Figure 10, sensor 721 further include: the lens driving being connect with processing module 93
Module 101;
Processing module 93 determines that focusing is adjusted according to linear signal when determining phase difference not equal to zero according to linear signal
Perfect square sends mirror for driving signal according to burnt adjustment direction and focusing adjustment amount generation driving signal to focusing adjustment amount
Head drive module;
Lens driving module 101 is adjusted according to position of the driving signal to the camera lens of front camera.
For example, the incident ray of the camera lens of front camera is divided into pairs of image by sensor;Sensor calculates
The phase difference of pairs of image;When phase difference is not zero, sensor determines that focusing adjustment direction and focusing are adjusted according to phase difference
Whole amount;And the position of the camera lens of front camera is adjusted according to focusing adjustment direction and focusing adjustment amount;When executing tune
It is whole operation it is correct when, the phase difference of the pairs of image after adjusting is zero, when the phase difference of pairs of image is zero, determine before
The camera lens for setting camera focuses accurately to object.Such scheme has abandoned the process compared repeatedly in traditional focus process, only
It only needs once to focus and primary adjustment can be completed accurately to focus.
The technical scheme provided by this disclosed embodiment can include the following benefits: when phase difference is not equal to zero,
Focusing adjustment direction and focusing adjustment amount can be determined according to phase difference, and then by focusing adjustment direction and focusing adjustment amount to the greatest extent
Head position is adjusted, thus, focusing can be completed by once focusing and once adjusting, further reduce used in focusing
Time.
In one embodiment, as shown in figure 11, the front panel 111 of terminal 700 has opening for front camera
Hole 112.
In the mobile phone of the relevant technologies, other than earpiece, setting there are two aperture, an aperture for light sensor+
Range sensor;Another aperture is used for front camera, includes having phase-detection automatic in front camera in the disclosure
The sensor for PDAF function of focusing, can replace light sensor+range sensor, therefore only need opening for setting front camera
Hole.
The technical scheme provided by this disclosed embodiment can include the following benefits: by one for having PDAF
The front camera of function can have the function of camera and P-sensor (Proximity sensor, nearly object sensor) simultaneously
It can, it is only necessary to which the aperture of a camera reduces the number of openings of terminal.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method
Embodiment in be described in detail, no detailed explanation will be given here.
Figure 12 is a kind of block diagram of device 1200 for terminal control shown according to an exemplary embodiment.For example,
Device 1200 can be mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device,
Medical Devices, body-building equipment, personal digital assistant etc..
As shown in figure 12, device 1200 may include following one or more components: processing component 1202, memory
1204, power supply module 1206, multimedia component 1208, audio component 1210, the interface 1212 of input/output (I/O), sensor
Component 1214 and communication component 1216.
The integrated operation of the usual control device 1200 of processing component 1202, such as with display, telephone call, data communication,
Camera operation and record operate associated operation.Processing component 1202 may include one or more processors 1220 to execute
Instruction, to perform all or part of the steps of the methods described above.In addition, processing component 1202 may include one or more moulds
Block, convenient for the interaction between processing component 1202 and other assemblies.For example, processing component 1202 may include multi-media module,
To facilitate the interaction between multimedia component 1208 and processing component 1202.
Memory 1204 is configured as storing various types of data to support the operation in equipment 1200.These data
Example includes the instruction of any application or method for operating on device 1200, contact data, telephone book data,
Message, picture, video etc..Memory 1204 can by any kind of volatibility or non-volatile memory device or they
Combination is realized, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), it is erasable can
Program read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory
Reservoir, disk or CD.
Power supply module 1206 provides electric power for the various assemblies of device 1200.Power supply module 1206 may include power management
System, one or more power supplys and other with for device 1200 generate, manage, and distribute the associated component of electric power.
Multimedia component 1208 includes the screen of one output interface of offer between described device 1200 and user.?
In some embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel,
Screen may be implemented as touch screen, to receive input signal from the user.Touch panel includes that one or more touch passes
Sensor is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding is dynamic
The boundary of work, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more
Media component 1208 includes a front camera and/or rear camera.When equipment 1200 is in operation mode, as shot mould
When formula or video mode, front camera and/or rear camera can receive external multi-medium data.Each preposition camera shooting
Head and rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 1210 is configured as output and/or input audio signal.For example, audio component 1210 includes a wheat
Gram wind (MIC), when device 1200 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone quilt
It is configured to receive external audio signal.The received audio signal can be further stored in memory 1204 or via communication
Component 1216 is sent.In some embodiments, audio component 1210 further includes a loudspeaker, is used for output audio signal.
I/O interface 1212 provides interface, above-mentioned peripheral interface module between processing component 1202 and peripheral interface module
It can be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and
Locking press button.
Sensor module 1214 includes one or more sensors, and the state for providing various aspects for device 1200 is commented
Estimate.For example, sensor module 1214 can detecte the state that opens/closes of equipment 1200, the relative positioning of component, such as institute
The display and keypad that component is device 1200 are stated, sensor module 1214 can be with detection device 1200 or device 1,200 1
The position change of a component, the existence or non-existence that user contacts with device 1200,1200 orientation of device or acceleration/deceleration and dress
Set 1200 temperature change.Sensor module 1214 may include proximity sensor, be configured in not any physics
It is detected the presence of nearby objects when contact.Sensor module 1214 can also include optical sensor, as CMOS or ccd image are sensed
Device, for being used in imaging applications.In some embodiments, which can also include acceleration sensing
Device, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 1216 is configured to facilitate the communication of wired or wireless way between device 1200 and other equipment.Dress
The wireless network based on communication standard, such as WiFi can be accessed by setting 1200,2G or 3G or their combination.It is exemplary at one
In embodiment, communication component 1216 receives broadcast singal or broadcast correlation from external broadcasting management system via broadcast channel
Information.In one exemplary embodiment, the communication component 1216 further includes near-field communication (NFC) module, to promote short distance
Communication.For example, radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band can be based in NFC module
(UWB) technology, bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 1200 can be by one or more application specific integrated circuit (ASIC), number
Signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array
(FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided
It such as include the memory 1204 of instruction, above-metioned instruction can be executed by the processor 1220 of device 1200 to complete the above method.Example
Such as, the non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, soft
Disk and optical data storage devices etc..
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure
Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or
Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure
Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following
Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and
And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.
Claims (10)
1. a kind of terminal control method, which is characterized in that be applied to terminal, the terminal includes processor interconnected with before
Camera is set, the front camera includes the sensor with phase-detection auto-focusing PDAF function, which comprises
The distance between the sensor detection object and the terminal;
The distance between the object that the sensor will test and the terminal are sent to the processor;
The processor executes predetermined registration operation according to the distance between the object and the terminal;
The distance between the sensor detection object and the terminal, comprising:
When the camera lens of the front camera is accurate to object focusing, the sensor obtains the front camera
Focal distance;
The sensor is calculated according to the distance between camera lens of the front camera to photosensitive element and the focal distance
The object obtains the distance between the object and the terminal at a distance from the camera lens of the front camera.
2. the method according to claim 1, wherein the terminal further includes screen controller, the processor
Predetermined registration operation is executed according to the distance between the object and the terminal, comprising:
It is described when the distance between the object and the terminal are less than or equal to the first preset threshold in communication process
Processor generates first control signal and is sent to the screen controller, and the first control signal is for controlling the terminal
Screen locking or closing;
When the distance between the object and the terminal are greater than or equal to the second preset threshold, the processor generates second
Control signal is simultaneously sent to the screen controller, and the second control signal is used to control the unlocking screen or point of the terminal
It is bright.
3. the method according to claim 1, wherein between the sensor detection object and the terminal away from
From, further includes:
The incident ray of the camera lens of the front camera is divided into pairs of image by the sensor;
The sensor calculates the phase difference of the pairs of image;
When the phase difference of the pairs of image is zero, it is quasi- to determine that the camera lens of the front camera focuses to the object
Really.
4. according to the method described in claim 3, it is characterized in that, the method also includes:
When the phase difference is not equal to zero, the sensor determines that focusing adjustment direction and focusing adjust according to the phase difference
Amount;
The sensor according to the focusing adjustment direction and focus adjustment amount to the position of the camera lens of the front camera into
Row adjustment.
5. a kind of terminal characterized by comprising
Processor;
Front camera, including the sensor with phase-detection auto-focusing PDAF function;
The sensor is connected to the processor, the distance between the object that the sensor will test and the terminal hair
It is sent to the processor;
The sensor obtains the front camera when the camera lens of the front camera is accurate to object focusing
Focal distance;According to the distance between camera lens of the front camera to photosensitive element and focal distance calculating
Object obtains the distance between the object and the terminal at a distance from the camera lens of the front camera.
6. terminal according to claim 5, which is characterized in that further include: the screen controller being connected to the processor;
It is described when the distance between the object and the terminal are less than or equal to the first preset threshold in communication process
Processor is generated for controlling the screen locking of the terminal or the first control signal of closing, and by the first control signal
It is sent to the screen controller;
When the distance between the object and the terminal are greater than or equal to the second preset threshold, the processor generation is used for
The second control signal for controlling the unlocking screen of the terminal or lighting, and the screen is sent by the second control signal
Controller;
The screen controller locks or closes screen according to the first control signal, or according to the second control signal solution
Lock or light screen.
7. terminal according to claim 5, which is characterized in that the sensor includes: separation camera lens, separates mirror with described
The linear sensing module of head connection, the processing module being connect with the linear sensing module;
The incident ray of the camera lens of the front camera, is divided into pairs of image by the separation camera lens;
The linear sensing module detects the phase difference between the pairs of image, according between the pairs of image
Phase difference generates linear signal, sends the processing module for the linear signal;
The processing module, when determining that the phase difference of the pairs of image is zero according to the linear signal, described in determination
It is accurate that the camera lens of front camera focuses to the object.
8. terminal according to claim 7, which is characterized in that the sensor further include: the mirror being connect with processing module
Head drive module;
The processing module, when determining the phase difference not equal to zero according to the linear signal, according to the linear signal
It determines focusing adjustment direction and focusing adjustment amount, driving signal is generated according to the burnt adjustment direction and focusing adjustment amount, by institute
It states driving signal and is sent to the lens driving module;
The lens driving module is adjusted according to position of the driving signal to the camera lens of the front camera.
9. terminal according to claim 5, which is characterized in that the front panel of the terminal has one preposition to take the photograph for described
As the aperture of head.
10. a kind of computer readable storage medium, is stored thereon with computer instruction, which is characterized in that the instruction is by processor
The step of any one of the claims 1-4 the method is realized when execution.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510272071.1A CN106303192B (en) | 2015-05-25 | 2015-05-25 | Terminal control method and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510272071.1A CN106303192B (en) | 2015-05-25 | 2015-05-25 | Terminal control method and terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106303192A CN106303192A (en) | 2017-01-04 |
CN106303192B true CN106303192B (en) | 2019-05-07 |
Family
ID=57634779
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510272071.1A Active CN106303192B (en) | 2015-05-25 | 2015-05-25 | Terminal control method and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106303192B (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107395897A (en) * | 2017-08-24 | 2017-11-24 | 惠州Tcl移动通信有限公司 | Mobile terminal goes out control method, storage device and the mobile terminal of screen |
CN108965579A (en) * | 2018-06-05 | 2018-12-07 | Oppo广东移动通信有限公司 | Method and device thereof, terminal and the storage medium of ranging are realized based on TOF camera |
JP6790318B2 (en) * | 2018-06-19 | 2020-11-25 | エスゼット ディージェイアイ テクノロジー カンパニー リミテッドSz Dji Technology Co.,Ltd | Unmanned aerial vehicles, control methods, and programs |
CN109375863A (en) * | 2018-09-27 | 2019-02-22 | Oppo广东移动通信有限公司 | Triggering method, device, terminal and the storage medium of objective function |
CN110008684A (en) * | 2019-04-11 | 2019-07-12 | 维沃移动通信有限公司 | A kind of unlocking screen method and terminal |
CN110381181A (en) * | 2019-06-28 | 2019-10-25 | 信利光电股份有限公司 | Future range inducing method, electronic device, storage medium and mobile terminal |
CN111460942B (en) * | 2020-03-23 | 2023-06-20 | Oppo广东移动通信有限公司 | Proximity detection method and device, computer readable medium and terminal equipment |
CN113556472B (en) * | 2021-09-22 | 2021-12-14 | 上海豪承信息技术有限公司 | Image compensation method, device, medium and front camera |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101064779A (en) * | 2006-04-27 | 2007-10-31 | 中兴通讯股份有限公司 | Method for realizing minisize camera automatic focusing and minisize camera thereof |
CN101951444A (en) * | 2010-09-29 | 2011-01-19 | 中兴通讯股份有限公司 | Method for realizing screen locking and unlocking of mobile terminal and mobile terminal |
CN102937866A (en) * | 2012-11-12 | 2013-02-20 | 北京小米科技有限责任公司 | Screen control method and terminal |
CN104469169A (en) * | 2014-12-29 | 2015-03-25 | 信利光电股份有限公司 | Phase ranging camera shooting module and automatic focusing method thereof |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104239079A (en) * | 2013-06-17 | 2014-12-24 | 鸿富锦精密工业(武汉)有限公司 | Electronic device operating system automatic awakening method and system |
-
2015
- 2015-05-25 CN CN201510272071.1A patent/CN106303192B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101064779A (en) * | 2006-04-27 | 2007-10-31 | 中兴通讯股份有限公司 | Method for realizing minisize camera automatic focusing and minisize camera thereof |
CN101951444A (en) * | 2010-09-29 | 2011-01-19 | 中兴通讯股份有限公司 | Method for realizing screen locking and unlocking of mobile terminal and mobile terminal |
CN102937866A (en) * | 2012-11-12 | 2013-02-20 | 北京小米科技有限责任公司 | Screen control method and terminal |
CN104469169A (en) * | 2014-12-29 | 2015-03-25 | 信利光电股份有限公司 | Phase ranging camera shooting module and automatic focusing method thereof |
Non-Patent Citations (1)
Title |
---|
半通过镜头无反光镜相位比较对焦数码相机系统;李研;《中国优秀硕士学位论文全文数据库》;20120415(第4期);第2.3.3节,图2-4 |
Also Published As
Publication number | Publication date |
---|---|
CN106303192A (en) | 2017-01-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106303192B (en) | Terminal control method and terminal | |
US10375296B2 (en) | Methods apparatuses, and storage mediums for adjusting camera shooting angle | |
CN105991930B (en) | Zoom processing method, device and the mobile terminal of dual camera | |
CN106210550B (en) | Mode regulating method and device | |
CN108419016B (en) | Shooting method and device and terminal | |
CN105245775B (en) | camera imaging method, mobile terminal and device | |
CN104219448B (en) | Image pickup method and device | |
WO2017128767A1 (en) | Fingerprint template input method and device | |
EP3032821A1 (en) | Method and device for shooting a picture | |
CN106375676A (en) | Photographing control method and device of terminal equipment, and terminal equipment | |
KR101906748B1 (en) | Iris image acquisition method and apparatus, and iris recognition device | |
CN106355549A (en) | Photographing method and equipment | |
CN105512615B (en) | Image processing method and device | |
CN105554389A (en) | Photographing method and photographing apparatus | |
CN104460185A (en) | Automatic focusing method and device | |
CN108259759A (en) | focusing method, device and storage medium | |
CN106131416A (en) | Zoom processing method, device and the mobile terminal of dual camera | |
CN109600549A (en) | Photographic method, device, equipment and storage medium | |
CN107426489A (en) | Processing method, device and terminal during shooting image | |
CN104506770A (en) | Method and device for photographing image | |
CN105611172B (en) | The reminding method and device that countdown is taken pictures | |
CN105959563A (en) | Image storing method and image storing apparatus | |
CN108629814A (en) | Camera method of adjustment and device | |
CN107122697A (en) | Automatic obtaining method and device, the electronic equipment of photo | |
CN109167921A (en) | Image pickup method, device, terminal and storage medium |
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 |