CN104679240B - A kind of method of terminal control - Google Patents

A kind of method of terminal control Download PDF

Info

Publication number
CN104679240B
CN104679240B CN201510038796.4A CN201510038796A CN104679240B CN 104679240 B CN104679240 B CN 104679240B CN 201510038796 A CN201510038796 A CN 201510038796A CN 104679240 B CN104679240 B CN 104679240B
Authority
CN
China
Prior art keywords
terminal
target image
face
camera
optical parameter
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510038796.4A
Other languages
Chinese (zh)
Other versions
CN104679240A (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.)
Shenzhen Microphone Holdings Co Ltd
Original Assignee
Shenzhen Jinli Communication Equipment Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Jinli Communication Equipment Co Ltd filed Critical Shenzhen Jinli Communication Equipment Co Ltd
Priority to CN201510038796.4A priority Critical patent/CN104679240B/en
Publication of CN104679240A publication Critical patent/CN104679240A/en
Application granted granted Critical
Publication of CN104679240B publication Critical patent/CN104679240B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Studio Devices (AREA)

Abstract

The embodiments of the invention provide a kind of method of terminal control, including:When gathering target image by camera to control the mode of operation of terminal, pass through the current optical parameter of optical sensor acquisition terminal;Judge whether optical parameter meets preparatory condition;When optical parameter meets preparatory condition, application program corresponding to camera is closed.The embodiment of the present invention can reduce the power consumption of system, improve resource utilization ratio.

Description

