Intelligent lighting control method and desk lamp

By analyzing the real-time and historical data of the smart desk lamps, and automatically adjusting the lights to adapt to students' sitting postures and behaviors, the problem that existing smart desk lamps cannot effectively adjust the lights, achieving better lighting supply and student health protection.

CN119521502BActive Publication Date: 2025-04-18SHENZHEN DEEJOY LIGHTING TECH LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202510075627.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-01-17
Publication Date
2025-04-18
Estimated Expiration
2045-01-17

AI Technical Summary

Technical Problem

Existing smart desk lamps cannot achieve comprehensive environmental perception and user behavior recognition, and cannot adjust the light according to changes in students' sitting posture, resulting in light occlusion and shadow problems, affecting students' health.

Method used

By collecting real-time data and historical data in the preset area, analyzing the position and sitting status of the target person, generating light control reports and light source adjustment reports, and automatically adjusting the light source of the lamp to reduce the size of the shadow area.

Benefits of technology

It realizes automatic adjustment of lights based on students' historical learning status and real-time behavior, provides adaptive lighting supply, reduces shadow areas, improves the illumination effect of lamps, and ensures students' physical health.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119521502B_ABST
    Figure CN119521502B_ABST
Patent Text Reader

Abstract

The present invention discloses a lighting intelligent control method, comprising the following steps: setting a monitoring area around a target desktop; judging the relative position of a target person and the monitoring area, obtaining real-time light intensity data in the monitoring area, and generating a lighting control report; inferring the lighting demand of the target person, and adjusting the light source of the lamp according to the lighting demand; the present invention first determines the desktop use area according to the historical learning status of the students, controls the switch of the lamp by sensing the ambient light intensity, and provides the students with adaptive lighting supply; then monitors the students' physical behavior in real time, and infers the shadow area in the desktop use area; when the normal shadow area is large, adjusts the irradiation position and irradiation angle of the lamp to reduce the size of the shadow area, so as to improve the irradiation effect of the lamp and provide the students with a more comfortable learning environment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of intelligent management and control, and in particular to a lighting intelligent control method. Background Art

[0002] Most existing desk lamps only have simple switch and brightness adjustment functions, lacking intelligent and automatic control. Although some intelligent desk lamps have automatic adjustment functions, they often rely on a single sensor, such as a photoresistor, and cannot achieve comprehensive environmental perception and user behavior recognition, and cannot adjust the light according to the changes in students' sitting postures; when students' sitting postures change significantly, the light of the desk lamp will be blocked to a large extent, and shadows will be formed in the desk learning area, which will harm students' health. To solve this problem, a lighting intelligent control method is proposed. Summary of the invention

[0003] The technical problem to be solved by the present invention is: how to solve the problem that the existing safety protection system has a single protection type, resulting in poor protection effect and bringing certain impacts on the use of the safety protection system, and provides a lighting intelligent control method.

[0004] The present invention solves the above technical problems through the following technical solutions, and the present invention comprises the following steps:

[0005] S1. Collecting real-time data information in a preset area, wherein the real-time data information includes real-time light intensity data;

[0006] S2, retrieve historical data information in a preset area, and use preset rules to set a monitoring area around the target desktop;

[0007] S3. Determine the relative position of the target person and the monitoring area by analyzing the real-time data, and then obtain the real-time light intensity data in the monitoring area; when the target person is within the monitoring area, generate a light control report;

[0008] S4. Infer the lighting requirements of the target person based on the analysis of the real-time data information, adjust the light source of the lamp according to the lighting requirements, and generate a light source adjustment report;

[0009] S5. Analyze the real-time data to determine the abnormal sitting posture of the target person, and generate a warning report when an abnormal sitting posture is found;

[0010] S6. Receive and output lighting control reports, light source adjustment reports and warning reports.

[0011] Preferably, the historical data information includes historical image data, and the specific processing process of S2 is:

[0012] Retrieve historical image data within a preset area to obtain multiple historical usage locations of lamps;

[0013] Infer the desktop usage area G using preset rules;

[0014] The default rules are:

[0015] Get the historical usage location of a lamp at will;

[0016] Obtain the contour line A1 of the light outlet of the lamp, and mark the geometric center point B1 of the contour line A1;

[0017] Draw a virtual line A2 through point B1 that is perpendicular to the plane where contour line A1 is located;

[0018] Collect the intersection of the virtual line A2 and the desktop to obtain the light reference point C of the lamp;

