A kind of control the method and device of atmosphere lamp switch in car
Technical field
The present embodiments relate to car networking technology, particularly relate to a kind of control the method for atmosphere lamp switch in car
And device.
Background technology
Along with social development, automobile is gradually come into life, increasing people by a kind of high-end vehicles
Have the automobile of oneself.Universal along with vehicle, people the requirement of automobile is gradually trended towards safety and
Convenience direction.
In the research process carrying out the present invention, inventor finds that driver (drives or stops) in car night
Shi Rongyi is in the face of following puzzlement: when needs take article from copilot, back seat or hand box etc., due to car
Interior light is very dark, is extremely not easily found article to be taken.If driver bows and carefully ransacks, then may
Transfer driving demand power (in the case of driving), reduces driver's risk respond when driving.
If driver opens vehicle interior roof light, vehicle window or front windshield can be caused the most again to occur reflective, disturb driver
Observe the outer surface conditions of car.And the opening and closing of atmosphere lamp are also required to driver to particular switch in car in car
Operate, be extremely inconvenient for the driver in driving, thus, cause Consumer's Experience not
Good.
Summary of the invention
The present invention provides a kind of and controls the method and device of atmosphere lamp switch in car, to realize not disturbing driving
Member controls being turned on and off of atmosphere lamp in car easily on the premise of driving.
First aspect, embodiments provides and a kind of controls the method for atmosphere lamp switch in car, including:
When atmosphere lamp controls event triggering, determine the face orientation position of driver, according to described face court
The area-of-interest of driver is determined to position;
Judge whether the driver actions corresponding to described area-of-interest meets preset rules, so that it is determined that be
No opening and closing is corresponding to the atmosphere lamp of described area-of-interest.
Further, when atmosphere lamp controls event triggering, before determining the face orientation position of driver,
Also include:
Obtain the intensity of illumination in environment inside car, and when described intensity of illumination meets and imposes a condition, trigger
Atmosphere lamp controls event.
Further, obtain the intensity of illumination in environment inside car, including:
The intensity of illumination that optical sensor gathers in car is periodically obtained by vehicle bus,
Or, obtained the video image of environment inside car by photographic head, and determine car according to described video image
Intensity of illumination in interior environment;
Further, when described intensity of illumination meets and imposes a condition, trigger atmosphere lamp and control event, including:
Described intensity of illumination is compared with setting threshold value;
In described intensity of illumination less than when setting threshold value, trigger atmosphere lamp and control event.
Further, when atmosphere lamp controls event triggering, determine the face orientation position of driver, according to
Described face orientation position determines the area-of-interest of driver, including:
When atmosphere lamp controls event triggering, obtained the video image of environment inside car by photographic head, determine institute
State the facial feature data corresponding to driver in video image;
Described facial feature data is mated with preset image processing model, determines according to matching result
The space angle of the face orientation of driver;
The space angle of the face orientation according to driver and the setting area of Che Nei atmosphere lamp determine driver's
Area-of-interest.
Further, the space angle of the face orientation of described driver includes:
The angle of the pilot's line of vision projection line at the X/Y plane of three-dimensional system of coordinate and Y-axis, and driver regards
Line and the angle of Z axis;Wherein, three-dimensional system of coordinate is with driver's nose location point as initial point, driver face
Being Y-axis positive direction to the direction of dead ahead, crown upward direction is Z axis positive direction, from initial point level to the left
Direction is X-axis positive direction.
Further, in described car, the setting area of atmosphere lamp includes: bridge and bridge area above,
Region, front passenger's seat region, front passenger's seat heel row between driver's seat left field, driver's seat and front passenger's seat
Seating area and driver's seat back row seats region.
Further, driving is determined according to the face orientation position of driver and the setting area of Che Nei atmosphere lamp
The area-of-interest of member, including:
By pilot's line of vision projection line and the Y-axis of X/Y plane angle with set in advance corresponding to car in atmosphere
First angular range of the setting area enclosing lamp mates, and determines first area according to matching result;
By pilot's line of vision with the angle of Z axis with set in advance corresponding to the setting area of atmosphere lamp in car
Second angular range mates, and determines second area according to matching result;
The overlapping region of described first area Yu described second area is defined as the area-of-interest of driver.
Further, it is judged that whether the driver actions corresponding to described area-of-interest meets preset rules,
Determine whether that opening and closing corresponds to the atmosphere lamp of described area-of-interest, including:
When the driver actions corresponding to described area-of-interest meets and presets the first rule, determine described sense
Interest region is driver's region-of-interest, is driven by atmosphere lamp in vehicle bus or car and controls corresponding to driving
The atmosphere lamp of member's region-of-interest is opened;
When the driver actions corresponding to described area-of-interest meets and presets Second Rule, determine described sense
Interest region is not driver's region-of-interest, is driven by atmosphere lamp in vehicle bus or car and controls corresponding to non-
The atmosphere lamp of driver's region-of-interest is closed.
Further, described first rule of presetting includes: the company of the same area-of-interest of driver's face orientation
The continuous time of staying exceedes setting time threshold, or, the frequency of the same area-of-interest of driver's face orientation surpasses
Cross setpoint frequency threshold value.
Further, described default Second Rule is for meet simultaneously: the same region of interest of driver's face orientation
The continuous time of staying in territory is less than and sets time threshold, and, the same area-of-interest of driver's face orientation
Frequency less than setpoint frequency threshold value, and, not stopping continuously of the same area-of-interest of driver's face orientation
The time is stayed to exceed setting time threshold.
Second aspect, the embodiment of the present invention additionally provides and a kind of controls the device of atmosphere lamp switch, this dress in car
Put and include:
Area determination module, for when atmosphere lamp controls event triggering, determining the face orientation position of driver
Put, determine the area-of-interest of driver according to described face orientation position;
Atmosphere lamp control module, for judging whether the driver actions corresponding to described area-of-interest meets
Preset rules, determines whether that opening and closing corresponds to the atmosphere lamp of described area-of-interest.
Further, also include:
Event trigger module, for when atmosphere lamp controls event triggering, determining the face orientation position of driver
Before putting, obtain the intensity of illumination in environment inside car, when described intensity of illumination meets and imposes a condition, trigger
Atmosphere lamp controls event.
Further, event trigger module specifically for:
The intensity of illumination that optical sensor gathers in car is periodically obtained by vehicle bus, or, pass through
Photographic head obtains the video image of environment inside car, and determines the illumination in environment inside car according to described video image
Intensity;
Further, when described intensity of illumination meets and imposes a condition, trigger atmosphere lamp and control event, including:
Described intensity of illumination is compared with setting threshold value;
In described intensity of illumination less than when setting threshold value, trigger atmosphere lamp and control event.
Further, area determination module includes:
Facial feature data determines submodule, for when atmosphere lamp controls event triggering, being obtained by photographic head
Take the video image of environment inside car, determine the facial feature data corresponding to driver in described video image;
Face orientation determines submodule, for described facial feature data being entered with preset image processing model
Row coupling, determines the space angle of the face orientation of driver according to matching result;
Area-of-interest determines submodule, for space angle and the Che Nei atmosphere of the face orientation according to driver
The setting area enclosing lamp determines the area-of-interest of driver.
Further, the space angle of the face orientation of described driver includes:
The angle of the pilot's line of vision projection line at the X/Y plane of three-dimensional system of coordinate and Y-axis, and driver regards
Line and the angle of Z axis, wherein, three-dimensional system of coordinate is with driver's nose location point as initial point, driver face
Being Y-axis positive direction to the direction of dead ahead, crown upward direction is Z axis positive direction, from initial point level to the left
Direction is X-axis positive direction.
Further, in described car, the setting area of atmosphere lamp includes: bridge and bridge area above,
Region, front passenger's seat region, front passenger's seat heel row between driver's seat left field, driver's seat and front passenger's seat
Seating area and driver's seat back row seats region.
Further, area-of-interest determine submodule specifically for:
By pilot's line of vision projection line and the Y-axis of X/Y plane angle with set in advance corresponding to car in atmosphere
First angular range of the setting area enclosing lamp mates, and determines first area according to matching result;
By pilot's line of vision with the angle of Z axis with set in advance corresponding to the setting area of atmosphere lamp in car
Second angular range mates, and determines second area according to matching result;
The overlapping region of described first area Yu described second area is defined as the area-of-interest of driver.
Further, atmosphere lamp control module specifically for:
When the driver actions corresponding to described area-of-interest meets and presets the first rule, determine described sense
Interest region is driver's region-of-interest, is driven by atmosphere lamp in vehicle bus or car and controls corresponding to driving
The atmosphere lamp of member's region-of-interest is opened;
When the driver actions corresponding to described area-of-interest meets and presets Second Rule, determine described sense
Interest region is not driver's region-of-interest, is driven by atmosphere lamp in vehicle bus or car and controls corresponding to non-
The atmosphere lamp of driver's region-of-interest is closed.
Further, described first rule of presetting includes: the company of the same area-of-interest of driver's face orientation
The continuous time of staying exceedes setting time threshold, or, the frequency of the same area-of-interest of driver's face orientation surpasses
Cross setpoint frequency threshold value.
Further, described default Second Rule is for meet simultaneously: the same region of interest of driver's face orientation
The continuous time of staying in territory is less than and sets time threshold, and, the same area-of-interest of driver's face orientation
Frequency less than setpoint frequency threshold value, and, not stopping continuously of the same area-of-interest of driver's face orientation
The time is stayed to exceed setting time threshold.
The present invention passes through, when atmosphere lamp controls event triggering, to determine the face orientation position of driver, according to
Described face orientation determines the area-of-interest of driver;Judge the driver corresponding to described area-of-interest
Whether action meets preset rules, determines whether that opening and closing corresponds to the atmosphere lamp of described area-of-interest.
The technical scheme of embodiments of the invention solves driver and takes the operation of article during nighttime driving very
Inconvenient problem, it is achieved determine according to the face orientation position of driver the atmosphere lamp opening which position with
There is provided illumination, it is simple to driver finds article to be taken, reach operation more intelligent, convenient, and regardless of
Dissipate the effect of the driving demand power of driver.
Accompanying drawing explanation
A kind of in Fig. 1 embodiment of the present invention one controls the flow chart of the method for atmosphere lamp switch in car;
Fig. 2 is that a kind of in the embodiment of the present invention two controls to determine driver in the method for atmosphere lamp switch in car
The flow chart of the step of area-of-interest;
Fig. 3 is that a kind of in the embodiment of the present invention three controls the structural representation of the device of atmosphere lamp switch in car.
Detailed description of the invention
The present invention is described in further detail with embodiment below in conjunction with the accompanying drawings.It is understood that this
Specific embodiment described by place is used only for explaining the present invention, rather than limitation of the invention.The most also need
It is noted that for the ease of describing, accompanying drawing illustrate only part related to the present invention and not all knot
Structure.
Embodiment one
Fig. 1 a kind of controls the flow chart of the method for atmosphere lamp switch in car for what the embodiment of the present invention one provided,
The present embodiment is applicable to the face orientation position intelligent opening according to driver or closes the feelings of atmosphere lamp in car
Condition, the method can be controlled the device of atmosphere lamp switch in car performed by a kind of, specifically includes following steps:
Step 110, atmosphere lamp control event trigger time, determine the face orientation position of driver, according to
Described face orientation position determines the area-of-interest of driver.
Wherein, face orientation is driver's face orientation position space angle under the three-dimensional system of coordinate set.
Such as, face orientation can include pilot's line of vision projection line and Y-axis at the X/Y plane of three-dimensional system of coordinate
Angle, and the angle of pilot's line of vision and Z axis, wherein, three-dimensional system of coordinate is with driver's nose position
Point is initial point, and driver is Y-axis positive direction towards the direction of dead ahead, and crown upward direction is that Z axis is square
To, it is X-axis positive direction from the horizontal left direction of initial point.
Area-of-interest is corresponding to being provided with the region of atmosphere lamp in car.For example, it may be bridge and driving
Platform area above, driver's seat left field, region between driver's seat and front passenger's seat, front passenger's seat region,
Front passenger's seat back row seats region and driver's seat back row seats region.Further, atmosphere in the car in regional
The control of lamp is separate.
Region right of atmosphere lamp it is provided with in pre-building driver's face orientation and car by central processing unit
Should be related to.Example 1: predefine driver's face orientation bridge and bridge by central processing unit
During area above, the pilot's line of vision projection line at X/Y plane and the angle of Y-axis in above-mentioned three-dimensional system of coordinate,
And, when driver's face orientation bridge and bridge area above, drive in above-mentioned three-dimensional system of coordinate
The person's of sailing sight line and the angle of Z axis.Driver's face orientation is provided with the corresponding pass in the region of atmosphere lamp with other
The mode of setting up of system is identical with above-mentioned example, and here is omitted.
On the premise of central processing unit triggers atmosphere lamp control event, by preset image processing model pair
Driver's face orientation is identified and calculates, and obtains the face orientation of driver at the three-dimensional system of coordinate set
Under space angle.The region of atmosphere lamp it is provided with in central processing unit inquiry driver's face orientation and car
Corresponding relation, determines the space angle under the three-dimensional system of coordinate set of the face orientation with the driver obtained
The corresponding region being provided with atmosphere lamp, is provided with the region region of interest as driver of atmosphere lamp using this
Territory.
Wherein, central processing unit obtains the intensity of illumination in environment inside car, meets in described intensity of illumination and sets
During condition, trigger atmosphere lamp and control event.Impose a condition and include that intensity of illumination is less than setting Intensity threshold, or
Intensity of illumination meets intensity of illumination numerical range set in advance etc..Atmosphere lamp in central processing unit acquisition car
The mode of intensity of illumination can be periodically to obtain, by vehicle bus, the illumination that optical sensor gathers in car
Intensity, or, the intensity of illumination in environment inside car is determined by video image.Video image can be by car
Video camera or photographic head carry out recording to environment inside car in real time and obtain.
Such as, central processing unit periodically obtains, by vehicle bus, the illumination that optical sensor gathers in car
Intensity.Then, central processing unit by acquired intensity of illumination is compared with preset Intensity threshold,
Determine whether that triggering atmosphere lamp controls event according to comparative result.That is, in described intensity of illumination less than preset
During Intensity threshold, atmosphere lamp in central processing unit controls event to be triggered, with determine be currently needed for opening a certain
The atmosphere lamp in region.
Step 120, judge whether the driver actions corresponding to described area-of-interest meets preset rules,
Determine whether that opening and closing corresponds to the atmosphere lamp of described area-of-interest.
Wherein, preset rules includes presetting the first regular and default Second Rule, and described first rule of presetting is wrapped
Include: the continuous time of staying of the same area-of-interest of driver's face orientation exceedes setting time threshold, or,
The frequency of the same area-of-interest of driver's face orientation exceedes setpoint frequency threshold value.Described default Second Rule
For meeting simultaneously: the continuous time of staying of the same area-of-interest of driver's face orientation is less than setting time threshold
Value, and, the frequency of the same area-of-interest of driver's face orientation is less than setpoint frequency threshold value, and,
The continuous non-time of staying of the same area-of-interest of driver's face orientation exceedes setting time threshold.
When the driver actions corresponding to described area-of-interest meets and presets the first rule, determine described sense
Interest region is driver's region-of-interest, is driven by atmosphere lamp in vehicle bus or car and controls corresponding to driving
The atmosphere lamp of member's region-of-interest is opened.
When the driver actions corresponding to described area-of-interest meets and presets Second Rule, determine described sense
Interest region is not driver's region-of-interest, is driven by atmosphere lamp in vehicle bus or car and controls corresponding to non-
The atmosphere lamp of driver's region-of-interest is closed.Wherein, driven by atmosphere lamp in vehicle bus or car
Dynamic control is closed including corresponding to the atmosphere lamp of non-driver region-of-interest: central processing unit detects
The on off state of the atmosphere lamp of non-driver region-of-interest determined by corresponding to.If opening, then in
Central processor issues the out code atmosphere lamp to non-driver region-of-interest by vehicle bus.Set being separated by
After fixing time, the on off state of the atmosphere lamp of this non-driver region-of-interest inquired about by central processing unit, to guarantee
The atmosphere lamp in this region has been switched off, and updates the atmosphere lamp mark of central processing unit.If the atmosphere lamp in this region
For closed mode, central processing unit inquiry atmosphere lamp mark.When atmosphere lamp is designated unlatching, update central authorities
The atmosphere lamp mark of processor.When atmosphere lamp is designated closedown, terminates atmosphere lamp and control event.
The technical scheme of the present embodiment, is determined by the face orientation position of driver, according to described face court
To the area-of-interest determining driver;The fullest according to the driver actions corresponding to described area-of-interest
Foot preset rules, determines the switch of atmosphere lamp corresponding to described area-of-interest.The technical side of the present embodiment
Case solves driver and takes the very inconvenient problem of operation of article during nighttime driving, it is achieved according to
The face orientation position of driver determines that the atmosphere lamp opening which position is to provide illumination, it is simple to driver looks for
To article to be taken, reach operation more intelligent, convenient, and do not disperse the driving demand power of driver
Effect.
Embodiment two
Fig. 2 is that a kind of in the embodiment of the present invention two controls to determine driver in the method for atmosphere lamp switch in car
The flow chart of the step of area-of-interest.The technical scheme of the present embodiment on the basis of technique scheme,
To determining the face orientation position of driver, determine the region of interest of driver according to described face orientation position
The step in territory is specifically introduced, and specifically includes following steps:
Step 210, determine in video image corresponding to the facial feature data of driver.
Wherein, facial feature data includes head/face location coordinate or LOS coordinate etc..Central processing unit is to obtaining
The video image got performs video framing operation, to obtain each two field picture that described video image includes.In
Central processor extracts, by the face recognition algorithms set, the facial feature data that each two field picture includes.Centre
Described facial feature data is mated by reason device with the facial feature data template of preset driver, according to
Matching result determines the facial feature data corresponding to driver.
Step 220, determine the angle of the pilot's line of vision projection line at the X/Y plane of three-dimensional system of coordinate and Y-axis,
And the angle of pilot's line of vision and Z axis.
Central processing unit is with driver's nose location point as initial point, and driver is Y-axis towards the direction of dead ahead
Positive direction, crown upward direction is Z axis positive direction, is X-axis positive direction from the horizontal left direction of initial point, builds
Vertical three-dimensional system of coordinate.Under the three-dimensional system of coordinate set up, calculate according to the LOS coordinate corresponding to driver
The sight line projection line at the X/Y plane of three-dimensional system of coordinate and the angle of Y-axis.And, according to corresponding to driver
LOS coordinate calculate the angle of sight line and Z axis under three-dimensional system of coordinate.
Step 230, pilot's line of vision is right with set in advance with the angle of Y-axis at the projection line of X/Y plane
Should mate by first angular range of the setting area of atmosphere lamp in car, determine first according to matching result
Region.
Wherein, set in advance include as follows corresponding to the first angular range of the setting area of atmosphere lamp in car
Span:
1., when driver's face orientation bridge and bridge area above, drive in above-mentioned three-dimensional system of coordinate
The person's of sailing sight line is in the span of the angle of projection line and the Y-axis of X/Y plane.
2., during driver's face orientation driver's seat left field, in above-mentioned three-dimensional system of coordinate, pilot's line of vision exists
The projection line of X/Y plane and the span of the angle of Y-axis.
3., between driver's face orientation driver's seat and front passenger's seat during region, drive in above-mentioned three-dimensional system of coordinate
The person's of sailing sight line is in the span of the angle of projection line and the Y-axis of X/Y plane.
4., during driver's face orientation front passenger's seat region, in above-mentioned three-dimensional system of coordinate, pilot's line of vision is at XY
The projection line of plane and the span of the angle of Y-axis.
5. during driver's face orientation front passenger's seat back row seats region, driver in above-mentioned three-dimensional system of coordinate
Sight line is in the span of the angle of projection line and the Y-axis of X/Y plane.
6., during driver's face orientation driver's seat back row seats region, in above-mentioned three-dimensional system of coordinate, driver regards
Line is in the span of the angle of projection line and the Y-axis of X/Y plane.
Central processing unit according to determined by the angle of the pilot's line of vision projection line at X/Y plane and Y-axis, look into
Ask described first angular range, would correspond to the pilot's line of vision angle in projection line and the Y-axis of X/Y plane
In car, the setting area of atmosphere lamp is defined as first area.
Step 240, by the angle of pilot's line of vision and Z axis with set in advance corresponding to atmosphere lamp in car
Second angular range of setting area mates, and determines second area according to matching result.
Wherein, set in advance include as follows corresponding to the second angular range of the setting area of atmosphere lamp in car
Span:
1., when driver's face orientation bridge and bridge area above, drive in above-mentioned three-dimensional system of coordinate
The span of the angle of the person's of sailing sight line and Z axis.
2. during driver's face orientation driver's seat left field, in above-mentioned three-dimensional system of coordinate pilot's line of vision with
The span of the angle of Z axis.
3., between driver's face orientation driver's seat and front passenger's seat during region, drive in above-mentioned three-dimensional system of coordinate
The span of the angle of the person's of sailing sight line and Z axis.
4. during driver's face orientation front passenger's seat region, pilot's line of vision and Z in above-mentioned three-dimensional system of coordinate
The span of the angle of axle.
5. during driver's face orientation front passenger's seat back row seats region, driver in above-mentioned three-dimensional system of coordinate
The span of the angle of sight line and Z axis.
6., during driver's face orientation driver's seat back row seats region, in above-mentioned three-dimensional system of coordinate, driver regards
The span of the angle of line and Z axis.
Central processing unit according to determined by the angle of pilot's line of vision and Z axis, inquire about described second angle model
Enclose, would correspond to pilot's line of vision and be defined as the secondth district with the setting area of atmosphere lamp in the car of the angle of Z axis
Territory.
Step 250, judge whether the described first area regional extent corresponding with described second area has coincidence
Region, the most then perform step 260, performs step 210 if it is not, then return.
Central processing unit by determined by the scope that includes of the scope that includes of first area and second area carry out right
Ratio, when the scope included in two regions has overlapping region, performs step 260, otherwise, returns and perform step
Rapid 210.
Step 260, the overlapping region of described first area Yu described second area is defined as the sense of driver
Interest region.
The technical scheme of the present embodiment, by pilot's line of vision the X/Y plane of three-dimensional system of coordinate projection line with
The angle of Y-axis, and the angle of pilot's line of vision and Z axis, determine the sight line of current driver's towards car
The setting area of interior atmosphere lamp, so that it is determined that the area-of-interest of current driver's, in order to by emerging to sense
The judgement in interest region further determines that driver's region-of-interest, and then, open in the car of driver's region-of-interest
Atmosphere lamp, in order to driver finds article to be taken, has reached operation more intelligent, convenient, and regardless of
Dissipate the effect of the driving demand power of driver.
Embodiment three
Fig. 3 is that a kind of in the embodiment of the present invention three controls the structural representation of the device of atmosphere lamp switch in car,
This device can use the mode of software or hardware to realize, and this device can be integrated in car-mounted terminal, such as Fig. 3 institute
Showing, the concrete structure of this device includes: area determination module 310 and atmosphere lamp control module 320.
Area determination module 310, for when atmosphere lamp controls event triggering, determining the face court of driver
To position, determine the area-of-interest of driver according to described face orientation position;
Atmosphere lamp control module 320, for judging the driver actions corresponding to described area-of-interest whether
Meet preset rules, determine whether that opening and closing corresponds to the switch of the atmosphere lamp of described area-of-interest.
The technical scheme of the present embodiment, determines the face orientation position of driver by area determination module 310,
The area-of-interest of driver is determined according to described face orientation position;Sentenced by atmosphere lamp control module 320
Whether the disconnected driver actions corresponding to described area-of-interest meets preset rules, determines whether opening and closing
Switch corresponding to the atmosphere lamp of described area-of-interest.The technical scheme of the present embodiment solves driver at night
Between drive during take the very inconvenient problem of operation of article, it is achieved according to the face orientation of driver
Position determines that the atmosphere lamp opening which position is to provide illumination, it is simple to driver finds article to be taken, and reaches
Arrive operation more intelligent, convenient, and do not disperse the effect of the driving demand power of driver.
Further, also include:
Event trigger module 330, for when atmosphere lamp controls event triggering, determining the face court of driver
Before position, obtain the intensity of illumination in environment inside car, when described intensity of illumination meets and imposes a condition, touch
Send out atmosphere lamp and control event.
Further, event trigger module 330 specifically for:
The intensity of illumination that optical sensor gathers in car is periodically obtained by vehicle bus, or, pass through
Photographic head obtains the video image of environment inside car, and determines the illumination in environment inside car according to described video image
Intensity.
Further, when described intensity of illumination meets and imposes a condition, trigger atmosphere lamp and control event, including:
Described intensity of illumination is compared with setting threshold value;
In described intensity of illumination less than when setting threshold value, trigger atmosphere lamp and control event.
Further, area determination module 310 includes:
Facial feature data determines submodule, for when atmosphere lamp controls event triggering, being obtained by photographic head
Take the video image of environment inside car, determine the facial feature data corresponding to driver in described video image;
Face orientation determines submodule, for described facial feature data being entered with preset image processing model
Row coupling, determines the space angle of the face orientation of driver according to matching result;
Area-of-interest determines submodule, for space angle and the Che Nei atmosphere of the face orientation according to driver
The setting area enclosing lamp determines the area-of-interest of driver.
Further, the space angle of the face orientation of described driver includes:
The angle of the pilot's line of vision projection line at the X/Y plane of three-dimensional system of coordinate and Y-axis, and driver regards
Line and the angle of Z axis;Wherein, three-dimensional system of coordinate is with driver's nose location point as initial point, driver face
Being Y-axis positive direction to the direction of dead ahead, crown upward direction is Z axis positive direction, from initial point level to the left
Direction is X-axis positive direction.
Further, in described car, the setting area of atmosphere lamp includes: bridge and bridge area above,
Region, front passenger's seat region, front passenger's seat heel row between driver's seat left field, driver's seat and front passenger's seat
Seating area and driver's seat back row seats region.
Further, area-of-interest determine submodule specifically for:
By pilot's line of vision projection line and the Y-axis of X/Y plane angle with set in advance corresponding to car in atmosphere
First angular range of the setting area enclosing lamp mates, and determines first area according to matching result;
By pilot's line of vision with the angle of Z axis with set in advance corresponding to the setting area of atmosphere lamp in car
Second angular range mates, and determines second area according to matching result;
The overlapping region of described first area Yu described second area is defined as the area-of-interest of driver.
Further, atmosphere lamp control module 320 specifically for:
When the driver actions corresponding to described area-of-interest meets and presets the first rule, determine described sense
Interest region is driver's region-of-interest, is driven by atmosphere lamp in vehicle bus or car and controls corresponding to driving
The atmosphere lamp of member's region-of-interest is opened;
When the driver actions corresponding to described area-of-interest meets and presets Second Rule, determine described sense
Interest region is not driver's region-of-interest, is driven by atmosphere lamp in vehicle bus or car and controls corresponding to non-
The atmosphere lamp of driver's region-of-interest is closed.
Further, described first rule of presetting includes: the company of the same area-of-interest of driver's face orientation
The continuous time of staying exceedes setting time threshold, or, the frequency of the same area-of-interest of driver's face orientation surpasses
Cross setpoint frequency threshold value.
Further, described default Second Rule is for meet simultaneously: the same region of interest of driver's face orientation
The continuous time of staying in territory is less than and sets time threshold, and, the same area-of-interest of driver's face orientation
Frequency less than setpoint frequency threshold value, and, not stopping continuously of the same area-of-interest of driver's face orientation
The time is stayed to exceed setting time threshold.
In above-mentioned control car, the device of atmosphere lamp switch can perform the control car that any embodiment of the present invention is provided
The method of interior atmosphere lamp switch, possesses the corresponding functional module of execution method and beneficial effect.
It will be appreciated by those skilled in the art that all or part of step realizing in above-described embodiment method is permissible
Instructing relevant hardware by program to complete, this program is stored in a storage medium, including some
Instruct with so that an equipment (can be single-chip microcomputer, chip etc.) or processor (processor) perform
All or part of step of method described in each embodiment of the application.And aforesaid storage medium includes: USB flash disk,
Portable hard drive, read only memory (ROM, Read-Only Memory), random access memory (RAM, Random
Access Memory), the various media that can store program code such as magnetic disc or CD.
Note, above are only presently preferred embodiments of the present invention and institute's application technology principle.Those skilled in the art
It will be appreciated that the invention is not restricted to specific embodiment described here, can enter for a person skilled in the art
Row various obvious changes, readjust and substitute without departing from protection scope of the present invention.Therefore, though
So by above example, the present invention is described in further detail, but the present invention be not limited only to
Upper embodiment, without departing from the inventive concept, it is also possible to include other Equivalent embodiments more,
And the scope of the present invention is determined by scope of the appended claims.