CROSS-REFERENCE TO RELATED APPLICATION
BACKGROUND
Field
[0002] Certain aspects of the present disclosure generally relate to neural system engineering
and, more particularly, to systems and methods for blink and averted gaze avoidance
in photographic images.
Background
[0003] An artificial neural network, which may comprise an interconnected group of artificial
neurons (i.e., neuron models), is a computational device or represents a method to
be performed by a computational device. Artificial neural networks may have corresponding
structure and/or function in biological neural networks. Artificial neural networks,
however, may provide innovative and useful computational techniques for certain applications
in which traditional computational techniques are cumbersome, impractical, or inadequate.
Because artificial neural networks can infer a function from observations, such networks
are particularly useful in applications where the complexity of the task or data makes
the design of the function by conventional techniques burdensome.
[0004] In some cases, a photograph may include a subject that is blinking and/or not looking
at the camera. Accordingly, it is desirable to capture an image with each subject
looking at the camera and also not blinking. Still, it may be difficult to capture
a desired image when the image includes a large group of individuals, distracted individuals,
young children, and/or individuals that may be actively avoiding the camera. Neural
networking techniques may be employed to address these issues An example of related
prior art is
US 2004/170397 A1 (ONO SHUJI [JP]) 2 September 2004 (
2004-09-02).
SUMMARY
[0005] The object of the invention is achieved by the subject-matter of the independent
claims. Advantageous embodiments are disclosed by the dependent claims.
[0006] Additional features and advantages of the disclosure will be described below. It
should be appreciated by those skilled in the art that this disclosure may be readily
utilized as a basis for modifying or designing other structures for carrying out the
same purposes of the present disclosure. It should also be realized by those skilled
in the art that such equivalent constructions do not depart from the teachings of
the disclosure as set forth in the appended claims. The novel features, which are
believed to be characteristic of the disclosure, both as to its organization and method
of operation, together with further objects and advantages, will be better understood
from the following description when considered in connection with the accompanying
figures. It is to be expressly understood, however, that each of the figures is provided
for the purpose of illustration and description only and is not intended as a definition
of the limits of the present disclosure.
BRIEF DESCRIPTION OF THE DRAWINGS
[0007] The features, nature, and advantages of the present disclosure will become more apparent
from the detailed description set forth below when taken in conjunction with the drawings
in which like reference characters identify correspondingly throughout.
FIGURE 1 illustrates an example network of neurons in accordance with certain aspects
of the present disclosure.
FIGURE 2 illustrates an example of a processing unit (neuron) of a computational network
(neural system or neural network) in accordance with certain aspects of the present
disclosure.
FIGURE 3 illustrates an example of spike-timing dependent plasticity (STDP) curve
in accordance with certain aspects of the present disclosure.
FIGURE 4 illustrates an example of a positive regime and a negative regime for defining
behavior of a neuron model in accordance with certain aspects of the present disclosure.
FIGURE 5 is a flow diagram further illustrating the method of blink and averted gaze
avoidance in accordance with aspects of the present disclosure, not covered by the
invention.
FIGURE 6 is a flow diagram illustrating a method of blink and averted gaze avoidance
in images in accordance with aspects of the present disclosure.
FIGURE 7 is a block diagram further illustrating the method of blink and averted gaze
avoidance in images in accordance with aspects of the present disclosure.
FIGURE 8 illustrates an example implementation of designing a neural network using
a general-purpose processor in accordance with certain aspects of the present disclosure.
FIGURE 9 illustrates an example implementation of designing a neural network where
a memory may be interfaced with individual distributed processing units in accordance
with certain aspects of the present disclosure.
FIGURE 10 illustrates an example implementation of designing a neural network based
on distributed memories and distributed processing units in accordance with certain
aspects of the present disclosure.
FIGURE 11 illustrates an example implementation of a neural network in accordance
with certain aspects of the present disclosure.
FIGURES 12 and 13 are flow diagrams illustrating a method of blink and averted gaze
avoidance in accordance with aspects of the present disclosure, not covered by the
claimed invention.
DETAILED DESCRIPTION
[0008] The detailed description set forth below, in connection with the appended drawings,
is intended as a description of various configurations and is not intended to represent
the only configurations in which the concepts described herein may be practiced. The
detailed description includes specific details for the purpose of providing a thorough
understanding of the various concepts. However, it will be apparent to those skilled
in the art that these concepts may be practiced without these specific details. In
some instances, well-known structures and components are shown in block diagram form
in order to avoid obscuring such concepts.
[0009] The word "exemplary" is used herein to mean "serving as an example, instance, or
illustration." Any aspect described herein as "exemplary" is not necessarily to be
construed as preferred or advantageous over other aspects.
[0010] Although some benefits and advantages of the preferred aspects are mentioned, the
scope of the disclosure is not intended to be limited to particular benefits, uses
or objectives. Rather, aspects of the disclosure are intended to be broadly applicable
to different technologies, system configurations, networks and protocols, some of
which are illustrated by way of example in the figures and in the following description
of the preferred aspects. The detailed description and drawings are merely illustrative
of the disclosure rather than limiting, the scope of the disclosure being defined
by the appended claims and equivalents thereof.
AN EXAMPLE NEURAL SYSTEM, TRAINING AND OPERATION
[0011] FIGURE 1 illustrates an artificial neural system 100 with multiple levels of neurons
in accordance with certain aspects of the present disclosure. The neural system 100
may have a level of neurons 102 coupled to another level of neurons 106 through a
network of synaptic connections 104 (i.e., feed-forward connections). For simplicity,
only two levels of neurons are illustrated in FIGURE 1, although fewer or more levels
of neurons may exist in a neural system. It should be noted that some of the neurons
may couple to other neurons of the same layer through lateral connections. Furthermore,
some of the neurons may couple back to a neuron of a previous layer through feedback
connections.
[0012] As illustrated in FIGURE 1, each neuron in the level 102 may receive an input signal
108 is generated by neurons of a previous level (not shown in FIGURE 1). The signal
108 may represent an input current of the level 102 neuron. This current may be accumulated
on the neuron membrane to charge a membrane potential. When the membrane potential
reaches its threshold value, the neuron may fire and generate an output spike that
is transferred to the next level of neurons (e.g., the level 106). In some modeling
approaches, the neuron may continuously transfer a signal to the next level of neurons.
This signal is typically a function of the membrane potential. Such behavior can be
simulated in hardware and/or software, including analog and digital implementations
such as those described below.
[0013] In biological neurons, an action potential is the output spike that is generated
when a neuron fires. This electrical signal is a relatively rapid, transient, nerve
impulse, having an amplitude of roughly 100 mV and a duration of about 1 ms. In one
configuration of a neural system having a series of connected neurons (e.g., the transfer
of spikes from one level of neurons to another in FIGURE 1), every action potential
has basically the same amplitude and duration, and thus, the information in the signal
may be represented only by the frequency and number of spikes, or the time of spikes,
rather than by the amplitude. The information carried by an action potential may be
determined by the spike, the neuron that spiked, and the time of the spike relative
to on other spike or spikes. The importance of the spike may be determined by a weight
applied to a connection between neurons, as explained below.
[0014] The transfer of spikes from one level of neurons to another may be achieved through
a network of synaptic connections (or simply "synapses") 104, as illustrated in FIGURE
1. Relative to the synapses 104, neurons of level 102 may be considered presynaptic
neurons and neurons of level 106 may be considered postsynaptic neurons. The synapses
104 may receive output signals (i.e., spikes) from the neurons of level 102 and scale
those signals according to adjustable synaptic weights

