CN109800555A - Access control method and device - Google Patents
Access control method and device Download PDFInfo
- Publication number
- CN109800555A CN109800555A CN201910133433.7A CN201910133433A CN109800555A CN 109800555 A CN109800555 A CN 109800555A CN 201910133433 A CN201910133433 A CN 201910133433A CN 109800555 A CN109800555 A CN 109800555A
- Authority
- CN
- China
- Prior art keywords
- currently used
- user
- used person
- duration
- response
- 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
Landscapes
- Collating Specific Patterns (AREA)
Abstract
The embodiment of the present application discloses access control method and device.One embodiment of access control method includes: the user's image for obtaining current sample time;Recognition of face is carried out to acquired user's image, it is whether identical as the user of a upper sampling instant with the currently used person of determination;It is identical as the user of a upper sampling instant in response to currently used person, using the time difference between current sample time and a upper sampling instant as the use duration of currently used person.The implementation is conducive to accurately identify currently used person, to realize the accurately calculating using duration for being directed to each user.
Description
Technical field
The invention relates to computer fields, and in particular to access control field more particularly to access control method
And device.
Background technique
Access control typically refers to system and limits it to user identity and its affiliated tactful group predetermined and use number
According to the means of resource capability.By access control, service provider can control to service (example provided by service user
Such as, the type etc. of the duration and/or service that including but not limited to service).
In the prior art, usually accessed using account, password control.Alternatively, in the prior art, also having using people
The mode of face registration is registered, and judges by recognition of face when logging in whether user when logging in is registered to recognize
Demonstrate,prove user.For example, existing access control method usually passes through detection in the application scenarios being monitored to the duration of service
Initial time of the register that user is carried out using account, password as offer service, and since the initial time, continuously
Ground calculates the duration of the service of offer.
Summary of the invention
The embodiment of the present application proposes access control method and device.
In a first aspect, the embodiment of the present application provides a kind of access control method, comprising: obtain making for current sample time
User's image;Recognition of face is carried out to acquired user's image, with making for the currently used person of determination and a upper sampling instant
Whether user is identical;It is identical as the user of a upper sampling instant in response to currently used person, by current sample time and upper one
Use duration of the time difference as currently used person between sampling instant.
In some embodiments, method further include: it is different from the user of a upper sampling instant in response to currently used person,
Based on the face recognition result to currently used person's image, judge whether currently used person is certification user;In response to currently making
User is not certification user, sends the first prompt information to currently used person.
In some embodiments, method further include: the tired of currently used person is updated using duration based on currently used person
Timing is long;Time duration in response to currently used person is more than pre-set first duration threshold value, is sent to currently used person
Second prompt information.
In some embodiments, method further include: it is in default emotional state in response to the emotional state of currently used person,
It determines in a preset continuous time, whether the duration that currently used person is in default emotional state is more than preset time length ratio
Example;The duration for being in default emotional state in response to currently used person is more than preset duration ratio, is sent to currently used person
Third prompt information.
In some embodiments, different from the user of a upper sampling instant in response to currently used person, based on to working as
The face recognition result of preceding user's image judges whether currently used person is method after certification user further include: in response to
Currently used person is certification user, and the time difference between current sample time and a upper sampling instant is added to currently used person
Use duration in.
In some embodiments, before the user's image for obtaining current sample time, method further include: in response to connecing
The registration request for receiving user to be registered obtains facial image to be registered;People is carried out to acquired facial image to be registered
Face identification, with the age of determination user to be registered;It is in pre-set age threshold in response to the identified age, is refused
The registration request of user to be registered.
Second aspect, the embodiment of the present application also provides a kind of access control apparatus, comprising: acquiring unit is configured to
Obtain user's image of current sample time;Recognition unit is configured to carry out face knowledge to acquired user's image
Not, whether identical as the user of a upper sampling instant with the currently used person of determination;Duration determination unit, is configured in response to
Currently used person is identical as the user of a upper sampling instant, by the time difference between current sample time and a upper sampling instant
Use duration as currently used person.
In some embodiments, device further include: judging unit is configured in response to currently used person and a upper sampling
The user at moment is different, based on the face recognition result to currently used person's image, judges whether currently used person is certification
User;First prompt unit, being configured in response to currently used person not is certification user, sends first to currently used person and mentions
Show information.
In some embodiments, device further include: updating unit is configured to the use duration based on currently used person more
The time duration of new currently used person;Second prompt unit, it is more than pre- for being configured in response to the time duration of currently used person
The first duration threshold value being first arranged sends the second prompt information to currently used person.
In some embodiments, duration determination unit is further configured at the emotional state in response to currently used person
It in default emotional state, determines in a preset continuous time, whether duration of the currently used person in default emotional state
More than preset duration ratio;Device further includes third prompt unit, is configured in response to currently used person and is in default feelings
The duration of not-ready status is more than preset duration ratio, sends third prompt information to currently used person.
In some embodiments, duration determination unit is configured to, if judging unit judges that currently used person is that certification is used
Time difference between current sample time and a upper sampling instant is added in the use duration of currently used person by family.
In some embodiments, device further includes registering unit, and registering unit is configured to: to be registered in response to receiving
The registration request of user obtains facial image to be registered;Recognition of face is carried out to acquired facial image to be registered, with true
The age of fixed user to be registered;It is in pre-set age threshold in response to the identified age, refuses use to be registered
The registration request of person.
The third aspect, the embodiment of the present application provide a kind of electronic equipment, comprising: one or more processors;Storage dress
It sets, for storing one or more programs, when one or more programs are executed by one or more processors, so that one or more
A processor realizes the method as described in first aspect.
Fourth aspect, the embodiment of the present application provide a kind of computer readable storage medium, are stored thereon with computer journey
Sequence, wherein the method as described in first aspect is realized when program is executed by processor.
The scheme of access control provided by the embodiments of the present application obtains user's image of current sample time first;It connects
, recognition of face is carried out to acquired user's image, is with the currently used person of determination and the user of a upper sampling instant
It is no identical;Then, identical as the user of a upper sampling instant in response to currently used person, current sample time is adopted with upper one
Time difference between the sample moment is added in the use duration of the user, scheme is accurately identified currently used
Person, to realize the accurately calculating using duration for being directed to some user.
Detailed description of the invention
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, the application's is other
Feature, objects and advantages will become more apparent upon:
Fig. 1 is that the access control method of the application one embodiment can be applied to exemplary system architecture figure therein;
Fig. 2 is the flow chart according to one embodiment of the access control method of the application;
Fig. 3 is the schematic diagram according to an application scenarios of the access control method of the application;
Fig. 4 is the flow chart according to another embodiment of the access control method of the application;
Fig. 5 is the process according to a kind of optional implementation of the access control method of the application;
Fig. 6 is the structure chart according to one embodiment of the access control apparatus of the application;
Fig. 7 is adapted for the knot of the computer system for the electronic equipment for realizing the access control method of the embodiment of the present application
Structure schematic diagram.
Specific embodiment
The application is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining related invention, rather than the restriction to the invention.It also should be noted that in order to
Convenient for description, part relevant to related invention is illustrated only in attached drawing.
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase
Mutually combination.The application is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
Fig. 1 is shown can be using the exemplary system of the embodiment of the access control method or access control apparatus of the application
System framework 100.
As shown in Figure 1, system architecture 100 may include terminal device 101,102,103, network 104 and server 105.
Network 104 between terminal device 101,102,103 and server 105 to provide the medium of communication link.Network 104 can be with
Including various connection types, such as wired, wireless communication link or fiber optic cables etc..
User 110 can be used terminal device 101,102,103 and be interacted with server 105 by network 104, with reception or
Send message etc..Various client applications can be installed on terminal device 101,102,103, such as the application of Text region class,
Image processing class application, translation class application etc..
Terminal device 101,102,103 can be the various electronic equipments with screen, including but not limited to smart phone,
Tablet computer, smartwatch, pocket computer on knee and desktop computer etc..
Server 105 can be to provide the server of various services, such as to the visit that terminal device 101,102,103 is sent
Ask the background server that request is handled.Background server can be accessed based on the access request received controls judgement
Processing, and processing result (for example, be used to indicate agreement or refuse the information provided services to the user) is fed back into terminal device
101、102、103。
It should be noted that access control method provided by the embodiment of the present application can be executed by server 105, it can also
With by terminal device 101,102,103 execute, alternatively, can with a part by server 105 execute and another part by terminal
Equipment 101,102,103 executes.Correspondingly, access control apparatus can be set in server 105, also can be set in terminal
In equipment 101,102,103, alternatively, can with a part be arranged in server 105 and another part be arranged in terminal device
101, in 102,103.
It should be understood that if access control method provided by the embodiment of the present application is only set by server 105 or only by terminal
Standby 101,102,103 execute, and framework shown in FIG. 1 can only comprising server or only include terminal device.In addition, in Fig. 1
The number of terminal device, network and server is only schematical.According to needs are realized, any number of terminal can have
Equipment, network and server.Such as server can be the server of concentrating type, the more services including deploying different processes
Device.
With continued reference to Fig. 2, it illustrates the processes 200 according to one embodiment of the access control method of the application.
The access control method, comprising the following steps:
Step 201, user's image of current sample time is obtained.
Herein, the image of user can be understood as the figure that the user of the service of server offer is being currently used
Picture.
In application scenes, if the executing subject of the access control method of the present embodiment is terminal device (for example, such as
Terminal device shown in FIG. 1 101,102,103), executing subject can by the image capture module that is disposed thereon (for example,
Camera) alternatively, obtaining making for current time by the image collecting device that wired or wireless communication mode is connect with it
User's image.
Alternatively, in other application scenarios, if the executing subject of the access control method of the present embodiment is server (example
Such as, server 105 as shown in Figure 1), executing subject can receive therewith by wired or wireless connection, currently used
The image that terminal device used in person is obtained in current sample time, user's image as current sample time.
In addition, in application scenes, if the access control method of the present embodiment is embodied as a kind of real-time processing method,
Then in these application scenarios, " current sample time " can be understood as a shooting user image nearest away from current time
Historical juncture.For example, a sampling instant sequence T={ t1, t2 ..., tn } can be preset in application scenes,
Each of these sampling instant is illustrated as " xx divides xx seconds when xxxx xx month xx day xx ".So, in these applications
In scene, then can be most connect with current time (for example, when 24 days 11 December in 2018 20 divide 52 seconds) by sampling instant sequence
A close historical juncture (that is, at the time of having occurred and that), as current sample time.
Alternatively, in other application scenarios, if the access control method of the present embodiment is embodied as a kind of processed offline side
Method, then in these application scenarios, " current sample time " can be any one specified sampling instant.Still with sampling instant
, can be according to the demand of concrete application scene for sequence T={ t1, t2 ..., tn }, it will be any one in sampling instant sequence T
A sampling instant is as current sample time.
It is understood that if executing subject, which fails, gets user's image, and executing subject can in sampling instant
To issue corresponding prompt information.For example, in application scenes, if making for current sample time has not been obtained in executing subject
User's image can issue prompt information, to prompt user, so that user be made to adjust terminal device or Image Acquisition shape
The working condition of state.
In addition, can determine sampling instant according to preset rules in the present embodiment.
For example, in some optional implementations, it can be each to determine according to a certain pre-set sampling interval
The secondary sampling instant for obtaining user's image.In the application scenes of these optional implementations, executing subject can be with
Self-test, which measures user, requests service provider at the time of providing service (for example, detecting the login of user's login service device
At the time of operation) it rises, user's image at a current time is obtained at interval of a fixed period (for example, 1 minute).
Alternatively, executing subject can be according to the currently used service of user in other optional implementations
Classification dynamically adjusts the sampling interval.In the application scenes of these optional implementations, if user currently makes
Service is video playing service, and the longer sampling interval for obtaining user's image can be set in executing subject, and if making
The currently used service of user is game class service, and executing subject can be set between the sampling of shorter acquisition user's image
Every.
Step 202, recognition of face is carried out to acquired user's image, when with the currently used person of determination with upper one sampling
Whether the user at quarter is identical.
Herein, currently used person can be understood as making indicated by the user's image got in current sample time
User.
In this step, by being identified to acquired user's image, it can be determined that go out current sample time and upper
Whether one sampling instant is the same user using the user of server service provided.
It is appreciated that in order to realize determine whether currently used person identical as the user of a upper sampling instant, Yi Xieke
The implementation of choosing for example can be, and recognition of face be carried out to user's image of current sample time, by face recognition result
(for example, user's identity of current sample time) is compared with the face recognition result of a upper sampling instant, to judge
Whether currently used person is identical as the user of a upper sampling instant.In the application scenes of these optional implementations
In, user's image of current sample time can be inputted to the human face recognition model pre-established, and utilize recognition of face mould
Type obtains user's identity corresponding with user's image.By user's identity of current sample time and upper one
Sampling instant is compared using identity, if the two is identical, it is believed that currently used person and a upper sampling instant
User is the same user;Conversely, if the two is different, it is believed that the user of currently used person and a upper sampling instant
It is not the same user.
Alternatively, other optional implementations be also possible that compare current sample time acquisition user's image and
User's image that a upper sampling instant obtains, and judge whether two user's images indicate identical user.
It, can be by each sampling instant and in the sampling instant in the application scenes of these optional implementations
User's image of acquisition is associated storage.Assuming that current sample time tiUser's image of acquisition is pi, upper one sampling when
Carve ti-1User's image of acquisition is pi-1, then, it, can be by p in these application scenariosiAnd pi-1What input pre-established
Discrimination model, to obtain instruction piWith pi-1Whether the differentiation result of identical user.And so on, in next sampling
Carve ti+1, in order to judge ti+1User's image p that this moment obtainsi+1With upper sampling instant tiUser's image p of acquisitioni
Whether identical user is indicated, it can be by pi+1And piThe discrimination model pre-established is inputted, to obtain instruction pi+1With piIt is
The differentiation result of no identical user.
It is understood that the available neural network of human face recognition model and discrimination model in above-mentioned implementation is real
It is existing.In the application scenarios for realizing human face recognition model and discrimination model using neural network, by human face recognition model and
Before discrimination model is applied to recognition of face or differentiates, it can also be trained using training sample set.
Step 203, identical as the user of a upper sampling instant in response to currently used person, by current sample time with it is upper
Use duration of the time difference as currently used person between one sampling instant.
If currently used person is identical with the user of a upper sampling instant, it may be considered that, from a upper sampling instant, until
In this period that current sample time stops, is not switched using the user of service provided by service provider, be
Currently used person.Therefore, in such a case, it is possible to will from a upper sampling instant, until current sample time stop this when
The duration of section uses a Duan Shichang of service provided by service provider as currently used person.
Conversely, if currently used person and the user of a upper sampling instant be not identical, it may be considered that, from when upper one sampling
It carves, until being cut in this period that current sample time stops using the user of service provided by service provider
It changes.Therefore, in this case, from a upper sampling instant, until the duration for this period that current sample time stops should not be made
A Duan Shichang of service provided by service provider is used for currently used person.
Access control method provided in this embodiment obtains user's image of current sample time first;Then, to institute
Whether user's image of acquisition carries out recognition of face, identical as the user of a upper sampling instant with the currently used person of determination;
Then, identical as the user of a upper sampling instant in response to currently used person, by current sample time and a upper sampling instant
Between time difference be added in the use duration of currently used person, enable scheme accurately to identify currently used person, from
And realize the accurately calculating using duration for being directed to some user.
With continued reference to the schematic diagram 300 that Fig. 3, Fig. 3 are according to the application scenarios of the access control method of the present embodiment.
In application scenarios shown in Fig. 3, it is intended to determine in 19:00~2018 on December 24, on December 24th, 2018
In this period of 19:10, used using terminal device A using the service of each user of the service provider B service provided
Duration.
In the application scenarios, terminal device A can be from this moment of 19:00 on December 24 in 2018, at interval of 1 point
Clock is once sampled, and obtains user's image of each sampling instant.Then in 19:00~2018 year on December 24th, 2018
In this period of 19:10 on December 24,11 sampling instants t0, t1 ..., t11, and available to 11 uses are contained
Person's image.
Each sampling instant since t1 can sequentially be used as current sample time, by current sample time
User's image carry out recognition of face, and be compared with the user of a upper sampling instant, and then determine whether upper one
This period of sampling instant to current sample time uses duration as one of currently used person.
As shown in Figure 3, it is assumed that since within this period terminated t0 to t11, use that each sampling instant is got
Person's image carries out the user's identity for each sampling instant that recognition of face obtains as shown in appended drawing reference 310 in Fig. 3, then,
In on December 24th, 2018 19:00~2018 this period of 19:10 on December 24, it may be determined that user a uses service
Use when 3 minutes a length of (t0~t1, t8~t9, tri- periods of t9~t10), user b using service use when a length of 5
Minute (t2~t3, t3~t4, t4~t5, t5~t6, five periods of t6~t7).And two periods of t1~t2 and t7~t8, by
Switch in user has occurred, during can not determining two periods, the use duration of user a and user b.
With further reference to Fig. 4, it illustrates the processes 400 of another embodiment of access control method.
The process 400 of the access control method, comprising the following steps:
Step 401, user's image of current sample time is obtained.
Step 402, recognition of face is carried out to acquired user's image, when with the currently used person of determination with upper one sampling
Whether the user at quarter is identical.
Step 403, identical as the user of a upper sampling instant in response to currently used person, by current sample time with it is upper
Use duration of the time difference as currently used person between one sampling instant.
The step 401 of the present embodiment~step 403 can be respectively adopted and the step 201 in embodiment illustrated in fig. 2~step
Rapid 203 similar modes execute, and details are not described herein.
Unlike embodiment shown in Fig. 2, the access control method of the present embodiment be may further comprise:
Step 404, different from the user of a upper sampling instant in response to currently used person, based on to currently used person figure
The face recognition result of picture judges whether currently used person is certification user.
Herein, certification user can refer to the user for having obtained the license of " allowing using service " of service provider.Example
Such as, service is sent using request, if service mentions it is expected that can be operated by registration etc. to service provider using the user of service
Supplier allows the user using service, then can use request by the service that the user sends.So, if after the user
Prestige is renewed using service, the operation such as login can be executed, so that service provider identity according to indicated by its register, comes
Provide it the service of respective classes.
Further, it is to be appreciated that if service provider can be poor to provide to each user according to the identity of user
The service of alienation, for example, different classes of service is provided to each user according to the difference of user's identity, in this step
In 404, judge whether currently used person is certification user is also understood that be to judge whether currently used person has using current
The access right of service.
Step 405, it is not certification user in response to currently used person, sends the first prompt information to currently used person.
In this step, if currently used person is not certification user, it may be considered that, currently used person does not have using current
The permission of service.In such a case, it is possible to send the first prompt information to user, the first prompt information for example can be used for
Remind currently used person that it does not have the permission using current service, so that currently used person be reminded to exit current service.It is optional
Ground, if within certain time after executing subject sends the first prompt information, if currently used person does not exit current service yet
(for example, executing subject can according to user's image to acquired current sample time carry out recognition of face result come
Judge whether currently used person changes), executing subject can be interrupted further to currently used person and provide current service.
In addition, after step 403, can further include in some optional implementations of the present embodiment:
It step 405, is certification user in response to currently used person, it will be between current sample time and a upper sampling instant
Time difference is added in the use duration of currently used person.
In the application scenes of these optional implementations, it is assumed that in continuous three sampling instants t1, t2 and
In t3, the recognition result for carrying out recognition of face to user's image that t1 sampling instant obtains is certification user A, when sampling to t2
Carving the user's image obtained and carrying out the recognition result of recognition of face is certification user A, and is made to t3 sampling instant acquisition
The recognition result that user's image carries out recognition of face is certification user B, then, in these application scenarios, t1~t2 period
Duration will use duration as certification one section of user A, and the duration of t2~t3 period is by one section as certification user B
Use duration.
So, the identity that currently used person is accurately determined according to the result of recognition of face, may be implemented to each
Sampling instant, the accurate judgement of the identity of actual use person use the accurate of duration to the service of each user to realize
It calculates and accumulative.
In some optional implementations of each embodiment of the application, the access control method of the application can also be into one
Step includes:
The time duration that currently used person is updated using duration based on currently used person.And in response to currently used
The time duration of person is more than pre-set first duration threshold value, sends the second prompt information to currently used person.
In the following, coming in conjunction with Fig. 5 attached to these by above-mentioned further step for embodiment shown in Fig. 2 combines
The step of adding, is further detailed.
Step 510~step 503 shown in Fig. 5 can be respectively according to similar with step 201~step 203 shown in Fig. 2
Mode execute, details are not described herein.
An executing subject step 501~step 503 of every execution can determine the identity of currently used person, and really
Fixed this period from a upper sampling instant to current sample time whether be currently used person use time.For example, if working as
Preceding user is user A, and is made for user A using service from a upper sampling instant to this period of current sample time
With the period, then, the duration of this period from a upper sampling instant to current sample time can add up tired to user A
During timing is long.Similarly, if currently used person is user B, and when this from a upper sampling instant to current sample time
Section is use time of the user B using service, then, the duration of this period from a upper sampling instant to current sample time
It can add up into the time duration of user B;If currently used person is user C, and from a upper sampling instant to currently adopting
This period at sample moment is use time of the user C using service, then, from a upper sampling instant to current sample time
The duration of this period can add up into the time duration of user C.
So, executing subject can use each user during service provider provides services to the user
The duration of service is monitored and adds up.
Correspondingly, as shown in step 504 in Fig. 5, if the time duration that executing subject monitors currently used person is more than pre-
The first duration threshold value being first arranged sends the second prompt information to currently used person.Second prompt information for example can be used for mentioning
Show currently used person, the time duration using service has been more than a certain numerical value, to remind currently used person can not excessive labor
It is tired.For example, service provider provides game class service, which can remind currently used person that it plays game
It has timed out, to avoid addiction wherein, please actively exits game.
It is appreciated that step attached in these optional implementations can also mutually be tied with embodiment shown in Fig. 4
It closes, details are not described herein.
In addition, access control method can also be further in some optional implementations of each embodiment of the application
Include:
It is in default emotional state in response to the emotional state of currently used person, is determined in a preset continuous time,
Whether the duration that currently used person is in default emotional state is more than preset duration ratio;And in response to currently used person
Duration in default emotional state is more than preset duration ratio, sends third prompt information to currently used person.
In these optional implementations, executing subject is based on to acquired user's image progress recognition of face
Recognition result determines the emotional state of currently used person, for example, whether currently used person is in nervous, anxiety and/or attention
The state of power high concentration.Herein, the emotional state of currently used person can be identified using existing any mode.Example
Such as, it can use neural network trained in advance to carry out recognition of face and emotional state identification.
If the current emotional states of currently used person are preset emotional state (for example, the anxiety as above enumerated, anxiety
And/or state of attention high concentration etc.), then it can further monitor in a preset continuous time, currently used person
Duration in default emotional state.For example, user a is in tense situation in continuous sampling instant t1~t4,
It is possible to think, within this period stopped from the t1 moment to the t4 moment, user a is in tense situation.Further
Ground, if preset continuous time is the period constituted in 4 continuous sampling intervals, and preset duration ratio is 50%, then,
Obviously continuous 3 sampling intervals have been contained to this period that the t4 moment stops from the t1 moment, that is, user a is even
In the period that 4 continuous sampling intervals are constituted, the ratio of the duration in default emotional state is 3/4 × 100%=75% >
50%.In the case, executing subject will send third prompt information to user a, to remind the user to pay attention to controlling feelings
Thread avoids damaging its physical and mental health during using service as far as possible.
In some optional implementations of each embodiment of the application, in the user's image for obtaining current sample time
Before, the access control method of the application can further include:
In response to receiving the registration request of user to be registered, facial image to be registered is obtained;To acquired wait infuse
Volume facial image carries out recognition of face, with the age of determination user to be registered;And it is in pre- in response to the identified age
The age threshold being first arranged refuses the registration request of user to be registered.
It so, not only can be to people by obtaining its facial image when user to be registered carries out registration request
Face image carries out age identification to shield the user to be registered for not meeting age requirement, can also respectively implement executing the application
Example access control method when, for judge currently used person whether be certification user (such as, if passed through registration) offer phase
The judgment basis answered.
With further reference to Fig. 6, as the realization to method shown in above-mentioned each figure, this application provides a kind of access control dresses
The one embodiment set, the Installation practice is corresponding with embodiment of the method shown in Fig. 2, which specifically can be applied to respectively
In kind electronic equipment.
As shown in fig. 6, the access control apparatus of the present embodiment includes that acquiring unit 601, recognition unit 602 and duration determine
Unit 603.
Wherein, acquiring unit 601 can be configured to obtain user's image of current sample time.
Recognition unit 602 can be configured to carry out acquired user's image recognition of face, currently used with determination
Whether person is identical as the user of a upper sampling instant.
Duration determination unit 603 can be configured to it is identical as the user of a upper sampling instant in response to currently used person,
Using the time difference between current sample time and a upper sampling instant as the use duration of currently used person.
In some optional implementations, the access control apparatus of the present embodiment can also include judging unit (in figure
It is not shown) and the first prompt unit (not shown).
In these optional implementations, when judging unit can be configured in response to currently used person with upper one sampling
The user at quarter is different, based on the face recognition result to currently used person's image, judges whether currently used person is that certification is used
Family.First prompt unit can be configured to not be certification user in response to currently used person, sends first to currently used person and mentions
Show information.
In some optional implementations, the access control apparatus of the present embodiment can also include updating unit (in figure
It is not shown) and the second prompt unit (not shown).
In these optional implementations, updating unit can be configured to the use duration based on currently used person and update
The time duration of currently used person.Second prompt unit can be configured to be more than preparatory in response to the time duration of currently used person
The first duration threshold value being arranged sends the second prompt information to currently used person.
In some optional implementations, duration determination unit can be further configured in response to currently used person
Emotional state be in default emotional state, determine in a preset continuous time, currently used person is in default mood shape
Whether the duration of state is more than preset duration ratio.
In these optional implementations, the access control apparatus of the present embodiment further includes can be with third prompt unit
(not shown).Third prompt unit can be configured to be in the duration for presetting emotional state in response to currently used person
Preset duration ratio sends third prompt information to currently used person.
In some optional implementations, if duration determination unit may be additionally configured to judging unit judge it is currently used
Person is certification user, when the time difference between current sample time and a upper sampling instant is added to the use of currently used person
In length.
In some optional implementations, the access control apparatus of the present embodiment can also include registering unit (in figure
It is not shown).
In these optional implementations, registering unit be can be configured to: in response to receiving user's to be registered
Registration request obtains facial image to be registered;Recognition of face is carried out to acquired facial image to be registered, it is to be registered with determination
The age of user;It is in pre-set age threshold in response to the identified age, refuses the registration of user to be registered
Request.
Below with reference to Fig. 7, it illustrates the electronic equipments for the access control method for being suitable for being used to realize the embodiment of the present application
Computer system 700 structural schematic diagram.Electronic equipment shown in Fig. 7 is only an example, should not be implemented to the application
The function and use scope of example bring any restrictions.
As shown in fig. 7, computer system 700 includes one or more processors 701, it can be according to being stored in read-only deposit
Program in reservoir (ROM) 702 is held from the program that storage section 706 is loaded into random access storage device (RAM) 703
The various movements appropriate of row and processing.In RAM 703, also it is stored with system 700 and operates required various programs and data.
CPU 701, ROM 702 and RAM 703 are connected with each other by bus 704.Input/output (I/O) interface 705 is also connected to always
Line 704.
I/O interface 705 is connected to lower component: the storage section 706 including hard disk etc.;And including such as LAN card, tune
The communications portion 707 of the network interface card of modulator-demodulator etc..Communications portion 707 executes mailing address via the network of such as internet
Reason.Driver 708 is also connected to I/O interface 705 as needed.Detachable media 709, such as disk, CD, magneto-optic disk, half
Conductor memory etc. is mounted on as needed on driver 708, in order to as needed from the computer program read thereon
It is mounted into storage section 706.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description
Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising be carried on computer-readable medium
On computer program, which includes the program code for method shown in execution flow chart.In such reality
It applies in example, which can be downloaded and installed from network by communications portion 707, and/or from detachable media
709 are mounted.When the computer program is executed by central processing unit (CPU) 701, limited in execution the present processes
Above-mentioned function.It should be noted that computer-readable medium described herein can be computer-readable signal media or
Computer readable storage medium either the two any combination.Computer readable storage medium for example can be --- but
Be not limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination.
The more specific example of computer readable storage medium can include but is not limited to: have one or more conducting wires electrical connection,
Portable computer diskette, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only deposit
Reservoir (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory
Part or above-mentioned any appropriate combination.In this application, computer readable storage medium, which can be, any include or stores
The tangible medium of program, the program can be commanded execution system, device or device use or in connection.And
In the application, computer-readable signal media may include in a base band or the data as the propagation of carrier wave a part are believed
Number, wherein carrying computer-readable program code.The data-signal of this propagation can take various forms, including but not
It is limited to electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be computer
Any computer-readable medium other than readable storage medium storing program for executing, the computer-readable medium can send, propagate or transmit use
In by the use of instruction execution system, device or device or program in connection.Include on computer-readable medium
Program code can transmit with any suitable medium, including but not limited to: wireless, electric wire, optical cable, RF etc., Huo Zheshang
Any appropriate combination stated.
The calculating of the operation for executing the application can be write with one or more programming languages or combinations thereof
Machine program code, described program design language include object oriented program language-such as Java, Smalltalk, C+
+, it further include conventional procedural programming language-such as " C " language or similar programming language.Program code can
Fully to execute, partly execute on the user computer on the user computer, be executed as an independent software package,
Part executes on the remote computer or executes on a remote computer or server completely on the user computer for part.
In situations involving remote computers, remote computer can pass through the network of any kind --- including local area network (LAN)
Or wide area network (WAN)-is connected to subscriber computer, or, it may be connected to outer computer (such as utilize Internet service
Provider is connected by internet).
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the application, method and computer journey
The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation
A part of one module, program segment or code of table, a part of the module, program segment or code include one or more use
The executable instruction of the logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in box
The function of note can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are actually
It can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it to infuse
Meaning, the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart can be with holding
The dedicated hardware based system of functions or operations as defined in row is realized, or can use specialized hardware and computer instruction
Combination realize.
Being described in unit involved in the embodiment of the present application can be realized by way of software, can also be by hard
The mode of part is realized.Described unit also can be set in the processor, for example, can be described as: a kind of processor packet
Acquisition is included into unit, recognition unit and duration determination unit.Wherein, the title of these units under certain conditions constitute pair
The restriction of the unit itself, for example, acquiring unit is also described as " obtaining the list of user's image of current sample time
Member ".
As on the other hand, present invention also provides a kind of computer-readable medium, which be can be
Included in device described in above-described embodiment;It is also possible to individualism, and without in the supplying device.Above-mentioned calculating
Machine readable medium carries one or more program, when said one or multiple programs are executed by the device, so that should
Device: user's image of current sample time is obtained;Recognition of face is carried out to acquired user's image, it is current to determine
Whether user is identical as the user of a upper sampling instant;In response to user's phase of currently used person and a upper sampling instant
Together, using the time difference between current sample time and a upper sampling instant as the use duration of currently used person.
Above description is only the preferred embodiment of the application and the explanation to institute's application technology principle.Those skilled in the art
Member is it should be appreciated that invention scope involved in the application, however it is not limited to technology made of the specific combination of above-mentioned technical characteristic
Scheme, while should also cover in the case where not departing from foregoing invention design, it is carried out by above-mentioned technical characteristic or its equivalent feature
Any combination and the other technical solutions formed.Such as features described above has similar function with (but being not limited to) disclosed herein
Can technical characteristic replaced mutually and the technical solution that is formed.
Claims (14)
1. a kind of access control method, comprising:
Obtain user's image of current sample time;
Recognition of face is carried out to acquired user's image, is with the currently used person of determination and the user of a upper sampling instant
It is no identical;
It is identical as the user of a upper sampling instant in response to currently used person, by current sample time and a upper sampling instant it
Between use duration of the time difference as the currently used person.
2. according to the method described in claim 1, wherein, the method also includes:
It is different from the user of a upper sampling instant in response to currently used person, based on the recognition of face to currently used person's image
As a result, judging whether the currently used person is certification user;
It is not certification user in response to the currently used person, sends the first prompt information to the currently used person.
3. method according to claim 1 or 2, the method also includes:
The time duration that the currently used person is updated using duration based on the currently used person;
Time duration in response to currently used person is more than pre-set first duration threshold value, is sent to the currently used person
Second prompt information.
4. according to the method described in claim 1, wherein, the method also includes:
It is in default emotional state in response to the emotional state of currently used person, is determined in a preset continuous time, it is described
Whether the duration that currently used person is in default emotional state is more than preset duration ratio;
The duration that default emotional state is in response to the currently used person is more than preset duration ratio, is currently made to described
User sends third prompt information.
5. according to the method described in claim 2, the user in response to currently used person and a upper sampling instant not
Together, based on the face recognition result to currently used person's image, judge whether the currently used person is institute after certification user
State method further include:
It is certification user in response to the currently used person, the time difference between current sample time and a upper sampling instant is tired out
It adds in the use duration of the currently used person.
6. according to claim 1-2, method described in one of 4-5, wherein in the user's figure for obtaining current sample time
Before picture, the method also includes:
In response to receiving the registration request of user to be registered, facial image to be registered is obtained;
Recognition of face is carried out to acquired facial image to be registered, with the age of the determination user to be registered;
It is in pre-set age threshold in response to the identified age, refuses the registration request of the user to be registered.
7. a kind of access control apparatus, comprising:
Acquiring unit is configured to obtain user's image of current sample time;
Recognition unit is configured to carry out recognition of face to acquired user's image, with the currently used person of determination and upper one
Whether the user of sampling instant is identical;
Duration determination unit, it is identical as the user of a upper sampling instant to be configured in response to currently used person, will currently adopt
Use duration of the time difference as the currently used person between sample moment and a upper sampling instant.
8. device according to claim 7, wherein described device further include:
Judging unit, it is different from the user of a upper sampling instant to be configured in response to currently used person, based on to currently making
The face recognition result of user's image judges whether the currently used person is certification user;
First prompt unit, being configured in response to the currently used person not is certification user, is sent out to the currently used person
Send the first prompt information.
9. device according to claim 7 or 8, described device further include:
Updating unit, be configured to based on the currently used person using duration update the currently used person it is accumulative when
It is long;
Second prompt unit, the time duration for being configured in response to currently used person is more than pre-set first duration threshold
Value sends the second prompt information to the currently used person.
10. device according to claim 7, in which:
The duration determination unit is further configured to be in default emotional state in response to the emotional state of currently used person,
It determines in a preset continuous time, when whether duration of the currently used person in default emotional state is more than preset
Long ratio;
Described device further includes third prompt unit, is configured in response to the currently used person and is in default emotional state
Duration is more than preset duration ratio, sends third prompt information to the currently used person.
11. device according to claim 8, the duration determination unit is configured to:
If the judging unit judges that the currently used person is certification user, by current sample time and a upper sampling instant it
Between time difference be added in the use duration of the currently used person.
12. the device according to one of claim 7-8,10-11, wherein described device further includes registering unit, the note
Volume unit is configured to:
In response to receiving the registration request of user to be registered, facial image to be registered is obtained;
Recognition of face is carried out to acquired facial image to be registered, with the age of the determination user to be registered;
It is in pre-set age threshold in response to the identified age, refuses the registration request of the user to be registered.
13. a kind of electronic equipment, comprising:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors are real
Now such as method as claimed in any one of claims 1 to 6.
14. a kind of computer readable storage medium, is stored thereon with computer program, wherein described program is executed by processor
Shi Shixian method for example as claimed in any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910133433.7A CN109800555A (en) | 2019-02-22 | 2019-02-22 | Access control method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910133433.7A CN109800555A (en) | 2019-02-22 | 2019-02-22 | Access control method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109800555A true CN109800555A (en) | 2019-05-24 |
Family
ID=66561212
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910133433.7A Pending CN109800555A (en) | 2019-02-22 | 2019-02-22 | Access control method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109800555A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110087124A (en) * | 2019-06-05 | 2019-08-02 | 聚好看科技股份有限公司 | Long-range control method, terminal device and the smart television of smart television |
CN111916203A (en) * | 2020-06-18 | 2020-11-10 | 北京百度网讯科技有限公司 | Health detection method and device, electronic equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1085454A2 (en) * | 1999-09-14 | 2001-03-21 | Fujitsu Limited | Personal authentication system using biometrics information |
CN102201047A (en) * | 2010-11-09 | 2011-09-28 | 湖南创合制造有限公司 | Computer management method |
CN103488293A (en) * | 2013-09-12 | 2014-01-01 | 北京航空航天大学 | Man-machine motion interaction system and method based on expression recognition |
CN105893824A (en) * | 2016-04-01 | 2016-08-24 | 深圳市智汇十方科技有限公司 | Method for controlling mobile terminal |
CN106295273A (en) * | 2016-07-27 | 2017-01-04 | 广东欧珀移动通信有限公司 | Control method and control device |
-
2019
- 2019-02-22 CN CN201910133433.7A patent/CN109800555A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1085454A2 (en) * | 1999-09-14 | 2001-03-21 | Fujitsu Limited | Personal authentication system using biometrics information |
CN102201047A (en) * | 2010-11-09 | 2011-09-28 | 湖南创合制造有限公司 | Computer management method |
CN103488293A (en) * | 2013-09-12 | 2014-01-01 | 北京航空航天大学 | Man-machine motion interaction system and method based on expression recognition |
CN105893824A (en) * | 2016-04-01 | 2016-08-24 | 深圳市智汇十方科技有限公司 | Method for controlling mobile terminal |
CN106295273A (en) * | 2016-07-27 | 2017-01-04 | 广东欧珀移动通信有限公司 | Control method and control device |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110087124A (en) * | 2019-06-05 | 2019-08-02 | 聚好看科技股份有限公司 | Long-range control method, terminal device and the smart television of smart television |
CN111916203A (en) * | 2020-06-18 | 2020-11-10 | 北京百度网讯科技有限公司 | Health detection method and device, electronic equipment and storage medium |
CN111916203B (en) * | 2020-06-18 | 2024-05-14 | 北京百度网讯科技有限公司 | Health detection method, apparatus, electronic device and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101731404B1 (en) | Voice and/or facial recognition based service provision | |
CN110428555A (en) | Shared charging equipment gives back method and device | |
CN108830235A (en) | Method and apparatus for generating information | |
CN107430858A (en) | The metadata of transmission mark current speaker | |
CN110401844A (en) | Generation method, device, equipment and the readable medium of net cast strategy | |
CN108924218A (en) | Method and apparatus for pushed information | |
CN109872408A (en) | Method and apparatus for sending information | |
CN113315869B (en) | Content display method, content display device, electronic equipment, content display system and storage medium | |
CN112291629A (en) | Interaction method and device and electronic equipment | |
CN109800555A (en) | Access control method and device | |
CN110046571A (en) | The method and apparatus at age for identification | |
CN110134480B (en) | User trigger operation processing method and device, electronic equipment and storage medium | |
CN108830980A (en) | Security protection integral intelligent robot is received in Study of Intelligent Robot Control method, apparatus and attendance | |
CN105763545B (en) | A kind of BYOD method and device | |
CN110009402A (en) | A kind of food delivery method and device | |
CN114548755A (en) | Method, system, device, equipment and medium for preventing congestion in tourist attraction | |
CN112818303B (en) | Interaction method and device and electronic equipment | |
CN106326328B (en) | Picture transmitter device, image sending method and recording medium | |
CN108985178A (en) | Method and apparatus for generating information | |
US10834231B2 (en) | Methods, systems, and media for pairing devices to complete a task using an application request | |
CN108881766A (en) | Method for processing video frequency, device, terminal and storage medium | |
CN110415318B (en) | Image processing method and device | |
KR102277691B1 (en) | Method and system for managing image based on interworking face image and messenger account | |
CN110275785A (en) | Data processing method, device, client and server | |
CN115671723A (en) | Resource processing method, device, equipment and medium |
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 |