CN106303192A - Terminal control method and terminal - Google Patents

Terminal control method and terminal Download PDF

Info

Publication number
CN106303192A
CN106303192A CN201510272071.1A CN201510272071A CN106303192A CN 106303192 A CN106303192 A CN 106303192A CN 201510272071 A CN201510272071 A CN 201510272071A CN 106303192 A CN106303192 A CN 106303192A
Authority
CN
China
Prior art keywords
terminal
distance
sensor
facing 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.)
Granted
Application number
CN201510272071.1A
Other languages
Chinese (zh)
Other versions
CN106303192B (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.)
Beijing Xiaomi Technology Co Ltd
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201510272071.1A priority Critical patent/CN106303192B/en
Publication of CN106303192A publication Critical patent/CN106303192A/en
Application granted granted Critical
Publication of CN106303192B publication Critical patent/CN106303192B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Studio Devices (AREA)

Abstract

The disclosure is directed to a kind of terminal control method and terminal.Described method includes: the distance between described sensor detection object and described terminal;Distance between the described object detected and described terminal is sent to described processor by described sensor;Described processor performs predetermined registration operation according to the distance between described object and described terminal.The method using the disclosure to provide, can be sent to processor by the distance detected, makes processor can perform predetermined registration operation according to the distance between object and terminal.

Description

Terminal control method and terminal
Technical field
It relates to field of computer technology, particularly relate to a kind of terminal control method and terminal.
Background technology
In correlation technique, along with capture pixel and the definition of mobile phone constantly promote, and people are for hand-held Formula capture apparatus performance is more preferable, the demand that volume is less, compares use traditional camera and takes pictures, increasingly Many people are more likely to use mobile phone to take pictures.
Summary of the invention
Disclosure embodiment provides a kind of terminal control method and terminal.Described technical scheme is as follows:
First aspect according to disclosure embodiment, it is provided that a kind of terminal control method, is applied to terminal, institute State terminal and include that interconnective processor and front-facing camera, described front-facing camera include having phase place inspection Surveying the sensor of auto-focusing PDAF function, described method includes:
Distance between described sensor detection object and described terminal;
Distance between the described object detected and described terminal is sent to described process by described sensor Device;
Described processor performs predetermined registration operation according to the distance between described object and described terminal.
Embodiment of the disclosure that the technical scheme of offer can include following beneficial effect: can by detect away from From being sent to processor, make processor can perform predetermined registration operation according to the distance between object and terminal.
In one embodiment, described terminal also includes screen controller, and described processor is according to described object And the distance between described terminal performs predetermined registration operation, including:
In communication process, the distance between described object and described terminal presets threshold less than or equal to first During value, described processor generates the first control signal and is sent to described screen controller, and described first controls Signal is for controlling screen locking or the closedown of described terminal;
When distance between described object and described terminal is more than or equal to the second predetermined threshold value, described process Device generates the second control signal and is sent to described screen controller, and described second control signal is used for controlling institute State the unlocking screen of terminal or light.
For example, when user converses, now, in order to avoid maloperation, opponent's machine is known from experience with people Screen produces the distance of touch input as marginal value, preset one more than this marginal value close to threshold value, root The distance of mobile phone and object is obtained according to the method in step S11-S13.Due in communication process, the most all Be earpiece near user face, now, if it is determined that the distance of mobile phone and user face for less than or etc. When close to threshold value, processor generates the control signal of an instruction screen locking or cut out and is sent to screen control Device processed, screen controller is according to the locking of this control signal or closes screen.
It addition, so that one can be preset more than being somebody's turn to do to the distance of mobile phone screen generation touch input as marginal value Marginal value gradually from threshold value;When user open hand-free function converse time, or end of conversation need hang up Time, or when needing operating handset in communication process, mobile phone is taken away from user face, when detecting according to step The distance of the mobile phone that the method in rapid S11-S13 obtains and object more than or equal to preset gradually when threshold value, Processor generates a control signal indicating screen to start or to light and is sent to screen controller, screen control Device processed is opened according to this control signal or lights screen.
Embodiment of the disclosure that the technical scheme of offer can include following beneficial effect: the distance that will detect Compare with predetermined threshold value, when less than the first predetermined threshold value, control terminal screen locking or close, preventing User is imprudence touching screen generation maloperation in communication process;It addition, when more than the second predetermined threshold value, By unlocking screen or light, make user without manually lighting screen, it is achieved that the intelligence of terminal screen close and Light.
In one embodiment, the distance between described sensor detection object and described terminal, including:
When described object is focused accurate by the camera lens of described front-facing camera, before the acquisition of described sensor is described Put the focal distance of photographic head;
Described sensor is according to the distance between the camera lens of described front-facing camera to photo-sensitive cell and described right Defocus distance calculates the distance of described object and the camera lens of described front-facing camera, obtains described object and described end Distance between end.
Embodiment of the disclosure that the technical scheme of offer can include following beneficial effect: according to front-facing camera Camera lens can calculate the distance between object and terminal, i.e. to the distance between photo-sensitive cell and focal distance The distance between object and terminal can be obtained in the case of not by range sensor.
In one embodiment, the distance between described sensor detection object and described terminal, also include:
The incident ray of the camera lens of described front-facing camera is divided into paired image by described sensor;
Described sensor calculates the phase contrast of described paired image;
When the phase contrast of described paired image is zero, determine that the camera lens of described front-facing camera is to described thing Body focusing is accurately.
Embodiment of the disclosure that the technical scheme of offer can include following beneficial effect: can be directly by comparing In pairs the phase contrast of image completes the camera lens institute accurate focusing to object of front-facing camera, it is not necessary to as traditional right Imaging is repeatedly contrasted to clear during fuzzy by burnt mode like that from image blur again, thus greatly Width decreases the time used by focusing.
In one embodiment, described method also includes:
When described phase contrast is not equal to zero, described sensor determines focusing adjustment direction according to described phase contrast With focusing adjustment amount;
Described sensor is according to described focusing adjustment direction and the focusing adjustment amount mirror to described front-facing camera The position of head is adjusted.
Embodiment of the disclosure that the technical scheme of offer can include following beneficial effect: be not equal at phase contrast When zero, focusing adjustment direction and focusing adjustment amount can be determined according to phase contrast, and then by focusing adjustment direction With focusing adjustment amount, extreme position is adjusted, thus, can be completed with once adjusting by once focusing Focusing, further reduces the time used by focusing.
Second aspect according to disclosure embodiment, it is provided that a kind of terminal, including:
Processor;
Front-facing camera, including the sensor with phase-detection auto-focusing PDAF function;
Described sensor is connected with described processor, described sensor by the object that detects and described terminal it Between distance be sent to described processor.
Embodiment of the disclosure that the technical scheme of offer can include following beneficial effect: directly taken the photograph by preposition As head has the sensor of phase-detection auto-focusing PDAF function detect object between terminal away from From, make terminal can detect object in the case of without mounting distance sensor to the distance between terminal, Save the cost of manufacture of terminal.
In one embodiment, terminal also includes: the screen controller being connected with described processor;
In communication process, the distance between described object and described terminal presets threshold less than or equal to first During value, described processor generates for controlling the screen locking of described terminal or the first control signal of cut out, And described first control signal is sent to described screen controller;
When distance between described object and described terminal is more than or equal to the second predetermined threshold value, described process Device generates the unlocking screen for controlling described terminal or the second control signal lighted, and by described second control Signal processed is sent to described screen controller;
Described screen controller is according to described first control signal locking or closes screen, or according to described second Control signal unlocks or lights screen.
Embodiment of the disclosure that the technical scheme of offer can include following beneficial effect: sensing without mobile phone Device, achieve screen without in the case of calculating screen and signal of telecommunication during human body proximity or coupling capacitance variations The intelligence of curtain is closed and lights.
In one embodiment, described sensor, when described object is focused by the camera lens of described front-facing camera Time accurately, obtain the focal distance of described front-facing camera;Camera lens according to described front-facing camera is to photosensitive Distance between element and described focal distance calculate the described object camera lens with described front-facing camera away from From, obtain the distance between described object and described terminal.
Embodiment of the disclosure that the technical scheme of offer can include following beneficial effect: according to front-facing camera Camera lens can calculate the distance between object and terminal, i.e. to the distance between photo-sensitive cell and focal distance The distance between object and terminal can be obtained in the case of not by range sensor.
In one embodiment, described sensor includes: separate camera lens, separates, with described, the line that camera lens connects Property sensing module, the processing module being connected with described linear sensing module;
Described separation camera lens, is divided into paired image by the incident ray of the camera lens of described front-facing camera;
Described linear sensing module, detects the phase contrast between described paired image, according to described paired Phase contrast between image generates linear signal, and described linear signal is sent to described processing module;
Described processing module, when the phase contrast determining described paired image according to described linear signal is zero Time, determine the camera lens of described front-facing camera to the focusing of described object accurately.
Embodiment of the disclosure that the technical scheme of offer can include following beneficial effect: can be directly by comparing In pairs the phase contrast of image completes the camera lens institute accurate focusing to object of front-facing camera, it is not necessary to as traditional right Imaging is repeatedly contrasted to clear during fuzzy by burnt mode like that from image blur again, thus greatly Width decreases the time used by focusing.
In one embodiment, described sensor also includes: the lens driving module being connected with processing module;
Described processing module, when determining that described phase contrast is not equal to zero according to described linear signal, according to institute State linear signal and determine focusing adjustment direction and focusing adjustment amount, adjust according to described burnt adjustment direction and focusing Amount generates and drives signal, and described driving signal is sent to described lens driving module;
Described lens driving module, enters the position of the camera lens of described front-facing camera according to described driving signal Row sum-equal matrix.
Embodiment of the disclosure that the technical scheme of offer can include following beneficial effect: be not equal at phase contrast When zero, focusing adjustment direction and focusing adjustment amount can be determined according to phase contrast, and then by focusing adjustment direction With focusing adjustment amount, extreme position is adjusted, thus, can be completed with once adjusting by once focusing Focusing, further reduces the time used by focusing.
In one embodiment, the front panel of described terminal has a perforate for described front-facing camera.
Embodiment of the disclosure that the technical scheme of offer can include following beneficial effect: be used for by one having The front-facing camera having PDAF function can have simultaneously photographic head and P-sensor (Proximity sensor, Nearly object sensor) function, it is only necessary to the perforate of a photographic head, decrease the number of aperture of terminal Amount.
It should be appreciated that it is only exemplary and explanatory that above general description and details hereinafter describe , the disclosure can not be limited.
Accompanying drawing explanation
Accompanying drawing herein is merged in description and constitutes the part of this specification, it is shown that meet the disclosure Embodiment, and for explaining the principle of the disclosure together with description.
Fig. 1 is the flow chart according to a kind of terminal control method shown in an exemplary embodiment;
Fig. 2 is the flow chart according to a kind of terminal control method shown in an exemplary embodiment;
Fig. 3 is the flow chart according to a kind of terminal control method shown in an exemplary embodiment;
Fig. 4 is the flow chart according to a kind of terminal control method shown in an exemplary embodiment;
Fig. 5 is the flow chart according to a kind of terminal control method shown in an exemplary embodiment;
Fig. 6 is the flow chart according to a kind of terminal control method shown in an exemplary embodiment;
Fig. 7 is the block diagram according to a kind of terminal shown in an exemplary embodiment;
Fig. 8 is the block diagram according to a kind of terminal shown in an exemplary embodiment;
Fig. 9 is the block diagram according to a kind of terminal shown in an exemplary embodiment;
Figure 10 is the block diagram according to a kind of terminal shown in an exemplary embodiment;
Figure 11 is the block diagram according to a kind of terminal shown in an exemplary embodiment;
Figure 12 is the block diagram according to a kind of terminal shown in an exemplary embodiment.
Detailed description of the invention
Here will illustrate exemplary embodiment in detail, its example represents in the accompanying drawings.Following retouches Stating when relating to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represents same or analogous key element. Embodiment described in following exemplary embodiment does not represent all enforcements consistent with the disclosure Mode.On the contrary, they only with describe in detail in appended claims, the disclosure some in terms of phase The example of consistent apparatus and method.
Fig. 1 is the flow chart according to a kind of terminal control method shown in an exemplary embodiment, such as Fig. 1 institute Showing, this terminal control method in the terminal, comprises the following steps S11-S13:
In step s 11, the distance between sensor detection object and terminal;
In step s 12, the distance between the object detected and terminal is sent to processor by sensor;
In step s 13, processor performs predetermined registration operation according to the distance between object and terminal.
Embodiment of the disclosure that the technical scheme of offer can include following beneficial effect: can by detect away from From being sent to processor, make processor can perform predetermined registration operation according to the distance between object and terminal.
In one embodiment, as in figure 2 it is shown, when terminal includes screen controller, processor is according to thing Distance between body and terminal performs predetermined registration operation can comprise the following steps S21-S22:
In the step s 21, in communication process, the distance between object and terminal is less than or equal to first During predetermined threshold value, processor generates the first control signal and is sent to screen controller, and the first control signal is used In the screen locking or the closedown that control terminal;
In step S22, when the distance between object and terminal is more than or equal to the second predetermined threshold value, place Reason device generates the second control signal and is sent to screen controller, and the second control signal is for controlling the screen of terminal Curtain unlocks or lights.
For example, when user converses, now, in order to avoid maloperation, opponent's machine is known from experience with people Screen produces the distance of touch input as marginal value, preset one more than this marginal value close to threshold value, root The distance of mobile phone and object is obtained according to the method in step S11-S13.Due in communication process, the most all Be earpiece near user face, now, if it is determined that the distance of mobile phone and user face for less than or etc. When close to threshold value, processor generates the control signal of an instruction screen locking or cut out and is sent to screen control Device processed, screen controller is according to the locking of this control signal or closes screen.
It addition, so that one can be preset more than being somebody's turn to do to the distance of mobile phone screen generation touch input as marginal value Marginal value gradually from threshold value;When user open hand-free function converse time, or end of conversation need hang up Time, or when needing operating handset in communication process, mobile phone is taken away from user face, when detecting according to step The distance of the mobile phone that the method in rapid S11-S13 obtains and object more than or equal to preset gradually when threshold value, Processor generates a control signal indicating screen to start or to light and is sent to screen controller, screen control Device processed is opened according to this control signal or lights screen.
Embodiment of the disclosure that the technical scheme of offer can include following beneficial effect: the distance that will detect Compare with predetermined threshold value, when less than the first predetermined threshold value, control terminal screen locking or close, preventing User is imprudence touching screen generation maloperation in communication process;It addition, when more than the second predetermined threshold value, By unlocking screen or light, make user without manually lighting screen, it is achieved that the intelligence of terminal screen close and Light.
In one embodiment, as it is shown on figure 3, the distance between sensor detection object and terminal can include Following steps S31-S32:
In step S31, when object is focused accurate by the camera lens of front-facing camera, sensor obtains preposition The focal distance of photographic head;
In step s 32, sensor is according to the distance between the camera lens of front-facing camera to photo-sensitive cell and right Defocus distance calculates the distance of object and the camera lens of front-facing camera, obtains the distance between object and terminal.
For example, when mobile phone front-facing camera camera lens to object focusing accurate time, embedded in mobile phone Sensitive chip obtains focal distance A of mobile phone front-facing camera, i.e. distance between object and imaging. And then deduct the camera lens of mobile phone front-facing camera between the photo-sensitive cell of embedded in mobile phone by focal distance A Distance B, distance B of the camera lens of focal distance A and mobile phone front-facing camera is subtracted each other gained difference and is hands The camera lens of machine front-facing camera to distance C between object to mobile phone, i.e. A-B=C.
Embodiment of the disclosure that the technical scheme of offer can include following beneficial effect: according to front-facing camera Camera lens can calculate the distance between object and terminal, i.e. to the distance between photo-sensitive cell and focal distance The distance between object and terminal can be obtained in the case of not by range sensor.
In one embodiment, as shown in Figure 4, before step S31, can also include the steps of S41-S43:
In step S41, the incident ray of the camera lens of front-facing camera is divided into paired image by sensor;
In step S42, sensor be calculated as to the phase contrast of image;
In step S43, when the phase contrast of paired image is zero, determine the camera lens pair of front-facing camera Object focusing is accurately.
Embodiment of the disclosure that the technical scheme of offer can include following beneficial effect: can be directly by comparing In pairs the phase contrast of image completes the camera lens institute accurate focusing to object of front-facing camera, it is not necessary to as traditional right Imaging is repeatedly contrasted to clear during fuzzy by burnt mode like that from image blur again, thus greatly Width decreases the time used by focusing.
In one embodiment, as it is shown in figure 5, method may also include step S51-S52:
In step s 51, when phase contrast is not equal to zero, sensor determines focusing adjustment side according to phase contrast To with focusing adjustment amount;
In step S52, sensor is according to focusing adjustment direction and the focusing adjustment amount mirror to front-facing camera The position of head is adjusted.
For example, the incident ray of the camera lens of front-facing camera is divided into paired image by sensor;Sensing Device be calculated as to the phase contrast of image;When phase contrast is not zero, sensor determines focusing according to phase contrast Adjustment direction and focusing adjustment amount;And according to focusing adjustment direction and the focusing adjustment amount mirror to front-facing camera The position of head is adjusted;When performing adjustment operation and being correct, the phase contrast of the paired image after adjustment is Zero, when the phase contrast of paired image is zero, determine the camera lens of front-facing camera to object focusing accurately. Such scheme has abandoned the process of comparison repeatedly in traditional focus process, it is thus only necessary to once focusing and once Adjust and just can complete to focus accurately.
Embodiment of the disclosure that the technical scheme of offer can include following beneficial effect: be not equal at phase contrast When zero, focusing adjustment direction and focusing adjustment amount can be determined according to phase contrast, and then by focusing adjustment direction With focusing adjustment amount, extreme position is adjusted, thus, can be completed with once adjusting by once focusing Focusing, further reduces the time used by focusing.
Fig. 6 is the flow chart according to a kind of terminal control method shown in an exemplary embodiment, such as Fig. 6 institute Showing, this terminal control method in the terminal, comprises the following steps S601-S610:
In step s 601, the incident ray of the camera lens of front-facing camera is divided into paired image by sensor;
In step S602, sensor be calculated as to the phase contrast of image;
In step S603, when phase contrast is not equal to zero, according to phase contrast, sensor determines that focusing adjusts Direction and focusing adjustment amount;
In step s 604, sensor is according to focusing adjustment direction with adjustment amount of focusing to front-facing camera The position of camera lens is adjusted;
In step s 605, when the phase contrast of paired image is zero, the camera lens of front-facing camera is determined To object focusing accurately;
In step S606, when object is focused accurate by the camera lens of front-facing camera, before sensor obtains Put the focal distance of photographic head;
In step S607, sensor according to the distance between the camera lens of front-facing camera to photo-sensitive cell and Focal distance calculates the distance of object and the camera lens of front-facing camera, obtains the distance between object and terminal;
In step S608, the distance between object and terminal is sent to processor by sensor;
In step S609, in communication process, the distance between object and terminal is less than or equal to the During one predetermined threshold value, processor generates the first control signal and is sent to screen controller, the first control signal For controlling screen locking or the closedown of terminal;
In step S610, when the distance between object and terminal is more than or equal to the second predetermined threshold value, Processor generates the second control signal and is sent to screen controller, and the second control signal is for controlling terminal Unlocking screen or light.
As a example by user is conversed by mobile phone, mobile phone, when human body, is known from experience opponent's machine screen with people and is produced The distance of raw touch input as marginal value, preset one more than this marginal value close to threshold value, then preset one Individual more than this marginal value gradually from threshold value, in communication process, mobile phone to object behave face, mobile phone The incident ray of the camera lens of front-facing camera is divided into paired face image by built-in sensors, and be calculated as right The phase contrast of image, when the phase contrast of this paired image is not zero, it is right that sensor determines according to this phase contrast Burnt adjustment direction and focusing adjustment amount, and take the photograph preposition according to the focusing adjustment direction determined and focusing adjustment amount As the position of the camera lens of head is adjusted, when the phase contrast of paired image is zero, determine front-facing camera Camera lens to be accurately to the focusing of object, this phase contrast by paired image carries out the side focused Formula is similar to animal or the principle of mankind's eyes focusing.And when the camera lens of preposition head portrait is accurate to the focusing of object Time really, the sensitive chip of embedded in mobile phone obtains focal distance A of mobile phone front-facing camera, i.e. object and is become As between distance.And then deduct the camera lens of mobile phone front-facing camera to embedded in mobile phone by focal distance A Photo-sensitive cell between distance B, distance B of focal distance A and the camera lens of mobile phone front-facing camera is subtracted each other Gained difference be the camera lens of mobile phone front-facing camera to distance C between object to mobile phone, i.e. A-B=C.Distance between face and terminal is sent to processor by sensor;If it is determined that mobile phone and user The distance of face is for less than or equal to during close to threshold value, and processor generates an instruction screen locking or cut out Control signal is sent to screen controller, and screen controller is according to the locking of this control signal or closes screen.When User opens hand-free function when conversing, or when end of conversation needs to hang up, or communication process needs When wanting operating handset, mobile phone is taken away from user face, when the distance of mobile phone and object is more than or equal to presetting Gradually when threshold value, processor generates a control signal indicating screen to start or to light and is sent to screen control Device processed, screen controller is opened according to this control signal or lights screen.
It should be noted that the distance between object and terminal can also obtain in the following way: when preposition The camera lens of head portrait to the focusing of object accurate time, distance a of photo-sensitive cell and parfocal plane is put down with parfocal Face is definite value to distance b of camera lens, therefore can be according to light at the incident angle of photo-sensitive cell and camera lens Direction adjustment amount and distance both adjustment amounts obtain the camera lens incident angle to parfocal plane, then pass through mirror The refractive index of head obtains the incidence in camera lens the top with two incident raies of bottom of the same point of object The distance of angle and camera lens the top and bottom obtains the distance between camera lens and object.
Embodiment of the disclosure that the technical scheme of offer can include following beneficial effect: without mounting distance Sensor determines without in the case of calculating screen and signal of telecommunication during human body proximity or coupling capacitance variations Face is to the distance between mobile phone, and compares with predetermined threshold value according to the distance determined, when pre-less than first If during threshold value, control terminal screen locking or close, preventing user's imprudence touching screen in communication process There is maloperation;It addition, when more than the second predetermined threshold value, by unlocking screen or light, make user without Manually light screen.I.e. without mobile phone sensor, without signal of telecommunication when calculating screen with human body proximity Or achieve the intelligence closedown of screen in the case of coupling capacitance variations and light.
Fig. 7 is the block diagram according to a kind of terminal shown in an exemplary embodiment, as it is shown in fig. 7, this terminal 700 include:
Processor 71;
Front-facing camera 72, this front-facing camera 72 includes having phase-detection auto-focusing PDAF function Sensor 721;
This sensor 721 is connected with processor 71, and sensor 721 is by the object detected and terminal 700 Between distance be sent to processor 71.
Embodiment of the disclosure that the technical scheme of offer can include following beneficial effect: directly taken the photograph by preposition As head has the sensor of phase-detection auto-focusing PDAF function detect object between terminal away from From, make terminal can detect object in the case of without mounting distance sensor to the distance between terminal, Save the cost of manufacture of terminal.
In one embodiment, as shown in Figure 8, terminal 700 also includes: the screen being connected with processor 71 Curtain controller 81;
In communication process, when the distance between object and terminal is less than or equal to the first predetermined threshold value, place Reason device 71 generates for controlling the screen locking of terminal or the first control signal of cut out, and controls first Signal is sent to screen controller 81;
When distance between object and terminal is more than or equal to the second predetermined threshold value, processor 71 generates to be used In the unlocking screen controlling terminal or the second control signal lighted, and the second control signal is sent to screen Controller 81;
Screen controller 81 is according to the first control signal locking or closes screen, or according to the second control signal Unlock or light screen.
Embodiment of the disclosure that the technical scheme of offer can include following beneficial effect: sensing without mobile phone Device, achieve screen without in the case of calculating screen and signal of telecommunication during human body proximity or coupling capacitance variations The intelligence of curtain is closed and lights.
In one embodiment, when object is focused accurate by the camera lens of front-facing camera, preposition shooting is obtained The focal distance of head;Camera lens according to front-facing camera calculates to the distance between photo-sensitive cell and focal distance Object and the distance of the camera lens of front-facing camera, obtain the distance between object and terminal.
Embodiment of the disclosure that the technical scheme of offer can include following beneficial effect: according to front-facing camera Camera lens can calculate the distance between object and terminal, i.e. to the distance between photo-sensitive cell and focal distance The distance between object and terminal can be obtained in the case of not by range sensor.
In one embodiment, as it is shown in figure 9, sensor 721 includes: separate camera lens 91, and separate mirror The linear sensing module 92 that head connects, the processing module 93 being connected with linear sensing module;
Separate camera lens 91, the incident ray of the camera lens of front-facing camera is divided into paired image;
Linear sensing module 92, detects the phase contrast between paired image, between paired image Phase contrast generates linear signal, and linear signal is sent to processing module 93;
Processing module 93, when the phase contrast determining paired image according to linear signal is zero, determines preposition The camera lens of photographic head is to object focusing accurately.
Embodiment of the disclosure that the technical scheme of offer can include following beneficial effect: can be directly by comparing In pairs the phase contrast of image completes the camera lens institute accurate focusing to object of front-facing camera, it is not necessary to as traditional right Imaging is repeatedly contrasted to clear during fuzzy by burnt mode like that from image blur again, thus greatly Width decreases the time used by focusing.
In one embodiment, as shown in Figure 10, sensor 721 also includes: be connected with processing module 93 Lens driving module 101;
Processing module 93, when determining that phase contrast is not equal to zero according to linear signal, determines according to linear signal Focusing adjustment direction and focusing adjustment amount, generate drive signal according to burnt adjustment direction and focusing adjustment amount, will Signal is driven to be sent to lens driving module;
Lens driving module 101, is adjusted the position of the camera lens of front-facing camera according to driving signal.
For example, the incident ray of the camera lens of front-facing camera is divided into paired image by sensor;Sensing Device be calculated as to the phase contrast of image;When phase contrast is not zero, sensor determines focusing according to phase contrast Adjustment direction and focusing adjustment amount;And according to focusing adjustment direction and the focusing adjustment amount mirror to front-facing camera The position of head is adjusted;When performing adjustment operation and being correct, the phase contrast of the paired image after adjustment is Zero, when the phase contrast of paired image is zero, determine the camera lens of front-facing camera to object focusing accurately. Such scheme has abandoned the process of comparison repeatedly in traditional focus process, it is thus only necessary to once focusing and once Adjust and just can complete to focus accurately.
Embodiment of the disclosure that the technical scheme of offer can include following beneficial effect: be not equal at phase contrast When zero, focusing adjustment direction and focusing adjustment amount can be determined according to phase contrast, and then by focusing adjustment direction With focusing adjustment amount, extreme position is adjusted, thus, can be completed with once adjusting by once focusing Focusing, further reduces the time used by focusing.
In one embodiment, as shown in figure 11, the front panel 111 of terminal 700 has one for preposition The perforate 112 of photographic head.
In the mobile phone of correlation technique, in addition to receiver, being provided with two perforates, a perforate is for light Sensor+range sensor;Another perforate is used for front-facing camera, in the disclosure, in front-facing camera Including having the sensor of phase-detection auto-focusing PDAF function, can substitute for light sensor+distance Sensor, the most only needs to arrange the perforate of front-facing camera.
Embodiment of the disclosure that the technical scheme of offer can include following beneficial effect: be used for by one having The front-facing camera having PDAF function can have simultaneously photographic head and P-sensor (Proximity sensor, Nearly object sensor) function, it is only necessary to the perforate of a photographic head, decrease the number of aperture of terminal Amount.
About the device in above-described embodiment, wherein modules performs the concrete mode of operation relevant The embodiment of the method is described in detail, explanation will be not set forth in detail herein.
Figure 12 is the frame according to a kind of device 1200 for terminal control shown in an exemplary embodiment Figure.Such as, device 1200 can be mobile phone, computer, digital broadcast terminal, and information receiving and transmitting sets Standby, game console, tablet device, armarium, body-building equipment, personal digital assistant etc..
As shown in figure 12, device 1200 can include following one or more assembly: processes assembly 1202, Memorizer 1204, power supply module 1206, multimedia groupware 1208, audio-frequency assembly 1210, input/output (I/ O) interface 1212, sensor cluster 1214, and communications component 1216.
Process assembly 1202 and generally control the integrated operation of device 1200, such as with display, call, The operation that data communication, camera operation and record operation are associated.Process assembly 1202 and can include one Or multiple processor 1220 performs instruction, to complete all or part of step of above-mentioned method.Additionally, Process assembly 1202 and can include one or more module, it is simple to process between assembly 1202 and other assemblies Mutual.Such as, process assembly 1202 and can include multi-media module, to facilitate multimedia groupware 1208 And process between assembly 1202 mutual.
Memorizer 1204 is configured to store various types of data to support the operation at equipment 1200.This The example of a little data includes any application program for operation on device 1200 or the instruction of method, connection It is personal data, telephone book data, message, picture, video etc..Memorizer 1204 can be by any type Volatibility or non-volatile memory device or combinations thereof realize, such as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), the read-only storage of erasable programmable Device (EPROM), programmable read only memory (PROM), read only memory (ROM), magnetic memory, Flash memory, disk or CD.
The various assemblies that power supply module 1206 is device 1200 provide electric power.Power supply module 1206 can wrap Include power-supply management system, one or more power supplys, and other generate with for device 1200, manage and distribute The assembly that electric power is associated.
One output interface of offer that multimedia groupware 1208 is included between described device 1200 and user Screen.In certain embodiments, screen can include liquid crystal display (LCD) and touch panel (TP). If screen includes that touch panel, screen may be implemented as touch screen, to receive the input letter from user Number.Touch panel includes that one or more touch sensor is with the hands on sensing touch, slip and touch panel Gesture.Described touch sensor can not only sense touch or the border of sliding action, but also detection is with described Touch or persistent period that slide is relevant and pressure.In certain embodiments, multimedia groupware 1208 Including a front-facing camera and/or post-positioned pick-up head.When equipment 1200 is in operator scheme, such as shooting mould When formula or video mode, front-facing camera and/or post-positioned pick-up head can receive the multi-medium data of outside.Often Individual front-facing camera and post-positioned pick-up head can be a fixing optical lens system or have focal length and light Learn zoom capabilities.
Audio-frequency assembly 1210 is configured to output and/or input audio signal.Such as, audio-frequency assembly 1210 Including a mike (MIC), when device 1200 is in operator scheme, such as call model, logging mode During with speech recognition mode, mike is configured to receive external audio signal.The audio signal received can To be further stored at memorizer 1204 or to send via communications component 1216.In certain embodiments, Audio-frequency assembly 1210 also includes a speaker, is used for exporting audio signal.
I/O interface 1212 provides interface, above-mentioned periphery for processing between assembly 1202 and peripheral interface module Interface module can be keyboard, puts striking wheel, button etc..These buttons may include but be not limited to: home button, Volume button, start button and locking press button.
Sensor cluster 1214 includes one or more sensor, for providing various aspects for device 1200 State estimation.Such as, what sensor cluster 1214 can detect equipment 1200 opens/closed mode, The relative localization of assembly, the most described assembly is display and the keypad of device 1200, sensor cluster 1214 position changes that can also detect device 1200 or 1,200 1 assemblies of device, user and device 1200 The presence or absence of contact, device 1200 orientation or acceleration/deceleration and the variations in temperature of device 1200.Pass Sensor assembly 1214 can include proximity transducer, is configured to when not having any physical contact examine The existence of object near surveying.Sensor cluster 1214 can also include optical sensor, such as CMOS or CCD Imageing sensor, for using in imaging applications.In certain embodiments, this sensor cluster 1214 Acceleration transducer, gyro sensor, Magnetic Sensor, pressure transducer or temperature sensing can also be included Device.
Communications component 1216 is configured to facilitate wired or wireless mode between device 1200 and other equipment Communication.Device 1200 can access wireless network based on communication standard, such as WiFi, 2G or 3G, or Combinations thereof.In one exemplary embodiment, communications component 1216 via broadcast channel receive from The broadcast singal of external broadcasting management system or broadcast related information.In one exemplary embodiment, described Communications component 1216 also includes near-field communication (NFC) module, to promote junction service.Such as, at NFC Module can be based on RF identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra broadband (UWB) Technology, bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, device 1200 can be by one or more application specific integrated circuits (ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), FPGA Device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or Other electronic components realize, and are used for performing said method.
In the exemplary embodiment, a kind of non-transitory computer-readable storage medium including instruction is additionally provided Matter, such as, include the memorizer 1204 of instruction, and above-mentioned instruction can be performed by the processor 1220 of device 1200 To complete said method.Such as, described non-transitory computer-readable recording medium can be ROM, with Machine access memorizer (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc..
Those skilled in the art, after considering description and putting into practice invention disclosed herein, will readily occur to these public affairs Other embodiment opened.The application is intended to any modification, purposes or the adaptations of the disclosure, These modification, purposes or adaptations are followed the general principle of the disclosure and include that the disclosure is not disclosed Common knowledge in the art or conventional techniques means.Description and embodiments is considered only as exemplary , the true scope of the disclosure and spirit are pointed out by claim below.
It should be appreciated that the disclosure is not limited to accurate knot described above and illustrated in the accompanying drawings Structure, and various modifications and changes can carried out without departing from the scope.The scope of the present disclosure is only by appended Claim limits.

Claims (11)

1. a terminal control method, it is characterised in that be applied to terminal, described terminal includes interconnecting mutually The processor connect and front-facing camera, described front-facing camera includes having phase-detection auto-focusing PDAF The sensor of function, described method includes:
Distance between described sensor detection object and described terminal;
Distance between the described object detected and described terminal is sent to described process by described sensor Device;
Described processor performs predetermined registration operation according to the distance between described object and described terminal.
Method the most according to claim 1, it is characterised in that described terminal also includes screen control Device, described processor performs predetermined registration operation according to the distance between described object and described terminal, including:
In communication process, the distance between described object and described terminal presets threshold less than or equal to first During value, described processor generates the first control signal and is sent to described screen controller, and described first controls Signal is for controlling screen locking or the closedown of described terminal;
When distance between described object and described terminal is more than or equal to the second predetermined threshold value, described process Device generates the second control signal and is sent to described screen controller, and described second control signal is used for controlling institute State the unlocking screen of terminal or light.
Method the most according to claim 1, it is characterised in that described sensor detection object and institute State the distance between terminal, including:
When described object is focused accurate by the camera lens of described front-facing camera, before the acquisition of described sensor is described Put the focal distance of photographic head;
Described sensor is according to the distance between the camera lens of described front-facing camera to photo-sensitive cell and described right Defocus distance calculates the distance of described object and the camera lens of described front-facing camera, obtains described object and described end Distance between end.
Method the most according to claim 3, it is characterised in that described sensor detection object and institute State the distance between terminal, also include:
The incident ray of the camera lens of described front-facing camera is divided into paired image by described sensor;
Described sensor calculates the phase contrast of described paired image;
When the phase contrast of described paired image is zero, determine that the camera lens of described front-facing camera is to described thing Body focusing is accurately.
Method the most according to claim 4, it is characterised in that described method also includes:
When described phase contrast is not equal to zero, described sensor determines focusing adjustment direction according to described phase contrast With focusing adjustment amount;
Described sensor is according to described focusing adjustment direction and the focusing adjustment amount mirror to described front-facing camera The position of head is adjusted.
6. a terminal, it is characterised in that including:
Processor;
Front-facing camera, including the sensor with phase-detection auto-focusing PDAF function;
Described sensor is connected with described processor, described sensor by the object that detects and described terminal it Between distance be sent to described processor.
Terminal the most according to claim 6, it is characterised in that also include: with described processor even The screen controller connect;
In communication process, the distance between described object and described terminal presets threshold less than or equal to first During value, described processor generates for controlling the screen locking of described terminal or the first control signal of cut out, And described first control signal is sent to described screen controller;
When distance between described object and described terminal is more than or equal to the second predetermined threshold value, described process Device generates the unlocking screen for controlling described terminal or the second control signal lighted, and by described second control Signal processed is sent to described screen controller;
Described screen controller is according to described first control signal locking or closes screen, or according to described second Control signal unlocks or lights screen.
Terminal the most according to claim 6, it is characterised in that described sensor, when described preposition When described object is focused accurate by the camera lens of photographic head, obtain the focal distance of described front-facing camera;According to The camera lens of described front-facing camera calculates described object to the distance between photo-sensitive cell and described focal distance With the distance of the camera lens of described front-facing camera, obtain the distance between described object and described terminal.
Terminal the most according to claim 6, it is characterised in that described sensor includes: separate mirror Head, separates the linear sensing module that camera lens connects, the process mould being connected with described linear sensing module with described Block;
Described separation camera lens, is divided into paired image by the incident ray of the camera lens of described front-facing camera;
Described linear sensing module, detects the phase contrast between described paired image, according to described paired Phase contrast between image generates linear signal, and described linear signal is sent to described processing module;
Described processing module, when the phase contrast determining described paired image according to described linear signal is zero Time, determine the camera lens of described front-facing camera to the focusing of described object accurately.
Terminal the most according to claim 9, it is characterised in that described sensor also includes: with place The lens driving module that reason module connects;
Described processing module, when determining that described phase contrast is not equal to zero according to described linear signal, according to institute State linear signal and determine focusing adjustment direction and focusing adjustment amount, adjust according to described burnt adjustment direction and focusing Amount generates and drives signal, and described driving signal is sent to described lens driving module;
Described lens driving module, enters the position of the camera lens of described front-facing camera according to described driving signal Row sum-equal matrix.
11. terminals according to claim 6, it is characterised in that the front panel of described terminal has one Perforate for described front-facing camera.
CN201510272071.1A 2015-05-25 2015-05-25 Terminal control method and terminal Active CN106303192B (en)

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 true CN106303192A (en) 2017-01-04
CN106303192B 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)

Cited By (8)

* Cited by examiner, † Cited by third party
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
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
WO2019242616A1 (en) * 2018-06-19 2019-12-26 深圳市大疆创新科技有限公司 Determination apparatus, image capture system, moving object, synthesis system, determination method, and program
CN111460942A (en) * 2020-03-23 2020-07-28 Oppo广东移动通信有限公司 Proximity detection method and device, computer readable medium and terminal equipment
CN113556472A (en) * 2021-09-22 2021-10-26 上海豪承信息技术有限公司 Image compensation method, device, medium and front camera

Citations (5)

* Cited by examiner, † Cited by third party
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
US20140372737A1 (en) * 2013-06-17 2014-12-18 Hon Hai Precision Industry Co., Ltd. Electronic device and method for automatically waking up operating system of electronic device
CN104469169A (en) * 2014-12-29 2015-03-25 信利光电股份有限公司 Phase ranging camera shooting module and automatic focusing method thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
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
US20140372737A1 (en) * 2013-06-17 2014-12-18 Hon Hai Precision Industry Co., Ltd. Electronic device and method for automatically waking up operating system of electronic device
CN104469169A (en) * 2014-12-29 2015-03-25 信利光电股份有限公司 Phase ranging camera shooting module and automatic focusing method thereof

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李研: "半通过镜头无反光镜相位比较对焦数码相机系统", 《中国优秀硕士学位论文全文数据库》 *

