CN107168620A - Method, device, terminal device and the computer-readable recording medium of control terminal - Google Patents
Method, device, terminal device and the computer-readable recording medium of control terminal Download PDFInfo
- Publication number
- CN107168620A CN107168620A CN201710267628.1A CN201710267628A CN107168620A CN 107168620 A CN107168620 A CN 107168620A CN 201710267628 A CN201710267628 A CN 201710267628A CN 107168620 A CN107168620 A CN 107168620A
- Authority
- CN
- China
- Prior art keywords
- terminal
- user
- terminal screen
- face
- front camera
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/04847—Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The disclosure is directed to a kind of method of control terminal, device, terminal device and computer-readable recording medium, this method includes:Obtain the target range between user's face and terminal screen;When the target range is less than or equal to preset distance, the terminal screen is controlled to show the front camera acquired image by the terminal;In user's using terminal screen as mirror in use, the front camera that opens a terminal in equipment in time, with user-friendly;Effectively increase the practicality of this method.
Description
Technical field
This disclosure relates to terminal control technical field, more particularly to a kind of method of control terminal, device, terminal device and
Computer-readable recording medium.
Background technology
Nowadays intelligent terminal is increasingly popularized, with developing rapidly for science and technology, the function of intelligent terminal
It is more and more, for example:Converse, surf the Net, listen song, check video, read electronic books, digital map navigation etc., effectively meeting
The various demands of user.
However, want to arrange appearance instrument when user is away from home, and when there is no mirror again at one's side, some people
Naturally breath screen terminal screen is used as mirror, however, due to the limited brightness of breath screen terminal device, terminal screen can only
Show general outline, it is impossible to details is clearly presented, and then reduces the quality and efficiency for arranging appearance instrument.
The content of the invention
For solving due to the limited brightness of breath screen terminal device present in correlation technique, terminal screen is only able to display greatly
General profile, it is impossible to be clearly presented details, and then the problem of reduce the quality and efficiency that arrange appearance instrument, the disclosure is provided
A kind of method of control terminal, device, terminal device and computer-readable recording medium.
According to the first aspect of the embodiment of the present disclosure there is provided a kind of method of control terminal, including:
Obtain the target range between user's face and terminal screen;
When the target range is less than or equal to preset distance, the terminal screen is controlled to show by the terminal
Front camera acquired image.
The technical scheme can include the following benefits:It is small by the target range in user's face and terminal screen
When preset distance, control terminal screen display is effectively real by the front camera acquired image of terminal
Show in user's using terminal screen as mirror in use, can show that user's face is schemed by terminal device in time
Picture, with user-friendly, improves the practicality of this method.
According to the second aspect of the embodiment of the present disclosure there is provided a kind of device of control terminal, including:
Apart from acquisition module, the target range for obtaining user's face and terminal screen;
Control module, for when the target range is less than or equal to preset distance, controlling the terminal screen to show
Pass through the front camera acquired image of the terminal.
The technical scheme can include the following benefits:By apart from user's face acquired in acquisition module and eventually
After the target range for holding screen, when target range is less than or equal to preset distance, control module control terminal screen display is led to
The front camera acquired image of terminal is crossed, have effectively achieved and used in user's using terminal screen as mirror
When, user's face-image can be shown by terminal device in time, with user-friendly, improve the practicality of the device
Property.
According to the third aspect of the embodiment of the present disclosure there is provided a kind of terminal device, including:
Processor;
It is configured as storing the memory of processor-executable instruction;
Wherein, the processor is configured as:
Obtain the target range between user's face and terminal screen;
When the target range is less than or equal to preset distance, the terminal screen is controlled to show by the terminal
Front camera acquired image.
According to the fourth aspect of the embodiment of the present disclosure there is provided a kind of computer-readable recording medium, including instruction, including refer to
Order, when computing device of the instruction in storage medium by terminal device so that terminal device is able to carry out above-mentioned control
The method of terminal.
It should be appreciated that the general description of the above and detailed description hereinafter are only exemplary and explanatory, not
The disclosure can be limited.
Brief description of the drawings
Accompanying drawing herein is merged in specification and constitutes the part of this specification, shows the implementation for meeting the disclosure
Example, and be used to together with specification to explain the principle of the disclosure.
Fig. 1 is a kind of flow chart of the embodiment of the method one of control terminal according to an exemplary embodiment;
Fig. 2 is a kind of flow chart of the embodiment of the method two of control terminal according to an exemplary embodiment;
Fig. 3 is a kind of flow chart of the embodiment of the method three of control terminal according to an exemplary embodiment;
Fig. 4 is a kind of flow chart of the embodiment of the method four of control terminal according to an exemplary embodiment;
Fig. 5 is a kind of block diagram of the device embodiment one of control terminal according to an exemplary embodiment;
Fig. 6 is a kind of block diagram of terminal device according to an exemplary embodiment;
Fig. 7 is the block diagram of another terminal device according to an exemplary embodiment.
Pass through above-mentioned accompanying drawing, it has been shown that the clear and definite embodiment of the disclosure, will hereinafter be described in more detail.These accompanying drawings
It is not intended to limit the scope that the disclosure is conceived by any mode with word description, but is by reference to specific embodiment
Those skilled in the art illustrate the concept of the disclosure.
Embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to
During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistent with the disclosure.On the contrary, they be only with it is such as appended
The example of the consistent apparatus and method of some aspects be described in detail in claims, the disclosure.
Fig. 1 is a kind of flow chart of the embodiment of the method one of control terminal according to an exemplary embodiment;Fig. 2 is
A kind of flow chart of the embodiment of the method two of control terminal according to an exemplary embodiment;Knowable to refer to the attached drawing 1-2, this
Embodiment provides a kind of method of control terminal, front camera is provided with the terminal, this method includes:
S101:Obtain the target range between user's face and terminal screen;
It should be noted that when obtaining the target range between user's face and terminal screen, terminal can include
Two kinds of working conditions, the first working condition is:Terminal device is in use state, namely terminal screen is in bright screen shape
State;Second of working condition be:Terminal device is in holding state, namely terminal screen is in breath screen state;No matter terminal
Which kind of use state is equipment be in, and can obtain the target range between user's face and terminal screen;However, specific
Using when, because user is in using terminal equipment, user face terminal screen between target range it is very possible
Preset distance can be less than or equal to, now equally can be with control terminal screen display front camera acquired image, so
Easily cause error starting terminal screen and influence the situation of user's normal operational termination equipment;Certain, it is whole in error starting
When holding screen, user in time can be closed terminal screen by other operations;In order to avoid the generation of above-mentioned situation, more
Preferably, when terminal device is in breath screen state, the target range between user's face and terminal screen is obtained;Below
Illustrated when being in breath screen state with terminal device.
When terminal device is in breath screen state, terminal screen is black state, and terminal device now is also at simultaneously
Holding state, at this point it is possible to which it is facial and whole to obtain user to be pre-set at the distance-sensor on terminal device by this
Hold the target range of screen, also, set location for distance-sensor and set number not limit, in order to improve target
Distance-sensor, can be set to multiple by the accurate reliability that distance is obtained, and can uniformly be divided with multiple distance-sensors
It is distributed in around terminal screen.
Further, the present embodiment is for obtaining implementing for the target range between user's face and terminal screen
Mode is not limited, and those skilled in the art can be configured according to specific design requirement, more preferred, and acquisition is made
Target range between user's face and terminal screen is set to include:
S1011:Obtain the ultimate range and minimum range between user's face and terminal screen;
When terminal screen is in heeling condition, the distance of user's face to terminal screen can be because of the size of user's face
And it is different, or, because user's face is concave plane structure, in measurement user's face between terminal screen
Apart from when, multiple different distance values will necessarily be measured, for example, distance of the eyebrow to terminal screen, nose to end panel
The distance and chin of curtain now, judge that user is facial to end panel to the distance of terminal screen etc. in order to accurate
The distance of curtain, can first obtain user's face to the ultimate range and minimum range between terminal screen;For example, working as user
During the upper end angle at an acute angle of the top of face and terminal screen, the eyebrow in user's face now apart from terminal screen most
Closely, the face in user's face is farthest apart from terminal screen;Or, when the bottom and the lower end of terminal screen of user's face
In obtuse angle during angle, the face in user's face now is nearest apart from terminal screen, the eyebrow distance in user's face
Terminal screen is farthest, and then can then get minimum range and ultimate range.
S1012:The average value of ultimate range and minimum range is defined as target range.
After minimum range and ultimate range is got, minimum range and ultimate range can be analyzed and processed,
It may thereby determine that user's face arrives the target range of terminal screen, due to the limitation of user's face size, therefore, most
Gap greatly between distance and minimum range is smaller, therefore, can be by most in order to ensure the accurate reliability of target range acquisition
The average value of big distance and minimum range is defined as target range, so as to be effectively improved the accurate reliability of this method judgement
Degree.
S102:When target range is less than or equal to preset distance, control terminal screen display is taken the photograph by the preposition of terminal
As head acquired image.
After target range of user's face with terminal screen is got, in order to realize to the accurate of front camera
Control, com-parison and analysis is carried out by the target range and preset distance, wherein, concrete numerical value model of the present embodiment for preset distance
Enclose and do not limit, those skilled in the art can be configured according to specific design requirement, for example, preset distance can be set
10cm, 15cm, 20cm, 30cm or 50cm etc. are set to, as long as being capable of the demand of user, be will not be repeated here;Tool
Body, when com-parison and analysis result is that target range is less than or equal to preset distance, then illustrate that user's face is now arranged in
Close to the state of terminal screen, thus, it can be understood that user now uses terminal screen as mirror, and then
Can be with front camera acquired image of the control terminal screen display by terminal, to allow user clearly to see
It is user-friendly to the facial information of oneself;It should be noted that control terminal screen display terminal ought do not passed through
During front camera acquired image, the front camera in terminal still can gather the image information of user in real time,
Simply the terminal screen in terminal can not show above-mentioned acquired image information;(work as institute when only meeting certain condition
When stating target range less than or equal to preset distance), just the front camera of meeting control terminal screen display terminal is gathered
Image.
In addition, when target range be more than preset distance when, then illustrate now user apart from terminal screen farther out, therefore,
It can not be used terminal screen as mirror, so that then original working condition can be kept with control terminal screen, and for end
For front camera on end, the image information of user still can be gathered in real time.
The method for the control terminal that the present embodiment is provided, by being less than in the target range of user's face and terminal screen
Or during equal to preset distance, control terminal screen display is effectively realized by the front camera acquired image of terminal
In user's using terminal screen as mirror in use, user's face-image can be shown by terminal device in time,
With user-friendly, the practicality of this method is improved, is conducive to the popularization and application in market.
Fig. 3 is a kind of flow chart of the embodiment of the method three of control terminal according to an exemplary embodiment;Upper
State on the basis of embodiment, understood with continued reference to accompanying drawing 1-3, the present embodiment when target range for being less than or equal to preset distance
When, the specific implementation for the front camera acquired image that control terminal screen display passes through terminal is not limited, this
Art personnel can be configured according to specific design requirement, more preferred, will can be less than when target range or
During equal to preset distance, control terminal screen display is set to include by the front camera acquired image of terminal:
S1021:When target range is then opened less than or equal to preset distance, and duration more than or equal to scheduled duration
Dynamic front camera, and obtain the facial state of user's face;
Wherein, when above-mentioned duration is that the facial target range of user is less than or equal to the holding of preset distance
Between;In order to exclude user face in special occasions (for example:On congested traffic instrument) when the random feelings close to terminal screen
Condition, after the close terminal screen state of user's face is confirmed, can obtain the duration of the facial state of user, its
In, the acquisition modes of the duration can be detected by the time set being built in terminal device to be obtained, certain, ability
Field technique personnel can also obtain duration using other modes, as long as duration can be obtained effectively,
It will not be repeated here;After duration is got, analysis judgement can be carried out to the duration.
Specifically, when being analyzed and processed to duration, the duration and scheduled duration are subjected to com-parison and analysis,
Wherein, the present embodiment is not limited for the concrete numerical value of scheduled duration, and those skilled in the art can be according to specific design
Demand is configured, for example, scheduled duration can be set into 3s, 5s, 10s, 15s, 30s or 45s etc.;Work as com-parison and analysis
When being as a result more than or equal to scheduled duration for duration, then user now can be absolutely proved by terminal screen
Use, therefore, opened to improve the front camera in the comfort level used of user, control terminal equipment as mirror
Open, so as to obtain the facial state of user's face.
S1022:When facial state representation user is observing oneself by terminal screen, then control terminal screen display
Pass through the front camera acquired image of terminal.
It should be noted that the facial state of above-mentioned acquired user's face can indicate it is at least one of following:Make
The direction of visual lines of user, face action;Further, when meeting at least one of following, it is determined that facial state representation user
Oneself is observed by terminal screen:Direction of visual lines starts front camera towards terminal screen, face action for instruction
Target action.
It is steady in order to further improve that this method uses when getting the state of user's face by front camera
Determine reliability, the facial state of user can be obtained, and analysis judgement is carried out to facial state, when facial state representation is used
Person observes oneself by terminal screen, then can determine that user uses terminal screen as mirror, for example:When
Facial state is that user continuously blinks 3 times, opens one's mouth/shut up 3 times, then above-mentioned face can be determined according to default criterion
Portion's state is that user observes the action of oneself by terminal screen;Now, use, can control for the convenience of the users
Terminal screen shows the front camera acquired image by terminal, so that user can be according to clearly image
To arrange appearance instrument, effectively facilitate user and use, and then improve the practicality of terminal device.
Further, in order to increase the practicality of this method, the preposition shooting for passing through terminal in control terminal screen display
After head acquired image, method can also be set to also include:Preposition shooting is closed when meeting at least one of following
Head:Face action disappears to indicate that target action, the face of closing front camera are acted.
In addition, above-mentioned analysis process also includes:If duration is less than scheduled duration, control front camera is closed
Close.
When the facial state to user is analyzed, analysis result is not led to for the face characterization user of user
Cross terminal screen and observe oneself, for example:Facial state is:Target action (the example of front camera is closed in face action for instruction
Such as:User continuously blink 5 times, user open one's mouth/shut up it is 5 inferior), face action disappear, then camera can be controlled to close;
Or, when the com-parison and analysis result to duration is less than scheduled duration for duration, then it can absolutely prove now
Although user is facing to terminal screen, above-mentioned situation be likely due to the external world environmental factor caused by with
What machine was produced, therefore, according to the current use state of user, and in order to save the use electricity of terminal device, then control
Front camera on terminal device is closed.
During by the target range in user's face and terminal screen less than or equal to preset distance, and duration is big
In or equal to scheduled duration, control front camera unlatching, the facial state of acquisition user's face, further according to facial shape
State judges the state of user;If duration is less than scheduled duration, control front camera is closed, have effectively achieved
In user's using terminal screen as mirror in use, the front camera that opens a terminal in equipment in time, to facilitate user
Use;In user not using terminal screen as mirror in use, then the front camera in control terminal equipment is closed, so as to have
The use electricity of terminal device is saved to effect, the practicality of this method is further increased.
Fig. 4 is a kind of flow chart of the embodiment of the method four of control terminal according to an exemplary embodiment;Upper
On the basis of stating embodiment, understood with continued reference to accompanying drawing 4, in order to improve the control accuracy to camera, start camera it
Afterwards, the image information of user's face, and the face information in detection image information with the presence or absence of user's face can be obtained;
Detection can specifically be followed the steps below:
After the front camera in equipment that opens a terminal, acquisition user face can be gathered by front camera
The image information in portion;After the image information of acquisition, the current state of user can be judged according to the image information, is entered
And the accuracy controlled camera can be improved.
Specifically, after image information is got, can with detection image information with the presence or absence of the five of user's face
Official's information, specifically, first can be positioned to personage's head portrait in image information, excludes other environmental factors, in image letter
When breath includes multiple personage's head portraits, then in image information the maximum personage's head portrait of area occupied as user head portrait,
It is determined that after user's head portrait, the face information in image information with the presence or absence of user's face is being judged, wherein, face information
Including:Eyebrow, eyes, ear, nose and face, certain, when being detected to image information, it can be determined that in image information
With the presence or absence of all sites in face information or some positions therein, for example:When criterion is that detection image information is
It is no there is user's face some of face information position when, due to user when arranging appearance instrument, it is necessary to look at
Mirror is arranged, therefore, and some of face information now position is set at least to include eyes, that is, judges that image is believed
It whether there is the eyes of user in breath.
When testing result is that face act disappearance, method can also be set to include by the present embodiment:
S201:When face, which are acted, to disappear, the extinction time that face action disappears in the picture is obtained;
When testing result is that the face information of user's face is not present in image information, namely the face of user are moved
Disappear, i.e., whole face information in image information not including the use of person;Now then illustrate user's not using terminal
Screen arranges appearance instrument, is disappeared because face are acted, front camera now can then be immediately closed off, in order to further carry
The high accurate reliability controlled camera, now obtains the extinction time that face information is disappeared in image information, specifically,
Extinction time can be gathered by the time set built in terminal device and obtained.
S202:Front camera is controlled according to extinction time.
Specifically, can be set to include by front camera is controlled according to extinction time:
S2021:If extinction time is less than or equal to the disappearance threshold time pre-set, control front camera is again
It is secondary to open;
Wherein, the disappearance threshold time is pre-set, and the present embodiment is not done for the specific length of disappearance threshold time
Limit, those skilled in the art can be configured according to specific design requirement, for example, can be by disappearance threshold set of time
For 3s, 5s or 10s etc., when it is that extinction time is less than or equal to the disappearance threshold time to analyze judged result, then explanation makes
User be probably because some specific factors (for example:Taking thing, pick up thing or outside environmental elements etc.) temporary extinction exists
In image information, therefore, use for the convenience of the users, now can then control front camera to be again turned on.
S2022:If extinction time is more than the disappearance threshold time pre-set, control front camera is closed.
When it is that extinction time is more than the disappearance threshold time to analyze judged result, then illustrate user now and need not be by
Terminal screen is used as mirror, now, in order to save the power consumption of terminal device, then controls front camera to close.
When getting user's face state, analysis judgement has been carried out by the use state further to user, from
And the accuracy controlled camera is improved, specifically, by judging to whether there is the five of user's face in image information
Official's information, when exist in image information user face face information when, then illustrate user using terminal screen as
Mirror is used;When in image information be not present user face face information when, and user's extinction time be more than set in advance
During the disappearance threshold time put, then illustrate that now user does not use terminal screen as mirror, therefore, by preposition shooting
Head is closed, so as to be effectively saved the power consumption of terminal, further increases the accurate reliability that this method is used.
Fig. 5 is a kind of block diagram of the device embodiment one of control terminal according to an exemplary embodiment;With reference to attached
Fig. 5 is understood, is present embodiments provided and is provided with front camera in a kind of device of control terminal, above-mentioned terminal, the device
Including:
Apart from acquisition module 1, the target range for obtaining user's face and terminal screen;
Further, the present embodiment apart from acquisition module 1 for obtaining the facial target range with terminal screen of user
Specific implementation do not limit, those skilled in the art can be configured according to specific design requirement, more preferably
, it will can be provided for apart from acquisition module 1:
Obtain the ultimate range and minimum range between user's face and terminal screen;By ultimate range and minimum range
Average value be defined as target range.
Control module 2, for when target range is less than or equal to preset distance, control terminal screen display to pass through terminal
Front camera acquired image.
Wherein, the present embodiment apart from the concrete shape structure of acquisition module 1, control module 2 for not limiting, this area
Technical staff can carry out any setting according to the function of its realization to it, will not be repeated here;In addition, in the present embodiment
The operating procedure realized apart from acquisition module 1, control module 2 implements process and realizes effect and above-described embodiment
Implementing process and realizing that effect is identical for middle step S101-S102, S1011-S1012, specifically refers to above statement
Content, will not be repeated here.
The control device for the front camera that the present embodiment is provided, by apart from the user face acquired in acquisition module 1
After the target range of portion and terminal screen, when target range is less than or equal to preset distance, the control terminal screen of control module 2
Display have effectively achieved in user's using terminal screen as mirror by the front camera acquired image of terminal
In use, user's face-image can be shown by terminal device in time, with user-friendly, the device is improved
Practicality, is conducive to the popularization and application in market.
On the basis of above-described embodiment, with continued reference to accompanying drawing 5 understand, the present embodiment for control module 2 when target away from
During from less than or equal to preset distance, the front camera acquired image that control terminal screen display passes through terminal it is specific
Implementation is not limited, and those skilled in the art can be configured according to specific design requirement, more preferred, can be with
Control module 2 is provided for:
When target range then starts preposition less than or equal to preset distance, and duration more than or equal to scheduled duration
Camera, and obtain the facial state of user's face;
Further, above-mentioned facial state can indicate at least one of following:Direction of visual lines, the face of user are moved
Make;
When facial state representation user is observing oneself by terminal screen, then control terminal screen display passes through end
The front camera acquired image at end.
Wherein, when meeting at least one of following, it is determined that facial state representation user is observed by terminal screen
Oneself:Direction of visual lines starts the target action of front camera towards terminal screen, face action for instruction.
Further, control module 2 is additionally operable to:Gathered in control terminal screen display by the front camera of terminal
Image after, close front camera when meeting at least one of following:Face action closes front camera for instruction
Target action, face action disappear.
The operating procedure that control module 2 is realized in the present embodiment implements process and realizes effect and above-mentioned reality
Implementing process and realizing that effect is identical for step S1021-S1022 in example is applied, above statement content is specifically referred to,
This is repeated no more.
Control module 2 by when user's face is less than or equal to preset distance with the target range of terminal screen, and
Duration is more than or equal to scheduled duration, and control front camera is opened, and obtains the facial state of user's face, further
The state of user is judged according to facial state;If duration is less than scheduled duration, control front camera is closed, had
Effect ground is realized in user's using terminal screen as mirror in use, the timely front camera opened a terminal in equipment,
To be user-friendly;In user not using terminal screen as mirror in use, the then front camera in control terminal equipment
Close, so as to be effectively saved the use electricity of terminal, further increase the practicality of the device.
On the basis of above-described embodiment, understood with continued reference to accompanying drawing 5, in order to improve the control accuracy to camera,
After starting camera, the image information of user's face can be obtained, and using in the detection image information of control module 2 whether
There is the face information of user's face;
After the front camera in equipment that opens a terminal, acquisition user face can be gathered by front camera
The image information in portion;After the image information of acquisition, the current state of user can be judged according to the image information, is entered
And the accuracy controlled camera can be improved.
When testing result is that face act disappearance, control module 2 can also be set to include by the present embodiment:
When face, which are acted, to disappear, the extinction time that face action disappears in the picture is obtained;According to extinction time to preceding
Camera is put to be controlled.
Specifically, control module 2 according to extinction time front camera is controlled including:
If extinction time is less than or equal to the disappearance threshold time pre-set, control front camera is opened again
Open;
If extinction time is more than the disappearance threshold time pre-set, control front camera is closed.
The operating procedure that control module 2 is realized in the present embodiment implements process and realizes effect and above-mentioned reality
Implementing process and realizing that effect is identical for step S201-S202, S2021-S2022 in example is applied, is specifically referred to above-mentioned
Those set forth, will not be repeated here.
Control module 2 is when getting user's face state, by further having been carried out to the use state of user point
Analysis judges, so that the accuracy controlled camera is improved, specifically, by judging to whether there is user in image information
The face information of face, when there is the face information of user's face in image information, then illustrates user by terminal
Screen is used as mirror;When the face information of user's face is not present in image information, and user's extinction time is big
When the disappearance threshold time pre-set, then illustrate that now user does not use terminal screen as mirror, therefore, will
Front camera is closed, so as to be effectively saved the power consumption of terminal device, and further increase that the device uses is accurate
Reliability.
On the control device of the front camera in above-described embodiment, wherein modules, submodule performs operation
Concrete mode is described in detail in the embodiment about this method, and explanation will be not set forth in detail herein.
The built-in function and structure of the control device of front camera are the foregoing described, as shown in fig. 6, in practice, before this
Put the control device of camera and can realize as terminal device, including:
Processor;
It is configured as storing the memory of processor-executable instruction;
Wherein, processor is configured as:
Obtain the target range between user's face and terminal screen;
When target range is less than or equal to preset distance, the front camera institute that control terminal screen display passes through terminal
The image of collection.
In the present embodiment, during by the target range in user's face and terminal screen less than or equal to preset distance,
Control terminal screen display have effectively achieved in user's using terminal by the front camera acquired image of terminal
Screen is as mirror in use, with user-friendly, can enter in time by terminal device display user's face-image
One step improves the practicality of the terminal device, is conducive to the popularization and application in market.
Fig. 7 is the block diagram of another terminal device according to an exemplary embodiment.For example, terminal device 800 can
To be mobile phone, computer, digital broadcast terminal, messaging devices, game console, tablet device, Medical Devices are good for
Body equipment, personal digital assistant etc..
Reference picture 7, terminal device 800 can include following one or more assemblies:Processing assembly 802, memory 804,
Electric power assembly 806, multimedia groupware 808, audio-frequency assembly 810, the interface 812 of input/output (I/O), sensor cluster 814,
And communication component 816.
The integrated operation of the usual control terminal equipment 800 of processing assembly 802, such as with display, call, data are led to
Letter, the camera operation operation associated with record operation.Processing assembly 802 can include one or more processors 820 to hold
Row instruction, to complete all or part of step of above-mentioned method.In addition, processing assembly 802 can include one or more moulds
Block, is easy to the interaction between processing assembly 802 and other assemblies.For example, processing assembly 802 can include multi-media module, with
Facilitate the interaction between multimedia groupware 808 and processing assembly 802.
Memory 804 is configured as storing various types of data supporting the operation in equipment 800.These data are shown
Example includes the instruction of any application program or method for being operated on terminal device 800, contact data, telephone directory number
According to, message, picture, video etc..Memory 804 can by any kind of volatibility or non-volatile memory device or they
Combination realize that such as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM) is erasable
Programmable read only memory (EPROM), programmable read only memory (PROM), read-only storage (ROM), magnetic memory, quick flashing
Memory, disk or CD.
Electric power assembly 806 provides electric power for the various assemblies of terminal device 800.Electric power assembly 806 can include power supply pipe
Reason system, one or more power supplys, and other components associated with generating, managing and distributing electric power for terminal device 800.
Multimedia groupware 808 is included in the screen of one output interface of offer between terminal device 800 and user.
In some embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel,
Screen may be implemented as touch-screen, to receive the input signal from user.Touch panel includes one or more touch
Sensor is with the gesture on sensing touch, slip and touch panel.Touch sensor can not only sensing touch or sliding action
Border, but also detection and touch or slide related duration and pressure.In certain embodiments, multimedia group
Part 808 includes a front camera and/or rear camera.When equipment 800 is in operator scheme, such as screening-mode or video
During pattern, front camera and/or rear camera can receive the multi-medium data of outside.Each front camera and rearmounted
Camera can be a fixed optical lens system or with focusing and optical zoom capabilities.
Audio-frequency assembly 810 is configured as output and/or input audio signal.For example, audio-frequency assembly 810 includes a Mike
Wind (MIC), when terminal device 800 is in operator scheme, when such as call model, logging mode and speech recognition mode, microphone
It is configured as receiving external audio signal.The audio signal received can be further stored in memory 804 or via logical
Letter component 816 is sent.In certain embodiments, audio-frequency assembly 810 also includes a loudspeaker, for exports audio signal.
I/O interfaces 812 is provide interface between processing assembly 802 and peripheral interface module, above-mentioned peripheral interface module can
To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock
Determine button.
Sensor cluster 814 includes one or more sensors, the state for providing various aspects for terminal device 800
Assess.For example, sensor cluster 814 can detect opening/closed mode of equipment 800, the relative positioning of component, such as group
Part is the display and keypad of terminal device 800, and sensor cluster 814 can also detect terminal device 800 or terminal device
The position of 800 1 components changes, the existence or non-existence that user contacts with terminal device 800, the orientation of terminal device 800 or
The temperature change of acceleration/deceleration and terminal device 800.Sensor cluster 814 can include proximity transducer, be configured to
There is no the presence that object nearby is detected during any physical contact.Sensor cluster 814 can also include optical sensor, such as CMOS
Or ccd image sensor, for being used in imaging applications.In certain embodiments, the sensor cluster 814 can also include
Acceleration transducer, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 816 is configured to facilitate the communication of wired or wireless way between terminal device 800 and other equipment.
Terminal device 800 can access the wireless network based on communication standard, such as:WiFi, 2G or 3G, or combinations thereof.At one
In exemplary embodiment, communication component 816 receives the broadcast singal or wide from external broadcasting management system via broadcast channel
Broadcast relevant information.In one exemplary embodiment, communication component 816 also includes near-field communication (NFC) module, to promote short distance
Communication.For example, radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band can be based in NFC module
(UWB) technology, bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, terminal device 800 can be by one or more application specific integrated circuits (ASIC), number
Word signal processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array
(FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for performing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instructing, example are additionally provided
Such as include the memory 804 of instruction, above-mentioned instruction can be performed to complete the above method by the processor 820 of terminal device 800.Example
Such as, non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and
Optical data storage devices etc..
A kind of computer-readable recording medium, when computing device of the instruction in storage medium by terminal device, makes
The method that terminal device is able to carry out above-mentioned control terminal is obtained, this method at least includes:
Obtain the target range between user's face and terminal screen;
When target range is less than or equal to preset distance, the front camera institute that control terminal screen display passes through terminal
The image of collection.
Those skilled in the art will readily occur to its of the disclosure after considering specification and putting into practice invention disclosed herein
Its embodiment.The application is intended to any modification, purposes or the adaptations of the disclosure, these modifications, purposes or
Person's adaptations follow the general principle of the disclosure and including the undocumented common knowledge in the art of the disclosure
Or conventional techniques.Description and embodiments are considered only as exemplary, and the true scope of the disclosure and spirit are by following
Claim is pointed out.
It should be appreciated that the precision architecture that the disclosure is not limited to be described above and is shown in the drawings, and
And various modifications and changes can be being carried out without departing from the scope.The scope of the present disclosure is only limited by appended claim.
Claims (10)
1. a kind of method of control terminal, it is characterised in that including:
Obtain the target range between user's face and terminal screen;
When the target range is less than or equal to preset distance, the terminal screen is controlled to show by the preposition of the terminal
Camera acquired image.
2. according to the method described in claim 1, it is characterised in that the mesh obtained between user's face and terminal screen
Subject distance, including:
Obtain the facial ultimate range and minimum range between the terminal screen of user;
The average value of the ultimate range and minimum range is defined as the target range.
3. according to the method described in claim 1, it is characterised in that described when the target range is less than or equal to preset distance
When, control the terminal screen to show the front camera acquired image by the terminal, including:
When the target range then starts less than or equal to the preset distance, and duration more than or equal to scheduled duration
The front camera, and obtain the facial state of user's face;
When the facial state representation user is observing oneself by the terminal screen, then the terminal screen is controlled to show
Show the front camera acquired image by the terminal;
Wherein, at least one of below the facial state instruction:The direction of visual lines of user, face action;
When meeting at least one of following, determine that the facial state representation user is observed certainly by the terminal screen
Oneself:The direction of visual lines is dynamic for the target for indicating the startup front camera towards the terminal screen, face action
Make.
4. method according to claim 3, it is characterised in that shown in the control terminal screen by the end
After the front camera acquired image at end, methods described also includes:
Front camera is closed when meeting at least one of following:The face action closes the front camera for instruction
Target action, face action disappear.
5. a kind of device of control terminal, it is characterised in that including:
Apart from acquisition module, the target range for obtaining user's face and terminal screen;
Control module, for when the target range is less than or equal to preset distance, controlling the terminal screen to show and passing through
The front camera acquired image of the terminal.
6. device according to claim 5, it is characterised in that described apart from acquisition module, is used for:
Obtain the facial ultimate range and minimum range between the terminal screen of user;
The average value of the ultimate range and minimum range is defined as the target range.
7. device according to claim 5, it is characterised in that the control module, is used for:
When the target range then starts less than or equal to the preset distance, and duration more than or equal to scheduled duration
The front camera, and obtain the facial state of user's face;
When the facial state representation user is observing oneself by the terminal screen, then the terminal screen is controlled to show
Show the front camera acquired image by the terminal;
Wherein, at least one of below the facial state instruction:The direction of visual lines of user, face action;
When meeting at least one of following, determine that the facial state representation user is observed certainly by the terminal screen
Oneself:The direction of visual lines is dynamic for the target for indicating the startup front camera towards the terminal screen, face action
Make.
8. device according to claim 7, it is characterised in that the control module, is used for:
After the control terminal screen shows the front camera acquired image by the terminal, work as satisfaction
Front camera is closed when at least one of below:Face action for indicate to close the front camera target action,
The face action disappears.
9. a kind of terminal device, it is characterised in that including:
Processor;
It is configured as storing the memory of processor-executable instruction;
Wherein, the processor is configured as:
Obtain the target range between user's face and terminal screen;
When the target range is less than or equal to preset distance, the terminal screen is controlled to show by the preposition of the terminal
Camera acquired image.
10. a kind of computer-readable recording medium, it is characterised in that including instruction, when the instruction in storage medium is set by terminal
During standby computing device so that the method that terminal device is able to carry out the control terminal as described in claim any one of 1-4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710267628.1A CN107168620A (en) | 2017-04-21 | 2017-04-21 | Method, device, terminal device and the computer-readable recording medium of control terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710267628.1A CN107168620A (en) | 2017-04-21 | 2017-04-21 | Method, device, terminal device and the computer-readable recording medium of control terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107168620A true CN107168620A (en) | 2017-09-15 |
Family
ID=59812145
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710267628.1A Pending CN107168620A (en) | 2017-04-21 | 2017-04-21 | Method, device, terminal device and the computer-readable recording medium of control terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107168620A (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107741786A (en) * | 2017-10-25 | 2018-02-27 | 深圳市金立通信设备有限公司 | A kind of method, terminal and computer-readable recording medium for starting camera |
CN107783710A (en) * | 2017-10-25 | 2018-03-09 | 珠海市魅族科技有限公司 | Camera control method and device, terminal and readable storage medium storing program for executing |
CN107864332A (en) * | 2017-11-07 | 2018-03-30 | 广东欧珀移动通信有限公司 | Method for displaying image and device |
CN108762643A (en) * | 2018-06-01 | 2018-11-06 | Oppo广东移动通信有限公司 | Control strip methods of exhibiting, electronic device and computer readable storage medium |
CN110879731A (en) * | 2018-09-05 | 2020-03-13 | 鸿富锦精密电子(郑州)有限公司 | Mobile terminal, mirror opening method of mobile terminal and storage device |
CN111913574A (en) * | 2020-07-15 | 2020-11-10 | 北京字节跳动网络技术有限公司 | Method, apparatus, electronic device and computer readable medium for controlling device |
WO2021227859A1 (en) * | 2020-05-13 | 2021-11-18 | 华为技术有限公司 | Image display method and apparatus, terminal device, storage medium, and program product |
CN113946398A (en) * | 2021-10-19 | 2022-01-18 | 北京小米移动软件有限公司 | Display control method and device of terminal and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103391366A (en) * | 2013-07-18 | 2013-11-13 | 上海华勤通讯技术有限公司 | Mobile terminal and identification method thereof |
CN104184891A (en) * | 2014-08-12 | 2014-12-03 | 上海天奕达电子科技有限公司 | Screen display method and screen display device |
CN105912903A (en) * | 2016-04-06 | 2016-08-31 | 上海斐讯数据通信技术有限公司 | Unlocking method for mobile terminal, and mobile terminal |
CN106557150A (en) * | 2016-11-08 | 2017-04-05 | 北京小米移动软件有限公司 | Terminal control method and device |
CN106572299A (en) * | 2016-10-31 | 2017-04-19 | 北京小米移动软件有限公司 | Camera switching-on method and device |
-
2017
- 2017-04-21 CN CN201710267628.1A patent/CN107168620A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103391366A (en) * | 2013-07-18 | 2013-11-13 | 上海华勤通讯技术有限公司 | Mobile terminal and identification method thereof |
CN104184891A (en) * | 2014-08-12 | 2014-12-03 | 上海天奕达电子科技有限公司 | Screen display method and screen display device |
CN105912903A (en) * | 2016-04-06 | 2016-08-31 | 上海斐讯数据通信技术有限公司 | Unlocking method for mobile terminal, and mobile terminal |
CN106572299A (en) * | 2016-10-31 | 2017-04-19 | 北京小米移动软件有限公司 | Camera switching-on method and device |
CN106557150A (en) * | 2016-11-08 | 2017-04-05 | 北京小米移动软件有限公司 | Terminal control method and device |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107741786A (en) * | 2017-10-25 | 2018-02-27 | 深圳市金立通信设备有限公司 | A kind of method, terminal and computer-readable recording medium for starting camera |
CN107783710A (en) * | 2017-10-25 | 2018-03-09 | 珠海市魅族科技有限公司 | Camera control method and device, terminal and readable storage medium storing program for executing |
CN107864332A (en) * | 2017-11-07 | 2018-03-30 | 广东欧珀移动通信有限公司 | Method for displaying image and device |
CN108762643A (en) * | 2018-06-01 | 2018-11-06 | Oppo广东移动通信有限公司 | Control strip methods of exhibiting, electronic device and computer readable storage medium |
CN108762643B (en) * | 2018-06-01 | 2020-10-09 | Oppo广东移动通信有限公司 | Control bar display method, electronic device and computer readable storage medium |
CN110879731A (en) * | 2018-09-05 | 2020-03-13 | 鸿富锦精密电子(郑州)有限公司 | Mobile terminal, mirror opening method of mobile terminal and storage device |
TWI771497B (en) * | 2018-09-05 | 2022-07-21 | 鴻海精密工業股份有限公司 | Mobile terminal, mirror opening method of the mobile terminal and storage device |
WO2021227859A1 (en) * | 2020-05-13 | 2021-11-18 | 华为技术有限公司 | Image display method and apparatus, terminal device, storage medium, and program product |
CN111913574A (en) * | 2020-07-15 | 2020-11-10 | 北京字节跳动网络技术有限公司 | Method, apparatus, electronic device and computer readable medium for controlling device |
CN111913574B (en) * | 2020-07-15 | 2024-04-30 | 抖音视界有限公司 | Method, apparatus, electronic device, and computer-readable medium for controlling device |
CN113946398A (en) * | 2021-10-19 | 2022-01-18 | 北京小米移动软件有限公司 | Display control method and device of terminal and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107168620A (en) | Method, device, terminal device and the computer-readable recording medium of control terminal | |
US11678734B2 (en) | Method for processing images and electronic device | |
CN107122679A (en) | Image processing method and device | |
CN107040646A (en) | Mobile terminal and its control method | |
CN106951884A (en) | Gather method, device and the electronic equipment of fingerprint | |
CN106231419A (en) | Operation performs method and device | |
CN105892618A (en) | Information display method and device and electronic device | |
KR20130081117A (en) | Mobile terminal and control method therof | |
KR20140008210A (en) | Mobile terminal and control method thereof | |
CN106201108B (en) | Gloves control mode touch mode control method and device and electronic equipment | |
CN108227933A (en) | The control method and device of glasses | |
CN107295190A (en) | Working mode switching method, device and protective case | |
CN107038428A (en) | Vivo identification method and device | |
CN107102801A (en) | Terminal screen spinning solution and device | |
CN107529699A (en) | Control method of electronic device and device | |
CN106502403A (en) | Intelligent glasses control method, device and intelligent glasses | |
CN106292994A (en) | The control method of virtual reality device, device and virtual reality device | |
CN107622189A (en) | Optimize the method and apparatus of unlocked by fingerprint | |
CN105893854A (en) | Encryption and decryption method and device | |
CN105390120A (en) | Bright screen control method and device | |
CN107122149A (en) | Display methods, device and the terminal of application program | |
CN114093360A (en) | Calling method, calling device, electronic equipment and storage medium | |
CN107247535A (en) | Intelligent mirror adjusting method, device and computer-readable recording medium | |
CN106877451A (en) | Charge port short-circuit protection method and device | |
CN106791169A (en) | Screen control method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170915 |