, where
P is a total number of synaptic connections between the neurons of levels 102 and 106,
and i is an indicator of the neuron level. In the example of FIGURE 1, i represents
the neuron level 102, and i+1 represents the neuron level 106. Further, the scaled
signals may be combined as an input signal of each neuron in the level 106. Every
neuron in the neuron level 106 may generate output spikes 110 based on the corresponding
combined input signal. The output spikes 110 may be transferred to another level of
neurons using another network of synaptic connections (not shown in FIGURE 1).
[0015] Biological synapses can mediate either excitatory or inhibitory (hyperpolarizing)
actions in postsynaptic neurons and can also serve to amplify neuronal signals. Excitatory
signals depolarize the membrane potential (i.e., increase the membrane potential with
respect to the resting potential). If enough excitatory signals are received within
a certain time period to depolarize the membrane potential above a threshold, an action
potential occurs in the postsynaptic neuron. In contrast, inhibitory signals generally
hyperpolarize (e.g., lower) the membrane potential. Inhibitory signals, if strong
enough, can counteract the sum of excitatory signals and prevent the membrane potential
from reaching a threshold. In addition to counteracting synaptic excitation, synaptic
inhibition can exert powerful control over spontaneously active neurons. A spontaneously
active neuron refers to a neuron that spikes without further input, for example due
to its dynamics or a feedback. By suppressing the spontaneous generation of action
potentials in these neurons, synaptic inhibition can shape the pattern of firing in
a neuron, which is generally referred to as sculpturing. The various synapses 104
may act as any combination of excitatory or inhibitory synapses, depending on the
desired behavior.
[0016] The neural system 100 may be simulated by a general purpose processor, a digital
signal processor (DSP), an application specific integrated circuit (ASIC), a field
programmable gate array (FPGA) or other programmable logic device (PLD), discrete
gate or transistor logic, discrete hardware components, a software module executed
by a processor, or any combination thereof. The neural system 100 may be utilized
in a large range of applications, such as image and pattern recognition, machine learning,
motor control, and the like. Each neuron in the neural system 100 may be implemented
as a neuron circuit. The neuron membrane charged to the threshold value initiating
the output spike may be implemented, for example, as a capacitor that integrates an
electrical current flowing through it.
[0017] In an aspect, the capacitor may be eliminated as the electrical current integrating
device of the neuron circuit, and a smaller memory resistor (memristor) element may
be used in its place. This approach may be applied in neuron circuits, as well as
in various other applications where bulky capacitors are utilized as electrical current
integrators. In addition, each of the synapses 104 may be implemented based on a memristor
element, where synaptic weight changes may relate to changes of the memristor resistance.
With nanometer feature-sized memristors, the area of a neuron circuit and synapses
may be substantially reduced, which may make implementation of a large-scale neural
system hardware implementation more practical.
[0018] Functionality of a neural processor that emulates the neural system 100 may depend
on weights of synaptic connections, which may control strengths of connections between
neurons. The synaptic weights may be stored in a non-volatile memory in order to preserve
functionality of the processor after being powered down. In an aspect, the synaptic
weight memory may be implemented on a separate external chip from the main neural
processor chip. The synaptic weight memory may be packaged separately from the neural
processor chip as a replaceable memory card. This may provide diverse functionalities
to the neural processor, where a particular functionality may be based on synaptic
weights stored in a memory card currently attached to the neural processor.
[0019] FIGURE 2 illustrates an exemplary diagram 200 of a processing unit (e.g., a neuron
or neuron circuit) 202 of a computational network (e.g., a neural system or a neural
network) in accordance with certain aspects of the present disclosure. For example,
the neuron 202 may correspond to any of the neurons of levels 102 and 106 from FIGURE
1. The neuron 202 may receive multiple input signals 204
1-204
N, which may be signals external to the neural system, or signals generated by other
neurons of the same neural system, or both. The input signal may be a current, a conductance,
a voltage, a real-valued, and/or a complex-valued. The input signal may comprise a
numerical value with a fixed-point or a floating-point representation. These input
signals may be delivered to the neuron 202 through synaptic connections that scale
the signals according to adjustable synaptic weights 206
1-206
N (W
1-W
N), where N may be a total number of input connections of the neuron 202.
[0020] The neuron 202 may combine the scaled input signals and use the combined scaled inputs
to generate an output signal 208 (i.e., a signal Y). The output signal 208 may be
a current, a conductance, a voltage, a real-valued and/or a complex-valued. The output
signal may be a numerical value with a fixed-point or a floating-point representation.
The output signal 208 may be then transferred as an input signal to other neurons
of the same neural system, or as an input signal to the same neuron 202, or as an
output of the neural system.
[0021] The processing unit (neuron) 202 may be emulated by an electrical circuit, and its
input and output connections may be emulated by electrical connections with synaptic
circuits. The processing unit 202 and its input and output connections may also be
emulated by a software code. The processing unit 202 may also be emulated by an electric
circuit, whereas its input and output connections may be emulated by a software code.
In an aspect, the processing unit 202 in the computational network may be an analog
electrical circuit. In another aspect, the processing unit 202 may be a digital electrical
circuit. In yet another aspect, the processing unit 202 may be a mixed-signal electrical
circuit with both analog and digital components. The computational network may include
processing units in any of the aforementioned forms. The computational network (neural
system or neural network) using such processing units may be utilized in a large range
of applications, such as image and pattern recognition, machine learning, motor control,
and the like.
[0022] During the course of training a neural network, synaptic weights (e.g., the weights

from FIGURE 1 and/or the weights 206
1-206
N from FIGURE 2) may be initialized with random values and increased or decreased according
to a learning rule. Those skilled in the art will appreciate that examples of the
learning rule include, but are not limited to the spike-timing-dependent plasticity
(STDP) learning rule, the Hebb rule, the Oja rule, the Bienenstock-Copper-Munro (BCM)
rule, etc. In certain aspects, the weights may settle or converge to one of two values
(i.e., a bimodal distribution of weights). This effect can be utilized to reduce the
number of bits for each synaptic weight, increase the speed of reading and writing
from/to a memory storing the synaptic weights, and to reduce power and/or processor
consumption of the synaptic memory.
Synapse Type
[0023] In hardware and software models of neural networks, the processing of synapse related
functions can be based on synaptic type. Synapse types may be non-plastic synapses
(no changes of weight and delay), plastic synapses (weight may change), structural
delay plastic synapses (weight and delay may change), fully plastic synapses (weight,
delay and connectivity may change), and variations thereupon (e.g., delay may change,
but no change in weight or connectivity). The advantage of multiple types is that
processing can be subdivided. For example, non-plastic synapses may not use plasticity
functions to be executed (or waiting for such functions to complete). Similarly, delay
and weight plasticity may be subdivided into operations that may operate together
or separately, in sequence or in parallel. Different types of synapses may have different
lookup tables or formulas and parameters for each of the different plasticity types
that apply. Thus, the methods would access the relevant tables, formulas, or parameters
for the synapse's type.
[0024] There are further implications of the fact that spike-timing dependent structural
plasticity may be executed independently of synaptic plasticity. Structural plasticity
may be executed even if there is no change to weight magnitude (e.g., if the weight
has reached a minimum or maximum value, or it is not changed due to some other reason)
s structural plasticity (i.e., an amount of delay change) may be a direct function
of pre-post spike time difference. Alternatively, structural plasticity may be set
as a function of the weight change amount or based on conditions relating to bounds
of the weights or weight changes. For example, a synapse delay may change only when
a weight change occurs or if weights reach zero but not if they are at a maximum value.
However, it may be advantageous to have independent functions so that these processes
can be parallelized reducing the number and overlap of memory accesses.
DETERMINATION OF SYNAPTIC PLASTICITY
[0025] Neuroplasticity (or simply "plasticity") is the capacity of neurons and neural networks
in the brain to change their synaptic connections and behavior in response to new
information, sensory stimulation, development, damage, or dysfunction. Plasticity
is important to learning and memory in biology, as well as for computational neuroscience
and neural networks. Various forms of plasticity have been studied, such as synaptic
plasticity (e.g., according to the Hebbian theory), spike-timing-dependent plasticity
(STDP), non-synaptic plasticity, activity-dependent plasticity, structural plasticity
and homeostatic plasticity.
[0026] STDP is a learning process that adjusts the strength of synaptic connections between
neurons. The connection strengths are adjusted based on the relative timing of a particular
neuron's output and received input spikes (i.e., action potentials). Under the STDP
process, long-term potentiation (LTP) may occur if an input spike to a certain neuron
tends, on average, to occur immediately before that neuron's output spike. Then, that
particular input is made somewhat stronger. On the other hand, long-term depression
(LTD) may occur if an input spike tends, on average, to occur immediately after an
output spike. Then, that particular input is made somewhat weaker, and hence the name
"spike-timing-dependent plasticity." Consequently, inputs that might be the cause
of the postsynaptic neuron's excitation are made even more likely to contribute in
the future, whereas inputs that are not the cause of the postsynaptic spike are made
less likely to contribute in the future. The process continues until a subset of the
initial set of connections remains, while the influence of all others is reduced to
an insignificant level.
[0027] FIGURE 3 illustrates an exemplary diagram 300 of a synaptic weight change as a function
of relative timing of presynaptic and postsynaptic spikes in accordance with the STDP.
If a presynaptic neuron fires before a postsynaptic neuron, then a corresponding synaptic
weight may be increased, as illustrated in a portion 302 of the graph 300. This weight
increase can be referred to as an LTP of the synapse. It can be observed from the
graph portion 302 that the amount of LTP may decrease roughly exponentially as a function
of the difference between presynaptic and postsynaptic spike times. The reverse order
of firing may reduce the synaptic weight, as illustrated in a portion 304 of the graph
300, causing an LTD of the synapse.
[0028] As illustrated in the graph 300 in FIGURE 3, a negative offset
µ may be applied to the LTP (causal) portion 302 of the STDP graph. A point of cross-over
306 of the x-axis (y=0) may be configured to coincide with the maximum time lag for
considering correlation for causal inputs from layer i-1. In the case of a frame-based
input (i.e., an input that is in the form of a frame of a particular duration comprising
spikes or pulses), the offset value
µ can be computed to reflect the frame boundary. A first input spike (pulse) in the
frame may be considered to decay over time either as modeled by a postsynaptic potential
directly or in terms of the effect on neural state. If a second input spike (pulse)
in the frame is considered correlated or relevant to a particular time frame, then
the relevant times before and after the frame may be separated at that time frame
boundary and treated differently in plasticity terms by offsetting one or more parts
of the STDP curve such that the value in the relevant times may be different (e.g.,
negative for greater than one frame and positive for less than one frame). For example,
the negative offset
µ may be set to offset LTP such that the curve actually goes below zero at a pre-post
time greater than the frame time and it is thus part of LTD instead of LTP.
NEURON MODELS AND OPERATION
[0029] There are some general principles for designing a useful spiking neuron model. A
good neuron model may have rich potential behavior in terms of two computational regimes:
coincidence detection and functional computation. Moreover, a good neuron model should
have two elements to allow temporal coding: arrival time of inputs affects output
time and coincidence detection can have a narrow time window. Finally, to be computationally
attractive, a good neuron model may have a closed-form solution in continuous time
and stable behavior including near attractors and saddle points. In other words, a
useful neuron model is one that is practical and that can be used to model rich, realistic
and biologically-consistent behaviors, as well as be used to both engineer and reverse
engineer neural circuits.
[0030] As illustrated in FIGURE 4, the dynamics of the model 400 may be divided into two
(or more) regimes. These regimes may be called the negative regime 402 (also interchangeably
referred to as the leaky-integrate-and-fire (LIF) regime, not to be confused with
the LIF neuron model) and the positive regime 404 (also interchangeably referred to
as the anti-leaky-integrate-and-fire (ALIF) regime, not to be confused with the ALIF
neuron model). In the negative regime 402, the state tends toward rest (
v_ ) at the time of a future event. In this negative regime, the model generally exhibits
temporal input detection properties and other sub-threshold behavior. In the positive
regime 404, the state tends toward a spiking event (
vs ). In this positive regime, the model exhibits computational properties, such as
incurring a latency to spike depending on subsequent input events. Formulation of
dynamics in terms of events and separation of the dynamics into these two regimes
are fundamental characteristics of the model.
[0031] There are several possible implementations of the Cold model, and executing the simulation,
emulation or model in time. This includes, for example, event-update, step-event update,
and step-update modes. An event update is an update where states are updated based
on events or "event update" (at particular moments). A step update is an update when
the model is updated at intervals (e.g., 1ms). This does not necessarily utilize iterative
methods or Numerical methods. An event-based implementation is also possible at a
limited time resolution in a step-based simulator by only updating the model if an
event occurs at or between steps or by "step-event" update.
BLINK AND AVERTED GAZE AVOIDANCE
[0032] Aspects of the present disclosure are directed to mitigating blinks and averted gazes
in captured images. Such processing is implemented with a neural network.
[0033] In some cases, a photograph may include a subject that is blinking and/or not looking
at the camera. Accordingly, it is desirable to capture an image with each subject
looking at the camera and also not blinking. Still, it may be difficult to capture
a desired image when the image includes a large group of individuals, distracted individuals,
young children, and/or individuals that may be actively avoiding the camera.
[0034] In the present application, a desired image refers to an image of one or more subjects
that are not blinking and are also looking at the camera. Of course, aspects of the
present application are not limited to an image in which all subjects are not blinking
and looking at the camera. Aspects are also contemplated for a threshold to capture
an image when a number of subjects are not blinking and also looking at the camera.
For example, in a group photograph, the image may be captured when a threshold percentage,
such as eighty percent, of the subjects in the image are looking at the camera and
not blinking.
[0035] In some cases, a photographer captures multiple images and manually searches the
captured images to select one or more images with each subject looking towards the
camera and also not blinking. Additionally, or alternatively, images with blinking
subjects may be corrected with post-processing applications. Moreover, some cameras
include a burst mode for capturing multiple images in a short duration. Still, in
a conventional camera, all of the images captured during the burst mode are stored
in memory for post-processing or user selection. That is, conventional cameras capture
multiple images that are post-processed and/or manually selected to obtain a desirable
image including subjects that are not blinking and do not have an averted gaze.
[0036] Thus, aspects of the present disclosure are directed to automatically determining
whether a subject is blinking and/or has an averted gaze and adjusting the timing
of the camera shutter to capture an image when a subject is looking at the camera
without blinking. In one configuration, the determining of a blink or averted gaze
is processed in real time. Furthermore, in one configuration, the time adjustment
is based on an estimated time when a subject is looking at the camera without blinking.
[0037] Neural networks may perform machine learning and object recognition. Specifically,
neural networks may recognize facial features and perform iris detection to determine
when a subject has a camera centered gaze and is also not blinking. The neural networks
may include one or more feature extraction layers followed by a learning layer to
enable blink and averted gaze avoidance in captured images. In one example, nodes,
such as neurons, in each layer may encode features in the form of a temporal features
pattern.
[0038] Aspects of the present disclosure are directed to blink avoidance and averted gaze
avoidance in photographic images. In one configuration, the blink detection analysis
and gaze direction analysis estimate a time to schedule the shutter of the camera
so that a blink-free and camera-centered gaze is captured for the one or more subjects
in a photo. The camera-centered gaze refers to the gaze of a subject that is looking
towards the camera.
[0039] In some cases, facial detection may determine the presence and/or location of a face
to initiate iris detection. Blink detection may be based on the iris detection and
may determine whether two irises are detected in a face. In one configuration, gaze
direction is determined by co-registering the face location and the iris location.
According to an aspect of the present disclosure, not covered by the claimed invention,
the shutter actuates when a blink is not detected and the gaze is towards the camera.
In an alternative, also not covered by the claimed invention, if a blink and/or an
averted gaze is/are detected, the shutter may be scheduled to actuate at an estimated
time in the future to capture the image. The estimated time may be based on a time
determined for an average blink and/or an average time of a diverted gaze. In one
configuration, the camera determines if a blink and/or diverted gaze is/are present
before capturing the image after the estimated time has lapsed. That is, before the
shutter is scheduled to open, the blink detection may be executed to determine that
a blink and/or diverted gaze is/are no longer present.
[0040] As previously discussed, the camera may periodically check for gaze direction. Additionally
or alternatively, a future gaze direction may be predicted based on prior gaze location
information so that the shutter is scheduled for an estimated time when the gaze will
be towards the camera. Moreover, in some cases, time delays may not be desirable.
Therefore, the camera may be configured to capture multiple images within a time period,
such as in burst mode, when a blink and/or a gaze is/are detected. In one configuration,
the burst mode is automatically activated without a user input for capturing multiple
images within a time period. Furthermore, in one configuration, automatic face and
iris detection is performed on the captured images to automatically delete temporarily
stored images with blinks and/or averted gazes. That is, the camera may only save
blink-free and camera-centered gaze images.
[0041] As previously discussed, aspects of the present disclosure are specified to capture
and/or store blink-free and/or camera-centered gaze images based on real-time blink
detection and/or gaze detection. Accordingly, aspects of the present disclosure mitigate
storage of redundant images and improve the storage space for devices, such as smart
phones.
[0042] FIGURE 5 is a flow diagram illustrating a method 500 of blink avoidance and averted
gaze avoidance in accordance with aspects of the present disclosure, not covered by
the claimed invention. As shown in FIGURE 5, at block 510, an input is received to
actuate a shutter of a camera. The input may be an external input, such as a user
input, or an internal input, such as a camera timer. Furthermore, at block 512, facial
detection and/or iris detection is/are initiated in response to the input received
at block 510. For example, facial detection may be triggered to determine a facial
location of the subjects in view of the camera. Additionally, iris detection may be
performed in response to detection of the facial location. At block 514, the device
determines whether a blink and/or an averted gaze is/are detected. The blink and/or
averted gaze may be detected based on the iris detection. Furthermore, when a blink
and/or averted gaze is/are detected, at block 514, the camera shutter is scheduled
to actuate at a future time at block 516. For example, the future time may be an estimated
time period based on an estimated time when the gaze direction of the subjects is
towards the camera and when the eyes of the each subject are open.
[0043] Additionally, after scheduling the shutter to actuate at a future time at block 516
the facial detection and iris detection of block 512 and/or blink or averted gaze
detection of block 514 are performed until the subjects are not blinking and/or are
also looking toward the camera. That is, the process of blocks 512, 514, and 516 are
performed until a desirable image is captured. Accordingly, when a blink and averted
gaze is not detected, the camera shutter is actuated to capture an image of the subjects
at block 520. Furthermore, at block 522, the image is stored. In this configuration,
the timing of the shutter actuation is adjusted in real-time to capture the moment
when subjects are gazing at the camera without blinking.
[0044] According to another aspect of the present disclosure, not covered by the claimed
invention, after scheduling the estimated future time at block 516, when the estimated
future time is reached, the shutter of the camera may be activated at block 520 to
capture the image. That is, in this configuration, the camera does not perform a subsequent
facial detection and iris detection prior to capturing the image. Furthermore, at
block 522, the image is stored.
[0045] As previously discussed, a subject may be blinking even when their gaze is towards
the camera. Therefore, actuation of the camera shutter may be delayed for an estimated
time period so that the image is captured when the subject is not blinking. The estimated
time period may be based on an estimated blink time and/or averted gaze time. Furthermore,
the estimated times may be based on learned timing for the blink and/or averted gaze.
For example, an average blink length may be eight-hundred milliseconds. Thus, in this
example the estimated time period may be set to time that is greater than eight-hundred
milliseconds, such as one-thousand milliseconds.
[0046] FIGURE 6 illustrates a method 600 of blink and averted gaze avoidance in photographic
images in accordance with the claimed invention. As shown in FIGURE 6, at block 610,
an image capturing device determines whether a blink and an averted gaze of one or
more subjects is detected. Optionally, at block 612, an image of the subjects is captured
when the subjects are gazing at the camera without blinking.
[0047] At block 614, a camera shutter is actuated to capture multiple images of the subjects.
Furthermore, at block 616, desirable images are identified from the captured images.
The desirable images are images with one or more subjects gazing at the camera without
blinking. A neural network is trained to recognize features of an averted gaze as
well as perform iris detection to identify the images in which the subjects are gazing
at the camera without blinking. Finally, at block 618 the desirable images are stored.
Optionally, images with subjects having an averted gaze and/or blinking eyes are deleted
to reduce the storage of undesirable images.
[0048] FIGURE 7 illustrates a method 700 for blink and averted gaze mitigation in stored
images according to an aspect of the claimed invention. As shown in FIGURE 7, at block
710, an input is received to actuate a shutter of a camera. The input may be an external
input, such as a user input, or an internal input, such as a camera timer. Furthermore,
at block 712, facial detection and/or iris detection is/are initiated in response
to the input received at block 710. For example, facial detection may be triggered
to determine a facial location of the subjects in view of the camera. Moreover, iris
detection may be performed in response to detection of the facial location. Additionally
or alternatively, facial recognition and iris detection may be activated when facial
movement of the subject is detected. At block 714, the camera determines whether a
blink and an averted gaze is/are detected. The blink and/or averted gaze may be detected
based on the iris detection. When a blink and averted gaze is detected at block 714,
a camera shutter is actuated
N times to capture a burst of images of the subjects, at block 720. Additionally, at
block 722, face and iris detection is performed to discard images so that desirable
images can be identified from the captured burst of images at block 724. The desirable
images are images with one or more subject(s) gazing at the camera without blinking.
Finally, at block 718, the desirable images are stored. Optionally, when a blink and
averted gaze are not detected, the camera shutter is actuated at block 716 to capture
an image. Furthermore, after capturing the image, the image is stored at block 718.
[0049] FIGURE 8 illustrates an example implementation 800 of the aforementioned blink and
averted gaze avoidance in photographic images using a general-purpose processor 802
in accordance with certain aspects of the present disclosure. Variables (neural signals),
synaptic weights, system parameters associated with a computational network (neural
network), delays, frequency bin information, spike latency information, and histogram
information may be stored in a memory block 804, while instructions executed at the
general-purpose processor 802 may be loaded from a program memory 806. In an aspect
of the present disclosure, the instructions loaded into the general-purpose processor
802 may comprise code for blink and averted gaze avoidance.
[0050] FIGURE 9 illustrates an example implementation 900 of the aforementioned blink and
averted gaze avoidance in photographic images where a memory 902 can be interfaced
via an interconnection network 904 with individual (distributed) processing units
(neural processors) 909 of a computational network (neural network) in accordance
with certain aspects of the present disclosure. Variables (neural signals), synaptic
weights, system parameters associated with the computational network (neural network)
delays, frequency bin information, and histogram information, may be stored in the
memory 902, and may be loaded from the memory 902 via connection(s) of the interconnection
network 904 into each processing unit (neural processor) 909. In an aspect of the
present disclosure, the processing unit 909 may be configured to provide blink and
averted gaze avoidance in photographic images.
[0051] FIGURE 10 illustrates an example implementation 1000 of the aforementioned blink
and averted gaze avoidance in photographic images. As illustrated in FIGURE 10, one
memory bank 1002 may be directly interfaced with one processing unit 1004 of a computational
network (neural network). Each memory bank 1002 may store variables (neural signals),
synaptic weights, and/or system parameters associated with a corresponding processing
unit (neural processor) 1004 delays, frequency bin information, and histogram information.
In an aspect of the present disclosure, the processing unit 1004 may be configured
to provide facial recognition and iris detection of a subject, and/or transform a
subject representation to a canonical form based on a reference feature.
[0052] FIGURE 11 illustrates an example implementation of a neural network 1100 configured
to provide blink and averted gaze avoidance in photographic images in accordance with
certain aspects of the present disclosure. As illustrated in FIGURE 11, the neural
network 1100 may have multiple local processing units 1102 that may perform various
operations of methods described herein. Each local processing unit 1102 may comprise
a local state memory 1104 and a local parameter memory 1106 that store parameters
of the neural network. In addition, the local processing unit 1102 may have a local
(neuron) model program (LMP) memory 1110 for storing a local model program, a local
learning program (LLP) memory 1110 for storing a local learning program, and a local
connection memory 1112. Furthermore, as illustrated in FIGURE 11, each local processing
unit 1102 may be interfaced with a configuration processor unit 1114 for providing
configurations for local memories of the local processing unit, and with a routing
connection processing unit 1116 that provide routing between the local processing
units 1102.
[0053] In one configuration, a neuron model is configured for blink and averted gaze avoidance
in photographic images. The neuron model includes detecting means and scheduling means.
In one aspect, the detecting means, and/or scheduling means may be the general-purpose
processor 802, program memory 806, memory block 804, memory 902, interconnection network
904, processing units 909, processing unit 1004, local processing units 1102, and
or the routing connection processing units 1116 configured to perform the functions
recited. In another configuration, the aforementioned means may be any module or any
apparatus configured to perform the functions recited by the aforementioned means.
[0054] In another configuration, a neuron model is configured for blink and averted gaze
avoidance in photograph images. The neuron model includes activating means and storing
means. In one aspect, the activating means and/or the storing means may be the general-purpose
processor 802, program memory 806, memory block 804, memory 902, interconnection network
904, processing units 909, processing unit 1004, local processing units 1102, and
or the routing connection processing units 1116 configured to perform the functions
recited. In another configuration, the aforementioned means may be any module or any
apparatus configured to perform the functions recited by the aforementioned means.
[0055] According to certain aspects of the present disclosure, each local processing unit
1102 may be configured to determine parameters of the neural network based upon desired
one or more functional features of the neural network, and develop the one or more
functional features towards the desired functional features as the determined parameters
are further adapted, tuned and updated.
[0056] FIGURE 12 is a flow diagram illustrating a method 1200 of blink avoidance and averted
gaze avoidance in accordance with aspects of the present disclosure, not covered by
the claimed invention. As shown in FIGURE 12, at block 1210, a camera detects an averted
gaze and/or one or more closed eyes of a subject in response to receiving an input
to actuate a camera shutter. For example, a neural network may be trained to provide
facial recognition and iris detection to identify a blink or an averted gaze. Moreover,
at block 1212, the camera schedules an actuation of the camera shutter to a future
estimated time period to capture an image of the subject when a gaze direction of
the subject is centered and/or both eyes of the subject are open. For example, the
neural network may be trained to estimate the future time period in which the gaze
direction of the subjects is towards the camera. The neural network may schedule the
camera shutter to actuate during the approximated, future time period. Additionally,
or alternatively, the neural network may perform an additional blink and/or gaze check
prior to capturing the image when the estimated future time has lapsed. Furthermore,
delaying, during the future estimated time period may be delayed or adjusted if a
subsequent blink and/or averted gaze is/are detected during the future estimated time
period.
[0057] FIGURE 13 is a flow diagram illustrating a method 1300 of blink avoidance and averted
gaze avoidance in accordance with aspects of the present disclosure, not covered by
the claimed invention. As shown in FIGURE 13, at block 1310, a camera actuates a shutter
to capture a burst of images when the averted gaze of the subject is detected and/or
one or more of the subject's eyes are closed. The averted gaze and/or closed eye detection
may be performed after receiving an input to actuate the camera shutter and prior
to capturing the image. Moreover, at block 1312, the camera stores one or more one
image from the burst of images having a gaze direction of the subject centered on
the camera and having both eyes of the subject open.
[0058] The various operations of methods described above may be performed by any suitable
means capable of performing the corresponding functions. The means may include various
hardware and/or software component(s) and/or module(s), including, but not limited
to, a circuit, an application specific integrated circuit (ASIC), or processor. Generally,
where there are operations illustrated in the figures, those operations may have corresponding
counterpart means-plus-function components with similar numbering.
[0059] As used herein, the term "determining" encompasses a wide variety of actions. For
example, "determining" may include calculating, computing, processing, deriving, investigating,
looking up (e.g., looking up in a table, a database or another data structure), ascertaining
and the like. Additionally, "determining" may include receiving (e.g., receiving information),
accessing (e.g., accessing data in a memory) and the like. Furthermore, "determining"
may include resolving, selecting, choosing, establishing and the like.
[0060] As used herein, a phrase referring to "at least one of" a list of items refers to
any combination of those items, including single members. As an example, "at least
one of: a, b, or c" is intended to cover: a, b, c, a-b, a-c, b-c, and a-b-c.
[0061] The various illustrative logical blocks, modules and circuits described in connection
with the present disclosure may be implemented or performed with a general purpose
processor, a digital signal processor (DSP), an application specific integrated circuit
(ASIC), a field programmable gate array signal (FPGA) or other programmable logic
device (PLD), discrete gate or transistor logic, discrete hardware components or any
combination thereof designed to perform the functions described herein. A general-purpose
processor may be a microprocessor, but in the alternative, the processor may be any
commercially available processor, controller, microcontroller or state machine. A
processor may also be implemented as a combination of computing devices, e.g., a combination
of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors
in conjunction with a DSP core, or any other such configuration.
[0062] The steps of a method or algorithm described in connection with the present disclosure
may be embodied directly in hardware, in a software module executed by a processor,
or in a combination of the two. A software module may reside in any form of storage
medium that is known in the art. Some examples of storage media that may be used include
random access memory (RAM), read only memory (ROM), flash memory, erasable programmable
read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM),
registers, a hard disk, a removable disk, a CD-ROM and so forth. A software module
may comprise a single instruction, or many instructions, and may be distributed over
several different code segments, among different programs, and across multiple storage
media. A storage medium may be coupled to a processor such that the processor can
read information from, and write information to, the storage medium. In the alternative,
the storage medium may be integral to the processor.
[0063] The methods disclosed herein comprise one or more steps or actions for achieving
the described method. The method steps and/or actions may be interchanged with one
another without departing from the scope of the claims. In other words, unless a specific
order of steps or actions is specified, the order and/or use of specific steps and/or
actions may be modified without departing from the scope of the claims.
[0064] The functions described may be implemented in hardware, software, firmware, or any
combination thereof. If implemented in hardware, an example hardware configuration
may comprise a processing system in a device. The processing system may be implemented
with a bus architecture. The bus may include any number of interconnecting buses and
bridges depending on the specific application of the processing system and the overall
design constraints. The bus may link together various circuits including a processor,
machine-readable media, and a bus interface. The bus interface may be used to connect
a network adapter, among other things, to the processing system via the bus. The network
adapter may be used to implement signal processing functions. For certain aspects,
a user interface (e.g., keypad, display, mouse, joystick, etc.) may also be connected
to the bus. The bus may also link various other circuits such as timing sources, peripherals,
voltage regulators, power management circuits, and the like, which are well known
in the art, and therefore, will not be described any further.
[0065] The processor may be responsible for managing the bus and general processing, including
the execution of software stored on the machine-readable media. The processor may
be implemented with one or more general-purpose and/or special-purpose processors.
Examples include microprocessors, microcontrollers, DSP processors, and other circuitry
that can execute software. Software shall be construed broadly to mean instructions,
data, or any combination thereof, whether referred to as software, firmware, middleware,
microcode, hardware description language, or otherwise. Machine-readable media may
include, by way of example, random access memory (RAM), flash memory, read only memory
(ROM), programmable read-only memory (PROM), erasable programmable read-only memory
(EPROM), electrically erasable programmable Read-only memory (EEPROM), registers,
magnetic disks, optical disks, hard drives, or any other suitable storage medium,
or any combination thereof. The machine-readable media may be embodied in a computer-program
product. The computer-program product may comprise packaging materials.
[0066] In a hardware implementation, the machine-readable media may be part of the processing
system separate from the processor. However, as those skilled in the art will readily
appreciate, the machine-readable media, or any portion thereof, may be external to
the processing system. By way of example, the machine-readable media may include a
transmission line, a carrier wave modulated by data, and/or a computer product separate
from the device, all which may be accessed by the processor through the bus interface.
Alternatively, or in addition, the machine-readable media, or any portion thereof,
may be integrated into the processor, such as the case may be with cache and/or general
register files. Although the various components discussed may be described as having
a specific location, such as a local component, they may also be configured in various
ways, such as certain components being configured as part of a distributed computing
system.
[0067] The processing system may be configured as a general-purpose processing system with
one or more microprocessors providing the processor functionality and external memory
providing at least a portion of the machine-readable media, all linked together with
other supporting circuitry through an external bus architecture. Alternatively, the
processing system may comprise one or more neuromorphic processors for implementing
the neuron models and models of neural systems described herein. As another alternative,
the processing system may be implemented with an application specific integrated circuit
(ASIC) with the processor, the bus interface, the user interface, supporting circuitry,
and at least a portion of the machine-readable media integrated into a single chip,
or with one or more field programmable gate arrays (FPGAs), programmable logic devices
(PLDs), controllers, state machines, gated logic, discrete hardware components, or
any other suitable circuitry, or any combination of circuits that can perform the
various functionality described throughout this disclosure. Those skilled in the art
will recognize how best to implement the described functionality for the processing
system depending on the particular application and the overall design constraints
imposed on the overall system.
[0068] The machine-readable media may comprise a number of software modules. The software
modules include instructions that, when executed by the processor, cause the processing
system to perform various functions. The software modules may include a transmission
module and a receiving module. Each software module may reside in a single storage
device or be distributed across multiple storage devices. By way of example, a software
module may be loaded into RAM from a hard drive when a triggering event occurs. During
execution of the software module, the processor may load some of the instructions
into cache to increase access speed. One or more cache lines may then be loaded into
a general register file for execution by the processor. When referring to the functionality
of a software module below, it will be understood that such functionality is implemented
by the processor when executing instructions from that software module.
[0069] If implemented in software, the functions may be stored or transmitted over as one
or more instructions or code on a computer-readable medium. Computer-readable media
include both computer storage media and communication media including any medium that
facilitates transfer of a computer program from one place to another. A storage medium
may be any available medium that can be accessed by a computer. By way of example,
and not limitation, such computer-readable media can comprise RAM, ROM, EEPROM, CD-ROM
or other optical disk storage, magnetic disk storage or other magnetic storage devices,
or any other medium that can be used to carry or store desired program code in the
form of instructions or data structures and that can be accessed by a computer. In
addition, any connection is properly termed a computer-readable medium. For example,
if the software is transmitted from a website, server, or other remote source using
a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or
wireless technologies such as infrared (IR), radio, and microwave, then the coaxial
cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared,
radio, and microwave are included in the definition of medium. Disk and disc, as used
herein, include compact disc (CD), laser disc, optical disc, digital versatile disc
(DVD), floppy disk, and Blu-ray
® disc where disks usually reproduce data magnetically, while discs reproduce data
optically with lasers. Thus, in some aspects computer-readable media may comprise
non-transitory computer-readable media (e.g., tangible media). In addition, for other
aspects computer-readable media may comprise transitory computer- readable media (e.g.,
a signal). Combinations of the above should also be included within the scope of computer-readable
media.
[0070] Thus, certain aspects may comprise a computer program product for performing the
operations presented herein. For example, such a computer program product may comprise
a computer-readable medium having instructions stored (and/or encoded) thereon, the
instructions being executable by one or more processors to perform the operations
described herein. For certain aspects, the computer program product may include packaging
material.
[0071] Further, it should be appreciated that modules and/or other appropriate means for
performing the methods and techniques described herein can be downloaded and/or otherwise
obtained by a user terminal and/or base station as applicable. For example, such a
device can be coupled to a server to facilitate the transfer of means for performing
the methods described herein. Alternatively, various methods described herein can
be provided via storage means (e.g., RAM, ROM, a physical storage medium such as a
compact disc (CD) or floppy disk, etc.), such that a user terminal and/or base station
can obtain the various methods upon coupling or providing the storage means to the
device. Moreover, any other suitable technique for providing the methods and techniques
described herein to a device can be utilized.
[0072] Various modifications, changes and variations may be made in the arrangement, operation
and details of the methods and apparatus described above without departing from the
scope of the claims.