Detailed description of the invention
As it is shown in figure 1, be the applied environment schematic diagram of camera device control system preferred embodiment of the present invention.In this reality
Executing in example, this camera device control system 24 runs in control computer 2.This control computer 2 also includes passing through data/address bus
Display device 20, photographic head 21, input equipment 22, memorizer 23 and the processor 25 being connected.
In the present embodiment, this control computer 2 is connected with camera device 4 by networking 3.Wherein, described network 3 is permissible
It is intranet (Intranet) or Ethernet (Ethernet), it is also possible to be the Internet (Internet) or other type of
Communication network.
Refering to shown in Fig. 2, described camera device 4 is installed in rail system 6.In the present embodiment, described track system
The type of system 6 includes, but not limited to crawler haulage formula, electric sliding is wheeled and camera carries the activation manners such as motor type.This rail
Road system 6 can be arranged on the ceiling of monitoring scene, or any applicable camera device 4 moves and obtains scene image
Position.In other embodiments, described camera device 4 can also be installed in non-rail system.
Described camera device 4 includes, but not limited to be patrolled turntable photography by what software or hardware circuit mode drove
Machine, fire ball camera (SpeedDome) and translatable (Pan), inclination (Tilt), the PTZ (Pan/Tilt/ of scaling (Zoom)
Zoom) camera etc..
Described photographic head 21 is for shooting the image of user to detect the eyeball of this user, and described display device 20 is used
In the image that display camera device 4 is absorbed, described input equipment 22 is for inputting the various data of user setup.
Described camera device control system 24 is for according to monitoring personnel's augen state and the change of position, automatically controlling
Camera device moves on rail system, and adjusts angle and the focal length of camera device camera lens, describes below detailed process.
In the present embodiment, described camera device control system 24 can be divided into one or more module, described
One or more modules are configured to be performed by one or more processors (the present embodiment is a processor 25), to complete this
Invention.Such as, refering to shown in Fig. 3, described camera device control system 24 is divided into sample creation module 201, function sets
Put module 202, eyeball detecting module 203 and control module 204.Module alleged by the present invention has been the program of a specific function
Section, is more suitable for describing software execution process in camera device 2 than program.
As shown in Figure 4, it is the present invention flow chart that carries out systemic-function setting.
Step S10, the camera lens starting camera device 4 shoots for the various different conditions of user's eyeball and position,
And send the image of shooting to main control computer 2.In the present embodiment, eyeball state includes normal condition, eyes-open state and narrows
Eye state, eyeball position includes top, lower section, left, right, upper left side, lower left, upper right side and lower right.It is appreciated that
The image of user's eyeball diverse location shoots under user's eyeball is in normal condition and obtains.
Step S11, after collecting user's eyeball different conditions of some (such as 10) and the image of position, sample is created
Modeling block 201, according to this user's eyeball different conditions and the image of position, sets up this user's difference eyeball state and sample of position
This.In the present embodiment, the sample of described different eyeball state includes: under eyeball sample under normal condition, eyes-open state
Eyeball sample and the eyeball sample narrowed under eye state.
The sample of described different eyeball position includes: sample when sample when eyeball is static, eyeball move up, eyeball
When sample when sample when sample when moving down, eyeball are moved to the left, eyeball move right, eyeball move to upper left
Sample when upper right moves of sample when sample, eyeball move to left down, eyeball, eyeball to the right lower mobile time sample.
In the present embodiment, the eyeball sample under normal condition is first set.Assume user's eyeball figure in normal state
As one has 10, sample creation module 201 calculates the height of eyeball in every image, obtains the eyeball under normal condition
Region height scope.In the present embodiment, described eyeball refers to surround the minimum rectangular area of eyes of user scope, normally
Eyeball altitude range under state is [1,1.5], and unit is centimetre.Refering to shown in Fig. 6 A, it it is user's eye under normal condition
The schematic diagram in ball region, ABCD represents eyeball, and A is coordinate origin, and H represents the height of this eyeball, and e1 represents the right side
The coordinate position of eye, e2 represents the coordinate position of left eye.
Eyeball sample under normal condition, as reference, may further determine that the eyeball sample under eyes-open state and narrows eye
Eyeball sample under state, determines that method is similar with the determination method under aforementioned normal condition, does not repeats them here.Such as, open
Eyeball altitude range under eye state be (1.5,2], narrow eyeball altitude range under eye state for [0.1,1).
It is then possible to arrange the sample of different eyeball positions under normal condition further.In the present embodiment, just first arranging
Sample when often eyeball is static under state.Assuming that the image one that eyeball is static in normal state has 10, sample creates mould
Block 201 calculates the coordinate figure of an eyeball position in every image, obtains this user's eyeball position X-axis coordinate figure when static
Scope and Y-axis coordinate figure scope.As a example by right eye ball, in the present embodiment, right eye ball position X-axis coordinate figure model when static
Enclosing for [1.8,2.2], Y-axis coordinate figure scope is [2.8,3.2].
With eyeball position X-axis coordinate figure scope when static and Y-axis coordinate figure scope as reference, may further determine that
The eyeball sample of different moving directions under normal condition, the method that determines is similar, at this with the determination method under aforesaid static conditions
Repeat no more.
For example, the X-axis coordinate figure scope of right eye ball position when eyeball moves right for [1,1.8), Y-axis coordinate figure
Scope is [2.8,3.2];The X-axis coordinate figure scope of right eye ball position when eyeball moves up is [1.8,2.2], Y-axis coordinate
Value scope be [2,2.8);The X-axis coordinate figure scope of right eye ball position when eyeball moves to upper right side for [1,1.8), Y-axis sit
Scale value scope be [2,2.8).
Step S12, the control that user utilizes function setting module 202 to arrange corresponding to various types of eyeball sample refers to
Order, and the corresponding relation of setting is stored in memorizer 23, so that this camera device 4 is controlled.
In the present embodiment, under eyeball is in normal condition time: the control instruction that sample when eyeball is static is corresponding is
The camera lens controlling camera device 4 remains static, the control that when eyeball moves up, sample (refering to shown in Fig. 7 A) is corresponding
System instruction for controlling the moving forward along rail system 6 of camera device 4, sample pair (refering to shown in Fig. 7 B) when eyeball moves down
The control instruction answered is to control moving after rail system 6 of camera device 4.
The control instruction that when eyeball is moved to the left, sample (refering to shown in Fig. 8 A) is corresponding is to control the edge of camera device 4
Rail system 6 moves to left, and the control instruction that when eyeball moves right, sample (refering to shown in Fig. 8 B) is corresponding is for controlling camera dress
Put 4 move to right along rail system 6.
The control instruction that eyeball sample (refering to shown in Fig. 9 A) when upper left is moved is corresponding is to control camera device 4
Camera lens moves up, and the control instruction that when eyeball moves to left down, sample (refering to shown in Fig. 9 B) is corresponding is for controlling camera dress
The lens left putting 4 moves.
Control instruction corresponding to eyeball sample (refering to shown in Figure 10 A) when upper right moves is for controlling camera device 4
Camera lens move right, the control instruction that when eyeball is lower mobile to the right, the sample of (refering to shown in Figure 10 B) is corresponding is for controlling photography
The camera lens of machine 4 moves down.
The control instruction that under eyes-open state, eyeball sample (refering to shown in Fig. 6 B) is corresponding is to control the mirror of camera device 4
Head zooms out (Zoom Out), with adjusting focal length;Narrow under eye state the control instruction that the eyeball sample (refering to shown in Fig. 6 C) is corresponding
Further (Zoom In) for controlling the camera lens of camera device 4, with adjusting focal length.
In the present embodiment, sample creation module 201 is the X-axis coordinate figure scope with an eyeball position and Y-axis coordinate
Value scope creates the sample of different eyeball position.In other embodiments, sample creation module 201 can also be according to two eyes
The X-axis coordinate figure scope of ball position and Y-axis coordinate figure scope create the sample of different eyeball position, method and an eyeball position
The creation method put is similar to, and does not repeats them here.
As it is shown in figure 5, be the flow chart of the preferred embodiment of camera device control method of the present invention.
Step S20, eyeball detecting module 203 obtains the image of photographic head 21 shooting controlling computer 2.
Step S21, eyeball detecting module 203 utilizes eyeball detection techniques, detects eyeball in the image obtained, and
Height, the X-axis coordinate figure of eyeball position and Y-axis coordinate figure according to this eyeball detected, the eyeball district that will detect
Territory and all eyeball sample comparisons, obtain the eyeball sample of coupling.In the present embodiment, 203 comparisons one of eyeball detecting module
The X-axis coordinate figure of individual eyeball position and Y-axis coordinate figure.
Specifically, if the height of this eyeball altitude range set by eyeball sample under eyes-open state
In, then the eyeball sample under eyeball detecting module 203 obtains eyes-open state.If the height of this eyeball is under narrowing eye state
The altitude range set by eyeball sample in, then eyeball detecting module 203 obtain narrow the eyeball sample under eye state.
If in the altitude range set by eyeball sample that the height of this eyeball is in normal state, then eyeball is detectd
Survey module 203 obtains X-axis coordinate figure and the Y-axis coordinate figure of an eyeball position (such as right eye ball) of this eyeball further,
X-axis coordinate figure according to this eyeball position and Y-axis coordinate figure, find the eyeball sample of coupling in the sample of different eyeball positions
This.In the present embodiment, the sample of described different eyeball position includes: when sample when eyeball is static, eyeball move up
Sample when sample when sample when sample, eyeball move down, eyeball are moved to the left, eyeball move right, eyeball are to the left
Upper mobile time sample, eyeball sample when moving to left down, eyeball sample when upper right moves, eyeball to the right lower mobile time
Sample.
In the present embodiment, eyeball detection techniques can take the identification skill of feature samples comparison (TemplateMatching)
Art realizes.Specifically, first obtain and collect a large amount of various different eyeball images and non-eyeball image, instruct with neural network
The mode of white silk is trained, and persistently revises mistake, the eyeball sample (Template) of Erecting and improving, and sentences using this sample as follow-up
The foundation of other eyeball (Testing).
Step S22, control module 204 obtains this control corresponding to eyeball sample matched from memorizer 23 and refers to
Order, and being sent this control instruction to camera device 4 by network 3, is moved controlling camera device 4 on rail system
Move and adjust angle and the focal length etc. of camera device 4 camera lens.
Step S23, after the signal receiving unit of camera device 4 receives this control instruction, actuating unit (such as motor) root
The camera site of camera device 4, angle lens and focal length is adjusted according to this control instruction.
The present invention illustrates as a example by security monitoring field, and equally, the method can also be applied to other and be correlated with
Field, such as home care, saves supervision etc. from damage.
Finally it should be noted that above example only in order to technical scheme to be described and unrestricted, although reference
The present invention has been described in detail by preferred embodiment, it will be understood by those within the art that, can be to the present invention's
Technical scheme is modified or equivalent, without deviating from the spirit and scope of technical solution of the present invention.