Embodiment
As shown in Figure 1, be the applied environment sketch map of camera device control system of the present invention preferred embodiment.In the present embodiment, this camera device control system 24 runs in the controlling computer 2.This controlling computer 2 also comprises display device 20, camera 21, input equipment 22, memory 23 and the processor 25 that links to each other through data/address bus.
In the present embodiment, this controlling computer 2 is connected with camera device 4 through networking 3.Wherein, said network 3 can be intranet (Intranet) or Ethernet (Ethernet), also can be the communication network of the Internet (Internet) or other type.
Consult shown in Figure 2ly, said camera device 4 is installed in the rail system 6.In the present embodiment, the type of said rail system 6 comprises, but is not limited to, and crawler belt driven type, electronic pulley-type and video camera carry actuating modes such as motor type.This rail system 6 can be arranged on the ceiling of monitoring scene, or any suitable camera device 4 moves and obtain the position of scene image.In other embodiments, said camera device 4 also can be installed in the non-rail system.
Said camera device 4 comprises; But be not limited to, can by software or hardware circuit mode drive patrol turntable video camera, fire ball video camera (SpeedDome) but and translation (Pan), tilt (Tilt), PTZ (Pan/Tilt/Zoom) video camera of convergent-divergent (Zoom) etc.
The image that said camera 21 is used to take the user to be detecting this user's eyeball zone, and said display device 20 is used to the image that shows that camera device 4 is absorbed, and said input equipment 22 is used to import the various data that the user is provided with.
Said camera device control system 24 is used for the variation according to monitor staff's eyeball state and position, and control camera device automatically and on rail system, move, and the angle and the focal length of adjustment camera device camera lens, describe below the detailed process.
In the present embodiment, said camera device control system 24 can be divided into one or more modules, and said one or more modules are configured to carried out by one or more processors (present embodiment is a processor 25), to accomplish the present invention.For example, consult shown in Figure 3ly, said camera device control system 24 is divided into sample and creates module 201, function setting module 202, eyeball detecting module 203 and control module 204.The alleged module of the present invention is to accomplish the block of a specific function, is more suitable in describing the implementation of software in camera device 2 than program.
As shown in Figure 4, be that the present invention carries out the flow chart that systemic-function is set.
Step S10, the camera lens that starts camera device 4 is taken to various different conditions of user's eyeball and position, and sends the image of taking to master control computer 2.In the present embodiment, the eyeball state comprises normal condition, open eyes state and blink state, and eyeball position comprises top, below, left, right-hand, upper left side, lower left, upper right side and lower right.The image that is appreciated that user's eyeball diverse location is in to take under the normal condition at user's eyeball and obtains.
Step S11, collected user's eyeball different conditions and images of positions of some (as 10) after, sample is created module 201 according to this user's eyeball different conditions and images of positions, sets up the sample of different eyeball states of this user and position.In the present embodiment, the sample of said different eyeball states comprises: the eyeball sample under the normal condition, the eyeball sample under the state of opening eyes and the eyeball sample under the blink state.
The sample of said different eyeball positions comprises: the sample when eyeball is static, the sample when eyeball moves up, the sample when eyeball moves down, the sample when eyeball is moved to the left, the sample when eyeball moves right, eyeball to upper left sample, sample, eyeball when eyeball moves down left when mobile to upper right sample, the sample when eyeball moves down to the right when mobile.
In the present embodiment, eyeball sample under the normal condition is set earlier.Suppose that the image one of user's eyeball under normal condition has 10, sample is created the height that module 201 is calculated eyeball zone in every image, obtains the eyeball region height scope under the normal condition.In the present embodiment, said eyeball zone is meant the minimum rectangular area of surrounding the eyes of user scope, and the eyeball region height scope under the normal condition is [1,1.5], and unit is centimetre.Consulting shown in Fig. 6 A, is the sketch map in user's eyeball zone under the normal condition, and ABCD represents the eyeball zone, and A is a coordinate origin, and H represents the height in this eyeball zone, and e1 represents the coordinate position of right eye, and e2 represents the coordinate position of left eye.
With the eyeball sample under the normal condition is reference, can further confirm eyeball sample and the eyeball sample under the blink state under the state of opening eyes, confirms that the definite method under method and the aforementioned normal condition is similar, repeats no more at this.For example, the eyeball region height scope under the state of opening eyes for (1.5,2], the eyeball region height scope under the blink state be [0.1,1).
The sample of different eyeball positions under the normal condition can further be set then.In the present embodiment, sample when eyeball is static under the normal condition is set earlier.Suppose that the image one that eyeball is static under normal condition has 10, sample is created the coordinate figure that module 201 is calculated an eyeball position in every image, obtains X axial coordinate value scope and the Y axial coordinate value scope of this user's eyeball position when static.With the right eye ball is example, and in the present embodiment, the X axial coordinate value scope of right eye ball position when static is [1.8,2.2], and Y axial coordinate value scope is [2.8,3.2].
With X axial coordinate value scope and the Y axial coordinate value scope of eyeball position when static is reference, can further confirm the eyeball sample of different moving directions under the normal condition, confirms that the definite method under method and the aforementioned inactive state is similar, repeats no more at this.
For example, the X axial coordinate value scope of the right eye ball position when eyeball moves right for [1,1.8), Y axial coordinate value scope is [2.8,3.2]; The X axial coordinate value scope of the right eye ball position when eyeball moves up is [1.8,2.2], Y axial coordinate value scope be [2,2.8); The X axial coordinate value scope of the right eye ball position of eyeball when move in the upper right side for [1,1.8), Y axial coordinate value scope be [2,2.8).
Step S12, user utilize function setting module 202 that the pairing control command of various types of eyeball samples is set, and the corresponding relation that is provided with is stored in the memory 23, so that this camera device 4 is controlled.
In the present embodiment; Be in normal condition following time at eyeball: the sample control instruction corresponding when eyeball is static remains static for the camera lens of control camera device 4; The sample control instruction corresponding of (consulting shown in Fig. 7 A) when eyeball moves up moves forward along rail system 6 for control camera device 4, and the sample control instruction corresponding of (consulting shown in Fig. 7 B) when eyeball moves down is moved behind rail system 6 for control camera device 4.
The sample control instruction corresponding of (consulting shown in Fig. 8 A) when eyeball is moved to the left moves to left along rail system 6 for control camera device 4, and the sample control instruction corresponding of (consulting shown in Fig. 8 B) when eyeball moves right moves to right along rail system 6 for control camera device 4.
Eyeball to upper left when mobile the sample control instruction corresponding of (consulting shown in Fig. 9 A) move up for the camera lens of control camera device 4, the sample control instruction corresponding of (consulting shown in Fig. 9 B) moved for the lens left of control camera device 4 when eyeball moved down left.
Eyeball to upper right when mobile the sample control instruction corresponding of (consulting shown in Figure 10 A) move right for the camera lens of control camera device 4, the sample control instruction corresponding of (consulting shown in Figure 10 B) moved down for the camera lens of control camera device 4 when eyeball moved down to the right.
The eyeball sample control instruction corresponding of (consulting shown in Fig. 6 B) under the state of opening eyes zooms out (Zoom Out) for the camera lens of control camera device 4, with the adjustment focal length; The eyeball sample control instruction corresponding of (consulting shown in Fig. 6 C) under the blink state furthers (Zoom In) for the camera lens of control camera device 4, with the adjustment focal length.
In the present embodiment, to create module 201 be to create the sample of different eyeball positions with the X axial coordinate value scope of an eyeball position and Y axial coordinate value scope to sample.In other embodiments, sample is created the sample that module 201 also can be created different eyeball positions according to the X axial coordinate value scope of two eyeball positions and Y axial coordinate value scope, and the creation method of a method and an eyeball position is similar, repeats no more at this.
As 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 obtain the image of camera 21 shootings of controlling computer 2.
Step S21; Eyeball detecting module 203 utilizes the eyeball detection techniques; Detecting eyeball zone in the image that obtains; And,, obtain the eyeball sample of coupling with the eyeball zone that detects and all eyeball sample comparisons according to the height in this eyeball that detects zone, the X axial coordinate value and the Y axial coordinate value of eyeball position.In the present embodiment, the X axial coordinate value and the Y axial coordinate value of an eyeball position of 203 comparisons of eyeball detecting module.
Particularly, if in the set altitude range of the eyeball sample of height under the state of opening eyes in this eyeball zone, then eyeball detecting module 203 obtains the eyeball sample under the state of opening eyes.If in the set altitude range of the eyeball sample of height under the blink state in this eyeball zone, then eyeball detecting module 203 obtains the eyeball sample under the blink state.
If in the set altitude range of the eyeball sample of height under normal condition in this eyeball zone; Then eyeball detecting module 203 further obtains the X axial coordinate value and the Y axial coordinate value of an eyeball position (like the right eye ball) in this eyeball zone; According to the X axial coordinate value and the Y axial coordinate value of this eyeball position, in the sample of different eyeball positions, seek the eyeball sample of coupling.In the present embodiment, the sample of said different eyeball positions comprises: the sample when eyeball is static, the sample when eyeball moves up, the sample when eyeball moves down, the sample when eyeball is moved to the left, the sample when eyeball moves right, eyeball to upper left sample, sample, eyeball when eyeball moves down left when mobile to upper right sample, the sample when eyeball moves down to the right when mobile.
In the present embodiment, the eyeball detection techniques can take the recognition technology of feature samples comparison (TemplateMatching) to realize.Particularly; Obtain earlier and collect a large amount of various different eyeball images and non-eyeball image, train, continue to correct mistakes with the neural network training method; Set up perfect eyeball sample (Template), and with the foundation of this sample as follow-up differentiation eyeball (Testing).
Step S22; Control module 204 is obtained this pairing control command of eyeball sample that matches from memory 23; And through network 3 this control command is sent to camera device 4, with control camera device 4 on rail system, move, and the angle of adjustment camera device 4 camera lenses and focal length etc.
Step S23, after the signal receiving unit of camera device 4 received this control command, actuating unit (like motor) was according to camera site, angle lens and the focal length of this control command adjustment camera device 4.
The present invention is that example describes with the security monitoring field, and is same, and this method also can be applied to other association area, like home care, save supervision etc. from damage.
What should explain at last is; Above embodiment is only unrestricted in order to technical scheme of the present invention to be described; Although the present invention is specified with reference to preferred embodiment; Those of ordinary skill in the art should be appreciated that and can make amendment or be equal to replacement technical scheme of the present invention, and do not break away from the spirit and the scope of technical scheme of the present invention.