Method from tracing type desk lamp and by providing illumination from trace mode
Technical field
The invention belongs to field of lighting devices, more particularly to from tracing type desk lamp and by providing illumination from trace mode
Method.
Background technology
With the development of economy and society, this idea of development of energy-saving and emission-reduction is gradually rooted in the hearts of the people.In the support of government
Under guiding, reducing equipment energy consumption becomes the focus of work of each field staff.Development of the electric system as national economy
Pillar should more be walked in the work for reducing equipment energy consumption in epoch forward position.
In existing lighting apparatus, light emitting diode (Light Emitting Diode, LED) because with it is low in energy consumption,
The characteristics such as long lifespan, spectrum-stable are gradually replacing original incandescent lamp, fluorescent lamp etc. to become the lighting system of mainstream.
User using LED desk lamp when being read at present, can not be fast if re-start reading after being left halfway
The position of reading end before speed determines needs the eyeball of user to need to carry out frequent movement to determine, easy in this way to cause
The feeling of fatigue that user uses.
Invention content
In order to solve shortcoming and defect existing in the prior art, the present invention provides for reducing human fatigue sense from
Tracing type desk lamp.
In order to reach above-mentioned technical purpose, on the one hand, the present invention is proposed from tracing type desk lamp, described from tracing type desk lamp
It is described to include from tracing type desk lamp including power supply:It is electrically connected to the LED lighting board of the power supply, further includes being configured to obtain
User's face position from follow-up mechanism;
From follow-up mechanism to the spatial emission infrared ray residing for user's face, receives the infrared ray reflected from user's face and paint
Space infared spectrum processed determines the first space coordinate residing for user's eye in the infared spectrum of space;
From follow-up mechanism according to the first space coordinate, user's eye focal position corresponding second is determined in conjunction with location algorithm
Space coordinate lights LED lighting board and is irradiated to second space coordinate or the radiation parameters of LED lighting board are adjusted.
Optionally, first space coordinate determined in the infared spectrum of space residing for user's eye, including:
In the space infared spectrum, user's face region is determined according to preset face contour template;
It is filtered using the filter of structure in identified user's face region, obtains gray level image, it is right
Gray level image carries out binary conversion treatment, obtains the first image after binary conversion treatment, extracts white area in first image
Barycenter is as a reference point;
It, will if being only capable of selecting the single reference point for respectively representing user's left eye and/or right eye in first image
The space coordinate of single reference point is as the first space coordinate;Or
If the multiple reference points for representing user's left eye and/or right eye are chosen in first image, according to preset
Believability threshold screens multiple reference points, obtains the single reference point for respectively representing user's left eye and right eye, will be single
The space coordinate of reference point is as the first space coordinate.
Optionally, the believability threshold is determined according to formula one,
Wherein, A, B indicate that two points in the first image, N indicate the cascade quantity of the grader used in screening process,
niIndicate the quantity of Weak Classifier in i-stage strong classifier, αitIndicate the weight of t-th of Weak Classifier in i-stage strong classifier,
hit(x) indicating, t-th of Weak Classifier in i-stage strong classifier, x indicate A, 2 points of B to be referred to as right and left eyes in the first image
When position, the image after geometrical normalization is carried out.
Optionally, it is described from tracing type desk lamp further include bent holder, in the bent holder be equipped with shaft,
It is equipped with potentiometer at shaft, the bending angle of the bent holder is determined according to the resistance value of potentiometer.
Optionally, it is described from follow-up mechanism according to the first space coordinate, determine that user's eye focuses position in conjunction with location algorithm
Corresponding second space coordinate is set, including:
According to the first space coordinate, determine that the first space coordinate is sat relative to the mirror image space of plane residing for bent holder
Mark;
The bending angle for obtaining bent holder determines LED lighting board relative to institute in conjunction with the length value of bent holder
The height value for locating plane residing for bent holder determines the third space coordinate residing for LED lighting board according to the height value;
The line of structure connection third space coordinate and mirror image space coordinate, determines the space equation of the line, in conjunction with
The space equation of plane residing for bent holder determines the intersecting point coordinate of the line and plane residing for the bent holder,
The intersecting point coordinate is second space coordinate, and the line is the direction of illumination of LED light plate.
Optionally, the LED lighting board is located on bending holder, and the LED lighting board is curve flexibility LED lighting board,
The curve flexibility LED lighting board is single layer board or double-layer circuit board;
When the curve flexibility LED lighting board is double-layer circuit board, the double-layer circuit board includes be printed with LED the
One circuit board, and the second circuit board that is printed with conductive trace and is bonded with first circuit board.
Optionally, the curve flexibility LED lighting board includes:
It is located at the first area on the flexible LED light plate, the first LED array with the first luminous flux, Yi Jishe
Second area on the flexible LED light plate, the second LED array with the second luminous flux.
Optionally, the radiation parameters include irradiation brightness corresponding with LED lighting board, colour temperature or color-values.
Optionally, it is described from follow-up mechanism include infrared transceiver and the light emitting control being electrically connected with infrared transceiver electricity
Road.
Optionally, photosensitive element is equipped with from follow-up mechanism described.
Optionally, dismountable light diffusion shell is equipped on the outside of the LED lighting board.
On the other hand, the present invention also proposes the method by providing illumination from trace mode, the method includes:
It is drawn to the spatial emission infrared ray residing for user's face, and according to the infrared ray reflected from user's face is received
Space infared spectrum determines the first space coordinate residing for user's eye in the infared spectrum of space, the first space coordinate is sent out
It send to emission control circuit;
According to the first space coordinate the corresponding second space coordinate of user's eye focal position is determined in conjunction with location algorithm,
Control light source irradiates to second space coordinate or the radiation parameters of light source is adjusted.
Optionally, first space coordinate determined in the infared spectrum of space residing for user's eye, including:
In the infared spectrum of space, user's face region is determined according to face contour template;
It is filtered using the filter of structure in user's face region, obtains gray level image, to gray level image
Binary conversion treatment is carried out, the first image after binary conversion treatment is obtained, extracts the barycenter of white area in the first image as ginseng
Examination point;
It, will be single if being only capable of selecting the single reference point for respectively representing user's left eye and/or right eye in the first image
The space coordinate of one reference point is as the first space coordinate;Or
Represent multiple reference points of user's left eye and/or right eye if chosen in the first image, according to it is preset can
Confidence threshold screens multiple reference points, the single reference point for respectively representing user's left eye and right eye is obtained, by single ginseng
The space coordinate of examination point is as the first space coordinate.
Optionally, the believability threshold is determined according to formula one:
Wherein, A, B indicate that two points in the first image, N indicate the cascade quantity of the grader used in screening process,
niIndicate the quantity of Weak Classifier in i-stage strong classifier, αitIndicate the weight of t-th of Weak Classifier in i-stage strong classifier,
hit(x) indicating, t-th of Weak Classifier in i-stage strong classifier, x indicate A, 2 points of B to be referred to as right and left eyes in the first image
When position, the image after geometrical normalization is carried out.
Optionally, corresponding second sky of user's eye focal position is determined in conjunction with location algorithm according to the first space coordinate
Between coordinate further include:
Determine the mirror image space coordinate of the first space coordinate;
The height value for determining light source determines the third space coordinate residing for light source according to the height value;
The line of structure connection third space coordinate and mirror image space coordinate, determines the space equation of the line, in conjunction with
The space equation of datum plane determines that the intersecting point coordinate of the line and the datum plane, the intersecting point coordinate are second
Space coordinate.
Optionally, the radiation parameters include irradiation brightness, colour temperature or color-values.
The advantageous effect that technical solution provided by the invention is brought is:
By the user's eye locations got from follow-up mechanism, and controls desk lamp or lighting apparatus and shine the position of focusing
It is bright.So that user, when use is read from tracing type desk lamp, desk lamp can use the reading area that user's eye focuses
Higher brightness is marked so that user it is outgoing continue to read back when can quick obtaining read emphasis, and do not need
Frequent mobile eyeball, reduces the feeling of fatigue that user uses.
Description of the drawings
It, below will be to attached drawing needed in embodiment description in order to illustrate more clearly of technical scheme of the present invention
It is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, general for this field
For logical technical staff, without creative efforts, other drawings may also be obtained based on these drawings.
Fig. 1 is the structural schematic diagram provided by the invention from tracing type desk lamp;
Fig. 2 is the structural schematic diagram of LED lighting board in the desk lamp provided by the invention from tracing type;
Fig. 3 is the flow diagram of the method provided by the invention that illumination is provided from trace mode;
Fig. 4 is the flow diagram one of the sub-step provided by the invention from the method that trace mode provides illumination;
Fig. 5 is the flow diagram two of the sub-step provided by the invention from the method that trace mode provides illumination;
Reference numeral:
The bent holders of 1-, 2- power supplys, 3-LED luminescent screens, 4- infrared transceivers, 5- emission control circuits, 41- first
LED array, the second LED array of 42-, the luminous flux of 400- sensing light, the first irradiation areas of 410-, the second irradiation areas of 420-,
The first luminous fluxes of 411-, the second luminous fluxes of 421-, 51- photosensitive elements.
Specific implementation mode
To keep structure of the invention and advantage clearer, the structure of the present invention is made further below in conjunction with attached drawing
Description.
Embodiment one
The present invention provides from tracing type desk lamp, it is described from tracing type desk lamp include power supply 2, it is described from tracing type desk lamp packet
It includes:It is described to include from tracing type desk lamp:It is electrically connected to the LED lighting board 3 of the power supply, further includes being configured to obtain user plane
Portion position from follow-up mechanism;Based on above-mentioned component, the specific workflow from tracking desk lamp is:
11, from follow-up mechanism to the spatial emission infrared ray residing for user's face, reception is reflected infrared from user's face
Line rendering space infared spectrum determines the first space coordinate residing for user's eye in the infared spectrum of space.
12, from follow-up mechanism according to the first space coordinate, determine that user's eye focal position is corresponding in conjunction with location algorithm
Second space coordinate lights LED lighting board 3 and irradiates to second space coordinate or adjusted to the radiation parameters of LED lighting board 3
Section.
In a step 11, user's body is encountered according to infrared ray from follow-up mechanism and then generates reflection by from follow-up mechanism sheet
The principle rendering space infared spectrum that body receives, in order to according to the mode of operation described in step 12, be focused to user's eye
Position is irradiated, while the radiation parameters of desk lamp during irradiation being adjusted.In the space infared spectrum got,
Determine that the detailed step of the first space coordinate residing for user's eye is as follows:
101, in the space infared spectrum, user's face region is determined according to preset face contour template.
102, it is filtered using the filter of structure in identified user's face region, obtains gray-scale map
Picture carries out binary conversion treatment to gray level image, obtains the first image after binary conversion treatment, extract white area in first image
The barycenter in domain is as a reference point.
If 103, being only capable of selecting the single reference point for respectively representing user's left eye and/or right eye in first image,
Then using the space coordinate of single reference point as the first space coordinate;Or
If 104, choosing the multiple reference points for representing user's left eye and/or right eye in first image, according to pre-
If believability threshold multiple reference points are screened, obtain the single reference point for respectively representing user's left eye and right eye, will
The space coordinate of single reference point is as the first space coordinate.
In order to determine accurate space coordinate, it is necessary first to establish space coordinate from the space residing for tracing type desk lamp
System understands that the coordinate origin in the space coordinates built in the present embodiment is located at emission control circuit for convenience,
XOY plane is the plane residing for bent holder.It is true according to the space infared spectrum of drafting after building space coordinates
Determine the first space coordinate of user's eye.
Firstly, it is necessary to carrying out region to the space infared spectrum obtained before according to face contour template cuts choosing, choose with
The region that face contour template contours feature is consistent is set to user's face region.Then, in fixed user's face region
It is filtered using the filter built in advance, and the gray level image to obtaining carries out binary conversion treatment, obtains artwork master
As i.e. the first image, reference point of the barycenter of the white area in the first image as eyes of user is extracted.Finally, if first
It is only capable of choosing single reference point for the left eye of user and/or right eye in image, then by the sky residing for the single reference point at choosing
Between coordinate as the first space coordinate;If being directed to the left eye and/or right eye of user in the first image, multiple references can be selected
Point then needs to screen multiple reference points according to preset believability threshold, obtains single reference point, and by single reference
The residing space coordinate of point is as the first space coordinate.
It is N-Quoit filters, mathematics obtaining the filter built in advance for being used during facial area
Morphologic filters.Conceptually, Quoit filters by two filters (annulus filter and disk filter) be superimposed and
At the output valve of Quoit filters is defined as disk and annulus does the difference after dilation operation.For an isolated point, annulus
Still disk, which can be fallen, to be fallen, therefore difference in height is generated between disk and annulus, so Quoit filters can detect
To the isolated point in image.The principle of the filter is:The isolated point present in the image have rotational symmetry and relative to
In the case that surrounding image is there are tone heights monotone decreasing, in order to realize maximum difference in height, it is only capable of choosing the center of disk
Point replaces disk filter using single-point filter in this case.The operation principle of single-point filter is:
Wherein, f representing input images, R represent the structural element in annulus filter,Dilation operation is represented, due to mistake
The single-point filter used in journey is image itself, it is no longer necessary to dilation operation, therefore use the time of Quoit filter process
It can be obviously shortened.
Optionally, the believability threshold is determined according to formula one,
Wherein, A, B indicate that two points in the first image, N indicate the cascade quantity of the grader used in screening process,
niIndicate the quantity of Weak Classifier in i-stage strong classifier, αitIndicate the weight of t-th of Weak Classifier in i-stage strong classifier,
hit(x) indicating, t-th of Weak Classifier in i-stage strong classifier, x indicate A, 2 points of B to be referred to as right and left eyes in the first image
When position, the image after geometrical normalization is carried out.
In force, believability threshold has been used to screen multiple reference points in previous step, here confidence level threshold
The acquisition methods of value are acquired according to formula one.In formula one, A, B indicate that two points in the first image, N indicate screening process
The cascade quantity of the middle grader used, niIndicate the quantity of Weak Classifier in i-stage strong classifier, αitIndicate that i-stage is divided by force
The weight of t-th of Weak Classifier, h in class deviceit(x) indicate that t-th of Weak Classifier in i-stage strong classifier, x indicate the first figure
A is carried out the image after geometrical normalization when 2 points of B is used as right and left eyes reference position as in.
For intuitively, face confidence values Facecess is the score summation of every grade of strong classifier.When left-eye candidate area
When the Facecess maximums that certain two point is calculated as input in domain and right eye candidate region, indicate that image at this time is most like
Face, the two points can be used as eye position.
Optionally, it is described from tracing type desk lamp further include bent holder, in the bent holder be equipped with shaft,
It is equipped with potentiometer at shaft, the bending angle of the bent holder is determined according to the resistance value of potentiometer.
In force, it as shown in Figure 1, in order to expand the range of exposures from tracing type desk lamp, is being gone back from tracing type desk lamp
Equipped with bent holder 1. in order to obtain the bending angle θ of bent holder 1, shaft is equipped in bent holder 1, in shaft
Interior to be equipped with potentiometer, in this way when adjusting the bending angle of bent holder 1, the resistance value of potentiometer can change, therefore thing
The correspondence for first recording resistance value and bending angle θ, by the resistance value for obtaining potentiometer, so that it may release bent holder with counter
1 current bending angle θ.
Optionally, it is described from follow-up mechanism according to the first space coordinate, determine that user's eye focuses position in conjunction with location algorithm
Corresponding second space coordinate is set, including:
According to the first space coordinate, determine that the first space coordinate is sat relative to the mirror image space of plane residing for bent holder
Mark;
The bending angle for obtaining bent holder determines LED lighting board relative to institute in conjunction with the length value of bent holder
The height value for locating plane residing for bent holder determines the third space coordinate residing for LED lighting board according to the height value;
The line of structure connection third space coordinate and mirror image space coordinate, determines the space equation of the line, in conjunction with
The space equation of plane residing for bent holder determines the intersecting point coordinate of the line and plane residing for the bent holder,
The intersecting point coordinate is second space coordinate, and the line is the direction of illumination of LED light plate.
In force, after obtaining the first space coordinate, from follow-up mechanism according to the first space coordinate, pass through location algorithm
The step of determining user's eye focal position is as follows:
First, the first space coordinate X is determined from follow-up mechanism1Relative to the symmetrical mirror image of XOY plane in space coordinates
Space coordinateThen, the bending angle θ that bent holder 1 is obtained from follow-up mechanism, in conjunction with the length l of bent holder, root
Two-dimensional coordinate value of the LED lighting board 3 relative to XOY plane is determined according to trigonometric function relationship, using the height value as LED lighting board
Z axis ordinate of 3 centers in space coordinates, so that it is determined that the third space coordinate of LED lighting board 3.
Then, third space coordinate X is built in space coordinates2With mirror image space coordinateLine, and according to
Three space coordinate X2With mirror image space coordinateCoordinate value determine the space equation of line, and then determine line and XOY plane
The coordinate of the coordinate of intersection point, the intersection point is the corresponding second space coordinate of user's eye focal position.
Why the coordinate of line and XOY plane intersection point is set to user's eye focal position, is because when user is sitting in
When reading a book before table, sight does not pass through desk, i.e., user's eye focal position, which is not less than, will not be higher than above
XOY plane can only fall on XOY plane, therefore in above-mentioned calculating user eye focal position, be based only upon light path along straight-line transmitting
It broadcasts and principle of reflection can determine user's eye focal position.And the purpose for obtaining user's eye focal position is in order to right
The light-emitting zone of LED lighting board 3 is adjusted, precision that need not be very high, therefore the thickness of books is had ignored in calculating process
Degrees of data.
Optionally, the LED lighting board is located on bending holder, and the LED lighting board is curve flexibility LED lighting board,
The curve flexibility LED lighting board is single layer board or double-layer circuit board;
When the curve flexibility LED lighting board is double-layer circuit board, the double-layer circuit board includes be printed with LED the
One circuit board, and the second circuit board that is printed with conductive trace and is bonded with first circuit board.
In force, according to the difference of actual fabrication technique, single layer board may be used in curve flexibility LED lighting board
Manufacture craft can also use the manufacture craft of double-layer circuit board.Element in curve flexibility LED lighting board is broadly divided into LED
Particle, and connect the conducting wire of LED particle.Since LED lighting board is based on flexible material, conducting wire here is actually print
The conductive trace of brush on circuit boards.
If using the manufacture craft of single layer board, mean the conduction of LED particle and each LED particle of connection
Trace is printed on same circuit board;If using the manufacture craft of double-layer circuit board, means LED particle and be connected to
The conductive trace of each LED particle is respectively printed on two circuit boards.As shown in Fig. 2, can be in top layer single layer board 121
The conductive path of upper printing LED particle 113 or 114, each LED particle can be formed via conductive trace 32, such as in encapsulation LED
Each LED particle can be to be serially connected on a conductive trace 32 to obtain power supply when particle, to be bonded two single layers
When circuit board, the conductive trace of LED particle and bottom contacts with each other to realize effective conductive path.Use double-layer circuit board can be with
When conductive trace 32 or LED particle break down, the circuit board to break down is only replaced, without to entire curve flexibility
LED lighting board is replaced, and maintenance cost is reduced.
Optionally, the curve flexibility LED lighting board includes:
It is located at the first area on the flexible LED light plate, the first LED array with the first luminous flux, Yi Jishe
Second area on the flexible LED light plate, the second LED array with the second luminous flux.
In force, in Fig. 1, the hair for including infrared transceiver 4 from follow-up mechanism and being electrically connected with infrared transceiver
Light control circuit 5.The emission control circuit 5 being electrically connected with LED lighting board 3, infrared transceiver 4, for according to infrared transceiver 4
The user's eye locations got are adjusted the light emission luminance and light-emitting zone of LED lighting board 3.Specifically, such as Fig. 2
It is shown, it is located at the first area in LED lighting board 3, the first LED array 41 with the first luminous flux, and be located at described soft
Second area in property LED lighting board 3, the second LED array 42 with the second luminous flux.As shown in Figure 1, the first LED array
Light of the transmitting with the first luminous flux is formed the first irradiation area 410, user will use and place by the luminous section where 41
It is read in the desk lamp on desk, then the light for projecting preset first luminous flux is radiated at by the luminous section where LED particle 114
In first irradiation area 410, the light that LED particle 41 is sent out will be received by the eye of user.Meanwhile it is preferable in order to reach
Luminous environment is compared, transmitting is had the light of the second luminous flux by the luminous section where LED particle 42 or remaining LED array, to
The second irradiation area 420 is formed around above-mentioned first irradiation area 410, it should be appreciated that second irradiation area 420
Range is not intended to be limited to shown in Fig. 1.
It is infrared to the transmitting of the face of user in infrared transceiver 4 after emission control circuit 5 is connected with infrared transceiver 4
Light receives the infrared signal reflected from user eyeball, the sight for the infrared signal monitoring user that emission control circuit 5 receives
Activity condition.Such as:It is logical come the light for adjusting the first LED array 41, the second LED array according to the sight activity condition detected
Amount, to generate the irradiation area of different illumination.It should be understood that being regarding with human eye to the luminous flux of above-mentioned luminous section
Line is movable and continually changing.For example, user is in read books content, if desk lamp is with longitudinal direction court shown in FIG. 1
To user, then from the reading process of books top-to-bottom, the sight of user by move (such as in Fig. 1 from a left side to
Right direction), then emission control circuit 5 can be configured as gradually increasing the luminous flux of LED array from left to right, so that user
It can obtain best lighting effect always in interested reading area.In conjunction with the component in Fig. 1, increase first first
The luminous flux of LED array 41 is to the first luminous flux 411, and then increases the second LED array 42 to identical luminous flux, subtracts simultaneously
The luminous flux of small first LED array 41 is to the second luminous flux 421.Such another kind effect is, after user leaves desk, the
The irradiation of light 411 of one luminous flux rests in first irradiation area 410, can be according to illumination when user starts again at reading
Intensity is come the region or position read before identifying.
Based on user's eye locations that above-mentioned emission control circuit 5 is got according to infrared transceiver 4, to LED lighting board 3
The example that is adjusted of illumination mode so that user using it is provided by the invention read from tracing type desk lamp when, platform
Lamp reading area can be marked using higher brightness by user in real eye locations so that user is back
After can quick obtaining read emphasis, enable user that need not frequently move eyeball, reduce the feeling of fatigue that user uses.
Optionally, the radiation parameters include irradiation brightness corresponding with LED lighting board, colour temperature or color-values.
In force, in order to which accurately the radiation response of tracking desk lamp certainly is adjusted, irradiation is defined here
This concept of parameter, specifically, radiation parameters include 3 corresponding irradiation brightness of LED lighting board, colour temperature or color-values.It is sent out in LED
It is equipped with LED drive circuit in tabula rasa 3, by adjusting the parameters such as output voltage of power supply module in driving circuit, realizes that LED shines
The adjusting of plate 3 corresponding irradiation brightness, colour temperature or color-values.
Optionally, photosensitive element is equipped with from follow-up mechanism described.
In force, as shown in Figure 1, being equipped with photosensitive element 51 from follow-up mechanism, it is configured as receiving and sensing ring
The luminous flux of border light 400, in this way, the control device is configured as adjusting above-mentioned according to the luminous flux 400 of sensed light
One, the threshold value of the second luminous flux.It can be not necessarily to that the on-off switch of desk lamp is arranged based on photosensitive element 51, on holder 1, from follow-up mechanism
The break-make of desk lamp will be controlled by the testing result of photosensitive element 51.
Optionally, dismountable light diffusion shell is equipped on the outside of the LED lighting board.
In force, in order to keep the light that LED particle emits soft uniformly or with different color effect, in lamp body outer sheath
Equipped with dismountable light diffusion shell, which is made of transparent or semitransparent material, preferably flexible optical silica gel
Or silicone material, it can arbitrarily be bent.In one embodiment, in order to which the light for sending out LED particle carries out guide-lighting, lamp
Stick on body and may be configured as opaque material at the top of LED particle position, so that the light that LED particle is sent out is shown in Fig. 1
It is only aimed downwardly under state.
Itd is proposed in the present embodiment from tracing type desk lamp, including holder and the power supply that is connect with holder, described from chasing after
The LED lighting board being additionally arranged in track formula desk lamp on holder, including be configured to obtain user's face position from follow-up mechanism.
By the user's eye locations got from follow-up mechanism, the illumination mode of LED lighting board is adjusted so that user makes
With it is provided by the invention read from tracing type desk lamp when, desk lamp can be by user in real eye locations, to reading
Region is marked using higher brightness so that user it is outgoing continue to read back when can quick obtaining read emphasis, and
And eyeball need not be frequently moved, reduce the feeling of fatigue that user uses.
Embodiment two
The present invention provides through the methods for providing illumination from trace mode, as shown in figure 3, this method includes:
31, to the spatial emission infrared ray residing for user's face, and according to the infrared ray for receiving the reflection from user's face
Rendering space infared spectrum determines the first space coordinate residing for user's eye in the infared spectrum of space, the first space is sat
Mark is sent to emission control circuit;
32, according to the first space coordinate, in conjunction with location algorithm, determine that the corresponding second space of user's eye focal position is sat
Mark, control light source irradiate to second space coordinate or the radiation parameters of light source are adjusted.
In step 31, user's body is encountered according to infrared ray and then generates the original that reflection is received from follow-up mechanism itself
Rendering space infared spectrum is managed, in order to which according to the mode of operation described in step 32, the position focused to user's eye is shone
It penetrates, while the radiation parameters of lighting apparatus during irradiation is adjusted.In the space infared spectrum got, determines and use
The detailed step of the first space coordinate residing for the eye of family is as shown in Figure 4:
401, in the infared spectrum of space, user's face region is determined according to face contour template;
402, it is filtered using the filter of structure in user's face region, obtains gray level image, to gray scale
Image carries out binary conversion treatment, obtains the first image after binary conversion treatment, and the barycenter for extracting white area in the first image is made
For reference point;
If 403, being only capable of selecting the single reference point for respectively representing user's left eye and/or right eye in the first image,
Using the space coordinate of single reference point as the first space coordinate;Or
If 404, choosing the multiple reference points for representing user's left eye and/or right eye in the first image, according to default
Believability threshold multiple reference points are screened, obtain the single reference point for respectively representing user's left eye and right eye, will be single
The space coordinate of one reference point is as the first space coordinate.
In force, it in order to determine the first space coordinate residing for user's eye in the infared spectrum of space, needs to carry out
It handles below.
Firstly, it is necessary to carrying out region to the space infared spectrum obtained before according to face contour template cuts choosing, choose with
The region that face contour template contours feature is consistent is set to user's face region.Then, in fixed user's face region
It is filtered using the filter built in advance, and the gray level image to obtaining carries out binary conversion treatment, obtains artwork master
As i.e. the first image, reference point of the barycenter of the white area in the first image as eyes of user is extracted.Finally, if first
It is only capable of choosing single reference point for the left eye of user and/or right eye in image, then by the sky residing for the single reference point at choosing
Between coordinate as the first space coordinate;If being directed to the left eye and/or right eye of user in the first image, multiple references can be selected
Point then needs to screen multiple reference points according to preset believability threshold, obtains single reference point, and by single reference
The residing space coordinate of point is as the first space coordinate.
The filter built in advance used in above process is N-Quoit filters, mathematical morphology filter.From
Conceptually, Quoit filters are formed by stacking, Quoit filters by two filters (annulus filter and disk filter)
Output valve be defined as disk and annulus does the difference after dilation operation.For an isolated point, annulus can be fallen but circle
Disk can not be fallen, therefore difference in height is generated between disk and annulus, so Quoit filters can detect isolating in image
Point.The principle of the filter is:The isolated point present in the image has rotational symmetry and there are colors relative to image around
In the case of color height monotone decreasing, in order to realize maximum difference in height, it is only capable of choosing the central point of disk, in this case,
Disk filter is replaced using single-point filter.The operation principle of single-point filter is:
Wherein, f representing input images, R represent the structural element in annulus filter,Dilation operation is represented, due to mistake
The single-point filter used in journey is image itself, it is no longer necessary to dilation operation, therefore use the time of Quoit filter process
It can be obviously shortened.
Optionally, the believability threshold is determined according to formula one
Wherein, A, B indicate that two points in the first image, N indicate the cascade quantity of the grader used in screening process,
niIndicate the quantity of Weak Classifier in i-stage strong classifier, αitIndicate the weight of t-th of Weak Classifier in i-stage strong classifier,
hit(x) indicate that t-th of Weak Classifier in i-stage strong classifier, x indicate to join A, 2 points of B as right and left eyes in the first image
When examining position, the image after geometrical normalization is carried out.
In force, believability threshold has been used to screen multiple reference points in previous step, here confidence level threshold
The acquisition methods of value are acquired according to formula one.In formula one, A, B indicate that two points in the first image, N indicate screening process
The cascade quantity of the middle grader used, niIndicate the quantity of Weak Classifier in i-stage strong classifier, αitIndicate that i-stage is divided by force
The weight of t-th of Weak Classifier, h in class deviceit(x) indicate that t-th of Weak Classifier in i-stage strong classifier, x indicate the first image
It is middle that A is carried out the image after geometrical normalization when 2 points of B is used as right and left eyes reference position.
For intuitively, face confidence values Facecess is the score summation of every grade of strong classifier.When left-eye candidate area
When the Facecess maximums that certain two point is calculated as input in domain and right eye candidate region, indicate that image at this time is most like
Face, the two points can be used as eye position.
Optionally, corresponding second sky of user's eye focal position is determined in conjunction with location algorithm according to the first space coordinate
Between coordinate it is as shown in Figure 5:
501, the mirror image space coordinate of the first space coordinate is determined;
502, the height value for determining light source determines the third space coordinate residing for light source according to the height value;
503, the line of structure connection third space coordinate and mirror image space coordinate, determines the space equation of the line,
In conjunction with the space equation of datum plane, determine that the intersecting point coordinate of the line and the datum plane, the intersecting point coordinate are
Second space coordinate.
In force, after obtaining the first space coordinate, according to the first space coordinate, user's eye is determined by location algorithm
The step of portion's focal position, is as follows:
First, the first space coordinate X is determined1Relative to the symmetrical mirror image space coordinate of XOY plane in space coordinates
It is then determined the height value of light source, the third space coordinate X residing for light source is determined according to the height value2.Then, in space
Structure third space coordinate X in coordinate system2With mirror image space coordinateLine, and according to third space coordinate X2With mirror image
Space coordinateCoordinate value determine the space equation of line, and then determine the coordinate of line and XOY plane intersection point, the intersection point
Coordinate is the corresponding second space coordinate of user's eye focal position.
Why the coordinate of line and XOY plane intersection point is set to user's eye focal position, is because when user is sitting in
When reading a book before table, sight does not pass through desk, i.e., user's eye focal position, which is not less than, will not be higher than above
XOY plane can only fall on XOY plane, therefore in above-mentioned calculating user eye focal position, be based only upon light path along straight-line transmitting
It broadcasts and principle of reflection can determine user's eye focal position.And the purpose for obtaining user's eye focal position is in order to right
The light-emitting zone of LED lighting board 3 is adjusted, precision that need not be very high, therefore the thickness of books is had ignored in calculating process
Degrees of data.
Optionally, the radiation parameters include irradiation brightness, colour temperature or color-values.
In force, in order to which accurately the radiation response of tracking desk lamp certainly is adjusted, irradiation is defined here
This concept of parameter, specifically, radiation parameters include irradiation brightness in irradiation process, colour temperature or color-values.In actual illumination
Illumination driving circuit is equipped in equipment, by adjusting the parameters such as output voltage of power supply module in illumination driving circuit, realization pair
The adjusting of lighting apparatus irradiation brightness, colour temperature or color-values.
The method by providing illumination from trace mode is proposed in the present embodiment, includes being sent out to the space residing for user's face
Infrared ray is penetrated, and according to the infrared ray rendering space infared spectrum reflected from user's face is received, according to space infared spectrum
Middle determining user's eye locations, and irradiated to user's eye locations, while the radiation parameters of lighting apparatus are adjusted.Pass through
The radiation modality of lighting apparatus is adjusted so that lighting apparatus user in real eye locations use reading area
Higher brightness is marked so that user it is outgoing continue to read back when can quick obtaining read emphasis, and do not need
Frequent mobile eyeball, reduces the feeling of fatigue that user uses.
Each serial number in above-described embodiment is for illustration only, the assembling for not representing each component or the elder generation during use
Sequence afterwards.
Example the above is only the implementation of the present invention is not intended to limit the invention, all in the spirit and principles in the present invention
Within, any modification, equivalent replacement, improvement and so on should all be included in the protection scope of the present invention.