[0019] Read multiple historical use positions, and obtain the light reference point of the lamp at each historical use position, which are recorded as C1, C2, C3, ..., Cn respectively;

[0020] Randomly obtain several reference points, and make a standard circle with each reference point as the center and a preset size as the radius, and merge multiple standard circles to generate a desktop use area G;

[0021] Get the use area G, use the preset size Dr as the radius, and make a standard circle on the ground with the geometric center of the use area G as the origin to generate the monitoring area.

[0022] Preferably, the real-time data information also includes real-time size data, and the specific processing process of S3 is:

[0023] Read the monitoring area and obtain the geometric center point Ce1 of the monitoring area;

[0024] Acquire real-time image data of the target person, and mark the contact point between the target person and the ground to obtain the marked point Ce2;

[0025] Collect the dimension data Lr of the center point Ce1 and the marking point Ce2;

[0026] When Lr≤Dr, collect the real-time light intensity data W in the monitoring area;

[0027] When the light intensity data W is less than the preset threshold value Q1, a light control report for turning on the light is generated.

[0028] Preferably, the specific processing process of S4 is:

[0029] Read the usage area G of the desktop;

[0030] Collect real-time image data in the preset area and obtain the shadow area G` in the use area G;

[0031] The desktop usage area G is divided into a plurality of rectangular units according to a preset unit size;

[0032] Count the number of complete rectangular units Dz1 and the number of incomplete rectangular units Dz2 in the use area G;

[0033] Then count the number of complete rectangular units Dc1 and the number of incomplete rectangular units Dc2 in the shadow area G';

[0034] Calculate the light blocking degree E1 in the desktop usage area. The specific calculation process is:

[0035] ;

[0036] When the light blocking degree E1>preset threshold value Q1, a light source adjustment report is generated, and the light source of the lamp is controlled to move away from the target person and lower the height.

[0037] Preferably, the real-time data information includes real-time size data, and the acquisition process of the shadow area G' is:

[0038] Collect real-time image data in the preset area to obtain the light source position of the lamp and the position of the target person;

[0039] Get the location of the desktop usage area G and the location of the light source of the lamp;

[0040] Collect the contour line A3 of the light source of the lamp, use the contour line A4 of the desktop use area G as the bottom surface, and use the contour line A3 of the light source of the lamp as the top surface to create a spatial geometric body F;

[0041] Get the target person's body position and randomly get a detection point T1 on the target person's body;

[0042] A virtual horizontal plane Ar is made through the detection point T1, and a common area Gr between the virtual horizontal plane Ar and the spatial geometric body F is obtained;

[0043] Obtain the point T2 with the largest distance from the public area Gr boundary line to the detection point T1 and the point T3 with the smallest distance from the public area Gr boundary line to the detection point T1;

[0044] Collect and detect the dimension data Le1 between point T1 and point T2 and the dimension data Le2 between point T2 and point T3;

[0045] When Le1<Le2, it indicates that there is a light blocking object in the desktop usage area G, and the light source position is read;

[0046] A plurality of virtual tangent lines tangent to the body part where the detection point T1 is located are made through the geometric center point of the light source, and the intersection points of the plurality of virtual tangent lines and the desktop use area G are Ge1, Ge2, Ge3, ..., Gen respectively;

[0047] Connecting a plurality of intersection points Ge1, Ge2, Ge3, ..., Gen in sequence to form a boundary line of the shadow area G';

[0048] The boundary line of the shadow area G' divides the desktop usage area G into two sub-areas, and the sub-area close to the target person is marked to generate the shadow area G'.

[0049] Preferably, the process of generating the light source adjustment report further includes:

[0050] Acquire a desktop usage area G and a body part of a target person located in the desktop usage area G;

[0051] Get the limb shadow contour line;

[0052] Randomly obtain multiple measurement points on the shadow contour line;

[0053] Get the light source position of the lamp;

[0054] A measurement point V1 is randomly selected, and the first virtual reference line is made by connecting the measurement point and the geometric center of the light source;

[0055] A vertical line is made through the geometric center of the light source, the intersection of the vertical line and the desktop is V2, and the second virtual reference line is generated by connecting point V1 and point V2;

[0056] The intersection point of the first virtual reference line and the limb part is V2;

[0057] Collect the distance LV1 between the measuring point V1 and the point V2; then collect the dimension data LV2 of the limb part at the intersection point V2 along the direction of the second virtual straight line;

[0058] Use the formula E2=LV1 / LV2 to calculate the shadow size ratio;

[0059] When the shadow size ratio E2> the preset threshold Q2, the measurement point V1 is defined as an abnormal point;

[0060] Calculate the shadow size ratios of multiple measurement points respectively, count the number of measurement points H1, and count the number of abnormal points H2;

[0061] Use the formula E3=H2 / H1 to calculate the abnormal point ratio;

[0062] When the abnormal point ratio E3 is greater than the preset threshold value Q3, a light source adjustment report is generated, and the light source of the lamp is controlled to rise or move toward the direction of the limb shadow.

[0063] Preferably, the process of generating the light source adjustment report further includes:

[0064] The distance between the light source and the desktop is collected. When the distance is less than the preset value, a light source adjustment report is generated and the light source of the lamp is controlled to reduce the brightness.

[0065] Preferably, the specific processing of S5 is:

[0066] A spatial rectangular coordinate system is established with the preset size as the unit, the vertical direction as the Z axis, and any two mutually perpendicular lines in the plane where the desktop is located as the X axis and the Y axis;

[0067] Get the light blocking length E1 in the desktop usage area G;

[0068] When the light shielding degree E1>preset threshold value Q1, the shadow contour line of the shadow area G' in the desktop use area G is obtained;

[0069] Get the geometric midpoint M1 of the light source and the coordinates of point M1;

[0070] A point M2 is randomly collected on the shadow contour line of the shadow area G';

[0071] Get the direction vector from point M2 to point M1 ;

[0072] Get the vertical upward direction vector ;

[0073] calculate and The vector angle θ between them is calculated as follows:

[0074] ;

[0075] When the vector angle θ is less than the preset threshold value Q4, a warning report is generated.

[0076] Preferably, the generation process of the warning report further includes:

[0077] Read the geometric midpoint M1 and point M2 of the light source;

[0078] Connect the geometric midpoint M1 and the point M2 to make a first type reference line;

[0079] A first type of reference surface is made perpendicular to the plane where the table top is located, and the first type of reference straight line is located within the first type of reference surface;

[0080] Obtaining a boundary line J between the first type of reference surface and the light source of the lamp;

[0081] Get the two endpoints of the intersection line J to be M3 and M4 respectively;

[0082] Acquire the coordinates of the end point M3 and the coordinates of the end point M4 to acquire the dimension data Lm1 from the end point M3 to the end point M4;

[0083] Read the ordinates of endpoints M3 and M4 respectively, and select the endpoint with the larger ordinate as the calculation point M`;

