Lighting control method, apparatus, electronic device, and computer program product
Patent Information
- Application Number
- CN202210522619.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-13
- Publication Date
- 2026-08-28
- Estimated Expiration
- 2042-05-13
AI Technical Summary
[0003]本申请实施例提供一种照明控制方法、装置、电子设备及计算机程序产品,用以解决现有办公场所照明使用不规范导致的电能浪费的技术问题
Smart Images

Figure CN117098286B_ABST
Abstract
Claims
1. A lighting control method, characterized in that, include: Based on a pre-created spatial coordinate system, determine the first position of the target lamp, the second position of the preset positioning device, and the third position of the preset reference point, wherein there are multiple target lamps, preset reference points, and preset positioning devices; Obtain the observation angle of the preset positioning device, and determine the target position of the object to be positioned based on the observation angle and the second position; Determining the target reference point among the preset reference points based on the target location, the second location, and the third location includes: Based on the target location and the third location, calculate the Euclidean distance between each of the preset reference points and the target location, and determine the first set of reference points according to the magnitude of each of the Euclidean distances; Based on the target location, the second location, and the third location, calculate the relevant distance between each of the preset reference points and the target location, and determine the set of second reference points according to the magnitude of each of the relevant distances; If the first set of reference points and the second set of reference points intersect, determine the target reference point in the intersection that is closest to the target location; If the first set of reference points and the second set of reference points do not intersect, determine the target reference point in the first set of reference points that is closest to the target location; The correlation distance between the target location and the j-th preset reference point is the absolute value of the difference between 1 and the target correlation coefficient; the target correlation coefficient is the Pearson correlation coefficient between the position vector of the j-th preset reference point relative to the i-th preset positioning device and the position vector of the target location relative to the i-th preset positioning device. Identify the first lamp among the target lamps that is bound to the target reference point, and control the first lamp according to its current lighting state.
2. The lighting control method according to claim 1, characterized in that, After determining the first position of the target lamp, the second position of the preset positioning device, and the third position of the preset reference point according to the pre-created spatial coordinate system, the following steps are included: Obtain the distance values between each first position and the third position, and sort each first position according to the magnitude of each distance value to obtain a sorting result; Based on the sorting results and the first preset threshold, the second lamp among the target lamps is determined, and the preset reference point is bound to the second lamp.
3. The lighting control method according to claim 1, characterized in that, The step of obtaining the observation angle of the preset positioning device and determining the target position of the object to be positioned based on the observation angle and the second position includes: Determine the first positioning device and the second positioning device among the preset positioning devices; The target location of the object to be located is determined based on the observation angle and position of the first positioning device and the observation angle and position of the second positioning device.
4. The lighting control method according to claim 1, characterized in that, The step of calculating the relevant distance between each of the preset reference points and the target location based on the target location, the second location, and the third location includes: Based on the second position and the third position, a first position vector of the preset reference point relative to the preset positioning device is determined; Based on the target location and the second location, a second position vector of the target location relative to the preset positioning device is determined; Based on the first position vector and the second position vector, calculate the relevant distance between each preset reference point and the target position.
5. The lighting control method according to claim 1, characterized in that, The step of controlling the first lamp based on its current lighting state includes: When the first lamp is currently lit, a heartbeat command is sent to the first lamp to control the first lamp to maintain the lit state. When the first lamp is currently in the off state, a light-on command is sent to the first lamp to control it to turn on.
6. The lighting control method according to claim 5, characterized in that, After the step of controlling the first lamp based on its current lighting state, the following steps are included: When the target light fixture is in the illuminated state, obtain the time interval during which the target light fixture did not receive the heartbeat command; If the time interval is greater than a second preset threshold, a shutdown command is sent to the target light fixture to control the shutdown of the target light fixture.
7. A lighting control device, characterized in that, For performing the lighting control method of claim 1, comprising: The position determination module is used to determine the first position of the target lamp, the second position of the preset positioning device, and the third position of the preset reference point according to the pre-created spatial coordinate system, wherein there are multiple target lamps, preset reference points, and preset positioning devices; The target location determination module is used to obtain the observation angle of the preset positioning device and determine the target location of the object to be located based on the observation angle and the second location. The target reference point determination module is used to determine the target reference point among the preset reference points based on the target position, the second position, and the third position. The lighting control module is used to determine the first lighting fixture among the target lighting fixtures that is bound to the target reference point, and to control the first lighting fixture according to its current lighting state.
8. An electronic device comprising a processor and a memory storing a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the lighting control method according to any one of claims 1 to 6.
9. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements the steps of the lighting control method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Lamp light control method and apparatus, computer storage medium and in-vehicle device
US20180319324A1
Visible light positioning receiver arrangement and two stage positioning method
US20210325505A1