Cited By (10)

* Cited by examiner, † Cited by third party
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
WO2019242616A1 (en) * 2018-06-19 2019-12-26 深圳市大疆创新科技有限公司 Determination apparatus, image capture system, moving object, synthesis system, determination method, and program
CN111264055A (en) * 2018-06-19 2020-06-09 深圳市大疆创新科技有限公司 Specifying device, imaging system, moving object, synthesizing system, specifying method, and program
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
CN111460942A (en) * 2020-03-23 2020-07-28 Oppo广东移动通信有限公司 Proximity detection method and device, computer readable medium and terminal equipment
CN111460942B (en) * 2020-03-23 2023-06-20 Oppo广东移动通信有限公司 Proximity detection method and device, computer readable medium and terminal equipment
CN113556472A (en) * 2021-09-22 2021-10-26 上海豪承信息技术有限公司 Image compensation method, device, medium and front camera

Also Published As

Publication number Publication date
CN106303192B (en) 2019-05-07

Similar Documents

Publication Publication Date Title
US10375296B2 (en) Methods apparatuses, and storage mediums for adjusting camera shooting angle
CN106303192A (en) Terminal control method and terminal
CN105245775B (en) camera imaging method, mobile terminal and device
WO2017128767A1 (en) Fingerprint template input method and device
CN104683691B (en) Image pickup method, device and equipment
EP3544286B1 (en) Focusing method, device and storage medium
CN107122679A (en) Image processing method and device
CN104243819A (en) Photo acquiring method and device
CN106408603A (en) Camera method and device
CN106210550A (en) Mode regulating method and device
CN106355549A (en) Photographing method and equipment
CN107155060A (en) Image processing method and device
CN104038704A (en) Backlight portrait scene photographing processing method and device
CN105554389A (en) Photographing method and photographing apparatus
EP3113071A1 (en) Method and device for acquiring iris image
CN104460185A (en) Automatic focusing method and device
CN105301183B (en) Detection of Air Quality method and apparatus
CN104243829A (en) Self-shooting method and self-shooting device
US20110294545A1 (en) Device with camera
CN105208284A (en) Photographing reminding method and device
CN104050645A (en) Image processing method and device
CN106033397A (en) Method and device for adjusting memory buffer, and terminal
CN107102801A (en) Terminal screen spinning solution and device
CN104506770A (en) Method and device for photographing image
CN106550226A (en) Projected picture correcting method and device

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