[0084] Read the coordinates of the calculation point M' and the coordinates of the geometric midpoint M1 of the light source to obtain the distance dimension Lm2 between the calculation point M' and the geometric midpoint M1 of the light source;

[0085] Calculate the light source irradiation point deviation E4, the specific calculation process is:

[0086] E4=Lm2 / Lm1;

[0087] When the deviation E4> preset threshold Q5, the direction vector Change the direction vector from point M2 to the calculated point M`.

[0088] A desk lamp comprises a memory and a processor, wherein the memory stores a computer program, and the processor implements the above-mentioned method steps when executing the computer program.

[0089] Compared with the prior art, the present invention has the following advantages: the present invention first determines the desktop usage area according to the student's historical learning status, controls the switch of the lamp by sensing the ambient light intensity, and provides students with adaptive light supply; then monitors the student's physical behavior in real time, and calculates the shadow area within the desktop usage area; when the normal shadow area is large, adjusts the illumination position and illumination angle of the lamp to reduce the size of the shadow area, thereby automatically controlling the lamp to improve the illumination effect of the lamp, protect the students' physical health, and provide students with a more comfortable learning environment. BRIEF DESCRIPTION OF THE DRAWINGS

[0090] Figure 1 It is the overall flow chart of the present invention. DETAILED DESCRIPTION

[0091] The following is a detailed description of an embodiment of the present invention. This embodiment is implemented on the premise of the technical solution of the present invention, and a detailed implementation method and a specific operation process are given, but the protection scope of the present invention is not limited to the following embodiment.

[0092] like Figure 1 As shown, this embodiment provides a technical solution: a lighting intelligent control method, comprising the following steps:

[0093] S1. Collecting real-time data information in a preset area, where the real-time data information includes real-time light intensity data;

[0094] S2, retrieve historical data information in a preset area, and use preset rules to set a monitoring area around the target desktop;

[0095] S3. Determine the relative position of the target person and the monitoring area by analyzing the real-time data, and then obtain the real-time light intensity data in the monitoring area; when the target person is within the monitoring area, generate a light control report;

[0096] S4. Infer the lighting requirements of the target person based on the analysis of the real-time data information, adjust the light source of the lamp according to the lighting requirements, and generate a light source adjustment report;

[0097] S5. Analyze the real-time data to determine the abnormal sitting posture of the target person, and generate a warning report when an abnormal sitting posture is found;

[0098] S6. Receive and output lighting control reports, light source adjustment reports and warning reports.

[0099] The invention first determines the desktop usage area according to the student's historical learning status, controls the switch of the lamp by sensing the ambient light intensity, and provides students with adaptive lighting supply; then monitors the student's physical behavior in real time, and estimates the shadow area within the desktop usage area; when the normal shadow area is large, adjusts the illumination position and illumination angle of the lamp to reduce the size of the shadow area, thereby automatically controlling the lamp to improve the illumination effect of the lamp, protect the students' physical health, and provide students with a more comfortable learning environment.

[0100] The historical data information includes historical image data, and the specific processing process of S2 is as follows:

[0101] Retrieve historical image data within a preset area to obtain multiple historical usage locations of lamps;

[0102] The preset area is a space area pre-made according to the student's historical learning position, which includes the entire student's learning area;

[0103] Infer the desktop usage area G using preset rules;

[0104] The default rules are:

[0105] Get the historical usage location of a lamp at will;

[0106] Obtain the contour line A1 of the light outlet of the lamp, and mark the geometric center point B1 of the contour line A1;

[0107] Draw a virtual line A2 through point B1 that is perpendicular to the plane where contour line A1 is located;

[0108] Collect the intersection of the virtual line A2 and the desktop to obtain the light reference point C of the lamp;

[0109] Read multiple historical use positions, and obtain the light reference point of the lamp at each historical use position, which are recorded as C1, C2, C3, ..., Cn respectively;

[0110] Randomly obtain several reference points, and make a standard circle with each reference point as the center and a preset size as the radius, and merge multiple standard circles to generate a desktop use area G;

[0111] It should be noted that the desktop use area G is the position where students study under the light. Dividing the desktop use area can reduce the lighting control error caused by a large desktop size.

[0112] Get the use area G, use the preset size Dr as the radius, and make a standard circle on the ground with the geometric center of the use area G as the origin to generate the monitoring area.

[0113] In this scheme, historical data of students' study is collected, and based on the analysis of historical data, the general area where students use lamps for study is determined, the usage area of ​​the desktop is divided, and then the monitoring area of ​​the lamp is further created to avoid misjudgment caused by excessively large monitoring area of ​​the lamp, which in turn affects the normal life of the user and improves the practicality of the invention.

[0114] The specific processing process of S3 is as follows:

[0115] Read the monitoring area and obtain the geometric center point Ce1 of the monitoring area;

[0116] Acquire real-time image data of the target person, and mark the contact point between the target person and the ground to obtain the marked point Ce2;

[0117] Collect the dimension data Lr of the center point Ce1 and the marking point Ce2;

[0118] When Lr≤Dr, collect the real-time light intensity data W in the monitoring area;

[0119] When the light intensity data W is less than the preset threshold value Q1, a light control report for turning on the light is generated.

[0120] The monitoring area is monitored in real time. When students are detected in the monitoring area and the light is dim, it is determined that there is a need for lighting and the lights are turned on.

[0121] Among them, the specific processing process of S4 is:

[0122] Read the usage area G of the desktop;

[0123] Collect real-time image data in the preset area and obtain the shadow area G` in the use area G;

[0124] The desktop usage area G is divided into a plurality of rectangular units according to a preset unit size;

[0125] Count the number of complete rectangular units Dz1 and the number of incomplete rectangular units Dz2 in the use area G;

[0126] Then count the number of complete rectangular units Dc1 and the number of incomplete rectangular units Dc2 in the shadow area G';

[0127] Calculate the light blocking degree E1 in the desktop usage area. The specific calculation process is:

[0128] ;

[0129] When the light blocking degree E1>preset threshold value Q1, a light source adjustment report is generated, and the light source of the lamp is controlled to move away from the target person and lower the height.

[0130] In this solution, the proportion of the shadow area within the desktop usage area is calculated to determine the degree of light obstruction caused by changes in students' sitting posture, and automatically identify students' behavioral changes. When the degree of obstruction is large, it is determined that it affects students' usage needs, and then the lamps are automatically adjusted and the illumination angle and illumination position of the lamps are changed, thereby reducing the size of the shadow area and improving the use effect of the lamps.

[0131] When the ambient light is weak, the boundary between the shadow area and the illuminated area is more obvious, and the range of the shadow area can be captured by the image acquisition module; however, when the ambient light is strong, the boundary between the shadow area and the illuminated area is dim and difficult to capture; to solve this problem, the following solution is proposed:

[0132] Furthermore, the real-time data information includes real-time size data, and the acquisition process of the shadow area G' is:

[0133] Collect real-time image data in the preset area to obtain the light source position of the lamp and the position of the target person;

[0134] Get the location of the desktop usage area G and the location of the light source of the lamp;

[0135] Collect the contour line A3 of the light source of the lamp, use the contour line A4 of the desktop use area G as the bottom surface, and use the contour line A3 of the light source of the lamp as the top surface to create a spatial geometric body F;

[0136] Get the target person's body position and randomly get a detection point T1 on the target person's body;

[0137] A virtual horizontal plane Ar is made through the detection point T1, and a common area Gr between the virtual horizontal plane Ar and the spatial geometric body F is obtained;

[0138] Obtain the point T2 with the largest distance from the public area Gr boundary line to the detection point T1 and the point T3 with the smallest distance from the public area Gr boundary line to the detection point T1;

[0139] Collect and detect the dimension data Le1 between point T1 and point T2 and the dimension data Le2 between point T2 and point T3;

[0140] When Le1<Le2, it indicates that there is a light blocking object in the desktop usage area G, and the light source position is read;

[0141] A plurality of virtual tangent lines tangent to the body part where the detection point T1 is located are made through the geometric center point of the light source, and the intersection points of the plurality of virtual tangent lines and the desktop use area G are Ge1, Ge2, Ge3, ..., Gen respectively;

[0142] Connecting a plurality of intersection points Ge1, Ge2, Ge3, ..., Gen in sequence to form a boundary line of the shadow area G';

[0143] The boundary line of the shadow area G' divides the desktop usage area G into two sub-areas, and the sub-area close to the target person is marked to generate the shadow area G'.

[0144] In this scheme, a spatial geometric body is first established based on the light source of the lamp and the desktop usage area; when the student's limbs exist in the spatial geometric body, a shadow will inevitably be left in the desktop usage area, and the shadow outline is on the extension line of the light source and the limb tangent, that is, the intersection of the extension line and the desktop; by collecting the points on the student's limbs, by judging the positional relationship between the points and the points on the spatial geometric body, it is determined whether the student's limbs exist in the spatial geometric body, and then the tangent of the light and the student's limbs is made to determine the shadow area outline and the shadow area.

[0145] Furthermore, the process of generating the light source adjustment report also includes:

[0146] Acquire a desktop usage area G and a body part of a target person located in the desktop usage area G;

[0147] Get the limb shadow contour line;

[0148] Randomly obtain multiple measurement points on the shadow contour line;

[0149] Get the light source position of the lamp;

[0150] A measurement point V1 is randomly selected, and the first virtual reference line is made by connecting the measurement point and the geometric center of the light source;

[0151] A vertical line is made through the geometric center of the light source, the intersection of the vertical line and the desktop is V2, and the second virtual reference line is generated by connecting point V1 and point V2;

[0152] The intersection of the first virtual reference line and the limb part is V2;

[0153] Collect the distance LV1 between the measuring point V1 and the point V2; then collect the dimension data LV2 of the limb part at the intersection point V2 along the direction of the second virtual straight line;

[0154] Use the formula E2=LV1 / LV2 to calculate the shadow size ratio;

[0155] When the shadow size ratio E2> the preset threshold Q2, the measurement point V1 is defined as an abnormal point;

[0156] Calculate the shadow size ratios of multiple measurement points respectively, count the number of measurement points H1, and count the number of abnormal points H2;

[0157] Use the formula E3=H2 / H1 to calculate the abnormal point ratio;

[0158] When the abnormal point ratio E3 is greater than the preset threshold value Q3, a light source adjustment report is generated, and the light source of the lamp is controlled to rise or move toward the direction of the limb shadow.

[0159] During the learning process, students need to use their hands to hold a pen or turn pages. When the lamp is positioned low, a larger shadow area will be formed; when the lighting angle is inappropriate, the shadow area will be distributed on the paper; in the above embodiment, the shadow outline is first obtained, and points are taken on the shadow wheel library for detection. By analyzing the ratio of the shadow size to the student's limb size, the degree of influence of the shadow on the student's learning is judged; when a large part of the shadow outline is large in size, it indicates that the shadow part is unreasonable in distribution, which will have a greater impact on students' learning. The shadow distribution can be reduced by changing the lighting direction of the light source, thereby improving the comfort and intelligence of the lamp.

[0160] The generation process of the light source adjustment report also includes:

[0161] The distance between the light source and the desktop is collected. When the distance is less than the preset value, a light source adjustment report is generated, and the light source of the lamp is controlled to reduce the brightness to prevent the light from being too strong and dazzling when the distance is close.

[0162] Among them, the specific processing of S5 is:

[0163] A spatial rectangular coordinate system is established with the preset size as the unit, the vertical direction as the Z axis, and any two mutually perpendicular lines in the plane where the desktop is located as the X axis and the Y axis;

[0164] Get the light blocking length E1 in the desktop usage area G;

[0165] When the light shielding degree E1>preset threshold value Q1, the shadow contour line of the shadow area G' in the desktop use area G is obtained;

[0166] Get the geometric midpoint M1 of the light source and the coordinates of point M1;

[0167] A point M2 is randomly collected on the shadow contour line of the shadow area G';

[0168] Get the direction vector from point M2 to point M1 ;

[0169] Get the vertical upward direction vector ;

[0170] calculate and The vector angle θ between them is calculated as follows:

[0171] ;

[0172] When the vector angle θ is less than the preset threshold value Q4, a warning report is generated.

[0173] This embodiment determines the student's sitting posture by calculating the angle between the direction vector of the straight line where the contour point of the shadow area and the center point of the lamp are located and the vector in the vertical direction; when the vector angle is small, it indicates that the light is close to the top of the desktop usage area. At this time, there is still a large shadow, which shows that the student's body is leaning forward, the face is close to the desktop, and there is a problem with the sitting posture; it will affect the students' physical health for a long time, and warn students to control their body posture, further improving the intelligence and practicality of the invention, making the invention more worthy of promotion.

[0174] When the above solution is used, the sitting posture is detected by the center position of the light source of the lamp. However, the light source area of ​​some lamps is large, and there is a large error in judging the sitting posture of students by the center position of the lamp and the shadow outline. To solve this problem, the following further solutions are proposed:

[0175] Furthermore, the generation process of the warning report also includes:

[0176] Read the geometric midpoint M1 and point M2 of the light source;

[0177] Connect the geometric midpoint M1 and the point M2 to make a first type reference line;

[0178] A first type of reference surface is made perpendicular to the plane where the table top is located, and the first type of reference straight line is located within the first type of reference surface;

[0179] Obtaining a boundary line J between the first type of reference surface and the light source of the lamp;

[0180] Get the two endpoints of the intersection line J to be M3 and M4 respectively;

[0181] Acquire the coordinates of the end point M3 and the coordinates of the end point M4 to acquire the dimension data Lm1 from the end point M3 to the end point M4;

[0182] Read the ordinates of endpoints M3 and M4 respectively, and select the endpoint with the larger ordinate as the calculation point M`;

[0183] Read the coordinates of the calculation point M' and the coordinates of the geometric midpoint M1 of the light source to obtain the distance dimension Lm2 between the calculation point M' and the geometric midpoint M1 of the light source;

[0184] Calculate the light source irradiation point deviation E4, the specific calculation process is:

[0185] E4=Lm2 / Lm1;

[0186] When the deviation E4> preset threshold Q5, the direction vector Change the direction vector from point M2 to the calculated point M`.

[0187] The position of the outline of the shadow area depends on the light emitted by the farthest point of the lamp from the student, so the farthest point is used to calculate the student's sitting posture most accurately; but the light source of a general lamp is small in size, and the center point is representative, which can represent the light source of the lamp for calculation; in order to reduce the error, this scheme determines the representativeness of the center position by judging the position of the center of the lamp light source in the lamp light source. When the center position of the light source deviates greatly from the outline position of the light source, it indicates that the center position of the light source is poorly representative and has a large error. At this time, find the farthest point of the lamp from the student instead of the center position of the light source for calculation, so as to improve the judgment accuracy of the student's sitting posture and improve the reliability of the use of this invention.

[0188] A desk lamp comprises a memory and a processor. The memory stores a computer program, and the processor implements the above method steps when executing the computer program.

[0189] It should be noted that the installation of the memory is not limited to the inside of the lamp, but can also be used inside terminals such as tablet computers, desktop computers, laptops or mobile phones. The terminal and the desk lamp can be connected through a wired module or a wireless module, and the status of the desk lamp can be controlled by running the program in the terminal. At the same time, the desk lamp can be connected to the terminal through a data cable to power it.

[0190] At the same time, the image acquisition module and the light intensity detection module can also use the terminal or be external.

[0191] It should also be noted that a control switch can also be provided on the desk lamp, and the control switch can turn off the intelligent control mode and switch to manual control.

[0192] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0193] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.

[0194] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.

Claims

1. A lighting intelligent control method, which is used for lighting fixtures to adaptively illuminate a target desktop, characterized in that: The following steps are involved: S1. Collecting real-time data information in a preset area, wherein the real-time data information includes real-time light intensity data; S2, retrieve historical data information in a preset area, and use preset rules to set a monitoring area around the target desktop; S3, determining the relative position of the target person and the monitoring area by analyzing the real-time data, and then obtaining the real-time light intensity data in the monitoring area; When the target person is within the monitoring area, a lighting control report is generated; S4. Infer the lighting requirements of the target person based on the analysis of the real-time data information, adjust the light source of the lamp according to the lighting requirements, and generate a light source adjustment report; S5. Analyze the real-time data to determine the abnormal sitting posture of the target person, and generate a warning report when an abnormal sitting posture is found; S6. Receive and output lighting control report, light source adjustment report and warning report; The historical data information includes historical image data, and the specific processing process of S2 is: Retrieve historical image data within a preset area to obtain multiple historical usage locations of lamps; Infer the desktop usage area G using preset rules; The default rules are: Get the historical usage position of a lamp at will; Obtain the contour line A1 of the light outlet of the lamp, and mark the geometric center point B1 of the contour line A1; Draw a virtual line A2 through point B1 that is perpendicular to the plane where contour line A1 is located; Collect the intersection of the virtual line A2 and the desktop to obtain the light reference point C of the lamp; Read multiple historical use positions, and obtain the light reference point of the lamp at each historical use position, which are recorded as C1, C2, C3, ..., Cn respectively; Randomly obtain several reference points, and make a standard circle with each reference point as the center and a preset size as the radius, and merge multiple standard circles to generate a desktop use area G; Get the use area G, use the preset size Dr as the radius, and make a standard circle on the ground with the geometric center of the use area G as the origin to generate the monitoring area; The specific processing process of S4 is as follows: Read the usage area G of the desktop; Collect real-time image data in the preset area and obtain the shadow area G` in the use area G; The desktop usage area G is divided into a plurality of rectangular units according to a preset unit size; Count the number of complete rectangular units Dz1 and the number of incomplete rectangular units Dz2 in the use area G; Then count the number of complete rectangular units Dc1 and the number of incomplete rectangular units Dc2 in the shadow area G'; Calculate the light blocking degree E1 in the desktop usage area. The specific calculation process is: ; When the light blocking degree E1>preset threshold Q1, a light source adjustment report is generated, and the light source of the lamp is controlled to move away from the target person and lower the height; The specific processing of S5 is as follows: A spatial rectangular coordinate system is established with the preset size as the unit, the vertical direction as the Z axis, and any two mutually perpendicular lines in the plane where the desktop is located as the X axis and the Y axis; Obtain the light blocking degree E1 in the desktop usage area G; When the light shielding degree E1>preset threshold value Q1, the shadow contour line of the shadow area G' in the desktop use area G is obtained; Get the geometric midpoint M1 of the light source and the coordinates of point M1; A point M2 is randomly collected on the shadow contour line of the shadow area G'; Get the direction vector from point M2 to point M1 ; Get the vertical upward direction vector ; calculate and The vector angle θ between them is calculated as follows: ; When the vector angle θ is less than the preset threshold value Q4, a warning report is generated; The generation process of the warning report also includes: Read the geometric midpoint M1 and point M2 of the light source; Connect the geometric midpoint M1 and the point M2 to make a first type reference line; A first type of reference surface is made perpendicular to the plane where the table top is located, and the first type of reference straight line is located within the first type of reference surface; Obtaining a boundary line J between the first type of reference surface and the light source of the lamp; Get the two endpoints of the intersection line J to be M3 and M4 respectively; Acquire the coordinates of the end point M3 and the coordinates of the end point M4 to acquire the dimension data Lm1 from the end point M3 to the end point M4; Read the ordinates of endpoints M3 and M4 respectively, and select the endpoint with the larger ordinate as the calculation point M`; Read the coordinates of the calculation point M' and the coordinates of the geometric midpoint M1 of the light source to obtain the distance dimension Lm2 between the calculation point M' and the geometric midpoint M1 of the light source; Calculate the light source irradiation point deviation E4, the specific calculation process is: E4=Lm2 / Lm1; When the deviation E4> preset threshold Q5, the direction vector Change the direction vector from point M2 to the calculated point M`.

2. The lighting intelligent control method according to claim 1, characterized in that: The real-time data information also includes real-time size data. The specific processing process of S3 is as follows: Read the monitoring area and obtain the geometric center point Ce1 of the monitoring area; Acquire real-time image data of the target person, and mark the contact point between the target person and the ground to obtain the marked point Ce2; Collect the dimension data Lr of the center point Ce1 and the marking point Ce2; When Lr≤Dr, collect the real-time light intensity data W in the monitoring area; When the light intensity data W is less than the preset threshold value Q1, a light control report for turning on the light is generated.

3. The lighting intelligent control method according to claim 1, characterized in that: The real-time data information includes real-time size data, and the acquisition process of the shadow area G' is: Collect real-time image data in the preset area to obtain the light source position of the lamp and the position of the target person; Get the location of the desktop usage area G and the location of the light source of the lamp; Collect the contour line A3 of the light source of the lamp, use the contour line A4 of the desktop use area G as the bottom surface, and use the contour line A3 of the light source of the lamp as the top surface to create a spatial geometric body F; Get the target person's body position and randomly get a detection point T1 on the target person's body; A virtual horizontal plane Ar is made through the detection point T1, and a common area Gr between the virtual horizontal plane Ar and the spatial geometric body F is obtained; Obtain the point T2 with the largest distance from the public area Gr boundary line to the detection point T1 and the point T3 with the smallest distance from the public area Gr boundary line to the detection point T1; Collect and detect the dimension data Le1 between point T1 and point T2 and the dimension data Le2 between point T2 and point T3; When Le1<Le2, it indicates that there is a light blocking object in the desktop usage area G, and the light source position is read; A plurality of virtual tangent lines tangent to the body part where the detection point T1 is located are made through the geometric center point of the light source, and the intersection points of the plurality of virtual tangent lines and the desktop use area G are Ge1, Ge2, Ge3, ..., Gen respectively; Connecting a plurality of intersection points Ge1, Ge2, Ge3, ..., Gen in sequence to form a boundary line of the shadow area G'; The boundary line of the shadow area G' divides the desktop usage area G into two sub-areas, and the sub-area close to the target person is marked to generate the shadow area G'.

4. The lighting intelligent control method according to claim 3, characterized in that: The process of generating the light source adjustment report further includes: Acquire a desktop usage area G and a body part of a target person located in the desktop usage area G; Get the limb shadow contour line; Randomly obtain multiple measurement points on the shadow contour line; Get the light source position of the lamp; A measurement point V1 is randomly selected, and the first virtual reference line is made by connecting the measurement point and the geometric center of the light source; A vertical line is made through the geometric center of the light source, the intersection of the vertical line and the desktop is V2, and the second virtual reference line is generated by connecting point V1 and point V2; The intersection point of the first virtual reference line and the limb part is V2; Collect the distance LV1 between the measuring point V1 and the point V2; then collect the dimension data LV2 of the limb part at the intersection point V2 along the direction of the second virtual straight line; Use the formula E2=LV1 / LV2 to calculate the shadow size ratio; When the shadow size ratio E2> the preset threshold Q2, the measurement point V1 is defined as an abnormal point; Calculate the shadow size ratios of multiple measurement points respectively, count the number of measurement points H1, and count the number of abnormal points H2; Use the formula E3=H2 / H1 to calculate the abnormal point ratio; When the abnormal point ratio E3 is greater than the preset threshold value Q3, a light source adjustment report is generated, and the light source of the lamp is controlled to rise or move toward the direction of the limb shadow.

5. A lighting intelligent control method according to claim 4, characterized in that: The process of generating the light source adjustment report further includes: The distance between the light source and the desktop is collected. When the distance is less than the preset value, a light source adjustment report is generated and the light source of the lamp is controlled to reduce the brightness.

6. A desk lamp, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the method according to any one of claims 1 to 5 when executing the computer program.

Citation Information

Patent Citations

  • Eye protection lighting assembly

    CN116772135A