A kind of method of terminal control
Technical field
The present invention relates to electronic technology field, more particularly to a kind of method of terminal control.
Background technology
At present, terminal is in order to save limited electricity, and there is provided standby function.Its general principle is:Pass through camera Target image is gathered, when not identifying face in the target image, into holding state;Face is identified in the target image When, show that terminal user does not currently enter holding state in using terminal, control terminal.Camera collects under low light environment Target image it is second-rate, identify that the precision of face is relatively low, start camera and operation Face datection algorithm, power consumption compared with Height, waste system resource.
The content of the invention
The embodiment of the present invention provides a kind of method of terminal control, can reduce the power consumption of system, improves system resource utilization Rate.
The embodiments of the invention provide a kind of method of terminal control, including:
When gathering target image by camera to control the mode of operation of terminal, the end is gathered by optical sensor Hold current optical parameter;
Judge whether the optical parameter meets preparatory condition;
When the optical parameter meets the preparatory condition, application program corresponding to the camera is closed.
In the embodiment of the present invention, when gathering target image by camera to control the mode of operation of terminal, pass through light The current optical parameter of sensor acquisition terminal, when judging that optical parameter meets preparatory condition, close and apply journey corresponding to camera Sequence, the power consumption of system can be reduced, improve resource utilization ratio.
Brief description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, required use in being described below to embodiment Accompanying drawing be briefly described, it should be apparent that, drawings in the following description are some embodiments of the present invention, for this area For those of ordinary skill, on the premise of not paying creative work, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of schematic flow sheet of the method for the terminal control provided in first embodiment of the invention;
Fig. 2 is a kind of schematic flow sheet of the method for the terminal control provided in second embodiment of the invention;
Fig. 3 is a kind of schematic flow sheet of the method for the terminal control provided in third embodiment of the invention;
Fig. 4 is a kind of structural representation of the terminal provided in first embodiment of the invention;
Fig. 5 is the structural representation of the parameter judging unit of Fig. 4 in the embodiment of the present invention;
Fig. 6 is a kind of structural representation of the terminal provided in second embodiment of the invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is part of the embodiment of the present invention, rather than whole embodiments.Based on this hair Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained under the premise of creative work is not made Example, belongs to the scope of protection of the invention.
The embodiment of the invention discloses a kind of method of terminal control, is gathering target image by camera to control end During the mode of operation at end, by the current optical parameter of optical sensor acquisition terminal, when judging that optical parameter meets preparatory condition, close Application program corresponding to camera is closed, the power consumption of system can be reduced, improves resource utilization ratio.
What the embodiment of the present invention was mentioned to gathers target image to control the mode of operation of terminal to wrap by camera Include:Terminal is controlled to enter holding state, control terminal changes theme or control terminal carries out the mode of operations such as authentication.Example Such as, terminal can gather target image by camera, judge whether to identify face in the target image, in the target image When not identifying face, control terminal enters holding state;When identifying face in the target image, control terminal does not enter Holding state.And for example, terminal can gather target image by camera, judge that the average color of target image and terminal are current Whether the average color of theme is identical, when the average color of target image differs with the average color of terminal current topic, Terminal is controlled to change the average color identical theme of average color and target image;When the average color and terminal of target image When the average color of current topic is identical, replacing of the terminal without theme is controlled.And for example, terminal can be gathered by camera Target image, judges whether the face in target image matches with the face of terminal user in the reference picture prestored, when When the face of face and terminal user in target image mismatches, control terminal performs safety control strategy;Work as target image In face when being matched with the face of terminal user, control terminal does not perform safety control strategy.
The optical sensor that the embodiment of the present invention is mentioned to can include photoelectric tube, photo resistance, phototriode, infrared ray Sensor, UV sensor or optical fiber type photoelectric sensor etc., are not limited specifically by the embodiment of the present invention.
The optical parameter that the embodiment of the present invention is mentioned to can include the ambient brightness or luminous intensity of terminal local environment Deng.
The method of above-mentioned terminal control may operate in smart mobile phone (such as Android phone, iOS mobile phones), flat board electricity In the terminal such as brain or wearable intelligent equipment.
Fig. 1 is a kind of schematic flow sheet of the method for the terminal control provided in first embodiment of the invention, as illustrated, The method of terminal control in the embodiment of the present invention can at least include:
S101, when gathering target image by camera to control the mode of operation of terminal, gathered by optical sensor The current optical parameter of terminal.
Terminal can be adopted when gathering target image by camera to control the mode of operation of terminal by optical sensor Collect the current optical parameter of terminal.Wherein optical parameter can include ambient brightness or luminous intensity of terminal local environment etc..It is logical Camera collection target image is crossed to control the mode of operation of terminal to include:Terminal is controlled to enter holding state, control eventually Theme is changed at end or control terminal carries out the mode of operations such as authentication.
In an alternative embodiment, terminal can decide whether to detect manipulation event, not detected when in preset time period During to manipulation event, it may be determined that meet to gather target image by camera to control the mode of operation of terminal.It is for example, default Period can be the default screen locking time, and when the default screen locking time is 1min, terminal exits holding state from the last time and opened Begin, judge whether to detect the manipulation event such as key assignments, gesture or instruction, begun to pass through when exiting holding state from the last time Manipulation event is not detected by 1min period, terminal can determine to meet to gather target image by camera to control end Mode of operation of the end into holding state.
In an alternative embodiment, terminal can be in dispaly state in screen, and gather adopting for optical parameter with the last When collecting time interval preset duration, it is determined that meeting to gather target image by camera to control the mode of operation of terminal.It is daily In life, when terminal is located at pocket or bag the inside, it may occur however that unexpected manipulation event, and the manipulation event is not that user is defeated Enter, cause terminal to cannot be introduced into holding state, power consumption increase, waste electricity.In order to solve the above-mentioned technical problem, terminal can be with When detecting that screen is in dispaly state, the acquisition time of the last collection optical parameter is obtained, is gathered with the last time During the acquisition time interval 1min of optical parameter, it is determined that meeting to gather target image by camera to control terminal to enter standby shape The mode of operation of state.
S102, judges whether optical parameter meets preparatory condition.
Terminal is collected after optical parameter, it can be determined that whether optical parameter meets preparatory condition, when optical parameter meets to preset During condition, step S103 is further performed;When optical parameter is unsatisfactory for preparatory condition, target image is gathered by camera, and Control terminal to enter holding state according to target image, change theme or carry out authentication etc..
In an alternative embodiment, when optical parameter is the ambient brightness of terminal local environment, terminal may determine that ambient brightness Whether it is less than predetermined luminance threshold value, when ambient brightness is less than predetermined luminance threshold value, can learns that terminal is currently at dim light ring In border, and then determine that ambient brightness meets preparatory condition.
In an alternative embodiment, when optical parameter is the luminous intensity of terminal local environment, terminal may determine that luminous intensity Whether it is less than preset strength threshold value, when luminous intensity is less than preset strength threshold value, can learns that terminal is currently at dim light ring In border, and then determine that luminous intensity meets preparatory condition.
S103, close application program corresponding to camera.
When terminal judges that optical parameter meets preparatory condition, application program corresponding to camera can be closed, that is, controls terminal Do not start camera.
In an alternative embodiment, after terminal judges whether optical parameter meets preparatory condition, when optical parameter is unsatisfactory for presetting During condition, terminal can by camera gather target image, in the target image it is unidentified go out face when, terminal can be learned The current non-operation control terminal of whole user, then into holding state;When identifying face in the target image, terminal can learn user Currently just do not enter holding state in operation control terminal, control terminal.Wherein, can specifically include into holding state:Close screen Curtain backlight and closing shooting are first-class.
It is further alternative, after terminal gathers target image by camera, it can detect whether target image includes Default face position, when target image includes default face position, terminal can determine to identify face in the target image; When target image does not include default face position, terminal can determine in the target image it is unidentified go out face.Default face Position can include:Eyes, face, nose, eyebrow, forehead or chin etc..For example, terminal detects that target image does not include During any face position, it may be determined that face is not present in target image;Terminal detects that target image includes above-mentioned face Position at least one position when, it may be determined that face in target image be present.
In an alternative embodiment, the collection of the collection direction of optical sensor collection optical parameter and camera collection target image Direction can be with identical.For example, terminal can gather the optical parameter of terminaloriented by optical sensor, whether it is in detection terminal In low light environment.When terminal is not in low light environment, terminal can gather the mesh of terminaloriented by front camera Logo image, determine user whether just in operation control terminal according to the testing result to target image.The embodiment of the present invention can avoid light When parameter is unsatisfactory for preparatory condition, the objective image quality that camera collects is poor, it is impossible to accurately identifies face, wastes system Resource.
Further alternative, terminal identifies after face in the target image, it can be determined that the face that recognizes with it is pre- Whether the face of terminal user matches in the reference picture first stored, when the face of the face and terminal user recognized mismatches When, export prompt message.For example, terminal can prestore the reference picture of the face including terminal user, pass through camera Target image is gathered, and after identifying face in the target image, terminal is used in the face and reference picture that judge to recognize Whether the face at family matches, and when the face recognized matches with the face of terminal user, terminal can learn current manipulation eventually The user at end is terminal user;When the face of the face and terminal user recognized mismatches, terminal, which can be learned, to be worked as The user of preceding operation control terminal is not terminal user, and then exports prompt message, and security risk is there is currently with prompt terminal.
It is further alternative, after terminal output prompt message, the user that user submits to prompt message can be received and tested Information is demonstrate,proved, user authentication information is detected and whether default terminal authentication information is identical, when user authentication information and terminal authentication When information differs, locking terminal;When user authentication information is identical with terminal authentication information, control terminal does not perform locking behaviour Make.Default terminal authentication information can be checking password, voice messaging or finger print information that terminal user pre-enters etc.. Locking terminal can include:Control terminal enters screen lock state or lock machine etc..
The embodiment of the present invention can improve the security of terminal, avoid letting out for the sensitive informations such as the short message in terminal or picture Leakage.
In the method for the terminal control shown in Fig. 1, target image is being gathered by camera to control the work of terminal During pattern, by the current optical parameter of optical sensor acquisition terminal, when judging that optical parameter meets preparatory condition, camera is closed Corresponding application program, the power consumption of system can be reduced, improve resource utilization ratio.
Fig. 2 is a kind of schematic flow sheet of the method for the terminal control provided in second embodiment of the invention, as illustrated, The method of terminal control in the embodiment of the present invention can include:
S201, when gathering target image by camera to control the mode of operation of terminal, gathered by optical sensor The ambient brightness of terminal local environment.
Terminal can be adopted when gathering target image by camera to control the mode of operation of terminal by optical sensor Collect the ambient brightness of terminal local environment.Target image is wherein gathered by camera to control the mode of operation of terminal to wrap Include:Terminal is controlled to enter holding state, control terminal changes theme or control terminal carries out the mode of operations such as authentication.
In an alternative embodiment, terminal can decide whether to detect manipulation event, not detected when in preset time period During to manipulation event, it may be determined that meet to gather target image by camera to control the mode of operation of terminal.It is for example, default Period can be the default screen locking time, and when the default screen locking time is 1min, terminal exits holding state from the last time and opened Begin, judge whether to detect the manipulation event such as key assignments, gesture or instruction, begun to pass through when exiting holding state from the last time Manipulation event is not detected by 1min period, terminal can determine to meet to gather target image by camera to control end Mode of operation of the end into holding state.
In an alternative embodiment, terminal can be in dispaly state in screen, and gather adopting for optical parameter with the last When collecting time interval preset duration, it is determined that meeting to gather target image by camera to control the mode of operation of terminal.It is daily In life, when terminal is located at pocket or bag the inside, it may occur however that unexpected manipulation event, and the manipulation event is not that user is defeated Enter, cause terminal to cannot be introduced into holding state, power consumption increase, waste electricity.In order to solve the above-mentioned technical problem, terminal can be with When detecting that screen is in dispaly state, the acquisition time of the last collection optical parameter is obtained, is gathered with the last time During the acquisition time interval 1min of optical parameter, it is determined that meeting to gather target image by camera to control terminal to enter standby shape The mode of operation of state.
S202, judges whether ambient brightness is less than predetermined luminance threshold value.
Terminal may determine that whether ambient brightness is less than predetermined luminance threshold value, when ambient brightness is less than predetermined luminance threshold value When, it can learn that terminal is currently in low light environment, and then determine that ambient brightness meets preparatory condition.When ambient brightness is more than Or during equal to predetermined luminance threshold value, can learn that terminal is not presently within low light environment, and then determine that ambient brightness is discontented with Sufficient preparatory condition, terminal can by camera gather target image, and according to target image control terminal enter holding state, Change theme or carry out authentication etc..
S203, determine that ambient brightness meets preparatory condition.
When terminal judges that ambient brightness is less than predetermined luminance threshold value, it may be determined that ambient brightness meets preparatory condition.
S204, close application program corresponding to camera.
After terminal determines that ambient brightness meets preparatory condition, application program corresponding to camera can be closed, that is, is controlled Terminal does not start camera.
In the method for the terminal control shown in Fig. 2, target image is being gathered by camera to control the work of terminal During pattern, by the current optical parameter of optical sensor acquisition terminal, when judging that ambient brightness is less than predetermined luminance threshold value, it is determined that Ambient brightness meets preparatory condition, and closes application program corresponding to camera, can reduce the power consumption of system, improves system resource Utilization rate.
Fig. 3 is a kind of schematic flow sheet of the method for the terminal control provided in third embodiment of the invention, as illustrated, The method of terminal control in the embodiment of the present invention can include:
S301, when gathering target image by camera to control the mode of operation of terminal, gathered by optical sensor The current optical parameter of terminal.
Terminal can be adopted when gathering target image by camera to control the mode of operation of terminal by optical sensor Collect the current optical parameter of terminal.Wherein optical parameter can include ambient brightness or luminous intensity of terminal local environment etc..It is logical Camera collection target image is crossed to control the mode of operation of terminal to include:Terminal is controlled to enter holding state, control eventually Theme is changed at end or control terminal carries out the mode of operations such as authentication.
In an alternative embodiment, terminal can decide whether to detect manipulation event, not detected when in preset time period During to manipulation event, it may be determined that meet to gather target image by camera to control the mode of operation of terminal.It is for example, default Period can be the default screen locking time, and when the default screen locking time is 1min, terminal exits holding state from the last time and opened Begin, judge whether to detect the manipulation event such as key assignments, gesture or instruction, begun to pass through when exiting holding state from the last time Manipulation event is not detected by 1min period, terminal can determine to meet to gather target image by camera to control end Mode of operation of the end into holding state.
In an alternative embodiment, terminal can be in dispaly state in screen, and gather adopting for optical parameter with the last When collecting time interval preset duration, it is determined that meeting to gather target image by camera to control the mode of operation of terminal.It is daily In life, when terminal is located at pocket or bag the inside, it may occur however that unexpected manipulation event, and the manipulation event is not that user is defeated Enter, cause terminal to cannot be introduced into holding state, power consumption increase, waste electricity.In order to solve the above-mentioned technical problem, terminal can be with When detecting that screen is in dispaly state, the acquisition time of the last collection optical parameter is obtained, is gathered with the last time During the acquisition time interval 1min of optical parameter, it is determined that meeting to gather target image by camera to control terminal to enter standby shape The mode of operation of state.
S302, judges whether optical parameter meets preparatory condition.
Terminal is collected after optical parameter, it can be determined that whether optical parameter meets preparatory condition, when optical parameter be unsatisfactory for it is pre- If during condition, further perform step S303;When optical parameter meets preparatory condition, application program corresponding to camera is closed.
In an alternative embodiment, when optical parameter is the ambient brightness of terminal local environment, terminal may determine that ambient brightness Whether predetermined luminance threshold value is less than, when ambient brightness is not less than predetermined luminance threshold value, it may be determined that ambient brightness is unsatisfactory for pre- If condition.
In an alternative embodiment, when optical parameter is the luminous intensity of terminal local environment, terminal may determine that luminous intensity Whether preset strength threshold value is less than, when luminous intensity is not less than preset strength threshold value, it may be determined that luminous intensity is unsatisfactory for pre- If condition.
S303, target image is gathered by camera.
When terminal judges that optical parameter is unsatisfactory for preparatory condition, target image can be gathered by camera.For example, terminal can To gather the target image of terminaloriented by front camera.
In an alternative embodiment, the collection of the collection direction of optical sensor collection optical parameter and camera collection target image Direction can be with identical.For example, terminal can gather the optical parameter of terminaloriented by optical sensor, it is whether full to detect optical parameter Sufficient preparatory condition.When optical parameter is unsatisfactory for preparatory condition, terminal can gather the target of terminaloriented by front camera Image, determine user whether just in operation control terminal according to the testing result to target image.The embodiment of the present invention can avoid beche-de-mer without spike When number is unsatisfactory for preparatory condition, the objective image quality that camera collects is poor, it is impossible to accurately identifies face, wastes system money Source.
S304, in the target image it is unidentified go out face when, into holding state.
Terminal can in the target image it is unidentified go out face when, learn the current non-operation control terminal of whole user, then enter and treat Machine state.Wherein, can specifically include into holding state:Close screen backlight and closing shooting is first-class.
In an alternative embodiment, terminal can detect whether target image includes default face position, when target image not During including default face position, terminal can determine in the target image it is unidentified go out face.Default face position can include: Eyes, face, nose, eyebrow, forehead or chin etc..For example, terminal detects that target image does not include any face position When, it may be determined that face is not present in target image.
S305, when identifying face in the target image, control terminal does not enter holding state.
When terminal can identify face in the target image, learn that whole user is current just in operation control terminal, then control is whole End does not enter holding state.
In an alternative embodiment, terminal can detect whether target image includes default face position, when target image bag When including default face position, terminal can determine to identify face in the target image.Default face position can include:Eye Eyeball, face, nose, eyebrow, forehead or chin etc..For example, terminal detects that target image is included in above-mentioned face position During at least one position, it may be determined that face in target image be present.
In an alternative embodiment, after terminal identifies face in the target image, it can be determined that the face recognized with Whether the face of terminal user matches in the reference picture prestored, when the face recognized and the face of terminal user not Timing, export prompt message.For example, terminal can prestore the reference picture of the face including terminal user, pass through shooting Head collection target image, and after identifying face in the target image, judge terminal in the face and reference picture that recognize Whether the face of user matches, and when the face recognized matches with the face of terminal user, terminal can learn current manipulation The user of terminal is terminal user;When the face of the face and terminal user recognized mismatches, terminal can be learned The user of current operation control terminal is not terminal user, and then exports prompt message, and safety wind is there is currently with prompt terminal Danger.
It is further alternative, after terminal output prompt message, the user that user submits to prompt message can be received and tested Information is demonstrate,proved, user authentication information is detected and whether default terminal authentication information is identical, when user authentication information and terminal authentication When information differs, locking terminal;When user authentication information is identical with terminal authentication information, control terminal does not perform locking behaviour Make.Default terminal authentication information can be checking password, voice messaging or finger print information that terminal user pre-enters etc.. Locking terminal can include:Control terminal enters screen lock state or lock machine etc..
The embodiment of the present invention can improve the security of terminal, avoid letting out for the sensitive informations such as the short message in terminal or picture Leakage.
In the method for the terminal control shown in Fig. 3, target image is being gathered by camera to control the work of terminal During pattern, by the current optical parameter of optical sensor acquisition terminal, when judging that optical parameter is unsatisfactory for preparatory condition, pass through camera Gather target image, in the target image it is unidentified go out face when, into holding state, identify face in the target image When, control terminal does not enter holding state, can start camera when optical parameter is unsatisfactory for preparatory condition, reduce the work(of system Consumption, improve resource utilization ratio.
Fig. 4 is a kind of structural representation of the terminal provided in first embodiment of the invention, and the present invention is implemented as shown in the figure Terminal in example can at least include:Parameter acquisition unit 410, parameter judging unit 420 and closing unit 430, wherein:
Parameter acquisition unit 410, for when gathering target image by camera to control the mode of operation of terminal, leading to Cross the current optical parameter of optical sensor acquisition terminal.Wherein optical parameter can include the ambient brightness or hair of terminal local environment Luminous intensity etc..Target image is gathered by camera to control the mode of operation of terminal to include:Terminal is controlled to enter standby State, control terminal change theme or control terminal carries out the mode of operations such as authentication.
Parameter judging unit 420, for judging whether optical parameter meets preparatory condition.
Closing unit 430, for when parameter judging unit 420 judges that optical parameter meets preparatory condition, closing camera Corresponding application program.That is control terminal does not start camera.
As an alternative embodiment, optical parameter can be the ambient brightness of terminal local environment, and then the present invention Parameter judging unit 420 in embodiment can further comprise as described in Figure 5:
Brightness judging unit 510, for judging whether ambient brightness is less than predetermined luminance threshold value.
Determining unit 520, for when ambient brightness is less than predetermined luminance threshold value, determining that ambient brightness meets default bar Part.
As an alternative embodiment, the terminal in the embodiment of the present invention can also include:
Image acquisition units 440, when judging that optical parameter is unsatisfactory for preparatory condition for parameter judging unit 420, by taking the photograph As head collection target image.
Control unit 450, in the target image it is unidentified go out face when, into holding state, in the target image When identifying face, control terminal does not enter holding state.Wherein, can specifically include into holding state:Close screen back Light and closing shooting are first-class.Optionally, control unit 450 can also control terminal to change theme or enter according to target image Row authentication etc..
It is further alternative, control unit 450, during for detecting that target image includes default face position, it is determined that Face is identified in target image, eyes, face, nose, eyebrow or forehead etc. can be included by presetting face position.For example, When control unit 450 detects that target image does not include any face position, it may be determined that face is not present in target image;Control When unit 450 processed detects that target image includes at least one position in above-mentioned face position, it may be determined that in target image Face be present.
It is further alternative, the collection direction of optical sensor collection optical parameter and the collection side of camera collection target image To identical.For example, parameter acquisition unit 410 can gather the optical parameter of terminaloriented by optical sensor, it is with detection terminal It is no to be in low light environment.When terminal is not in low light environment, image acquisition units 440 can pass through front camera The target image of terminaloriented is gathered, determines user whether just in operation control terminal according to the testing result to target image.This hair When bright embodiment can avoid the optical parameter from being unsatisfactory for preparatory condition, the objective image quality that camera collects is poor, it is impossible to accurate Face is identified, wastes system resource.
Further alternative, the terminal in the embodiment of the present invention can also include:
Face judging unit 460, after identifying face in the target image for control unit 450, judge to recognize Face whether matched with the face of terminal user in the reference picture prestored.
Output unit 470, for not judging the face of the face that recognizes and terminal user not when face judging unit 460 Timing, export prompt message.
For example, face judging unit 460 can prestore the reference picture of the face including terminal user, pass through shooting Head collection target image, after control unit 450 identifies face in the target image, face judging unit 460 judges identification To face whether matched with the face of terminal user in reference picture, when the face recognized matches with the face of terminal user When, the user that can learn current operation control terminal is terminal user;When the face recognized and the face of terminal user not During matching, the user that can learn current operation control terminal is not terminal user, and then the output prompting of output unit 470 is believed Breath, security risk is there is currently with prompt terminal.
Further alternative, the terminal in the embodiment of the present invention can also include:
Receiving unit 480, after exporting prompt message for output unit 470, receive what user submitted to prompt message User authentication information.
Lock cell 490, during for detecting that user authentication information and default terminal authentication information differ, locking is eventually End.Wherein, default terminal authentication information can be checking password, voice messaging or the fingerprint letter that terminal user pre-enters Breath etc..Locking terminal can include:Control terminal enters screen lock state or lock machine etc..
As an alternative embodiment, parameter acquisition unit 410, for being not detected by manipulation in preset time period During event, it is determined that meeting mode of operation.
For example, preset time period can be the default screen locking time, and when the default screen locking time is 1min, parameter acquisition unit 410 since the last time exits holding state, judges whether to detect the manipulation event such as key assignments, gesture or instruction, when from The last time, which exits holding state and begun to pass through, is not detected by manipulation event in 1min period, parameter acquisition unit 410 can To determine to meet to gather target image by camera to control terminal to enter the mode of operation of holding state.
As an alternative embodiment, parameter acquisition unit 410, dispaly state is in for the screen in terminal, And when gathering the acquisition time interval preset duration of optical parameter with the last time, it is determined that meeting mode of operation.
In daily life, when terminal is located at pocket or bag the inside, it may occur however that unexpected manipulation event, and the manipulation event It is not what user inputted, causes terminal to cannot be introduced into holding state, power consumption increase, waste electricity.In order to solve above-mentioned technology Problem, parameter acquisition unit 410 can obtain adopting for the last collection optical parameter when detecting that screen is in dispaly state Collect the time, in the acquisition time interval 1min with the last collection optical parameter, it is determined that meeting to gather target by camera Image come control terminal enter holding state mode of operation.
In the terminal shown in Fig. 4, parameter acquisition unit 410 is gathering target image to control terminal by camera During mode of operation, by the current optical parameter of optical sensor acquisition terminal, it is default that parameter judging unit 420 judges that optical parameter meets During condition, application program corresponding to the closing camera of closing unit 430, the power consumption of system can be reduced, improves system resource utilization Rate.
Fig. 6 is a kind of structural representation of the terminal provided in second embodiment of the invention, as illustrated, the terminal can With including:At least one input unit 630, at least one output device 640, at least one processor 610, such as CPU, storage Device 650 and at least one bus 620.
Wherein, above-mentioned bus 620 is used to connect above-mentioned input unit 630, output device 640, processor 610 and memory 650。
Wherein, the contact panel of above-mentioned input unit 630 concretely terminal, for receiving the user's checking of user's submission Information;The optical sensor of above-mentioned input unit 630 concretely terminal, for gathering optical parameter;Above-mentioned input unit 630 is specific Can be the camera of terminal, for gathering target image.
Above-mentioned the output device 640 concretely display screen of terminal or microphone etc., for exporting prompt message.
Above-mentioned memory 650 can be high-speed RAM memory, or non-labile memory (non-volatile Memory), such as magnetic disk storage, for store include application program corresponding to camera, terminal user face reference Image and terminal authentication information etc..Above-mentioned memory 650 is additionally operable to store batch processing code, above-mentioned input unit 630, defeated Go out device 640 and processor 610 is used to call the program code stored in memory 650, perform following operation:
Input unit 630, for when gathering target image by camera to control the mode of operation of terminal, gathering institute State the current optical parameter of terminal.
Processor 610, for judging whether the optical parameter meets preparatory condition.
Processor 610, for when judging that the optical parameter meets the preparatory condition, closing corresponding to the camera Application program.
As an alternative embodiment, optical parameter can be the ambient brightness of the terminal local environment, and then locate Reason device 610 judges whether the optical parameter meets preparatory condition, is specifically as follows:
Judge whether the ambient brightness is less than predetermined luminance threshold value.
When the ambient brightness is less than the predetermined luminance threshold value, determine that the ambient brightness meets the default bar Part.
As an alternative embodiment, after processor 610 judges whether the optical parameter meets preparatory condition, also Following operation can be performed:
Input unit 630, for when judging that the optical parameter is unsatisfactory for the preparatory condition, gathering target image.
Processor 610, in the target image it is unidentified go out face when, into holding state, in the target When identifying face in image, the terminal is controlled not enter the holding state.
Further alternative, processor 610 identifies face in the target image, is specifically as follows:
When detecting that the target image includes default face position, it is determined that face is identified in the target image, The default face position includes eyes, face, nose, eyebrow or forehead.
It is further alternative, the collection direction of the optical sensor collection optical parameter and camera collection target image Collection direction it is identical.
It is further alternative, after processor 610 identifies face in the target image, it can also carry out following behaviour Make:
Processor 610, for judging the face of terminal user in the face recognized and the reference picture prestored Whether portion matches.
Output device 640, it is defeated for when the face that is recognized described in judgement and the face of the terminal user mismatch Go out prompt message.
It is further alternative, after output device 640 exports prompt message, it can also carry out following operation:
Input unit 630, the user authentication information submitted for receiving user to the prompt message.
Processor 610, during for detecting that the user authentication information and default terminal authentication information differ, locking The terminal.
As an alternative embodiment, target image is being gathered by camera to control the mode of operation of terminal, It is specifically as follows:
When manipulation event is not detected by preset time period, it is determined that meeting the mode of operation.
As an alternative embodiment, target image is being gathered by camera to control the mode of operation of terminal, It is specifically as follows:
Dispaly state is in the screen of the terminal, and is preset with the acquisition time interval of the last collection optical parameter During duration, it is determined that meeting the mode of operation.
Further alternative, processor 610 enters holding state, is specifically as follows:
Close screen backlight and the camera.
Specifically, the terminal introduced in the embodiment of the present invention can to implement the present invention combine Fig. 1~Fig. 3 introductions end Hold the part or all of flow in the embodiment of the method for control.
Unit in all embodiments of the invention, universal integrated circuit, such as CPU (Central can be passed through Processing Unit, central processing unit), or pass through ASIC (Application Specific Integrated Circuit, application specific integrated circuit) realize.
Step in present invention method can be sequentially adjusted, merged and deleted according to actual needs.
Unit in device of the embodiment of the present invention can be combined, divided and deleted according to actual needs.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and is not described in some embodiment Part, may refer to the associated description of other embodiment.
One of ordinary skill in the art will appreciate that realize all or part of flow in above-described embodiment method, being can be with The hardware of correlation is instructed to complete by computer program, described program can be stored in a computer read/write memory medium In, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
Above disclosure is only preferred embodiment of present invention, can not limit the right model of the present invention with this certainly Enclose, therefore the equivalent variations made according to the claims in the present invention, still belong to the scope that the present invention is covered.

Claims (10)

  1. A kind of 1. method of terminal control, it is characterised in that including:
    When gathering target image by camera to control the mode of operation of terminal, the terminal is gathered by optical sensor and worked as Preceding optical parameter;
    Judge whether the optical parameter meets preparatory condition;
    When the optical parameter meets the preparatory condition, application program corresponding to the camera is closed;
    It is described by camera gather target image to control the mode of operation of terminal when, the end is gathered by optical sensor Current optical parameter is held, including:
    When being in dispaly state in screen, and the acquisition time interval preset duration of optical parameter is gathered with the last time, it is determined that full Foot is described to gather target image to control the mode of operation of terminal by camera, and gathers the end by the optical sensor Hold current optical parameter.
  2. 2. the method as described in claim 1, it is characterised in that the optical parameter is bright for the environment of the terminal local environment Degree;
    It is described to judge whether the optical parameter meets that preparatory condition includes:
    Judge whether the ambient brightness is less than predetermined luminance threshold value;
    When the ambient brightness is less than the predetermined luminance threshold value, determine that the ambient brightness meets the preparatory condition.
  3. 3. the method as described in claim 1, it is characterised in that it is described judge the optical parameter whether meet preparatory condition it Afterwards, in addition to:
    When the optical parameter is unsatisfactory for the preparatory condition, target image is gathered by the camera;
    In the target image it is unidentified go out face when, into holding state;
    When identifying face in the target image, the terminal is controlled not enter the holding state.
  4. 4. method as claimed in claim 3, it is characterised in that described to identify that face includes in the target image:
    When detecting that the target image includes default face position, it is determined that face is identified in the target image, it is described Default face position includes eyes, face, nose, eyebrow or forehead.
  5. 5. method as claimed in claim 3, it is characterised in that the collection direction of optical sensor collection optical parameter and described The collection direction of camera collection target image is identical.
  6. 6. method as claimed in claim 3, it is characterised in that it is described identify face in the target image after, also Including:
    Whether the face recognized described in judgement matches with the face of terminal user in the reference picture prestored;
    When the face of the face recognized and the terminal user mismatch, prompt message is exported.
  7. 7. method as claimed in claim 6, it is characterised in that after the output prompt message, in addition to:
    Receive the user authentication information that user submits to the prompt message;
    When detecting that the user authentication information differs with default terminal authentication information, the terminal is locked.
  8. 8. the method as described in claim 1, it is characterised in that described that target image is being gathered by camera to control terminal Mode of operation include:
    When manipulation event is not detected by preset time period, it is determined that meeting the mode of operation.
  9. 9. the method as described in claim 1, it is characterised in that described that target image is being gathered by camera to control terminal Mode of operation include:
    Dispaly state is in the screen of the terminal, and the acquisition time interval preset duration of optical parameter is gathered with the last time When, it is determined that meeting the mode of operation.
  10. 10. method as claimed in claim 3, it is characterised in that described to include into holding state:
    Close screen backlight and the camera.
CN201510038796.4A 2015-01-26 2015-01-26 A kind of method of terminal control Active CN104679240B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510038796.4A CN104679240B (en) 2015-01-26 2015-01-26 A kind of method of terminal control

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510038796.4A CN104679240B (en) 2015-01-26 2015-01-26 A kind of method of terminal control

Publications (2)

Publication Number Publication Date
CN104679240A CN104679240A (en) 2015-06-03
CN104679240B true CN104679240B (en) 2018-01-12

Family

ID=53314434

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510038796.4A Active CN104679240B (en) 2015-01-26 2015-01-26 A kind of method of terminal control

Country Status (1)

Country Link
CN (1) CN104679240B (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105353958B (en) * 2015-10-28 2018-03-16 广东欧珀移动通信有限公司 The control method and device of terminal applies
CN106201598A (en) * 2016-06-28 2016-12-07 广东欧珀移动通信有限公司 Method for closing, device and the terminal unit of a kind of augmented reality function
CN106371515A (en) * 2016-09-05 2017-02-01 乐视控股(北京)有限公司 Method and device for controlling screen states
CN109242480A (en) * 2017-07-10 2019-01-18 中国电信股份有限公司 Mobile terminal payment is counter to cheat method, fence control device and system
CN107451570A (en) * 2017-08-04 2017-12-08 中控智慧科技股份有限公司 A kind of method and device for starting palm pattern recognition device
CN108509135A (en) * 2018-04-09 2018-09-07 Oppo广东移动通信有限公司 Using the method, apparatus, terminal and computer readable storage medium of closing
CN108668025B (en) * 2018-05-07 2020-11-10 珠海格力电器股份有限公司 Method for quickly closing photographing interface and mobile terminal
CN108989668A (en) * 2018-06-29 2018-12-11 维沃移动通信有限公司 A kind of working method and mobile terminal of camera
CN108881684A (en) * 2018-06-29 2018-11-23 联想(北京)有限公司 A kind of information processing method and electronic equipment
CN111540090A (en) * 2020-04-29 2020-08-14 北京市商汤科技开发有限公司 Method and device for controlling unlocking of vehicle door, vehicle, electronic equipment and storage medium
CN112351482B (en) * 2020-10-29 2024-06-04 深圳Tcl新技术有限公司 Method and device for automatically controlling terminal dormancy and computer readable storage medium
CN114025086A (en) * 2021-10-29 2022-02-08 哲库科技(北京)有限公司 Method, device, terminal and storage medium for determining working state of image sensor

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102970411A (en) * 2012-10-24 2013-03-13 康佳集团股份有限公司 Smart phone screen locking and unlocking control method based on face detection and smart phone
CN103927018A (en) * 2014-04-28 2014-07-16 联想(北京)有限公司 Control method and device and electronic equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8994499B2 (en) * 2011-03-16 2015-03-31 Apple Inc. Locking and unlocking a mobile device using facial recognition
KR101824413B1 (en) * 2011-08-30 2018-02-02 삼성전자주식회사 Method and apparatus for controlling operating mode of portable terminal

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102970411A (en) * 2012-10-24 2013-03-13 康佳集团股份有限公司 Smart phone screen locking and unlocking control method based on face detection and smart phone
CN103927018A (en) * 2014-04-28 2014-07-16 联想(北京)有限公司 Control method and device and electronic equipment

Also Published As

Publication number Publication date
CN104679240A (en) 2015-06-03

Similar Documents

Publication Publication Date Title
CN104679240B (en) A kind of method of terminal control
CN104751419B (en) A kind of photo vision-control method and terminal
CN106934269A (en) Iris unlocking method, iris recognition display methods and mobile terminal
JP3562970B2 (en) Biological identification device
CN104464647B (en) A kind of back light brightness regulating method and terminal
CN108804006B (en) Unlocking method, device, equipment and storage medium for wearable equipment
US10115014B2 (en) Eyeprint recognition-based mobile terminal camera self-adaptation adjustment method and system
CN109359647A (en) Identify the method, equipment and computer readable storage medium of a variety of certificates
CN205427946U (en) Hotel moves in management system
CN204791017U (en) Mobile terminal users authentication device based on many biological characteristics mode
CN108280431A (en) Face recognition processing method, recognition of face processing unit and intelligent terminal
CN206162736U (en) Access control system based on face recognition
CN107480497A (en) Mobile terminal and child mode implementation method, computer-readable recording medium
CN108090340A (en) Face recognition processing method, recognition of face processing unit and intelligent terminal
US20200057882A1 (en) Method and system for unlocking electronic cigarette
CN105809139A (en) Acquisition method and device of eyeball information
CN107395881A (en) Solve lock control method and Related product
CN105867605A (en) Functional menu page-turning method and apparatus for virtual reality helmet, and helmet
CN106941588B (en) Data processing method and electronic equipment
CN109255219A (en) A kind of temperature sense unlocking method and system based on bio-identification terminal
CN106200904A (en) A kind of gesture identifying device, electronic equipment and gesture identification method
CN102981726A (en) Method and system for preventing mistakenly unlocking of mobile terminal
CN106791034A (en) A kind of message display method and device
CN104679217A (en) Terminal
CN106485117A (en) A kind of intelligent terminal method of controlling operation thereof based on recognition of face and system

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
TR01 Transfer of patent right

Effective date of registration: 20210218

Address after: 518057 Desai Science and Technology Building, 9789 Shennan Avenue, Yuehai Street, Nanshan District, Shenzhen City, Guangdong Province, 17th Floor (15th Floor of Natural Floor) 1702-1703

Patentee after: Shenzhen Microphone Holdings Co.,Ltd.

Address before: 518040 21 floor, east block, Times Technology Building, 7028 Shennan Road, Futian District, Shenzhen, Guangdong.

Patentee before: DONGGUAN GOLDEX COMMUNICATION TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right