CN109996379A - A kind of lamp light control method and device - Google Patents

A kind of lamp light control method and device Download PDF

Info

Publication number
CN109996379A
CN109996379A CN201811114160.3A CN201811114160A CN109996379A CN 109996379 A CN109996379 A CN 109996379A CN 201811114160 A CN201811114160 A CN 201811114160A CN 109996379 A CN109996379 A CN 109996379A
Authority
CN
China
Prior art keywords
lamp
region
scene
brightness
factor
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811114160.3A
Other languages
Chinese (zh)
Other versions
CN109996379B (en
Inventor
金鑫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Hikvision Digital Technology Co Ltd
Hangzhou Hikvision System Technology Co Ltd
Original Assignee
Hangzhou Hikvision Digital Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Hikvision Digital Technology Co Ltd filed Critical Hangzhou Hikvision Digital Technology Co Ltd
Publication of CN109996379A publication Critical patent/CN109996379A/en
Application granted granted Critical
Publication of CN109996379B publication Critical patent/CN109996379B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/105Controlling the light source in response to determined parameters
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/105Controlling the light source in response to determined parameters
    • H05B47/11Controlling the light source in response to determined parameters by determining the brightness or colour temperature of ambient light
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Landscapes

  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

The embodiment of the invention provides a kind of lamp light control method and device, method includes: to obtain the location information in region and the present intensity distribution situation of target scene locating for personnel in target scene;Based on present intensity distribution situation and location information, in the present intensity that determines region locating for personnel, if there is the present intensity not being located in predetermined luminance range;When it is present, it is based on location information, determines that the corresponding target of personnel takes a seat mode;Mode and default lamp regulatory control corresponding relationship then are taken a seat and target takes a seat mode based on default, determine target lamp regulatory control then;According to target lamp regulatory control then, target lamp regulatory control then corresponding atmospheric reference factor and predetermined luminance range, determine to control signal for the current light opened or closed for controlling scene lamp in target scene.Using the embodiment of the present invention to realize the opening and closing for more intelligently controlling the scene lamp in target scene.

Description

A kind of lamp light control method and device
Technical field
The present invention relates to field of intelligent control, more particularly to a kind of lamp light control method and device.
Background technique
Current intelligent light control system mainly by illuminance sensor (such as: photo resistance), infrared sensor, take the photograph As head and processor form, above-mentioned illuminance sensor is used to detect the brightness case in target scene (such as: classroom), above-mentioned Infrared sensor is used to detect the disengaging situation of personnel in target scene, and above-mentioned camera is each in determining target scene for detecting The personnel amount in region, wherein above-mentioned target scene is divided into N number of region, and each region includes M scene lamp.Processor By the personnel amount of brightness case and the region N number of region Zhong Ge in the above-mentioned target scene detected, to control target field The switch of the included scene lamp in N number of region in scape, when the brightness in target scene is lower than preset threshold, i.e., according to each region The corresponding opening and closing for controlling the M scene lamp that the region is included of personnel amount, to region progress light compensation.
Current intelligent light control system is pre- when detecting that the brightness in target scene is lower than by illuminance sensor If when threshold value, i.e., controlling each scene lamp in the M scene lamp that the region is included according to the personnel amount in each region is corresponding It opens and closes.It is not smart enough when current intelligent light control system target scene carries out light compensation.
Summary of the invention
The embodiment of the present invention is designed to provide a kind of lamp light control method and device, is more intelligently controlled with realizing The opening and closing of scene lamp in target scene.Specific technical solution is as follows:
On the one hand, the embodiment of the invention provides a kind of lamp light control methods, which comprises
When determining in target scene the location information and the mesh for obtaining region locating for existing personnel there are when personnel Mark the present intensity distribution situation of scene;
Based on the location information in region locating for the present intensity distribution situation and existing personnel, existing people is determined In the present intensity in region locating for member, if there is the present intensity not being located in predetermined luminance range;
In the presence of determination, based on the location information in region locating for existing personnel, determine that existing personnel are corresponding pre- If taking a seat mode, mode is taken a seat as target;
Based on it is default take a seat mode and default lamp regulatory control then between corresponding relationship and the target take a seat mode, determine The target takes a seat the corresponding target lamp regulatory control of mode then, wherein different default lamp regulatory controls then correspond to different atmospheric references Factor;
According to the target lamp regulatory control then, the target lamp regulatory control then corresponding atmospheric reference factor and it is described preset it is bright Range is spent, determines that current light controls signal, wherein the current light control signal is used for: controlling the target scene Middle scene lamp opens or closes.
Optionally, existing personnel are one, and it is single player mode that the target, which takes a seat mode, and the target lamp regulatory control is then right The atmospheric reference factor answered includes: ambient light factor, light factor and superposition disturbing factor;
It is described according to the target lamp regulatory control then, the target lamp regulatory control then corresponding atmospheric reference factor and described pre- If brightness range, the step of current light controls signal is determined, comprising:
According to the light factor, each scene lamp is obtained to the compensation brightness in region locating for existing personnel;
According to the ambient light factor, the light factor and the superposition disturbing factor, each scene lamp pair is utilized The present intensity in region locating for the compensation brightness in region locating for existing personnel and existing personnel determines at least one set first Luminance compensation group, wherein every one first luminance compensation group includes: at least one compensation brightness, and in the first luminance compensation group The sum of at least one compensation brightness and the first intermediate luminance and, in the predetermined luminance range, wherein this is bright among first Degree are as follows: the present intensity in region locating for existing personnel and currently have turned on compensation of the scene lamp to region locating for existing personnel The difference of brightness, or are as follows: the present intensity in region locating for existing personnel;
Based at least one set of first luminance compensation group, determine that current light controls signal.
Optionally, described to be based at least one set of first luminance compensation group, determine the step of current light control signal Suddenly, comprising:
From at least one set of first luminance compensation group, one group first for determining the minimum number of included compensation brightness Luminance compensation group, as first object luminance compensation group;
Based on the first object luminance compensation group, determine that current light controls signal.
Optionally, the step of compensation brightness for obtaining each scene lamp to the personnel present position to be utilized, packet It includes:
Obtain the location information and intensity of illumination of each scene lamp;
For each scene lamp, the location information in region locating for location information, existing personnel based on the scene lamp with And the intensity of illumination of the scene lamp, determine the scene lamp to the compensation brightness in region locating for existing personnel.
Optionally, existing personnel be it is multiple, and the target take a seat mode be Assembling pattern when, the target lamp regulatory control Then corresponding atmospheric reference factor includes: ambient light factor, light factor, superposition disturbing factor and shadow disturbing factor;
It is described according to the target lamp regulatory control then, the target lamp regulatory control then corresponding atmospheric reference factor and described pre- If brightness range, the step of current light controls signal is determined, comprising:
Based on the present intensity in region locating for existing personnel, the brightness in region is gathered described in determination, as the first brightness;
According to the light factor, each scene lamp is obtained to the compensation brightness for gathering region;
According to the shadow disturbing factor, using the location information of default shadow region method of determination, each scene lamp with And the location information in region locating for each existing personnel, determine each scene lamp in the shadow region for gathering region;
Each scene lamp is obtained in the shadow lightness in the shadow region for gathering region;
According to the ambient light factor, the light factor, the superposition disturbing factor and the shadow disturbing factor, Existed using each scene lamp to the compensation brightness for gathering region, first brightness for gathering region and each scene lamp The shadow lightness in the shadow region for gathering region determines the second luminance compensation group of at least one set, wherein every one second brightness Compensation group includes: at least one compensation brightness, and the sum of at least one compensation brightness in the second luminance compensation group, described is gathered The sum of first brightness in region and shadow brightness to be utilized, in the predetermined luminance range, the shadow brightness to be utilized Are as follows: the corresponding scene lamp of each compensation brightness, the shade in the shadow region for gathering region in the second luminance compensation group Brightness;
According at least one set of second luminance compensation group, determine that current light controls signal.
Optionally, existing personnel be it is multiple, and the target take a seat mode be decentralized model when, the target lamp regulatory control Then corresponding atmospheric reference factor includes: ambient light factor, light factor, is superimposed disturbing factor and apart from disturbing factor;
It is described according to the target lamp regulatory control then, the target lamp regulatory control then corresponding atmospheric reference factor and described pre- If brightness range, the step of current light controls signal is determined, comprising:
According to the light factor and described apart from disturbing factor, each scene lamp is obtained to each existing personnel institute Locate the compensation brightness in region;
According to the ambient light factor, the light factor, the superposition disturbing factor and described apart from disturbing factor, Using each scene lamp to region locating for the compensation brightness in region locating for each existing personnel and each existing personnel Present intensity determines at least one set third luminance compensation group, wherein each third luminance compensation group includes: at least one compensation Brightness, and the sum of at least one compensation brightness in the third luminance compensation group, respectively with region locating for each existing personnel The sum of second intermediate luminance, in the predetermined luminance range, wherein second intermediate luminance are as follows: area locating for existing personnel The present intensity in domain and scene lamp is currently had turned on to the difference of the compensation brightness in region locating for existing personnel, or are as follows: it is existing The present intensity in region locating for personnel;
According at least one set of third luminance compensation group, determine that current light controls signal.
Optionally, existing personnel be it is multiple, and the target take a seat mode be scatter-gather mode when;The target lamp Regulatory control then corresponding atmospheric reference factor include: ambient light factor, light factor, superposition disturbing factor, shadow disturbing factor with And apart from disturbing factor;
It is described according to the target lamp regulatory control then, the target lamp regulatory control then corresponding atmospheric reference factor and described pre- If brightness range, the step of current light controls signal is determined, comprising:
Determine each discrete areas;
This is determined according to the present intensity in region locating for the included personnel of the discrete areas for each discrete areas The present intensity of discrete areas, as the second brightness;
According to the light factor and described apart from disturbing factor, each scene lamp is obtained to the benefit of each discrete areas Repay brightness;
According to the shadow disturbing factor, using the location information of default shadow region method of determination, each scene lamp with And the location information in region locating for personnel included in each discrete areas, determine each scene lamp in the people of each discrete areas Shadow zone domain;
Each scene lamp is obtained in the shadow lightness in the shadow region of each discrete areas;
According to the ambient light factor, the light factor, the superposition disturbing factor, it is described apart from disturbing factor and The shadow disturbing factor, based on each scene lamp to the compensation brightness of each discrete areas, each discrete areas it is second bright Degree and each scene lamp determine the 4th luminance compensation of at least one set in the shadow lightness in the shadow region of each discrete areas Group;Wherein, every one the 4th luminance compensation group includes: at least one compensation brightness, and at least one in the 4th luminance compensation group The sum of compensation brightness, the sum of the second brightness of each discrete areas and spare shadow brightness, in the predetermined luminance range, The spare shadow brightness are as follows: in each discrete areas, the corresponding scene lamp of each compensation brightness in the 4th luminance compensation group, The sum of shadow lightness in the shadow region of the discrete areas;
According at least one set of 4th luminance compensation group, determine that current light controls signal.
Optionally, at described according to the target lamp regulatory control then, the target lamp regulatory control then corresponding atmospheric reference because The plain and described predetermined luminance range, after determining the step of current light controls signal, the method also includes:
Obtain the light regulation and control instruction that user issues, wherein the light regulation and control instruction carries: required to close and/or open The beacon light of the scene lamp opened is known;
The beacon light of scene lamp based on required closing entrained by the light regulation and control instruction and/or unlatching is known, and generates and uses In the light adjustment signal for closing and/or the unlatching for controlling the scene lamp to be regulated and controled.
Optionally, described according to the target lamp regulatory control then, the target lamp regulatory control then corresponding atmospheric reference factor And the predetermined luminance range, determine that current light controls signal, and after the step of exporting, the method also includes:
When determining that region locating for the existing personnel of the target scene does not change;Obtain the target scene New present intensity distribution situation;
Based on the location information in region locating for the new present intensity distribution situation and existing personnel, determination is deposited In the new present intensity in the region locating for personnel, if there is the present intensity not being located in the predetermined luminance range;
When determining that the new present intensity in region locating for all personnel is in the predetermined luminance range, not needle is determined New current light is generated to the target scene and controls signal.
Optionally, described according to the target lamp regulatory control then, the target lamp regulatory control then corresponding atmospheric reference factor And the predetermined luminance range, before determining the step of current light controls signal, the method also includes:
It obtains and the target lamp regulatory control then corresponding history light controling signal;
The corresponding Luminance Distribution situation of each history light controling signal is obtained, as historical light's distribution situation;
Each historical light's distribution situation is matched with the present intensity distribution situation;
In obtained historical light's distribution situation, it is not present and the matched historical light of present intensity distribution situation When distribution situation, execute it is described according to the target lamp regulatory control then, the target lamp regulatory control then corresponding atmospheric reference factor with And the predetermined luminance range, determine the step of current light controls signal;
In obtained historical light's distribution situation, exist and the matched historical light of present intensity distribution situation point It, will history signal light control letter corresponding with the matched historical light's distribution situation of the present intensity distribution situation when cloth situation Number, it is determined as current light control signal.
On the other hand, the embodiment of the invention provides a kind of Light Control Unit, described device includes:
First obtains module, for obtaining region locating for existing personnel when determining in target scene there are when personnel The present intensity distribution situation of location information and the target scene;
First determining module, for the position based on region locating for the present intensity distribution situation and existing personnel Information, in the present intensity for determining region locating for existing personnel, if exist be not located at it is current bright in predetermined luminance range Degree;
Second determining module, for based on the location information in region locating for existing personnel, determining institute in the presence of determining There are corresponding preset of personnel to take a seat mode, takes a seat mode as target;
Third determining module, for based on it is default take a seat mode and default lamp regulatory control then between corresponding relationship and described Target takes a seat mode, determines that the target takes a seat the corresponding target lamp regulatory control of mode then, wherein different default lamp regulatory controls is then right Answer different atmospheric reference factors;
4th determining module, for according to the target lamp regulatory control then, the target lamp regulatory control then corresponding atmospheric reference Factor and the predetermined luminance range determine that current light controls signal, wherein the current light control signal is used In: control opening or closing for scene lamp in the target scene.
Optionally, existing personnel are one, and it is single player mode that the target, which takes a seat mode, and the target lamp regulatory control is then right The atmospheric reference factor answered includes: ambient light factor, light factor and superposition disturbing factor;
4th determining module, comprising:
Obtaining unit, for obtaining each scene lamp to the benefit in region locating for existing personnel according to the light factor Repay brightness;
First determination unit is used for according to the ambient light factor, the light factor and the superposition disturbing factor, Using each scene lamp to the present intensity in region locating for the compensation brightness in region locating for existing personnel and existing personnel, Determine the first luminance compensation group of at least one set, wherein every one first luminance compensation group includes: at least one compensation brightness, and should The sum of at least one compensation brightness in first luminance compensation group, with the first intermediate luminance and, in the predetermined luminance range, Wherein, first intermediate luminance are as follows: the present intensity in region locating for existing personnel with currently have turned on scene lamp to existing The difference of the compensation brightness in region locating for personnel, or are as follows: the present intensity in region locating for existing personnel;
Second determination unit determines current light control letter for being based at least one set of first luminance compensation group Number.
Optionally, second determination unit, is specifically used for
From at least one set of first luminance compensation group, one group first for determining the minimum number of included compensation brightness Luminance compensation group, as first object luminance compensation group;
Based on the first object luminance compensation group, determine that current light controls signal.
Optionally, the obtaining unit, is specifically used for
Obtain the location information and intensity of illumination of each scene lamp;
For each scene lamp, the location information in region locating for location information, existing personnel based on the scene lamp with And the intensity of illumination of the scene lamp, determine the scene lamp to the compensation brightness in region locating for existing personnel.
Optionally, existing personnel be it is multiple, and the target take a seat mode be Assembling pattern when, the target lamp regulatory control Then corresponding atmospheric reference factor includes: ambient light factor, light factor, superposition disturbing factor and shadow disturbing factor;
4th determining module, is specifically used for
Based on the present intensity in region locating for existing personnel, the brightness in region is gathered described in determination, as the first brightness;
According to the light factor, each scene lamp is obtained to the compensation brightness for gathering region;
According to the shadow disturbing factor, using the location information of default shadow region method of determination, each scene lamp with And the location information in region locating for each existing personnel, determine each scene lamp in the shadow region for gathering region;
Each scene lamp is obtained in the shadow lightness in the shadow region for gathering region;
According to the ambient light factor, the light factor, the superposition disturbing factor and the shadow disturbing factor, Existed using each scene lamp to the compensation brightness for gathering region, first brightness for gathering region and each scene lamp The shadow lightness in the shadow region for gathering region determines the second luminance compensation group of at least one set, wherein every one second brightness Compensation group includes: at least one compensation brightness, and the sum of at least one compensation brightness in the second luminance compensation group, described is gathered The sum of first brightness in region and shadow brightness to be utilized, in the predetermined luminance range, the shadow brightness to be utilized Are as follows: the corresponding scene lamp of each compensation brightness, the shade in the shadow region for gathering region in the second luminance compensation group Brightness;
According at least one set of second luminance compensation group, determine that current light controls signal.
Optionally, which is characterized in that existing personnel be it is multiple, and the target take a seat mode be decentralized model when, institute Stating target lamp regulatory control, then corresponding atmospheric reference factor includes: ambient light factor, light factor, superposition disturbing factor and distance Disturbing factor;
4th determining module, is specifically used for
According to the light factor and described apart from disturbing factor, each scene lamp is obtained to each existing personnel institute Locate the compensation brightness in region;
According to the ambient light factor, the light factor, the superposition disturbing factor and described apart from disturbing factor, Using each scene lamp to region locating for the compensation brightness in region locating for each existing personnel and each existing personnel Present intensity determines at least one set third luminance compensation group, wherein each third luminance compensation group includes: at least one compensation Brightness, and the sum of at least one compensation brightness in the third luminance compensation group, respectively with region locating for each existing personnel The sum of second intermediate luminance, in the predetermined luminance range, wherein second intermediate luminance are as follows: area locating for existing personnel The present intensity in domain and scene lamp is currently had turned on to the difference of the compensation brightness in region locating for existing personnel, or are as follows: it is existing The present intensity in region locating for personnel;
According at least one set of third luminance compensation group, determine that current light controls signal.
Optionally, existing personnel be it is multiple, and the target take a seat mode be scatter-gather mode when;The target lamp Regulatory control then corresponding atmospheric reference factor include: ambient light factor, light factor, superposition disturbing factor, shadow disturbing factor with And apart from disturbing factor;
4th determining module, is specifically used for
Determine each discrete areas;
This is determined according to the present intensity in region locating for the included personnel of the discrete areas for each discrete areas The present intensity of discrete areas, as the second brightness;
According to the light factor and described apart from disturbing factor, each scene lamp is obtained to the benefit of each discrete areas Repay brightness;
According to the shadow disturbing factor, using the location information of default shadow region method of determination, each scene lamp with And the location information in region locating for personnel included in each discrete areas, determine each scene lamp in the people of each discrete areas Shadow zone domain;
Each scene lamp is obtained in the shadow lightness in the shadow region of each discrete areas;
According to the ambient light factor, the light factor, the superposition disturbing factor, it is described apart from disturbing factor and The shadow disturbing factor, based on each scene lamp to the compensation brightness of each discrete areas, each discrete areas it is second bright Degree and each scene lamp determine the 4th luminance compensation of at least one set in the shadow lightness in the shadow region of each discrete areas Group;Wherein, every one the 4th luminance compensation group includes: at least one compensation brightness, and at least one in the 4th luminance compensation group The sum of compensation brightness, the sum of the second brightness of each discrete areas and spare shadow brightness, in the predetermined luminance range, The spare shadow brightness are as follows: in each discrete areas, the corresponding scene lamp of each compensation brightness in the 4th luminance compensation group, The sum of shadow lightness in the shadow region of the discrete areas;
According at least one set of 4th luminance compensation group, determine that current light controls signal.
Optionally, described device further include:
Second obtain module, for described according to the target lamp regulatory control then, the target lamp regulatory control it is then corresponding Atmospheric reference factor and the predetermined luminance range obtain the lamp that user issues after determining current light control signal Light regulation and control instruction, wherein the light regulation and control instruction carries: the beacon light of the scene lamp of required closing and/or unlatching is known;
Generation module, for the scene lamp based on required closing entrained by the light regulation and control instruction and/or unlatching Beacon light is known, and the light adjustment signal of closing and/or the unlatching for controlling the scene lamp to be regulated and controled is generated.
Optionally, described device further include:
Third obtains module, for it is described according to the target lamp regulatory control then, the target lamp regulatory control then corresponding ring Border reference factor and the predetermined luminance range determine that current light controls signal, and after output, are determining the mesh When region locating for the existing personnel of mark scene does not change;Obtain the new present intensity distribution feelings of the target scene Condition;
5th determining module, for based on region locating for the new present intensity distribution situation and existing personnel Location information, in the new present intensity for determining region locating for existing personnel, if exist and be not located at the predetermined luminance model Enclose interior present intensity;
6th determining module, for working as the new present intensity for determining region locating for all personnel in the predetermined luminance When in range, determines and do not generate new current light control signal for the target scene.
Optionally, described device further include:
4th obtains module, for it is described according to the target lamp regulatory control then, the target lamp regulatory control then corresponding ring Border reference factor and the predetermined luminance range obtain and the target lamp control before determining current light control signal The corresponding history light controling signal of rule;
5th obtains module, for obtaining the corresponding Luminance Distribution situation of each history light controling signal, as history Luminance Distribution situation;
Matching module, for matching each historical light's distribution situation with the present intensity distribution situation;
In obtained historical light's distribution situation, it is not present and the matched historical light of present intensity distribution situation When distribution situation, the 4th determining module is triggered;
7th determining module, for existing and being distributed feelings with the present intensity in obtained historical light's distribution situation It, will be corresponding with the matched historical light's distribution situation of the present intensity distribution situation when the matched historical light's distribution situation of condition History light controling signal, be determined as current light control signal.
On the other hand, the embodiment of the invention provides a kind of electronic equipment, including processor, communication interface, memory and Communication bus, wherein processor, communication interface, memory complete mutual communication by bus;Memory, for storing Computer program;Processor realizes any institute provided by the embodiment of the present invention for executing the program stored on memory The lamp light control method stated.
On the other hand, the embodiment of the invention provides a kind of computer readable storage medium, the interior storages of the storage medium There is computer program, any lamp provided by the embodiment of the present invention is realized when the computer program is executed by processor Light control method.
During the embodiment of the present invention provides, when determining in target scene there are when personnel, region locating for existing personnel is obtained Location information and target scene present intensity distribution situation;Based on present intensity distribution situation and existing personnel institute Locate the location information in region, in the present intensity for determining region locating for existing personnel, if exist and be not located at predetermined luminance model Enclose interior present intensity;In the presence of determination, based on the location information in region locating for existing personnel, existing personnel couple are determined Answer it is default take a seat mode, take a seat mode as target;Based on it is default take a seat mode and default lamp regulatory control then between corresponding close System and target take a seat mode, determine that target takes a seat the corresponding target lamp regulatory control of mode then, wherein different default lamp regulatory controls are then Corresponding different atmospheric reference factor;According to target lamp regulatory control then, target lamp regulatory control then corresponding atmospheric reference factor and pre- If brightness range, determine that current light controls signal, wherein current light control signal is used for: control target scene midfield Scape lamp opens or closes.
As it can be seen that the present intensity in region locating for personnel exists not positioned at predetermined luminance in the presence of determining target scene It, need to personnel in the presence of the present intensity and target scene in the region according to locating for existing personnel when the present intensity of range Mode is taken a seat, opening or closing for the scene lamp in target scene is controlled, that is, controls which scene lamp is opened, and controls for which scene Lamp is closed.Also, in the embodiment of the present invention, mode is taken a seat according to different, is provided with corresponding different atmospheric reference factor Default lamp regulatory control then, after the corresponding target of personnel takes a seat mode in the presence of determining target scene, takes a seat mould based on target The corresponding target lamp regulatory control of formula then, target lamp regulatory control then corresponding atmospheric reference factor and predetermined luminance range, control target Scene lamp in scene opens or closes, wherein above-mentioned target lamp regulatory control be then used for so that region locating for personnel it is current bright Degree can be located at predetermined luminance range in, for be not present personnel region, then whether be located at without the concern for brightness preset it is bright It spends in range, realizes that more intelligently controlling scene lamp in target scene opens or closes, and to a certain extent reaches energy conservation Effect.Certainly, it implements any of the products of the present invention or method does not necessarily require achieving all the advantages described above at the same time.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention, for ordinary skill target person, without creative efforts, also Other drawings may be obtained according to these drawings without any creative labor.
Fig. 1 is a kind of flow diagram of lamp light control method provided by the embodiment of the present invention;
Fig. 2A is a kind of schematic layout pattern of target scene;
Fig. 2 B is a kind of schematic diagram of different light source generation shadow interference;
Fig. 3 is the flow diagram of another kind lamp light control method provided by the embodiment of the present invention;
Fig. 4 is the flow diagram of another kind lamp light control method provided by the embodiment of the present invention;
Fig. 5 is the flow diagram of another kind lamp light control method provided by the embodiment of the present invention;
Fig. 6 is a kind of structural schematic diagram of Light Control Unit provided by the embodiment of the present invention;
Fig. 7 is the structural schematic diagram of a kind of electronic equipment provided by the embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, ordinary skill target person are obtained all without making creative work Other embodiments shall fall within the protection scope of the present invention.
The embodiment of the invention provides a kind of lamp light control method and devices, more intelligently control target scene to realize In scene lamp opening and closing.
As shown in Figure 1, may include steps of the embodiment of the invention provides a kind of lamp light control method:
S101: when determine in target scene the location information that region locating for existing personnel is obtained there are when personnel and The present intensity distribution situation of target scene;
It is understood that a kind of lamp light control method provided by the embodiment of the present invention, can be applied to it is any can be with Obtain the electronic equipment for being directed to the target scene acquired image, wherein the electronic equipment can be computer and smart phone Etc. equipment.In one implementation, which can be set at least one image capture device, and this at least one Image capture device can acquire equipment for binocular image, or monocular image acquires equipment.At least one image is adopted Image can be acquired for target scene by collecting equipment.The electronic equipment is set at least one Image Acquisition set by target scene It is standby to be attached.
Wherein, when image capture device is that binocular image acquires equipment, image capture device acquired image can be with Include: color image and the corresponding depth image of color image, by color image can determine in target scene whether There are personnel and the present intensity distribution situations of target scene, can determine area locating for existing personnel by depth image The location information in domain.Wherein, color image may include: the image of RGB (Red Green Blue, RGB) format, and/or The image of yuv format, the pixel value of each pixel can characterize in depth image: the point in target scene is set to Image Acquisition Standby distance.
When image capture device is that monocular image acquires equipment, a kind of situation, target scene can be set at least two A image capture device determines the current bright of target scene can be based on any image acquisition equipment acquired image Distribution situation is spent, and determines the position in region locating for personnel in the presence of target scene based at least two image capture device Confidence breath.Another situation, target scene can be set an image capture device, can be arranged in target scene at this time Object is demarcated, such as: in the ground of target scene setting calibration lattice, can identify region locating for existing personnel from image Location information.And the present intensity distribution situation of target scene is determined based on the image.
In one implementation, at least one image capture device acquisition to after image, can will be acquired Image be sent in electronic equipment so that the electronic equipment execute the embodiment of the present invention provided by signal light control process. In another implementation, at least one image capture device acquisition to after image, can be to its figure collected As being detected, determine in target scene with the presence or absence of personnel, when determining there are when personnel, and the target identified from image The present intensity distribution situation of scene, and the location information in region locating for the existing personnel that determine, and will be determined Information is sent to electronic equipment, so that electronic equipment executes signal light control process provided by the embodiment of the present invention.
It is understood that image capture device is often directed to after target scene collects image, by figure collected As being used as present image;A kind of situation, image capture device from being identified in present image in target scene with the presence or absence of personnel, And when determining personnel, it is based on present image, obtains the location information in region and working as target scene locating for existing personnel Preceding Luminance Distribution situation, and above- mentioned information are sent to electronic equipment, so that electronic equipment executes the embodiment of the present invention and is provided Signal light control process;Present image is directly sent to electronic equipment by another situation, image capture device, so that electronics is set It is standby to be based on identifying in present image being based on present image with the presence or absence of personnel in target scene, and when determining personnel, obtaining The location information in region locating for existing personnel and the present intensity distribution situation of target scene.
Alternatively, image capture device using acquired image as present image, adopt by image whenever reaching predetermined period Collection equipment, with the presence or absence of personnel in target scene, and when determining personnel, is based on present image, obtains from identifying in present image The location information in region and the present intensity distribution situation of target scene locating for existing personnel are obtained, and above- mentioned information are sent To electronic equipment, so that electronic equipment executes signal light control process provided by the embodiment of the present invention.Alternatively, present image is sent out It send to electronic equipment, electronic equipment is based on being identified in present image with the presence or absence of personnel in target scene, and is determining personnel When, it is based on present image, the present intensity of the location information and target scene that obtain region locating for existing personnel is distributed feelings Condition.
Wherein, image capture device or electronic equipment are from identifying the reality that whether there is personnel in target scene in present image Existing mode, may is that through preset intelligent analysis process, whether there is personnel in target scene from identifying in present image, Wherein, above-mentioned preset intelligent analysis process can be face recognition algorithms or preset human bioequivalence model.The preset people Body identification model can be based on the resulting model of image training comprising human body.It is also possible to: based on the background image prestored, It whether there is personnel in target scene from identifying in present image;Present image and background image are calculated specifically, can be Error image (i.e. the difference of the pixel value of the pixel of calculating corresponding position), determines in target scene whether deposit based on error image In personnel, etc..It is all to can be applied in the embodiment of the present invention from the algorithm comprising personnel is recognised that in image.
It is understood that angular field of view when image capture device acquisition present image and view when acquisition background image Angular region is identical, i.e., the position of image capture device and angle are unchanged namely posture information of image capture device is unchanged.With Guarantee the accuracy of gained error image.
In the embodiment of the present invention, the present intensity distribution situation of the target scene: can be by from for target scene institute The brightness value of each pixel identified in the present image of acquisition is identified.The position in region locating for the existing personnel Information can refer to: the location information in personnel locating region in target scene, it can be interpreted as, area locating for the existing personnel The location information in domain can be to be identified by the coordinate value under world coordinate system.
In the embodiment of the present invention, which can be any indoor spaces comprising multiple scene lamps, such as: classroom Or office etc..When the target scene is classroom, which can be multiplexed mounted in classroom Binocular camera.
S102: the location information based on region locating for present intensity distribution situation and existing personnel, determine present in In the present intensity in region locating for personnel, if there is the present intensity not being located in predetermined luminance range;In the presence of determination, Execute S103:
In one implementation, when electronic equipment obtains present image, a kind of situation, electronic equipment can use pre- If parted pattern is split present image, corresponding at least two segmented image of present image and each segmentation figure are obtained The average brightness of picture;According to the average brightness of each segmented image, from least two segmented images, average brightness is filtered out not Positioned at the Target Segmentation image of predetermined luminance range;And the location information based on region locating for existing personnel, determine the target It whether there is personnel in segmented image;When being determined as, there are when personnel, it is determined that the present intensity in region locating for existing personnel In, there is the present intensity not being located in predetermined luminance range.
Wherein, the average brightness of each segmented image is to be determined according to the present intensity distribution situation of target scene, example Such as: the present intensity distribution situation of target scene, by from for being identified in target scene present image collected When the brightness value of each pixel is identified, the average brightness of each segmented image are as follows: each pixel in the segmented image The average value of brightness value.When segmented image includes personnel, region in the corresponding target scene of the segmented image, as this point Cut the locating region of the included personnel of image.
The quantity of the segmented image determines that the default parted pattern can divide mould for nine grids based on default parted pattern Type, at this point, present image corresponds to nine segmented images, it can be four palace lattice parted patterns, at this point, present image is four points corresponding Image, etc. is cut, the embodiment of the present invention is not defined default parted pattern.
Another situation, the location information and present intensity in electronic equipment region according to locating for existing personnel are distributed feelings Condition determines the present intensity in region locating for existing personnel;And then by the present intensity in region locating for existing personnel, respectively with Predetermined luminance range is compared, and whether the present intensity in region locating for determining existing personnel is located at and predetermined luminance range; When the present intensity for determining region locating at least personnel present in one is not located in predetermined luminance range, it is determined that existing people In the present intensity in region locating for member, if there is the present intensity not being located in predetermined luminance range.
In the embodiment of the present invention, when image capture device is that binocular image acquires equipment, which can refer to color Coloured picture picture.When image capture device there are it is multiple when, above-mentioned present image can be any image acquisition equipment figure collected Picture.
Wherein, required suitable brightness when which can characterize person works in target scene or learn Range can be preset according to the actual situation.In one implementation, predetermined luminance range can be marked with gray value Know, for example, the predetermined luminance range can be [60,255], etc..
S103: the location information based on region locating for existing personnel determines that corresponding preset of existing personnel takes a seat mould Formula takes a seat mode as target;
It is understood that can based on the location information in region locating for existing personnel, determine existing personnel it Between distribution situation, and then determine that existing personnel are corresponding and default take a seat mode.In the embodiment of the present invention, it can prestore more A preset takes a seat mode, such as: there is only a personnel in single player mode, that is, target scene;It is deposited in accumulation mode, that is, target scene In multiple personnel, and region locating for multiple personnel meets the first preset condition, such as: the distance between region locating for multiple personnel No more than the first pre-determined distance;There are multiple personnel in decentralized model, that is, target scene, and region locating for multiple personnel meets the Two preset conditions, such as: the distance between region locating for multiple personnel is not less than the second pre-determined distance;Scatter-gather mode, that is, mesh There are multiple personnel in mark scene, and region locating for multiple personnel meets third preset condition, such as: there are locating for multiple personnel Region meets the first preset condition, and there are regions locating for multiple personnel to meet the second preset condition.
In one implementation, can the region according to locating for existing personnel the distance between location information, determine Corresponding preset of existing personnel takes a seat mode.
In another implementation, present image and the corresponding calibration information of present image can be inputted preparatory In the disaggregated model that training obtains, to determine that existing personnel are corresponding default using the disaggregated model that training obtains in advance Take a seat mode.
The disaggregated model that the preparatory training obtains may is that based on be identified as the different default images for taking a seat mode and The corresponding calibration information of the image, the resulting model of training.Wherein, the default mode that takes a seat of the difference is for identifying corresponding image In include sample personnel take a seat situation.The corresponding calibration information of the image may include: that personnel included in the image exist Corresponding preset in position and the image in the image takes a seat mode.Wherein, the corresponding calibration information of the present image can be with It include: position of the personnel in present image in the presence of target scene.Wherein, personnel scheme currently in the presence of target scene Position as in: can use the relevant technologies, by the location information in region locating for personnel in the presence of target scene and pre- If transformational relation, be converted to.Wherein, above-mentioned preset transformational relation is world coordinate system and the figure for acquiring the present image The transformational relation between device coordinate system as acquiring equipment.
In oneainstance, in order to guarantee that the corresponding target of existing personnel determined takes a seat the accuracy of mode, It is above-mentioned be identified as the different default images for taking a seat mode can be with are as follows: be directed to the target scene acquired image in advance.
S104: based on it is default take a seat mode and default lamp regulatory control then between corresponding relationship and target take a seat mode, really The corresponding target lamp regulatory control of the mode of taking a seat that sets the goal is then;
Wherein, different default lamp regulatory controls then corresponds to different atmospheric reference factors;
It is understood that when taking a seat mode difference of personnel in target scene, the brightness in region locating for personnel is by environment The factor of interference can have differences, in turn, in order to enable in target scene, the existing personnel that are not located in predetermined luminance range The brightness in locating region can be located in predetermined luminance range, in goal of regulation and control scene under the luminance compensation of scene lamp When light, the factor considered can have difference, i.e. atmospheric reference factor exists different.In the embodiment of the present invention, it is preset with every One default takes a seat mode and the corresponding relationship of default lamp regulatory control then, wherein different default lamp regulatory controls then correspond to different environment Reference factor.Target is taken a seat mode and matched with above-mentioned corresponding relationship by electronic equipment, and default by successful match takes a seat mould The corresponding default lamp regulatory control of formula then, as target takes a seat the corresponding target environment lamp regulatory control of mode then.
Wherein, atmospheric reference factor may include: that ambient light factor can characterize: can be by other in addition to scene lamp The external light source of target scene compensation brightness, to the factor that the brightness of target scene has an impact, such as: daylight and target scene Outer light etc.;Light factor can characterize: be had an impact by the scene lamp in target scene to the brightness of target scene Factor;Shadow disturbing factor can characterize: by relative distance it is relatively close (such as: in gathering state, i.e., between personnel it is opposite away from From less than a numerical value) personnel, brightness of the generated shade to the regional area (certain personnel regions) of target scene The factor having an impact;Superposition disturbing factor can characterize: by different light sources (including external light source and scene lamp) to target field The factor that the superposition brightness of scape has an impact;It can be characterized apart from disturbing factor: by causing scene lamp to target field apart from reason The factor that the luminance compensation ability of different location has an impact in scape;Wherein, scene lamp is at a distance from the position in target scene It is remoter, it is weaker to the luminance compensation ability of the position in target scene.
The default lamp regulatory control is then used for: so that the maximum position of the brightness in region locating for personnel in the presence of target scene In in predetermined luminance range, wherein this can utmostly refer to: the brightness in region locating for existing personnel is located at predetermined luminance model Quantity in enclosing is most.
S105: according to target lamp regulatory control then, target lamp regulatory control then corresponding atmospheric reference factor and predetermined luminance range, Determine that current light controls signal;
Wherein, current light control signal is used for: scene lamp opens or closes in control target scene.
In this step, after determining target lamp regulatory control then, can according to target lamp regulatory control then, target lamp regulatory control it is then right The atmospheric reference factor and predetermined luminance range answered determine that current light controls signal.Specifically, this can be based on the mesh Beacon light regulatory control then and target lamp regulatory control then corresponding atmospheric reference factor, regulates and controls scene lamp, so that being deposited in target scene The brightness in the region locating for personnel can be located at predetermined luminance range.
Specifically, target lamp regulatory control then corresponding atmospheric reference factor can be based on, simulation is determined every in target scene When one scene lamp opens or closes, influence to the present intensity in region locating for existing personnel, further, according to above-mentioned simulation It is determining as a result, determine that current light controls signal, it is subsequent, signal can be controlled based on current light, control target field Scene lamp opens or closes in scape.Wherein, deserve in preceding light controling signal to may include: each scene lamp in target scene Identification information and control signal corresponding relationship, wherein the control signal is opened for characterizing corresponding scene lamp by control Signal or by control close signal.The identification information of the scene lamp can be any information that can identify scene lamp, example Such as: location information or preparatory with uniqueness sequence number, etc. for scene lamp setting of the scene lamp in target scene.
Using the embodiment of the present invention, the present intensity in region locating for personnel exists not in the presence of determining target scene It, need to be in the present intensity and target scene in the region according to locating for existing personnel when positioned at the present intensity of predetermined luminance range Existing personnel's takes a seat mode, controls opening or closing for the scene lamp in target scene, that is, controls which scene lamp is opened, Control which scene lamp is closed.Also, in the embodiment of the present invention, mode is taken a seat according to different, is provided with corresponding different ring The default lamp regulatory control of border reference factor then, after the corresponding target of personnel takes a seat mode in the presence of determining target scene, base In target take a seat the corresponding target lamp regulatory control of mode then, target lamp regulatory control then corresponding atmospheric reference factor and predetermined luminance model It encloses, controls opening or closing for the scene lamp in target scene, wherein above-mentioned target lamp regulatory control is then used for so that area locating for personnel The present intensity in domain can be located at predetermined luminance range in, for be not present personnel region, then without the concern for brightness whether In predetermined luminance range, realize that more intelligently controlling scene lamp in target scene opens or closes, to a certain degree On reach energy-efficient effect.
In order to preferably realize the intelligent control to scene lamp in target scene, avoid scene lamp because of existing personnel's Constantly mobile, region locating for existing personnel is indefinite, and determined position information is caused constantly to change, and it is continuous to further result in appearance Control the case where opening or closing of scene lamp.Also, due to no longer constantly changing when existing personnel present position, it may be possible to Existing personnel need to carry out to the higher operation of the brightness requirement in locating region, such as work or learn, and need locating area The brightness in domain is suitble to work or study, in general, requirement when existing person works or study to brightness is higher than existing people Requirement when member's movement to brightness.In one implementation, existing personnel can also be limited in the embodiment of the present invention to be needed to locate In non-athletic state, signal light control process provided by the embodiment of the present invention can be just executed.
Specifically, may is that when electronic equipment be based on present image obtained, determine that there are personnel in target scene When, obtain the preceding N frame image of present image;According to preceding N frame image obtained and present image, institute in target scene is determined There are personnel whether to be in non-athletic state;When personnel are in non-athletic state in the presence of determining target scene, execution is obtained Region locating for existing personnel location information and target scene present intensity distribution situation the step of.It may is that figure It is being based on current acquired image, the i.e. preceding N frame image of present image as acquiring equipment, is determining people in the presence of target scene When member is in non-athletic state, it will identify that there are personnel, existing personnel institutes in the scene that sets the goal really from present image Locate the location information in region and the present intensity distribution situation of target scene, electronic equipment is sent to, so that electronic equipment Execute signal light control process provided by the embodiment of the present invention.
It should be noted that the moving distance of existing personnel is in a certain range, can determine at existing personnel In non-athletic state.In oneainstance, it can be the moving distance threshold value that setting first is directed to image, it be determined as first Moving distance threshold value determines that the moving distance of existing personnel is (opposite according to preceding N frame image obtained and present image In for moving distance in the picture) whether be greater than first movement distance threshold, when determine be not more than when, determine existing personnel In non-athletic state;When determining be greater than, determine that existing personnel are kept in motion.
In another scenario, reference substance, and the size of scaling reference can be set in target scene in advance, into one Step setting is directed to the moving distance threshold value of target scene, it is determined as the second moving distance threshold value, can be according to obtained Preceding N frame image and present image, determine the moving distance of existing personnel, and according to above-mentioned reference substance and demarcate reference The size of object, determines the practical moving distance (relative in the moving distance of target scene) of existing personnel, and determines It states whether practical moving distance is not more than the second moving distance threshold value, when being determined as being not more than, determines that existing personnel are in Non-athletic state;When being determined as being greater than, determine that existing personnel are kept in motion.
Above-mentioned second moving distance threshold value can be adjusted according to the size of target scene, above-mentioned first movement away from From threshold value, can be adjusted according to the size of target scene and the size of image.
It is understood that when taking a seat mode difference of existing personnel, the brightness in region locating for existing personnel is by ring The factor of border interference can have differences.In one implementation, existing personnel are one, and it is single mould that target, which takes a seat mode, Formula, then corresponding atmospheric reference factor includes: ambient light factor, light factor and superposition disturbing factor to target lamp regulatory control;
It is described according to target lamp regulatory control then, target lamp regulatory control then corresponding atmospheric reference factor and predetermined luminance range, It determines the step of current light controls signal, may include:
According to light factor, each scene lamp is obtained to the compensation brightness in region locating for existing personnel;
According to ambient light factor, light factor and superposition disturbing factor, using each scene lamp to existing personnel institute Locate region compensation brightness and existing personnel locating for region present intensity, determine at least one set the first luminance compensation group, Wherein, every one first luminance compensation group includes: at least one compensation brightness, and at least one in the first luminance compensation group compensates The sum of brightness and the first intermediate luminance and, in predetermined luminance range, wherein first intermediate luminance are as follows: existing personnel The present intensity in locating region and scene lamp is currently had turned on to the difference of the compensation brightness in region locating for existing personnel, or are as follows: The present intensity in region locating for existing personnel;
Based at least one set of first luminance compensation group, determine that current light controls signal.
In the embodiment of the present invention, when existing personnel are one, it is single player mode that target, which takes a seat mode, at this point, to institute There are the scene lamps that the light source that region locating for personnel carries out luminance compensation may include: in external light source and target scene, and It can be superposed to region locating for the existing personnel between scene lamp in external light source and target scene and carry out luminance compensation.This When, it may be considered that atmospheric reference factor, i.e., target lamp regulatory control then corresponding atmospheric reference factor may include: ambient light because Element, light factor and superposition disturbing factor.
In a kind of implementation, this utilizes each scene according to ambient light factor, light factor and superposition disturbing factor Lamp determines at least one set of the present intensity in region locating for the compensation brightness in region locating for existing personnel and existing personnel The process of first luminance compensation group, may is that using predetermined luminance compensation formula, be calculated so that area locating for existing personnel When the brightness in domain is located in predetermined luminance range, the required corresponding compensation brightness of scene lamp is based on each scene lamp pair in turn The compensation brightness in region locating for existing personnel determines that current light controls signal.Specifically, the predetermined luminance compensation formula It can be identified as, such as formula (1):
EAlways=EIt is extraneous+ELight+EThe shadow (1)
Existence restraint condition EAlways∈(Emin, Emax);
Wherein, EAlwaysIdentify the total brightness in region locating for existing personnel;EIt is extraneousExternal light source is identified to locating for existing personnel The luminance compensation in region;ELightIt is required when mark is so that the total brightness in region locating for existing personnel is located in predetermined luminance range The corresponding compensation brightness of scene lamp;EThe shadowThe shadow is identified to the compensation brightness in region locating for existing personnel;EminMark is default The lower limit value of brightness range, EmaxIdentify the upper limit value of predetermined luminance range.When target lamp regulatory control then corresponding atmospheric reference factor When not including shadow disturbing factor, the EThe shadowIt is 0;When target lamp regulatory control then corresponding atmospheric reference factor include the shadow interference because When plain, the EThe shadowIt is not 0, specifically, the EThe shadowIt can be negative value.
It is understood that the present intensity in region locating for existing personnel can include at least: external light source is to being deposited The compensation brightness in the region locating for personnel;When having turned on scene lamp in current goal scene, region locating for the existing personnel Present intensity can also include: that scene lamp is had turned in current goal scene to the compensation brightness in region locating for existing personnel. Wherein, this can currently refer to: image capture device collects present image, and (i.e. acquisition present intensity distribution situation is relied on Image) when time.
When having turned on scene lamp in current goal scene, at this point, above-mentioned EIt is extraneousRegion locating for existing personnel can be passed through Scene lamp is had turned in present intensity and current goal scene the compensation brightness in region locating for existing personnel is calculated.Tool Body, EIt is extraneous=EPresent intensity-EIt has turned on;Wherein, the EPresent intensityIdentify the present intensity in region locating for existing personnel;The EIt has turned onMark Scene lamp is had turned in current goal scene to the compensation brightness in region locating for existing personnel.When not opened in current goal scene Scene lamp is opened, at this point, above-mentioned EIt is extraneousIt can be directly equal to the present intensity in region locating for existing personnel, i.e. EIt is extraneous=EPresent intensity
In one implementation, according to ambient light factor, light factor and superposition disturbing factor, each field is utilized Scape lamp determines at least one to the present intensity in region locating for the compensation brightness in region locating for existing personnel and existing personnel Before the first luminance compensation group of group, the current state of each scene lamp in target scene can also be obtained, wherein the current state For open state or closed state.Wherein, it when the current state of scene lamp is open state, identifies the current scene lamp and has opened It opens;When the current state of scene lamp is in off state, identifies the current scene lamp and do not open.
A kind of situation can be the scene lamp being in off state only for current state and be controlled, and keeps current mesh The state for marking the scene lamp that current state in scene is open state is constant (keeping it turned on), so that existing personnel institute The brightness in place region reaches predetermined luminance range.
Specifically, according to ambient light factor, light factor and superposition disturbing factor, using each scene lamp to existing The present intensity in region locating for the compensation brightness in region locating for personnel and existing personnel determines that the first brightness of at least one set is mended The process for repaying group may is that the difference of the present intensity in region locating for the lower limit value for calculating predetermined luminance range and existing personnel, As the first luminance difference;The scene lamp being in off state based on each current state is bright to the compensation in region locating for existing personnel Degree determines at least one set of first luminance compensation group, may include at least one compensation brightness in every group of first luminance compensation group, And the sum of at least one compensation brightness exists in every group of first luminance compensation group not less than resulting first luminance difference is calculated The sum of at least one compensation brightness, the sum with the present intensity in region locating for existing personnel is in predetermined luminance range.In turn Based at least one set of first luminance compensation group, determine that current light controls signal.In this implementation, the existing personnel The present intensity in locating region is the first intermediate luminance.
Another situation can be and be controlled for all scene lamps in target scene, so that existing personnel The brightness in locating region reaches predetermined luminance range.
Specifically, according to ambient light factor, light factor and superposition disturbing factor, using each scene lamp to existing The present intensity in region locating for the compensation brightness in region locating for personnel and existing personnel determines that the first brightness of at least one set is mended The process for repaying group, may is that current state in determining current goal scene for open state scene lamp to existing personnel institute The compensation brightness for locating region, using in the present intensity in region locating for existing personnel and the current goal scene of above-mentioned determination Current state is the scene lamp of open state to the compensation brightness in region locating for existing personnel, determines external light source to being deposited The compensation brightness in the region locating for personnel, i.e. EIt is extraneous=EPresent intensity-EIt has turned on, and then E is determined based on predetermined luminance compensation formulaLight, And then based on each scene lamp obtained to the compensation brightness and the E in region locating for existing personnelLight, determine at least One group of first luminance compensation group.Wherein, every one first luminance compensation group includes: at least one compensation brightness, and first brightness The sum of the first intermediate luminance of the sum of at least one compensation brightness in compensation group, in predetermined luminance range, wherein this is among first Brightness are as follows: the present intensity in region locating for existing personnel and currently have turned on scene lamp to the benefit in region locating for existing personnel Repay the difference of brightness.In this implementation, compensation brightness, that is, E of the external light source to region locating for existing personnelIt is extraneousAs should First intermediate luminance.
It is understood that the present intensity in region locating for existing personnel may is that characterizing the institute in present image deposits The average value of the brightness value of the pixel in the region locating for personnel, wherein the present image is the current bright of acquisition target scene The image that degree distribution situation is relied on, that is, be based on the present image, can obtain the location information in region locating for existing personnel And the present intensity distribution situation of target scene.
In one implementation, described to obtain each scene lamp to the compensation brightness of the personnel present position to be utilized The step of, comprising:
Obtain the location information and intensity of illumination of each scene lamp;
For each scene lamp, the location information in region locating for location information, existing personnel based on the scene lamp with And the intensity of illumination of the scene lamp, determine the scene lamp to the compensation brightness in region locating for existing personnel.
In this implementation, predetermined luminance formula E=I/R can use2, the scene lamp is calculated to existing personnel The compensation brightness in locating region, wherein E identifies the scene lamp to the compensation brightness in region locating for existing personnel, and I identifies this The intensity of illumination of scape lamp, R identify the location information in region locating for location information and existing personnel based on the scene lamp, meter Calculate resulting distance, i.e. the distance between region locating for scene lamp and existing personnel.In a kind of situation, it is assumed that scene lamp and institute There are personnel regions to regard as a bit;Alternatively, can will be in the central point in region locating for existing personnel and scene lamp The distance between heart point, as the distance between region locating for scene lamp and existing personnel.The scene lamp and existing personnel The distance between locating region can be expressed as formula (2):
Wherein, (XPeople, YPeople, ZPeople) identify the position coordinates in region locating for existing personnel, (XLamp, YLamp, ZLamp) mark scene lamp Position coordinates.
In another implementation, electronic equipment local or the storage equipment connected prestore each scene lamp and are directed to The compensation brightness of each position in target scene.Wherein it is possible to be the identification information recording target scene of corresponding each scene lamp The location information of middle each position, and record the compensation brightness of each position in target scene.For example, it is deposited in target scene In 3 scene lamps, respectively scene lamp 1, scene lamp 2 and scene lamp 3, wherein the identification information of scene lamp 1 is that lamp position sets A, field The identification information of scape lamp 2 is that set B and the identification information of scene lamp 3 be that lamp position sets C to lamp position;
There are 5 positions, respectively position 1, position 2, position 3, position 4 and position 5 in target scene;Scene lamp 1 divides Not Wei the compensation brightness of above-mentioned 5 positions be a1, b1, c1, d1 and e1;Scene lamp 2 is respectively the compensation brightness of above-mentioned 5 positions For a2, b2, c2, d2 and e2;Scene lamp 3 is respectively that the compensation brightness of above-mentioned 5 positions is a3, b3, c3, d3 and e3;
Each scene lamp is stored to each in target scene in electronic equipment or in storage equipment that electronic equipment is connected The mode of the compensation brightness of position can be such that
Lamp position sets the position A- 1-a1;Lamp position sets the position A- 2-b1;Lamp position sets the position A- 3-c1;Lamp position sets the position A- 4-d1; Lamp position sets the position A- 5-e1;
Lamp position sets beta-position and sets 1-a2;Lamp position sets beta-position and sets 2-b2;Lamp position sets beta-position and sets 3-c2;Lamp position sets beta-position and sets 4-d2; Lamp position sets beta-position and sets 5-e2;
Lamp position sets the position C- 1-a3;Lamp position sets the position C- 2-b3;Lamp position sets the position C- 3-c3;Lamp position sets the position C- 4-d3; Lamp position sets beta-position and sets 5-e3.
In one implementation, a scene lamp can be opened when compensation brightness of the external light source to target scene is 0 Afterwards, the bright of each position in above-mentioned target scene is determined as the scene lamp pair by the brightness for determining each position in target scene The compensation brightness of each position in target scene.Alternatively, can be the position letter using predetermined luminance formula, based on scene lamp Breath, the location information in each region and the intensity of illumination of the scene lamp in target scene, are calculated, and by calculated result It is stored in the storage equipment that electronic equipment is local or is connected.
In oneainstance, when opening or closing of scene lamp in target scene is controlled, it may be considered that so that existing people The brightness in region locating for member is located in predetermined luminance range;Or, it may be considered that so that region locating for existing personnel Brightness is located in predetermined luminance range, and the quantity for the scene lamp opened is minimum;Alternatively, consider so that brightness be not located at it is default The minimum number in region locating for the existing personnel of brightness range, alternatively, considering so that present intensity is not located at predetermined luminance model The minimum number in region locating for the existing personnel enclosed, and the quantity minimum of scene lamp, etc. opened, this is all possible.
In one implementation, described based at least one set of first luminance compensation group, determine current light control letter Number the step of, may include:
From at least one set of first luminance compensation group, one group of first brightness of the minimum number of included compensation brightness is determined Compensation group, as first object luminance compensation group;
Based on first object luminance compensation group, determine that current light controls signal.
It is understood that after determining at least one set of first object compensation brightness group, it can be according to every one first mesh Compensation brightness included in luminance compensation group is marked, determines each compensation brightness included in first object luminance compensation group Corresponding scene lamp;In turn, each compensation brightness pair included in the above-mentioned first object luminance compensation group determined is set The corresponding control signal of the scene lamp answered is the control signal that characterization is opened.
It as shown in Figure 2 A, is a kind of schematic layout pattern of target scene.Wherein, setting is adopted there are two image in target scene Collect equipment A, 6 scene lamps, respectively " scene lamp 1 ", " scene lamp 2 ", " scene lamp 3 ", " scene lamp 4 ", " scene lamp 5 " and " scene lamp 6 ".Image capture device A acquires present image (including current color image and current depth image), and will be current Image is sent to electronic equipment;Electronic equipment is analyzed for the present image of image capture device A acquisition;Electronic equipment is logical Image capture device A present image collected is crossed, can be determined in target scene there are personnel, present in electronic equipment obtains The location information in region locating for personnel and the present intensity distribution situation of target scene;And determine that existing personnel are one It is a, and the present intensity in region locating for existing personnel is not located at predetermined luminance range, electronic equipment determines existing personnel institute Locating region is " seat 6 " region;Electronic equipment obtains the preceding N frame image of image capture device A present image collected, determines Existing personnel are in non-athletic state.Further, electronic equipment determines that the target of existing personnel takes a seat mode as one Mode, and determine the corresponding target lamp regulatory control of single player mode then and target lamp regulatory control then corresponding atmospheric reference factor;Electronics Equipment be based on target lamp regulatory control then, target lamp regulatory control then corresponding atmospheric reference factor and predetermined luminance range, determine to work as Preceding light controling signal, so that the brightness in " seat 6 " region is located in predetermined luminance range.It is specific as shown in Figure 2 A, it determines Current light controls the control signal that corresponding characterization is opened in signal " scene lamp 4 ", the control that the corresponding characterization of other scene lamps is closed Signal processed.
In one implementation, existing personnel be it is multiple, and target take a seat mode be Assembling pattern when, target lamp control The corresponding atmospheric reference factor of rule includes: ambient light factor, light factor, superposition disturbing factor and shadow disturbing factor;
It is described according to target lamp regulatory control then, target lamp regulatory control then corresponding atmospheric reference factor and predetermined luminance range, It determines the step of current light controls signal, may include:
Based on the present intensity in region locating for existing personnel, the brightness for gathering region is determined, as the first brightness;
According to light factor, each scene lamp is obtained to the compensation brightness for gathering region;
According to shadow disturbing factor, default shadow region method of determination, the location information of each scene lamp and every are utilized The location information in region locating for personnel present in one determines each scene lamp in the shadow region for gathering region;
Each scene lamp is obtained in the shadow lightness in the shadow region for gathering region;
According to ambient light factor, light factor, superposition disturbing factor and shadow disturbing factor, each scene lamp pair is utilized Gather the compensation brightness in region, the first brightness for gathering region and each scene lamp in the shade in the shadow region for gathering region Brightness determines the second luminance compensation group of at least one set, wherein every one second luminance compensation group includes: at least one compensation brightness, And the sum of at least one compensation brightness in the second luminance compensation group, the first brightness and shadow brightness to be utilized of gathering region Sum, in predetermined luminance range, shadow brightness to be utilized are as follows: the corresponding field of each compensation brightness in the second luminance compensation group Scape lamp, the shadow lightness in the shadow region for gathering region;
According at least one set of second luminance compensation group, determine that current light controls signal.
In a kind of implementation, the region of the smallest predetermined shape comprising region locating for existing personnel can be made For the region of gathering of existing personnel, or by region corresponding to the segmented image comprising region locating for existing personnel, make Gather region for existing personnel.
It is understood that when for Assembling pattern, since the distance between existing personnel are relatively close, existing personnel it Between may mutually block light, at this point, consider atmospheric reference factor may include ambient light factor, light factor, superposition Disturbing factor and shadow disturbing factor.At this time, it may be necessary to according to shadow disturbing factor, using default shadow region method of determination, The location information in region locating for the location information of each scene lamp and each existing personnel, determines that each scene lamp is gathering The shadow region in region.
It as shown in Figure 2 B, is a kind of schematic diagram of shadow interference caused by different light sources.Wherein, there are four light sources, Light source can be scene lamp, respectively " light source 1 ", " light source 2 ", " light source 3 " and " light source 4 ".After light source exposes to a personnel, light It will appear the shadow (shade) on rear side of the corresponding personnel in source, as shown in Figure 2 B, after " region 1 " is " light source 1 " corresponding personnel Side, " region 2 " are on rear side of " light source 2 " corresponding personnel, and " region 3 " is " light source 3 " corresponding personnel rear side, " region 4 " On rear side of " light source 4 " corresponding personnel.
In the embodiment of the present invention, a kind of situation being averaged the present intensity in region locating for each existing personnel Value, the brightness in region, i.e. the first brightness are gathered as this.Another situation, can also be with: when having turned on field in current goal scene When scape lamp, determine each scene lamp that has turned in the shadow lightness in the shadow region, shadow region for gathering region and each Scene lamp is had turned on to the compensation brightness for gathering region;Based on region locating for each existing personnel present intensity, determine Out each has turned on scene lamp in the shadow lightness in the shadow region, shadow region for gathering region and each has turned on scene Lamp determines that this gathers the brightness in region, i.e. the first brightness to the compensation brightness for gathering region.
Wherein, the above-mentioned present intensity based on region locating for each existing personnel, determined each have turned on field Scape lamp is in the shadow lightness in the shadow region, shadow region for gathering region and each scene lamp that has turned on to the benefit for gathering region Brightness is repaid, determines that this gathers the brightness in region, the i.e. process of the first brightness, may is that for each existing personnel, judgement Whether region locating for the existing personnel belongs to shadow region, when determining that region locating for the existing personnel belongs to shadow region When, calculate the present intensity in region locating for the existing personnel and the shadow lightness in the people shadow zone domain and, it is existing as this The new present intensity in region locating for personnel calculates the new present intensity and all scene lamps that have turned on to the existing personnel The difference of total compensation brightness in locating region, the third difference as region locating for the existing personnel;When determining that the institute deposits When the region locating for personnel is not belonging to shadow region, the present intensity for calculating region locating for the existing personnel has turned on all Scene lamp to the difference of total compensation brightness in region locating for the existing personnel, as region locating for the existing personnel Three differences, using the average value of the third difference in region locating for each existing personnel as the first brightness.
It is understood that when gathering as this by the average value of the present intensity in region locating for each existing personnel When the brightness, i.e. the first brightness in region, may exist two kinds of situations, scene lamp is not opened in current goal scene, alternatively, only needle The scene lamp that current state is in off state is controlled, and keeping current state in current goal scene is open state The state of scene lamp is constant (keeping it turned on), so that the brightness for gathering region reaches predetermined luminance range.
In one implementation, can use default shadow region method of determination, each scene lamp location information with And the location information in region locating for each existing personnel, determine each scene lamp in the shadow region for gathering region.A kind of side Formula can first assume scene lamp and existing personnel a little, and existing personnel check data on the table;
The position coordinates of scene lamp are (XLamp, YLamp, ZLamp), the position coordinates of existing personnel are (XPeople, YPeople, ZPeople);
The straight line that then existing personnel are linked to be with scene lamp is to be identified as formula (3):
In a plane being linked to be with desktop in target scene a little for origin, be with the plane that the desktop is linked to be Plane where horizontal axis and the longitudinal axis, establishes rectangular coordinate system in space;
The algebraic expression for the plane that desktop is linked to be, formula (4) are as follows: Ax+By+Cz+D=0 (4);Wherein, (x, y, z) is desktop The position coordinates of point on the face being linked to be;Due to foundation rectangular coordinate system in space origin on the face, can simplify The coordinate for the plane that desktop is linked to be is Ax+By=0;
Can be in the hope of (x, y) according to formula (3) and formula (4) simultaneous, and z=0;
The coordinate position (x, y, 0) of shadow spots can be found out;
By the position coordinates of existing personnel and scene lamp be extended can the scene lamp in the shadow area for gathering region Domain.
In one implementation, each scene lamp is stored in the storage equipment that electronic equipment or electronic equipment are connected To the shadow lightness of each position of target scene, which can be identified: a light source (including external light source and scene Lamp) for a scene brightness is provided, there is brightness when blocking in the position in scene and brightness when blocking is not present in the position Difference, above-mentioned shadow lightness is generally negative at this time.In a kind of situation, the corresponding shadow lightness of each scene lamp can be work The default negative value of personnel, i.e., shadow lightness of each scene lamp in the shadow region for gathering region can be preset one Negative value.Another situation, each scene lamp can be equal in the numerical value of the shadow lightness in the shadow region for gathering region: this Scape lamp gathers the compensation brightness in region to this, which is negative value.
Electronic equipment obtains the first brightness for gathering region, each scene lamp to the compensation brightness for gathering region, each field Scape lamp in the shadow region and each scene lamp for gathering region after gathering the shadow lightness in shadow region in region, can be with According to ambient light factor, light factor, superposition disturbing factor and shadow disturbing factor, using each scene lamp to gathering region Compensation brightness, gather region the first brightness and each scene lamp the shadow region for gathering region shadow lightness, really The second luminance compensation group of fixed at least one set.
In one implementation, first brightness are as follows: the present intensity in region locating for each existing personnel is averaged When value, it can be the scene lamp being only in off state to current state in current goal scene and control, and keep current mesh The scene lamp that current state in scene is open state is marked, i.e., the state that scene lamp is had turned in current goal scene is constant, makes The brightness that region must be gathered can be located in predetermined luminance range.
Specifically, it is above-mentioned according to ambient light factor, light factor, superposition disturbing factor and shadow disturbing factor, it utilizes Each scene lamp is to gathering the compensation brightness in region, the first brightness for gathering region and each scene lamp in the people for gathering region The shadow lightness in shadow zone domain determines the process of the second luminance compensation group of at least one set, may is that and calculates under predetermined luminance range The difference of limit value and the first brightness, as the 4th difference, in turn, the scene lamp being in off state based on each current state is to collection Shade of the scene lamp that the compensation brightness in poly- region and each current state are in off state in the shadow region for gathering region The combination for being not less than the scene lamp of the required unlatching of the 4th difference to the total compensation brightness for gathering region is determined in brightness.
Wherein, the scene lamp that should be in off state based on each current state is to the compensation brightness of gathering region and each The scene lamp that current state is in off state is determined in the shadow lightness in the shadow region for gathering region to gathering the total of region Compensation brightness may is that random virtual unlatching is current not less than the combined process of the scene lamp of the required unlatching of the 4th difference The scene lamp that state is in off state determines that the scene lamp virtually opened is to the compensation brightness for gathering region at random and this is each The scene lamp virtually opened at random determines each scene virtually opened at random in the shadow lightness in the shadow region for gathering region Whether current virtual brightness of the lamp in the shadow region for gathering region is not less than the 4th difference, and when determining be not less than, record should Each scene lamp for virtually opening at random is to the compensation brightness for gathering region, and using one group of compensation brightness of the record as one group the Two luminance compensation groups.
In one implementation, first brightness are as follows: present intensity, institute based on region locating for each existing personnel That determines each have turned on scene lamp in the shadow lightness in the shadow region, shadow region for gathering region and each has turned on Scene lamp to gather region compensation brightness determine when, can be and scene lamps all in current goal scene are controlled, The brightness for gathering region is located in predetermined luminance range.
Specifically, predetermined luminance compensation formula E can be based onAlways=EIt is extraneous+ELight+EThe shadowAnd existing constraint condition EAlways∈ (Emin, Emax);The total brightness compensation for determining scene lamp needed for gathering region, that is, enable the brightness in Nesting Zone domain to be located at The smallest E in predetermined luminance rangeLight;In turn, based on each scene lamp to the compensation brightness and each scene for gathering region Lamp in the shadow lightness in the shadow region for gathering region determines that the brightness for gathering region is enabled to be located at predetermined luminance range Interior at least one set the second luminance compensation group.
Wherein, based on each scene lamp to the compensation brightness and each scene lamp of gathering region in the shadow for gathering region The shadow lightness in region determines that at least one set second that the brightness for gathering region is located in predetermined luminance range is bright The process for spending compensation group, may is that it is random virtual open scene lamp, determine the scene lamp virtually opened at random to gathering region Compensation brightness and each scene lamp virtually opened at random determine that this is each in the shadow lightness in the shadow region for gathering region Current virtual brightness (each scene lamp at random virtually opened of the scene lamp virtually opened at random in the shadow region for gathering region Compensation brightness and each the sum of the shadow lightness of the scene lamp virtually opened in the shadow region for gathering region at random) it is whether not small In ELight+EThe shadow, when determining be not less than, each scene lamp virtually opened at random is recorded to the compensation brightness for gathering region, and Using one group of compensation brightness of the record as one group of second luminance compensation group.In one implementation, unlatching one can be opened The scene lamp of personnel two sides, can mutually eliminate shade caused by the scene lamp positioned at personnel two sides.
Wherein, above-mentioned according to light factor, obtain each scene lamp to the realization process for the compensation brightness for gathering region, with According to light factor, it is similar to the realization process of the compensation brightness in region locating for existing personnel to obtain each scene lamp, herein It does not repeat.
Wherein, this determines the process of current light control signal according at least one set of second luminance compensation group, can be with It is: from least one set of second luminance compensation group, determines that one group of second brightness of the minimum number of included compensation brightness is mended Group is repaid, as the second object brightness compensation group;Based on the second object brightness compensation group, determine that current light controls signal.Its In, it is above-mentioned to be based on the second object brightness compensation group, determine current light control signal realization process, be based on first object Luminance compensation group determines that the realization process of current light control signal is similar, and this will not be repeated here.
In one implementation, existing personnel be it is multiple, and target take a seat mode be decentralized model when, target lamp control The corresponding atmospheric reference factor of rule includes: ambient light factor, light factor, is superimposed disturbing factor and apart from disturbing factor;
It is described according to target lamp regulatory control then, target lamp regulatory control then corresponding atmospheric reference factor and predetermined luminance range, It determines the step of current light controls signal, may include:
According to light factor and apart from disturbing factor, each scene lamp is obtained to region locating for each existing personnel Compensation brightness;
According to ambient light factor, light factor, it is superimposed disturbing factor and apart from disturbing factor, utilizes each scene lamp pair The present intensity in region locating for the compensation brightness in region locating for each existing personnel and each existing personnel, determines at least One group of third luminance compensation group, wherein each third luminance compensation group includes: at least one compensation brightness, and the third brightness The sum of at least one compensation brightness in compensation group, respectively with second intermediate luminance in region locating for each existing personnel and, In predetermined luminance range, wherein second intermediate luminance are as follows: the present intensity in region locating for existing personnel with currently opened Scene lamp is opened to the difference of the compensation brightness in region locating for existing personnel, or are as follows: the present intensity in region locating for existing personnel;
According at least one set of third luminance compensation group, determine that current light controls signal.
It is understood that when target take a seat mode be decentralized model when, due to the distance between existing personnel compared with Greatly, there is no light is mutually blocked, shadow disturbing factor can not be considered at this time.Due to scene lamp at a distance of it is different away from From position luminance compensation ability it is different, i.e., distance is remoter, weaker to the luminance compensation ability of the position, at this point, Need to consider that apart from disturbing factor, i.e. consideration scene lamp has the compensation brightness of different location different.
In the embodiment of the present invention, predetermined luminance formula E=I/ can be based on according to light factor and apart from disturbing factor R2, scene lamp is calculated to the compensation brightness in region locating for each existing personnel.Alternatively, can be electronic equipment it is local or The storage equipment connected prestores scene lamp to the compensation brightness of each position in target scene, and then can be based on each institute There are the location informations in region locating for personnel, determine scene lamp to the compensation brightness in region locating for each existing personnel.
It in turn, can be according to predetermined luminance compensation formula EAlways=EIt is extraneous+ELight+EThe shadow, and existing constraint condition EAlways∈ (Emin, Emax), it determines so that the brightness in region locating for each existing personnel is located at at least one set in predetermined luminance range Third luminance compensation group.Wherein, when it is decentralized model that target, which takes a seat mode, shadow disturbing factor is not considered, at this point, the EThe shadow It can be 0.
In one implementation, second intermediate luminance in the region locating for each existing personnel are as follows: the existing people The present intensity in region locating for member and currently have turned on scene lamp to the difference of the compensation brightness in region locating for existing personnel, i.e., the Two intermediate luminances are compensation brightness, that is, E of the external light source to region locating for existing personnelIt is extraneousWhen, it can be to current goal field All scene lamps are controlled in scape, and the brightness in region locating for each existing personnel is enabled to be located at predetermined luminance range It is interior.
Specifically, it is above-mentioned according to ambient light factor, light factor, superposition disturbing factor and apart from disturbing factor, it utilizes Each scene lamp is current to region locating for the compensation brightness in region locating for each existing personnel and each existing personnel Brightness determines the process of at least one set third luminance compensation group, may is that based on predetermined luminance compensation formula EAlways=EIt is extraneous+ELight+ EThe shadow, and existing constraint condition EAlways∈(Emin, Emax), it determines so that the brightness in region locating for each existing personnel is located at When in predetermined luminance range, the total brightness compensation of scene lamp needed for region locating for each existing personnel is that is, each existing E needed for region locating for personnelLight.At this point it is possible to bright based on compensation of each scene lamp to region locating for each existing personnel Degree, superposition obtain each brightness group, and determine at least one set of third luminance compensation group from gained brightness group, wherein every 1 the It include an at least compensation brightness in three luminance compensation groups, and the sum of at least one compensation brightness in the third luminance compensation group, point Not with second intermediate luminance in region locating for each existing personnel and, in predetermined luminance range.And then according at least one Group third luminance compensation group determines that current light controls signal.
In another implementation, second intermediate luminance in the region locating for each existing personnel are as follows: this is existing When the present intensity in region locating for personnel, can be scene lamp that only current state in current goal scene is in off state into Row control, and keeping current state in current goal scene is the scene lamp of open state, i.e., has turned in current goal scene The state of scene lamp is constant, and the brightness in region locating for each existing personnel is located in predetermined luminance range.
Specifically, it is above-mentioned according to ambient light factor, light factor, superposition disturbing factor and apart from disturbing factor, it utilizes Each scene lamp is current to region locating for the compensation brightness in region locating for each existing personnel and each existing personnel Brightness determines the process of at least one set third luminance compensation group, may is that for region locating for each existing personnel, calculates The difference of predetermined luminance range and the present intensity in region locating for the existing personnel, as the 5th difference, wherein the 5th is poor Value is the smallest brightness value compensated needed for region locating for the existing personnel, so that area locating for the existing personnel is bright Degree is located in predetermined luminance range;The scene lamp being in off state based on current state in current goal scene is to each existing The compensation brightness in region locating for personnel, superposition obtains each brightness group, and at least one set of third brightness is determined from each brightness group Compensation group.It wherein, include an at least compensation brightness in each third luminance compensation group, and at least one in the third luminance compensation group The sum of a compensation brightness, respectively with the present intensity in region locating for each existing personnel and, in predetermined luminance range.Into And according at least one set of third luminance compensation group, determine that current light controls signal.Such as: gather the position of any in region Coordinate is (a, b, c), which is located at scene lamp Q in the shadow region for gathering region, is not located at scene lamp P in the people for gathering region Shadow zone domain, at this point, when virtually opening scene lamp Q and scene lamp P, the brightness of the point (a, b, c) can be with are as follows:
ETotal point=the first brightness+EQ light+EP light+EThe Q shadow
Wherein, ETotal pointThe brightness of identification point (a, b, c), EQ light+EP lightScene lamp Q and scene lamp P is identified to point (a, b, c) Total compensation brightness, EThe Q shadowScene lamp Q is identified in the shadow lightness in the shadow region for gathering region.
Wherein, this determines the process of current light control signal according at least one set of third luminance compensation group, can be with It is: from least one set of third luminance compensation group, determines that one group of third brightness of the minimum number of included compensation brightness is mended Group is repaid, as third object brightness compensation group;Based on third object brightness compensation group, determine that current light controls signal.Its In, it is above-mentioned be based on third object brightness compensation group, determine current light control signal realization process, be based on first object Luminance compensation group determines that the realization process of current light control signal is similar, and this will not be repeated here.
In one implementation, existing personnel be it is multiple, and target take a seat mode be scatter-gather mode when;Target Then corresponding atmospheric reference factor includes: ambient light factor, light factor, superposition disturbing factor, shadow disturbing factor to lamp regulatory control And apart from disturbing factor;
It is described according to target lamp regulatory control then, target lamp regulatory control then corresponding atmospheric reference factor and predetermined luminance range, It determines the step of current light controls signal, may include:
Determine each discrete areas;
This is determined according to the present intensity in region locating for the included personnel of the discrete areas for each discrete areas The present intensity of discrete areas, as the second brightness;
According to light factor and apart from disturbing factor, each scene lamp is obtained to the compensation brightness of each discrete areas;
According to shadow disturbing factor, default shadow region method of determination, the location information of each scene lamp and every are utilized The location information in region locating for personnel included in one discrete areas determines each scene lamp in the shadow area of each discrete areas Domain;
Each scene lamp is obtained in the shadow lightness in the shadow region of each discrete areas;
According to ambient light factor, light factor, it is superimposed disturbing factor, apart from disturbing factor and shadow disturbing factor, base In each scene lamp to the second brightness of the compensation brightness, each discrete areas of each discrete areas and each scene lamp every The shadow lightness in the shadow region of one discrete areas determines the 4th luminance compensation group of at least one set;Wherein, every one the 4th brightness is mended Repaying group includes: at least one compensation brightness, and the sum of at least one compensation brightness, each dispersion area in the 4th luminance compensation group The sum of second brightness in domain and spare shadow brightness, in predetermined luminance range, spare shadow brightness are as follows: each discrete areas In, the corresponding scene lamp of each compensation brightness, the shade in the shadow region of the discrete areas are bright in the 4th luminance compensation group The sum of degree;
According at least one set of 4th luminance compensation group, determine that current light controls signal.
In the embodiment of the present invention, each discrete areas can be determined based on the distance between existing personnel, such as: between When the distance at interval is more than pre-determined distance, then it is confirmed as two individual regions.It is also possible to obtain based on preparatory training The output of disaggregated model is as a result, determine each discrete areas, this is all possible.It is understood that the preparatory training obtains Disaggregated model when the target of personnel takes a seat mode in the presence of exporting target scene, can export existing personnel's simultaneously Respectively take a seat region, such as each discrete areas.
Wherein, the method for determination of second brightness is similar to the method for determination of the first brightness;This according to light factor and Apart from disturbing factor, each scene lamp is obtained to the realization process of the compensation brightness of each discrete areas, and according to light factor And apart from disturbing factor, each scene lamp is obtained to the realization process phase of the compensation brightness in region locating for each existing personnel Seemingly;This utilizes default shadow region method of determination, the location information of each scene lamp and each point according to shadow disturbing factor The location information for dissipating region locating for personnel included in region, determines each scene lamp in the shadow region of each discrete areas Realization process, and according to shadow disturbing factor, using default shadow region method of determination, each scene lamp location information and The location information in region locating for each existing personnel, determines each scene lamp in the realization in the shadow region for gathering region Process is similar;The each scene lamp of the acquisition the shadow lightness in the shadow region of each discrete areas implementation, with acquisition Each scene lamp is similar in the implementation of the shadow lightness in the shadow region for gathering region, and details are not described herein.
It is understood that considering ambient light factor, light factor when it is scatter-gather mode that target, which takes a seat mode, And except superposition disturbing factor, also consider each scene lamp to the difference of the luminance compensation ability of each discrete areas, with And when in certain discrete areas including multiple personnel, can mutually it be blocked between personnel, at this time, it is also necessary to it is dry to take the shadow into consideration Disturb factor and apart from disturbing factor.
When second brightness are as follows: when the average value of the present intensity in region locating for the included personnel of discrete areas, can be The scene lamp being only in off state to current state in current goal scene controls, and keeps current in current goal scene State is the scene lamp of open state, i.e., the state that scene lamp is had turned in current goal scene is constant, so that each discrete areas Brightness can be located at predetermined luminance range in.It is specifically referred to take a seat target determination side when mode is decentralized model Formula.
Specifically, it is above-mentioned according to ambient light factor, light factor, superposition disturbing factor, apart from disturbing factor and the shadow Disturbing factor, based on each scene lamp to the second brightness of the compensation brightness, each discrete areas of each discrete areas and often One scene lamp determines the process of the 4th luminance compensation group of at least one set in the shadow lightness in the shadow region of each discrete areas, It may is that calculate the lower limit value of predetermined luminance range and the difference of the second brightness in turn, is worked as the 6th difference based on each The field that the scene lamp that preceding state is in off state is in off state the compensation brightness of each discrete areas and each current state Scape lamp determines total compensation brightness to each discrete areas not less than the 6th in the shadow lightness in the shadow region of each discrete areas The combination of the scene lamp of the required unlatching of difference.
Wherein, the scene lamp that should be in off state based on each current state is to the compensation brightness of each discrete areas and every The scene lamp that one current state is in off state is determined in the shadow lightness in the shadow region of each discrete areas to each dispersion area Total compensation brightness in domain may is that and virtually open at random not less than the combined process of the scene lamp of the required unlatching of the 6th difference Open the scene lamp that current state is in off state, determine the scene lamp virtually opened at random to the compensation brightness of each discrete areas, And the shadow lightness in the shadow region of each scene lamp virtually opened at random in each discrete areas, determine that this is each random virtual Whether current virtual brightness of the scene lamp of unlatching in the shadow region of each discrete areas is not less than the 6th difference, when determination is not small Yu Shi records the identification information of each scene lamp virtually opened at random, and the identification information of the scene lamp of the record is corresponding Scene etc. compensation brightness as one group of the 4th luminance compensation group.
In one implementation, second brightness are as follows: present intensity, institute based on region locating for each existing personnel That determines each have turned on scene lamp in the shadow lightness in the shadow region, shadow region for gathering region and each has turned on Scene lamp to the compensation brightness of each discrete areas determine when, can be and scene lamps all in current goal scene are controlled System, enables the brightness of each discrete areas to be located in predetermined luminance range.
Specifically, predetermined luminance compensation formula E can be based onAlways=EIt is extraneous+ELight+EThe shadowAnd existing constraint condition EAlways∈ (Emin, Emax);The total brightness of scene lamp needed for determining each discrete areas compensates, that is, enables the brightness of each discrete areas The smallest E in predetermined luminance rangeLight;In turn, based on each scene lamp to the compensation brightness of each discrete areas and every One scene lamp in the shadow lightness in the shadow region of each discrete areas determines that the brightness of each discrete areas is located in advance If the 4th luminance compensation group of at least one set in brightness range.
Wherein, based on each scene lamp to the compensation brightness of each discrete areas and each scene lamp in each discrete areas The shadow lightness in shadow region determines that the brightness of each discrete areas is enabled to be located at at least one set in predetermined luminance range The process of 4th luminance compensation group may is that random virtual unlatching scene lamp, determine the scene lamp virtually opened at random to each point The shade of the compensation brightness and the shadow region of each scene lamp virtually opened at random in each discrete areas that dissipate region is bright Degree determines current virtual brightness (each random void in the shadow region of each scene lamp virtually opened at random in each discrete areas The shade in the shadow region of the compensation brightness of the quasi- scene lamp opened and each scene lamp virtually opened at random in each discrete areas The sum of brightness) whether it is not less than ELight+EThe shadow, when determining be not less than, record the mark of each scene lamp virtually opened at random Information, and using the compensation brightness of the corresponding scene of identification information of the scene lamp of the record etc. as one group of the 4th luminance compensation Group.
Wherein, this determines the process of current light control signal according at least one set of 4th luminance compensation group, can be with It is: from least one set of 4th luminance compensation group, determines that one group of the 4th brightness of the minimum number of included compensation brightness is mended Group is repaid, as the 4th object brightness compensation group;Based on the 4th object brightness compensation group, determine that current light controls signal.Its In, it is above-mentioned to be based on the 4th object brightness compensation group, determine current light control signal realization process, be based on first object Luminance compensation group determines that the realization process of current light control signal is similar, and this will not be repeated here.
In one implementation, when automatically according to target lamp regulatory control then, target lamp regulatory control then corresponding atmospheric reference because Element and predetermined luminance range determine that current light controls signal, and control signal based on current light, control target scene It may not be that user is desired as a result, at this point, user can root in target scene after the opening or closing of middle scene lamp It needs to regulate and control the opening or closing for scene lamp in target scene manually according to itself.As shown in figure 3, the method can With comprising steps of
S301: when determine in target scene the location information that region locating for existing personnel is obtained there are when personnel and The present intensity distribution situation of target scene;
S302: the location information based on region locating for present intensity distribution situation and existing personnel, determine present in In the present intensity in region locating for personnel, if there is the present intensity not being located in predetermined luminance range;
S303: in the presence of determination, based on the location information in region locating for existing personnel, determine that existing personnel are corresponding It is default take a seat mode, take a seat mode as target;
S304: based on it is default take a seat mode and default lamp regulatory control then between corresponding relationship and target take a seat mode, really The corresponding target lamp regulatory control of the mode of taking a seat that sets the goal is then;
Wherein, different default lamp regulatory controls then corresponds to different atmospheric reference factors;
S305: according to target lamp regulatory control then, target lamp regulatory control then corresponding atmospheric reference factor and predetermined luminance range, Determine that current light controls signal;
Wherein, current light control signal is used for: scene lamp opens or closes in control target scene.
The S301 is identical as S101 shown in Fig. 1, and S302 is identical as S302 shown in Fig. 1, shown in S303 and Fig. 1 S103 it is identical, S304 is identical as S104 shown in Fig. 1, and S305 is identical as S105 shown in Fig. 1.
S306: the light regulation and control instruction that user issues is obtained;
Wherein, light regulation and control instruction carries: the beacon light of the scene lamp of required closing and/or unlatching is known;
S307: the beacon light of the scene lamp based on required closing entrained by light regulation and control instruction and/or unlatching is known, and generates and uses In the light adjustment signal for closing and/or the unlatching for controlling scene lamp to be regulated and controled.
In the embodiment of the present invention, the manual regulating switch of regulation scene lamp manually can be provided for user, can be each Scene lamp corresponds to a manual regulating switch, and user can issue light regulation and control instruction, and then electronics by the manual regulating switch Equipment obtains the light regulation and control instruction that user issues, and based on required closing and/or unlatching entrained by the light regulation and control instruction Scene lamp beacon light know, the light adjustment signal for controlling closing and/or the unlatching of scene lamp to be regulated and controled is generated, with basis Scene lamp opens or closes in light adjustment signal control target scene.
In one implementation, when automatically according to target lamp regulatory control then, target lamp regulatory control then corresponding atmospheric reference because Element and predetermined luminance range determine that current light controls signal, and control signal based on current light, control target scene After the opening or closing of middle scene lamp, the brightness in the target scene after regulation can also be verified;Determining target field Region locating for everyone is to obtain the new present intensity distribution situation of target scene, and determine mesh when changing in scape It marks in scene in the new present intensity in region locating for the everyone, if exist current not bright in predetermined luminance range Degree, when determining in target scene in the new present intensity in region locating for the everyone, there is no be not located at predetermined luminance range When interior present intensity, it can determine and no longer generate new current light control signal for target scene.As shown in figure 4, institute The method of stating may include step:
S401: when determine in target scene the location information that region locating for existing personnel is obtained there are when personnel and The present intensity distribution situation of target scene;
S402: the location information based on region locating for present intensity distribution situation and existing personnel, determine present in In the present intensity in region locating for personnel, if there is the present intensity not being located in predetermined luminance range;
S403: in the presence of determination, based on the location information in region locating for existing personnel, determine that existing personnel are corresponding It is default take a seat mode, take a seat mode as target;
S404: based on it is default take a seat mode and default lamp regulatory control then between corresponding relationship and target take a seat mode, really The corresponding target lamp regulatory control of the mode of taking a seat that sets the goal is then;
Wherein, different default lamp regulatory controls then corresponds to different atmospheric reference factors;
S405: according to target lamp regulatory control then, target lamp regulatory control then corresponding atmospheric reference factor and predetermined luminance range, Determine that current light controls signal;
Wherein, current light control signal is used for: scene lamp opens or closes in control target scene.
The S401 is identical as S101 shown in Fig. 1, and S402 is identical as S102 shown in Fig. 1, shown in S403 and Fig. 1 S103 it is identical, S404 is identical as S104 shown in Fig. 1, and S405 is identical as S105 shown in Fig. 1.
S406: when determining that region locating for the existing personnel of target scene does not change;Obtain target scene New present intensity distribution situation;
S407: the location information based on region locating for new present intensity distribution situation and existing personnel determines institute There are in the new present intensity in region locating for personnel, if there is the present intensity not being located in predetermined luminance range;
S408: it when determining that the new present intensity in region locating for all personnel is in predetermined luminance range, determines not New current light, which is generated, for target scene controls signal.
In one implementation, when determining in target scene in the new present intensity in region locating for the everyone, still When in the presence of the present intensity not being located in predetermined luminance range, can continue according to target lamp regulatory control then, target lamp regulatory control it is then right The atmospheric reference factor and predetermined luminance range answered determine new current light control signal.
It, can be by being verified to the brightness in the target scene after regulation, really with verification institute in the embodiment of the present invention Make current light control signal it is whether suitable, when verify out current light control signal it is improper when, execute determination again The step of light controling signal, can guarantee the validity of signal light control result to a certain extent, so that target scene is deposited Brightness needed for the present intensity in the region locating for personnel can reach personnel, improves user experience.Work as headlight when verifying out When optical control signal is suitable, new current light control signal is not being generated for target scene.To save the fortune of electronic equipment Row resource.
It is understood that in a fixed scene, such as target scene, personnel take a seat situation may exist it is certain Rule, such as: within some daily period, personnel to take a seat situation all the same, i.e., occur history in target scene just Seat mode and the target situation that take a seat mode identical, at this point, when the history takes a seat the corresponding Luminance Distribution situation of mode and current When Luminance Distribution situation is identical, it can the history is taken a seat the corresponding history signal light control of the corresponding Luminance Distribution situation of mode Signal is determined as current light control signal.In one implementation, as shown in figure 5, the method may include steps:
S501: when determine in target scene the location information that region locating for existing personnel is obtained there are when personnel and The present intensity distribution situation of target scene;
S502: the location information based on region locating for present intensity distribution situation and existing personnel, determine present in In the present intensity in region locating for personnel, if there is the present intensity not being located in predetermined luminance range;
S503: in the presence of determination, based on the location information in region locating for existing personnel, determine that existing personnel are corresponding It is default take a seat mode, take a seat mode as target;
S504: based on it is default take a seat mode and default lamp regulatory control then between corresponding relationship and target take a seat mode, really The corresponding target lamp regulatory control of the mode of taking a seat that sets the goal is then;
Wherein, different default lamp regulatory controls then corresponds to different atmospheric reference factors;
The S501 is identical as S101 shown in Fig. 1, and S502 is identical as S102 shown in Fig. 1, shown in S503 and Fig. 1 S103 it is identical, S504 is identical as S104 shown in Fig. 1.
S505: it obtains and target lamp regulatory control then corresponding history light controling signal;
S506: the corresponding Luminance Distribution situation of each history light controling signal is obtained, as historical light's distribution situation;
S507: each historical light's distribution situation is matched with present intensity distribution situation;As obtained historical light point In cloth situation, when historical light's distribution situation matched with present intensity distribution situation is not present, S508 is executed:
S508: according to target lamp regulatory control then, target lamp regulatory control then corresponding atmospheric reference factor and predetermined luminance range, Determine that current light controls signal;
Wherein, current light control signal is used for: scene lamp opens or closes in control target scene;
The S508 is identical as S105 shown in Fig. 1.
S509: in obtained historical light's distribution situation, exist and the matched historical light of present intensity distribution situation When distribution situation, will history light controling signal corresponding with the matched historical light's distribution situation of present intensity distribution situation, It is determined as current light control signal.
Corresponding to above method embodiment, the embodiment of the invention also provides a kind of Light Control Units, as shown in fig. 6, The apparatus may include:
First obtains module 610, for obtaining region locating for existing personnel when determining in target scene there are when personnel Location information and the target scene present intensity distribution situation;
First determining module 620, for based on region locating for the present intensity distribution situation and existing personnel Location information, in the present intensity for determining region locating for existing personnel, if exist and be not located at working as in predetermined luminance range Preceding brightness;
Second determining module 630 is used in the presence of determining, based on the location information in region locating for existing personnel, really Fixed corresponding preset of existing personnel takes a seat mode, takes a seat mode as target;
Third determining module 640, for based on it is default take a seat mode and default lamp regulatory control then between corresponding relationship and The target takes a seat mode, determines that the target takes a seat the corresponding target lamp regulatory control of mode then, wherein different default lamp regulatory controls Then correspond to different atmospheric reference factors;
4th determining module 650, for according to the target lamp regulatory control then, the target lamp regulatory control then corresponding environment ginseng Factor and the predetermined luminance range are examined, determines that current light controls signal, wherein the current light control signal is used In: control opening or closing for scene lamp in the target scene.
Using the embodiment of the present invention, the present intensity in region locating for personnel exists not in the presence of determining target scene It, need to be in the present intensity and target scene in the region according to locating for existing personnel when positioned at the present intensity of predetermined luminance range Existing personnel's takes a seat mode, controls opening or closing for the scene lamp in target scene, that is, controls which scene lamp is opened, Control which scene lamp is closed.Also, in the embodiment of the present invention, mode is taken a seat according to different, is provided with corresponding different ring The default lamp regulatory control of border reference factor then, after the corresponding target of personnel takes a seat mode in the presence of determining target scene, base In target take a seat the corresponding target lamp regulatory control of mode then, target lamp regulatory control then corresponding atmospheric reference factor and predetermined luminance model It encloses, controls opening or closing for the scene lamp in target scene, wherein above-mentioned target lamp regulatory control is then used for so that area locating for personnel The present intensity in domain can be located at predetermined luminance range in, for be not present personnel region, then without the concern for brightness whether In predetermined luminance range, realize that more intelligently controlling scene lamp in target scene opens or closes, to a certain degree On reach energy-efficient effect.
In one implementation, existing personnel are one, and it is single player mode, the target that the target, which takes a seat mode, Then corresponding atmospheric reference factor includes: ambient light factor, light factor and superposition disturbing factor to lamp regulatory control;
4th determining module 650, comprising:
Obtaining unit, for obtaining each scene lamp to the benefit in region locating for existing personnel according to the light factor Repay brightness;
First determination unit is used for according to the ambient light factor, the light factor and the superposition disturbing factor, Using each scene lamp to the present intensity in region locating for the compensation brightness in region locating for existing personnel and existing personnel, Determine the first luminance compensation group of at least one set, wherein every one first luminance compensation group includes: at least one compensation brightness, and should In first luminance compensation group the sum of at least one compensation brightness and the first intermediate luminance and, in the predetermined luminance range, Wherein, first intermediate luminance are as follows: the present intensity in region locating for existing personnel with currently have turned on scene lamp to existing The difference of the compensation brightness in region locating for personnel, or are as follows: the present intensity in region locating for existing personnel;
Second determination unit determines current light control letter for being based at least one set of first luminance compensation group Number.
In one implementation, second determination unit, is specifically used for
From at least one set of first luminance compensation group, one group first for determining the minimum number of included compensation brightness Luminance compensation group, as first object luminance compensation group;
Based on the first object luminance compensation group, determine that current light controls signal.
In one implementation, the obtaining unit, is specifically used for
Obtain the location information and intensity of illumination of each scene lamp;
For each scene lamp, the location information in region locating for location information, existing personnel based on the scene lamp with And the intensity of illumination of the scene lamp, determine the scene lamp to the compensation brightness in region locating for existing personnel.
In one implementation, existing personnel be it is multiple, and the target take a seat mode be Assembling pattern when, it is described Then corresponding atmospheric reference factor includes: that ambient light factor, light factor, superposition disturbing factor and the shadow are dry to target lamp regulatory control Disturb factor;
4th determining module 650, is specifically used for
Based on the present intensity in region locating for existing personnel, the brightness in region is gathered described in determination, as the first brightness;
According to the light factor, each scene lamp is obtained to the compensation brightness for gathering region;
According to the shadow disturbing factor, using the location information of default shadow region method of determination, each scene lamp with And the location information in region locating for each existing personnel, determine each scene lamp in the shadow region for gathering region;
Each scene lamp is obtained in the shadow lightness in the shadow region for gathering region;
According to the ambient light factor, the light factor, the superposition disturbing factor and the shadow disturbing factor, Existed using each scene lamp to the compensation brightness for gathering region, first brightness for gathering region and each scene lamp The shadow lightness in the shadow region for gathering region determines the second luminance compensation group of at least one set, wherein every one second brightness Compensation group includes: at least one compensation brightness, and the sum of at least one compensation brightness in the second luminance compensation group, described is gathered The sum of first brightness in region and shadow brightness to be utilized, in the predetermined luminance range, the shadow brightness to be utilized Are as follows: the corresponding scene lamp of each compensation brightness, the shade in the shadow region for gathering region in the second luminance compensation group Brightness;
According at least one set of second luminance compensation group, determine that current light controls signal.
In one implementation, existing personnel be it is multiple, and the target take a seat mode be decentralized model when, it is described Then corresponding atmospheric reference factor includes: ambient light factor, light factor, is superimposed disturbing factor and apart from dry target lamp regulatory control Disturb factor;
4th determining module 650, is specifically used for
According to the light factor and described apart from disturbing factor, each scene lamp is obtained to each existing personnel institute Locate the compensation brightness in region;
According to the ambient light factor, the light factor, the superposition disturbing factor and described apart from disturbing factor, Using each scene lamp to region locating for the compensation brightness in region locating for each existing personnel and each existing personnel Present intensity determines at least one set third luminance compensation group, wherein each third luminance compensation group includes: at least one compensation Brightness, and the sum of at least one compensation brightness in the third luminance compensation group, respectively with region locating for each existing personnel The sum of second intermediate luminance, in the predetermined luminance range, wherein second intermediate luminance are as follows: area locating for existing personnel The present intensity in domain and scene lamp is currently had turned on to the difference of the compensation brightness in region locating for existing personnel, or are as follows: it is existing The present intensity in region locating for personnel;
According at least one set of third luminance compensation group, determine that current light controls signal.
In one implementation, existing personnel be it is multiple, and the target take a seat mode be scatter-gather mode when; Then corresponding atmospheric reference factor includes: ambient light factor, light factor, superposition disturbing factor, the shadow to the target lamp regulatory control Disturbing factor and apart from disturbing factor;
4th determining module 650, is specifically used for
Determine each discrete areas;
This is determined according to the present intensity in region locating for the included personnel of the discrete areas for each discrete areas The present intensity of discrete areas, as the second brightness;
According to the light factor and described apart from disturbing factor, each scene lamp is obtained to the benefit of each discrete areas Repay brightness;
According to the shadow disturbing factor, using the location information of default shadow region method of determination, each scene lamp with And the location information in region locating for personnel included in each discrete areas, determine each scene lamp in the people of each discrete areas Shadow zone domain;
Each scene lamp is obtained in the shadow lightness in the shadow region of each discrete areas;
According to the ambient light factor, the light factor, the superposition disturbing factor, it is described apart from disturbing factor and The shadow disturbing factor, based on each scene lamp to the compensation brightness of each discrete areas, each discrete areas it is second bright Degree and each scene lamp determine the 4th luminance compensation of at least one set in the shadow lightness in the shadow region of each discrete areas Group;Wherein, every one the 4th luminance compensation group includes: at least one compensation brightness, and at least one in the 4th luminance compensation group The sum of compensation brightness, the sum of the second brightness of each discrete areas and spare shadow brightness, in the predetermined luminance range, The spare shadow brightness are as follows: in each discrete areas, the corresponding scene lamp of each compensation brightness in the 4th luminance compensation group, The sum of shadow lightness in the shadow region of the discrete areas;
According at least one set of 4th luminance compensation group, determine that current light controls signal.
In one implementation, described device further include:
Second obtain module, for described according to the target lamp regulatory control then, the target lamp regulatory control it is then corresponding Atmospheric reference factor and the predetermined luminance range obtain the lamp that user issues after determining current light control signal Light regulation and control instruction, wherein the light regulation and control instruction carries: the beacon light of the scene lamp of required closing and/or unlatching is known;
Generation module, for the scene lamp based on required closing entrained by the light regulation and control instruction and/or unlatching Beacon light is known, and the light adjustment signal of closing and/or the unlatching for controlling the scene lamp to be regulated and controled is generated.
In one implementation, described device further include:
Third obtains module, for it is described according to the target lamp regulatory control then, the target lamp regulatory control then corresponding ring Border reference factor and the predetermined luminance range determine that current light controls signal, and after output, are determining the mesh When region locating for the existing personnel of mark scene does not change;Obtain the new present intensity distribution feelings of the target scene Condition;
5th determining module, for based on region locating for the new present intensity distribution situation and existing personnel Location information, in the new present intensity for determining region locating for existing personnel, if exist and be not located at the predetermined luminance model Enclose interior present intensity;
6th determining module, for working as the new present intensity for determining region locating for all personnel in the predetermined luminance When in range, determines and do not generate new current light control signal for the target scene.
In one implementation, described device further include:
4th obtains module, for it is described according to the target lamp regulatory control then, the target lamp regulatory control then corresponding ring Border reference factor and the predetermined luminance range obtain and the target lamp control before determining current light control signal The corresponding history light controling signal of rule;
5th obtains module, for obtaining the corresponding Luminance Distribution situation of each history light controling signal, as history Luminance Distribution situation;
Matching module, for matching each historical light's distribution situation with the present intensity distribution situation;
In obtained historical light's distribution situation, it is not present and the matched historical light of present intensity distribution situation When distribution situation, the 4th determining module 650 is triggered;
7th determining module, for existing and being distributed feelings with the present intensity in obtained historical light's distribution situation It, will be corresponding with the matched historical light's distribution situation of the present intensity distribution situation when the matched historical light's distribution situation of condition History light controling signal, be determined as current light control signal.
Corresponding to above method embodiment, the embodiment of the invention also provides a kind of electronic equipment, as shown in fig. 7, comprises Processor 710, communication interface 720, memory 730 and communication bus 740, wherein processor 710, communication interface 720, storage Device 7730 completes mutual communication by communication bus 740,
Memory 730, for storing computer program;
Processor 710 when for executing the computer program stored on memory 730, realizes institute of the embodiment of the present invention Any of the above-described lamp light control method provided, lamp light control method may include step:
When determining in target scene the location information and the mesh for obtaining region locating for existing personnel there are when personnel Mark the present intensity distribution situation of scene;
Based on the location information in region locating for the present intensity distribution situation and existing personnel, existing people is determined In the present intensity in region locating for member, if there is the present intensity not being located in predetermined luminance range;
In the presence of determination, based on the location information in region locating for existing personnel, determine that existing personnel are corresponding pre- If taking a seat mode, mode is taken a seat as target;
Based on it is default take a seat mode and default lamp regulatory control then between corresponding relationship and the target take a seat mode, determine The target takes a seat the corresponding target lamp regulatory control of mode then, wherein different default lamp regulatory controls then correspond to different atmospheric references Factor;
According to the target lamp regulatory control then, the target lamp regulatory control then corresponding atmospheric reference factor and it is described preset it is bright Range is spent, determines that current light controls signal, wherein the current light control signal is used for: controlling the target scene Middle scene lamp opens or closes.
In the embodiment of the present invention, in the presence of determining target scene there is not position in the present intensity in region locating for personnel It, need to institute in the present intensity and target scene in the region according to locating for existing personnel when the present intensity of predetermined luminance range There are the modes that takes a seat of personnel, and control opening or closing for the scene lamp in target scene, that is, control which scene lamp is opened, control Make which scene lamp is closed.Wherein, in the embodiment of the present invention, mode is taken a seat according to different, is provided with corresponding different environment The default lamp regulatory control of reference factor then, after the corresponding target of personnel takes a seat mode in the presence of determining target scene, is based on Target takes a seat the corresponding target lamp regulatory control of mode then target lamp regulatory control then corresponding atmospheric reference factor and predetermined luminance range, Opening or closing for the scene lamp in target scene is controlled, more intelligently to control the unlatching of scene lamp or pass in target scene It closes, reaches energy-efficient effect to a certain extent.
The communication bus that above-mentioned electronic equipment is mentioned can be Peripheral Component Interconnect standard (Peripheral Component Interconnect, PCI) bus or expanding the industrial standard structure (Extended Industry Standard Architecture, EISA) bus etc..The communication bus can be divided into address bus, data/address bus, control bus etc..For just It is only indicated with a thick line in expression, figure, it is not intended that an only bus or a type of bus.
Communication interface is for the communication between above-mentioned electronic equipment and other equipment.
Memory may include random access memory (Random Access Memory, RAM), also may include non-easy The property lost memory (Non-Volatile Memory, NVM), for example, at least a magnetic disk storage.Optionally, memory may be used also To be storage device that at least one is located remotely from aforementioned processor.
Above-mentioned processor can be general processor, including central processing unit (Central Processing Unit, CPU), network processing unit (Network Processor, NP) etc.;It can also be digital signal processor (Digital Signal Processing, DSP), it is specific integrated circuit (Application Specific Integrated Circuit, ASIC), existing It is field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device, discrete Door or transistor logic, discrete hardware components.
It is described the embodiment of the invention also provides a kind of computer readable storage medium corresponding to above method embodiment It is stored with computer program in storage medium, realizes that the embodiment of the present invention is provided when the computer program is executed by processor Any of the above-described lamp light control method, which may include step:
When determining in target scene the location information and the mesh for obtaining region locating for existing personnel there are when personnel Mark the present intensity distribution situation of scene;
Based on the location information in region locating for the present intensity distribution situation and existing personnel, existing people is determined In the present intensity in region locating for member, if there is the present intensity not being located in predetermined luminance range;
In the presence of determination, based on the location information in region locating for existing personnel, determine that existing personnel are corresponding pre- If taking a seat mode, mode is taken a seat as target;
Based on it is default take a seat mode and default lamp regulatory control then between corresponding relationship and the target take a seat mode, determine The target takes a seat the corresponding target lamp regulatory control of mode then, wherein different default lamp regulatory controls then correspond to different atmospheric references Factor;
According to the target lamp regulatory control then, the target lamp regulatory control then corresponding atmospheric reference factor and it is described preset it is bright Range is spent, determines that current light controls signal, wherein the current light control signal is used for: controlling the target scene Middle scene lamp opens or closes.
In the embodiment of the present invention, in the presence of determining target scene there is not position in the present intensity in region locating for personnel It, need to institute in the present intensity and target scene in the region according to locating for existing personnel when the present intensity of predetermined luminance range There are the modes that takes a seat of personnel, and control opening or closing for the scene lamp in target scene, that is, control which scene lamp is opened, control Make which scene lamp is closed.Wherein, in the embodiment of the present invention, mode is taken a seat according to different, is provided with corresponding different environment The default lamp regulatory control of reference factor then, after the corresponding target of personnel takes a seat mode in the presence of determining target scene, is based on Target takes a seat the corresponding target lamp regulatory control of mode then target lamp regulatory control then corresponding atmospheric reference factor and predetermined luminance range, Opening or closing for the scene lamp in target scene is controlled, more intelligently to control the unlatching of scene lamp or pass in target scene It closes, reaches energy-efficient effect to a certain extent.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is all made of relevant mode and describes, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for system reality For applying example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the method Part explanation.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all Any modification, equivalent replacement, improvement and so within the spirit and principles in the present invention, are all contained in protection scope of the present invention It is interior.

Claims (22)

1. a kind of lamp light control method, which is characterized in that the described method includes:
When determining in target scene the location information for obtaining region locating for existing personnel there are when personnel and the target field The present intensity distribution situation of scape;
Based on the location information in region locating for the present intensity distribution situation and existing personnel, existing personnel institute is determined In the present intensity for locating region, if there is the present intensity not being located in predetermined luminance range;
In the presence of determination, based on the location information in region locating for existing personnel, determines that existing personnel are corresponding and preset just Seat mode takes a seat mode as target;
Based on it is default take a seat mode and default lamp regulatory control then between corresponding relationship and the target take a seat mode, determine described in Target takes a seat the corresponding target lamp regulatory control of mode then, wherein different default lamp regulatory controls then correspond to different atmospheric reference factors;
According to the target lamp regulatory control then, the target lamp regulatory control then corresponding atmospheric reference factor and the predetermined luminance model It encloses, determines that current light controls signal, wherein the current light control signal is used for: controlling the target scene midfield Scape lamp opens or closes.
2. the target mode of taking a seat is the method according to claim 1, wherein existing personnel are one Single player mode, then corresponding atmospheric reference factor includes: that ambient light factor, light factor and superposition are dry to the target lamp regulatory control Disturb factor;
It is described according to the target lamp regulatory control then, the target lamp regulatory control then corresponding atmospheric reference factor and it is described preset it is bright Range is spent, determines the step of current light controls signal, comprising:
According to the light factor, each scene lamp is obtained to the compensation brightness in region locating for existing personnel;
According to the ambient light factor, the light factor and the superposition disturbing factor, using each scene lamp to being deposited The present intensity in region locating for the compensation brightness in the region locating for personnel and existing personnel determines the first brightness of at least one set Compensation group, wherein every one first luminance compensation group includes: at least one compensation brightness, and in the first luminance compensation group at least The sum of one compensation brightness and the first intermediate luminance and, in the predetermined luminance range, wherein first intermediate luminance Are as follows: the present intensity in region locating for existing personnel with currently to have turned on scene lamp bright to the compensation in region locating for existing personnel The difference of degree, or are as follows: the present intensity in region locating for existing personnel;
Based at least one set of first luminance compensation group, determine that current light controls signal.
3. according to the method described in claim 2, it is characterized in that, it is described be based at least one set of first luminance compensation group, Determine the step of current light controls signal, comprising:
From at least one set of first luminance compensation group, one group of first brightness of the minimum number of included compensation brightness is determined Compensation group, as first object luminance compensation group;
Based on the first object luminance compensation group, determine that current light controls signal.
4. according to the method described in claim 2, it is characterized in that, described obtain each scene lamp to the personnel institute to be utilized The step of locating the compensation brightness of position, comprising:
Obtain the location information and intensity of illumination of each scene lamp;
For each scene lamp, the location information in region locating for location information, existing personnel based on the scene lamp and should The intensity of illumination of scene lamp determines the scene lamp to the compensation brightness in region locating for existing personnel.
5. the method according to claim 1, wherein existing personnel are multiple, and the target takes a seat mode When for Assembling pattern, then corresponding atmospheric reference factor includes: ambient light factor, light factor, superposition to the target lamp regulatory control Disturbing factor and shadow disturbing factor;
It is described according to the target lamp regulatory control then, the target lamp regulatory control then corresponding atmospheric reference factor and it is described preset it is bright Range is spent, determines the step of current light controls signal, comprising:
Based on the present intensity in region locating for existing personnel, the brightness in region is gathered described in determination, as the first brightness;
According to the light factor, each scene lamp is obtained to the compensation brightness for gathering region;
According to the shadow disturbing factor, default shadow region method of determination, the location information of each scene lamp and every are utilized The location information in region locating for personnel present in one determines each scene lamp in the shadow region for gathering region;
Each scene lamp is obtained in the shadow lightness in the shadow region for gathering region;
According to the ambient light factor, the light factor, the superposition disturbing factor and the shadow disturbing factor, utilize Each scene lamp is to the compensation brightness for gathering region, first brightness for gathering region and each scene lamp described Gather the shadow lightness in the shadow region in region, determines the second luminance compensation group of at least one set, wherein every one second luminance compensation Group includes: at least one compensation brightness, and the sum of at least one compensation brightness in the second luminance compensation group, described gathers region The first brightness and shadow brightness to be utilized sum, in the predetermined luminance range, the shadow brightness to be utilized are as follows: should The corresponding scene lamp of each compensation brightness, the shadow lightness in the shadow region for gathering region in second luminance compensation group;
According at least one set of second luminance compensation group, determine that current light controls signal.
6. the method according to claim 1, wherein existing personnel are multiple, and the target takes a seat mode When for decentralized model, then corresponding atmospheric reference factor includes: ambient light factor, light factor, superposition to the target lamp regulatory control Disturbing factor and apart from disturbing factor;
It is described according to the target lamp regulatory control then, the target lamp regulatory control then corresponding atmospheric reference factor and it is described preset it is bright Range is spent, determines the step of current light controls signal, comprising:
According to the light factor and described apart from disturbing factor, each scene lamp is obtained to area locating for each existing personnel The compensation brightness in domain;
According to the ambient light factor, the light factor, the superposition disturbing factor and described apart from disturbing factor, utilize Each scene lamp is current to region locating for the compensation brightness in region locating for each existing personnel and each existing personnel Brightness determines at least one set third luminance compensation group, wherein each third luminance compensation group includes: at least one compensation brightness, And the sum of at least one compensation brightness in the third luminance compensation group, respectively with second of region locating for each existing personnel in Between brightness sum, in the predetermined luminance range, wherein second intermediate luminance are as follows: work as in region locating for existing personnel Preceding brightness and scene lamp is currently had turned on to the difference of the compensation brightness in region locating for existing personnel, or are as follows: existing personnel institute Locate the present intensity in region;
According at least one set of third luminance compensation group, determine that current light controls signal.
7. the method according to claim 1, wherein existing personnel are multiple, and the target takes a seat mode When for scatter-gather mode;The target lamp regulatory control then corresponding atmospheric reference factor include: ambient light factor, light factor, It is superimposed disturbing factor, shadow disturbing factor and apart from disturbing factor;
It is described according to the target lamp regulatory control then, the target lamp regulatory control then corresponding atmospheric reference factor and it is described preset it is bright Range is spent, determines the step of current light controls signal, comprising:
Determine each discrete areas;
The dispersion is determined according to the present intensity in region locating for the included personnel of the discrete areas for each discrete areas The present intensity in region, as the second brightness;
According to the light factor and described apart from disturbing factor, it is bright to the compensation of each discrete areas to obtain each scene lamp Degree;
According to the shadow disturbing factor, default shadow region method of determination, the location information of each scene lamp and every are utilized The location information in region locating for personnel included in one discrete areas determines each scene lamp in the shadow area of each discrete areas Domain;
Each scene lamp is obtained in the shadow lightness in the shadow region of each discrete areas;
According to the ambient light factor, the light factor, the superposition disturbing factor, described apart from disturbing factor and described Shadow disturbing factor, based on each scene lamp to the second brightness of the compensation brightness, each discrete areas of each discrete areas with And each scene lamp determines the 4th luminance compensation group of at least one set in the shadow lightness in the shadow region of each discrete areas;Its In, every one the 4th luminance compensation group includes: at least one compensation brightness, and at least one compensation is bright in the 4th luminance compensation group The sum of degree, the sum of the second brightness of each discrete areas and spare shadow brightness, it is described standby in the predetermined luminance range With shadow brightness are as follows: in each discrete areas, the corresponding scene lamp of each compensation brightness in the 4th luminance compensation group, in this point Dissipate the sum of the shadow lightness in the shadow region in region;
According at least one set of 4th luminance compensation group, determine that current light controls signal.
8. method according to claim 1-7, which is characterized in that at described according to the target lamp regulatory control Then, the target lamp regulatory control then corresponding atmospheric reference factor and the predetermined luminance range, determines current light control After the step of signal, the method also includes:
Obtain the light regulation and control instruction that user issues, wherein the light regulation and control instruction carries: required closing and/or unlatching The beacon light of scene lamp is known;
The beacon light of scene lamp based on required closing entrained by the light regulation and control instruction and/or unlatching is known, and generates for controlling Make the light adjustment signal of closing and/or the unlatching of the scene lamp to be regulated and controled.
9. method according to claim 1-7, which is characterized in that it is described according to the target lamp regulatory control then, The target lamp regulatory control then corresponding atmospheric reference factor and the predetermined luminance range determine current light control letter Number, and after the step of exporting, the method also includes:
When determining that region locating for the existing personnel of the target scene does not change;Obtain the new of the target scene Present intensity distribution situation;
Based on the location information in region locating for the new present intensity distribution situation and existing personnel, existing people is determined In the new present intensity in region locating for member, if there is the present intensity not being located in the predetermined luminance range;
When determining that the new present intensity in region locating for all personnel is in the predetermined luminance range, determines and be not directed to institute It states target scene and generates new current light control signal.
10. method according to claim 1-7, which is characterized in that it is described according to the target lamp regulatory control then, The target lamp regulatory control then corresponding atmospheric reference factor and the predetermined luminance range determine that current light controls signal The step of before, the method also includes:
It obtains and the target lamp regulatory control then corresponding history light controling signal;
The corresponding Luminance Distribution situation of each history light controling signal is obtained, as historical light's distribution situation;
Each historical light's distribution situation is matched with the present intensity distribution situation;
In obtained historical light's distribution situation, there is no be distributed with the matched historical light of the present intensity distribution situation When situation, execute it is described according to the target lamp regulatory control then, the target lamp regulatory control then corresponding atmospheric reference factor and institute Predetermined luminance range is stated, determines the step of current light controls signal;
In obtained historical light's distribution situation, exists and be distributed feelings with the matched historical light of the present intensity distribution situation When condition, will history light controling signal corresponding with the matched historical light's distribution situation of the present intensity distribution situation, really It is set to current light control signal.
11. a kind of Light Control Unit, which is characterized in that described device includes:
First obtains module, for when determining in target scene the position for obtaining region locating for existing personnel there are when personnel The present intensity distribution situation of information and the target scene;
First determining module, for the position letter based on region locating for the present intensity distribution situation and existing personnel It ceases, in the present intensity for determining region locating for existing personnel, if there is the present intensity not being located in predetermined luminance range;
Second determining module, in the presence of determining, based on the location information in region locating for existing personnel, determine present in Corresponding preset of personnel takes a seat mode, takes a seat mode as target;
Third determining module, for based on it is default take a seat mode and default lamp regulatory control then between corresponding relationship and the target Mode is taken a seat, determines that the target takes a seat the corresponding target lamp regulatory control of mode then, wherein different default lamp regulatory controls then corresponds to not Same atmospheric reference factor;
4th determining module, for according to the target lamp regulatory control then, the target lamp regulatory control then corresponding atmospheric reference factor And the predetermined luminance range, determine that current light controls signal, wherein the current light control signal is used for: control Make opening or closing for scene lamp in the target scene.
12. device according to claim 11, which is characterized in that existing personnel are one, and the target takes a seat mode For single player mode, then corresponding atmospheric reference factor includes: ambient light factor, light factor and superposition to the target lamp regulatory control Disturbing factor;
4th determining module, comprising:
Obtaining unit, for it is bright to the compensation in region locating for existing personnel to obtain each scene lamp according to the light factor Degree;
First determination unit, for utilizing according to the ambient light factor, the light factor and the superposition disturbing factor Each scene lamp determines the present intensity in region locating for the compensation brightness in region locating for existing personnel and existing personnel At least one set of first luminance compensation group, wherein every one first luminance compensation group includes: at least one compensation brightness, and this first In luminance compensation group the sum of at least one compensation brightness and the first intermediate luminance and, in the predetermined luminance range, wherein First intermediate luminance are as follows: the present intensity in region locating for existing personnel and currently have turned on scene lamp to existing personnel institute Locate the difference of the compensation brightness in region, or are as follows: the present intensity in region locating for existing personnel;
Second determination unit determines that current light controls signal for being based at least one set of first luminance compensation group.
13. device according to claim 12, which is characterized in that second determination unit is specifically used for
From at least one set of first luminance compensation group, one group of first brightness of the minimum number of included compensation brightness is determined Compensation group, as first object luminance compensation group;
Based on the first object luminance compensation group, determine that current light controls signal.
14. device according to claim 12, which is characterized in that the obtaining unit is specifically used for obtaining each scene The location information and intensity of illumination of lamp;
For each scene lamp, the location information in region locating for location information, existing personnel based on the scene lamp and should The intensity of illumination of scene lamp determines the scene lamp to the compensation brightness in region locating for existing personnel.
15. device according to claim 11, which is characterized in that existing personnel are multiple, and the target takes a seat mould When formula is Assembling pattern, then corresponding atmospheric reference factor includes: ambient light factor, light factor, folds the target lamp regulatory control Add disturbing factor and shadow disturbing factor;
4th determining module, is specifically used for
Based on the present intensity in region locating for existing personnel, the brightness in region is gathered described in determination, as the first brightness;
According to the light factor, each scene lamp is obtained to the compensation brightness for gathering region;
According to the shadow disturbing factor, default shadow region method of determination, the location information of each scene lamp and every are utilized The location information in region locating for personnel present in one determines each scene lamp in the shadow region for gathering region;
Each scene lamp is obtained in the shadow lightness in the shadow region for gathering region;
According to the ambient light factor, the light factor, the superposition disturbing factor and the shadow disturbing factor, utilize Each scene lamp is to the compensation brightness for gathering region, first brightness for gathering region and each scene lamp described Gather the shadow lightness in the shadow region in region, determines the second luminance compensation group of at least one set, wherein every one second luminance compensation Group includes: at least one compensation brightness, and the sum of at least one compensation brightness in the second luminance compensation group, described gathers region The first brightness and shadow brightness to be utilized sum, in the predetermined luminance range, the shadow brightness to be utilized are as follows: should The corresponding scene lamp of each compensation brightness, the shadow lightness in the shadow region for gathering region in second luminance compensation group;
According at least one set of second luminance compensation group, determine that current light controls signal.
16. device according to claim 11, which is characterized in that existing personnel are multiple, and the target takes a seat mould When formula is decentralized model, then corresponding atmospheric reference factor includes: ambient light factor, light factor, folds the target lamp regulatory control Add disturbing factor and apart from disturbing factor;
4th determining module, is specifically used for
According to the light factor and described apart from disturbing factor, each scene lamp is obtained to area locating for each existing personnel The compensation brightness in domain;
According to the ambient light factor, the light factor, the superposition disturbing factor and described apart from disturbing factor, utilize Each scene lamp is current to region locating for the compensation brightness in region locating for each existing personnel and each existing personnel Brightness determines at least one set third luminance compensation group, wherein each third luminance compensation group includes: at least one compensation brightness, And the sum of at least one compensation brightness in the third luminance compensation group, respectively with second of region locating for each existing personnel in Between brightness sum, in the predetermined luminance range, wherein second intermediate luminance are as follows: work as in region locating for existing personnel Preceding brightness and scene lamp is currently had turned on to the difference of the compensation brightness in region locating for existing personnel, or are as follows: existing personnel institute Locate the present intensity in region;
According at least one set of third luminance compensation group, determine that current light controls signal.
17. device according to claim 11, which is characterized in that existing personnel are multiple, and the target takes a seat mould When formula is scatter-gather mode;The target lamp regulatory control then corresponding atmospheric reference factor include: ambient light factor, light because Element is superimposed disturbing factor, shadow disturbing factor and apart from disturbing factor;
4th determining module, is specifically used for
Determine each discrete areas;
The dispersion is determined according to the present intensity in region locating for the included personnel of the discrete areas for each discrete areas The present intensity in region, as the second brightness;
According to the light factor and described apart from disturbing factor, it is bright to the compensation of each discrete areas to obtain each scene lamp Degree;
According to the shadow disturbing factor, default shadow region method of determination, the location information of each scene lamp and every are utilized The location information in region locating for personnel included in one discrete areas determines each scene lamp in the shadow area of each discrete areas Domain;
Each scene lamp is obtained in the shadow lightness in the shadow region of each discrete areas;
According to the ambient light factor, the light factor, the superposition disturbing factor, described apart from disturbing factor and described Shadow disturbing factor, based on each scene lamp to the second brightness of the compensation brightness, each discrete areas of each discrete areas with And each scene lamp determines the 4th luminance compensation group of at least one set in the shadow lightness in the shadow region of each discrete areas;Its In, every one the 4th luminance compensation group includes: at least one compensation brightness, and at least one compensation is bright in the 4th luminance compensation group The sum of degree, the sum of the second brightness of each discrete areas and spare shadow brightness, it is described standby in the predetermined luminance range With shadow brightness are as follows: in each discrete areas, the corresponding scene lamp of each compensation brightness in the 4th luminance compensation group, in this point Dissipate the sum of the shadow lightness in the shadow region in region;
According at least one set of 4th luminance compensation group, determine that current light controls signal.
18. the described in any item devices of 1-17 according to claim 1, which is characterized in that described device further include:
Second obtains module, for described according to the target lamp regulatory control then, the target lamp regulatory control then corresponding environment Reference factor and the predetermined luminance range obtain the light tune that user issues after determining current light control signal Control instruction, wherein the light regulation and control instruction carries: the beacon light of the scene lamp of required closing and/or unlatching is known;
Generation module, for the beacon light based on required closing entrained by the light regulation and control instruction and/or the scene lamp of unlatching Know, generates the light adjustment signal of closing and/or the unlatching for controlling the scene lamp to be regulated and controled.
19. the described in any item devices of 1-17 according to claim 1, which is characterized in that described device further include:
Third obtains module, for it is described according to the target lamp regulatory control then, the target lamp regulatory control then corresponding environment ginseng Factor and the predetermined luminance range are examined, determines that current light controls signal, and after output, determining the target field When region locating for the existing personnel of scape does not change;Obtain the new present intensity distribution situation of the target scene;
5th determining module, for the position based on region locating for the new present intensity distribution situation and existing personnel Information, in the new present intensity for determining region locating for existing personnel, if exist and be not located in the predetermined luminance range Present intensity;
6th determining module, for working as the new present intensity for determining region locating for all personnel in the predetermined luminance range When interior, determine and do not generate new current light control signal for the target scene.
20. the described in any item devices of 1-17 according to claim 1, which is characterized in that described device further include:
4th obtains module, for it is described according to the target lamp regulatory control then, the target lamp regulatory control then corresponding environment ginseng Factor and the predetermined luminance range are examined, before determining current light control signal, is obtained with the target lamp regulatory control then Corresponding history light controling signal;
5th obtains module, for obtaining the corresponding Luminance Distribution situation of each history light controling signal, as historical light Distribution situation;
Matching module, for matching each historical light's distribution situation with the present intensity distribution situation;
In obtained historical light's distribution situation, there is no be distributed with the matched historical light of the present intensity distribution situation When situation, the 4th determining module is triggered;
7th determining module, for existing and the present intensity distribution situation in obtained historical light's distribution situation When the historical light's distribution situation matched, corresponding with the matched historical light's distribution situation of the present intensity distribution situation it will go through History light controling signal is determined as current light control signal.
21. a kind of electronic equipment, which is characterized in that it is characterised in that it includes processor, communication interface, memory and communication are total Line, wherein processor, communication interface, memory complete mutual communication by bus;Memory, for storing computer Program;Processor realizes any signal light control side claim 1-10 for executing the program stored on memory Method.
22. a kind of computer readable storage medium, which is characterized in that computer program is stored in the storage medium, it is described Claim 1-10 any lamp light control method is realized when computer program is executed by processor.
CN201811114160.3A 2017-12-29 2018-09-25 Light control method and device Active CN109996379B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201711484769 2017-12-29
CN2017114847695 2017-12-29

Publications (2)

Publication Number Publication Date
CN109996379A true CN109996379A (en) 2019-07-09
CN109996379B CN109996379B (en) 2021-02-23

Family

ID=67128842

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811114160.3A Active CN109996379B (en) 2017-12-29 2018-09-25 Light control method and device

Country Status (1)

Country Link
CN (1) CN109996379B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111372363A (en) * 2020-04-09 2020-07-03 珠海格力电器股份有限公司 Control method and device of lamp, storage medium and lamp
CN111800921A (en) * 2020-07-07 2020-10-20 广州彩熠灯光股份有限公司 Stage lighting control method, medium and electronic device
CN113329545A (en) * 2021-05-25 2021-08-31 深圳市欧瑞博科技股份有限公司 Intelligent lighting method and device, intelligent control device and storage medium
CN114554660A (en) * 2022-01-13 2022-05-27 广东睿住智能科技有限公司 Light control method and device, electronic equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140285113A1 (en) * 2013-03-22 2014-09-25 International Mobile Iot Corp. Illumination control system
WO2015104603A2 (en) * 2014-01-07 2015-07-16 Koninklijke Philips N.V. Lighting commissioning system using position sensitive detectors
CN105323905A (en) * 2015-05-29 2016-02-10 颜世睿 Regional lamplight wake-up method and apparatus for waking up single people
CN105357816A (en) * 2015-10-27 2016-02-24 王晶 Passive human body sensor network-based seamless intelligent lighting system and method
US20160286630A1 (en) * 2014-07-29 2016-09-29 Lumifi, Inc. Automated and Pre-configured Set Up of Light Scenes
US9655214B1 (en) * 2016-02-11 2017-05-16 Ketra, Inc. Device, system and method for controlling visual content loaded into a grouped set of illumination devices configured within a wireless network
CN206290996U (en) * 2016-12-15 2017-06-30 宁波高新区申特科技有限公司 A kind of energy-conservation sensitively senses lamp

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140285113A1 (en) * 2013-03-22 2014-09-25 International Mobile Iot Corp. Illumination control system
WO2015104603A2 (en) * 2014-01-07 2015-07-16 Koninklijke Philips N.V. Lighting commissioning system using position sensitive detectors
US20160286630A1 (en) * 2014-07-29 2016-09-29 Lumifi, Inc. Automated and Pre-configured Set Up of Light Scenes
CN105323905A (en) * 2015-05-29 2016-02-10 颜世睿 Regional lamplight wake-up method and apparatus for waking up single people
CN105357816A (en) * 2015-10-27 2016-02-24 王晶 Passive human body sensor network-based seamless intelligent lighting system and method
US9655214B1 (en) * 2016-02-11 2017-05-16 Ketra, Inc. Device, system and method for controlling visual content loaded into a grouped set of illumination devices configured within a wireless network
CN206290996U (en) * 2016-12-15 2017-06-30 宁波高新区申特科技有限公司 A kind of energy-conservation sensitively senses lamp

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
ASHISH PANDHARIPANDE: "《Daylight integrated illumination control of LED systems based on enhanced presence sensing》", 《ENERGY AND BUILDINGS》 *
孙文响: "《基于用户行为的光环境智能控制系统研究》", 《中国优秀硕士学位论文全文数据库》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111372363A (en) * 2020-04-09 2020-07-03 珠海格力电器股份有限公司 Control method and device of lamp, storage medium and lamp
CN111800921A (en) * 2020-07-07 2020-10-20 广州彩熠灯光股份有限公司 Stage lighting control method, medium and electronic device
CN113329545A (en) * 2021-05-25 2021-08-31 深圳市欧瑞博科技股份有限公司 Intelligent lighting method and device, intelligent control device and storage medium
CN113329545B (en) * 2021-05-25 2023-08-29 深圳市欧瑞博科技股份有限公司 Intelligent lighting method and device, intelligent control device and storage medium
CN114554660A (en) * 2022-01-13 2022-05-27 广东睿住智能科技有限公司 Light control method and device, electronic equipment and storage medium
CN114554660B (en) * 2022-01-13 2024-01-26 广东睿住智能科技有限公司 Light control method, device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN109996379B (en) 2021-02-23

Similar Documents

Publication Publication Date Title
CN109996379A (en) A kind of lamp light control method and device
CN108268595B (en) A kind of building operating facilities status monitoring and Visualized Analysis System based on Internet of Things
CN105580051B (en) Picture catching feedback
CN104113688B (en) A kind of image processing method and its electronic equipment
CN109218619A (en) Image acquiring method, device and system
Kim et al. Real-time daylight glare control using a low-cost, window-mounted HDRI sensor
CN109951936B (en) Illumination control system and method capable of being intelligently adjusted according to different application scenes
CN103957354B (en) The method and apparatus that a kind of mobile terminal and its guidance are taken pictures
WO2018200685A4 (en) Methods and systems for an automated design, fulfillment, deployment and operation platform for lighting installations
CN109583285A (en) Object identifying method
WO2018161289A1 (en) Depth-based control method, depth-based control device and electronic device
CN104168468A (en) White-balance adjusting method and device
CN107228625A (en) Three-dimensional rebuilding method, device and equipment
CN108024105A (en) Image color adjusting method, device, electronic equipment and storage medium
CN106991706A (en) One kind shoots calibration method and system
CN109565577A (en) Colour correcting apparatus, color calibration system, colour correction hologram, color correcting method and program
CN108875759A (en) A kind of image processing method, device and server
TW202036091A (en) Image processing system and image processing method
Inoue et al. Tracking Robustness and Green View Index Estimation of Augmented and Diminished Reality for Environmental Design
CN104184941A (en) Monitoring system
CN113747640A (en) Intelligent central control method and system for digital exhibition hall lamplight
CN110032927A (en) A kind of face identification method
CN107145217A (en) Intelligent interactive system and intelligent interactive method
CN103969029B (en) A kind of dazzle simple method for testing bacterial resistance based on digital camera
CN108510541A (en) A kind of information adjusting method, electronic equipment and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant