CN-122002672-A - Identification control method based on lamplight, lamp and electronic equipment
Abstract
The application discloses a lamplight-based identification control method, a lamp and electronic equipment. The method comprises the steps of collecting a shot image of a target lamp, enabling the target lamp to flash based on a preset control signal, enabling the control signal to be generated based on identification information of the target lamp, reconstructing the control signal based on the shot image, analyzing and obtaining the identification information of the target lamp based on the reconstructed control signal, and controlling the target lamp based on the identification information of the target lamp. The method can acquire the identification information of the shot lamp by acquiring the shot image modulated with the identification information of the lamp, so that the lamp can be controlled rapidly based on the identification information, the operation is simple, and the user experience is good.
Inventors
- FENG JIANZHI
- CHEN XI
Assignees
- 美智光电科技股份有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20241104
Claims (15)
- 1. The recognition control method based on the lamplight is characterized by comprising the following steps of: Collecting a shooting image of a target lamp, wherein the target lamp flashes based on a preset control signal, and the control signal is generated based on identification information of the target lamp; Reconstructing the control signal based on the captured image; And analyzing and obtaining the identification information of the target lamp based on the reconstructed control signal, and controlling the target lamp based on the identification information of the target lamp.
- 2. The identification control method according to claim 1, wherein the capturing a captured image of the target lamp includes: and acquiring continuous multiframes of the shot images at a preset acquisition frame rate, wherein the period corresponding to the preset acquisition frame rate is smaller than or equal to the period of the control signal.
- 3. The recognition control method according to claim 1, wherein the control signal includes a pulse width modulation signal, the control signal includes a plurality of periodic waveforms having different duty ratios, the character in the identification information of the target lamp corresponds to the periodic waveform one by one, and the brightness of the lamp when the target lamp blinks with the periodic waveforms having different duty ratios is different.
- 4. The identification control method according to claim 3, wherein the identification information of the target lamp is a binary value, the control signal includes at least a periodic waveform of a first duty cycle and a second duty cycle, 0 of the binary value corresponds to one of the periodic waveforms of the first duty cycle and the second duty cycle, and 1 of the binary value corresponds to the other of the periodic waveforms of the first duty cycle and the second duty cycle.
- 5. The identification control method according to claim 3, wherein the control signal is generated based on identification information of the target lamp, start information, and end information, the identification information of the target lamp being located between the start information and the end information, the start information and the end information having corresponding periodic waveforms, respectively.
- 6. The recognition control method according to claim 5, characterized by further comprising: Based on a preset identification frame rate, collecting continuous multi-frame shooting images, wherein the period corresponding to the preset identification frame rate is 1/n of the period of the control signal, and n is greater than 1; Identifying the start information based on the captured image; the capturing of the captured image of the target luminaire includes: And under the condition that the starting information is identified, acquiring continuous multi-frame shooting images at a preset acquisition frame rate, wherein the period corresponding to the preset acquisition frame rate is equal to the period of the control signal, and the preset acquisition frame rate is smaller than the preset identification frame rate.
- 7. The recognition control method according to claim 6, wherein the periodic waveform corresponding to the start information includes a start waveform and an end waveform of a start phase, and the start waveform and the end waveform are different in respective changes of the lamp brightness; The identifying the start information based on the captured image includes: identifying the starting waveform and the ending waveform based on the brightness change condition of the lamp in the shot image; and under the condition that the starting information is identified, acquiring continuous multi-frame shooting images at a preset acquisition frame rate, wherein the method comprises the following steps: And under the condition that the ending waveform is identified, acquiring continuous multi-frame shooting images at a preset acquisition frame rate.
- 8. The recognition control method according to claim 6, wherein the end information includes a termination waveform, the method further comprising: In the process of acquiring continuous multi-frame shooting images at a preset acquisition frame rate, if the currently detected lamp brightness in the shooting images is in a preset brightness range, acquiring the continuous multi-frame shooting images again at the preset identification frame rate, wherein the preset brightness range is determined based on the lamp brightness corresponding to the identification information of the target lamp; identifying the termination waveform based on the brightness change condition of the lamp in the shot image; The method further comprises; And stopping acquiring the shooting image when the ending information is identified.
- 9. The recognition control method according to any one of claims 3 to 8, wherein the reconstructing the control signal based on the captured image includes: Identifying the lamp brightness of the target lamp in the shot image of each frame; based on the brightness of the lamp corresponding to the photographed image of each frame, respectively determining a periodic waveform corresponding to the photographed image of each frame; reconstructing the control signal based on the periodic waveform and the shooting time corresponding to the shot image of each frame.
- 10. The identification control method according to claim 9, wherein the analyzing the identification information of the target lamp based on the reconstructed control signal includes: And analyzing the identification information based on the characters corresponding to the periodic waveforms in the reconstructed control signals.
- 11. The identification control method according to claim 1 or 10, characterized in that the controlling the target luminaire based on the identification information of the target luminaire includes: determining a communication address corresponding to the target lamp based on the identification information of the target lamp; and sending a control instruction to the target lamp based on the communication address corresponding to the target lamp so as to control the target lamp to execute corresponding operation, wherein the control instruction is generated based on at least one of a received voice instruction, touch operation and gesture operation of a user.
- 12. The recognition control method according to claim 1, wherein each of the periodic waveforms of the control signal includes a low level and a high level, and a timing of the low level in the periodic waveform is earlier than a timing of the high level.
- 13. The identification control method according to claim 1, wherein one or more lamps from which identification information has been parsed are divided into a plurality of groups, the method comprising: and controlling the lamps of each group based on the identification information corresponding to the lamps of each group.
- 14. The lamp is characterized by flashing based on a preset control signal, and the control signal is generated based on the identification information of the lamp.
- 15. An electronic device comprising an image acquisition means for acquiring a captured image of a target luminaire, a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the identification control method according to any one of claims 1-13 when executing the program.
Description
Identification control method based on lamplight, lamp and electronic equipment Technical Field The application belongs to the technical field of lamp control of the Internet of things, and particularly relates to a lamp light-based identification control method, an identification control device, a lamp, electronic equipment, a computer-readable storage medium and a computer program product. Background The intelligent lamp control generally needs to be used after the lamps are firstly connected with a distribution network and added to the intelligent APP, and if more lamps are arranged at home, the need of positioning to control a certain lamp becomes troublesome, and operations such as regional screening or lamp searching are needed. Even if the control of the networking-free intelligent lamp (generally adopting a Bluetooth mode), a user still needs to screen Bluetooth hot spots needing to control the lamp, the lamp which needs to be controlled can be positioned for control, the operation is complex, and the user experience is poor. Disclosure of Invention The present application aims to solve at least one of the technical problems existing in the prior art. Therefore, the application provides the lamp-based identification control method, the lamp and the electronic equipment, which can rapidly acquire the identification information of the shot lamp by acquiring the shot image modulated with the identification information of the lamp, so that the lamp is rapidly controlled based on the identification information, the operation is simple, and the user experience is good. According to the identification control method based on the lamplight, a shooting image of a target lamp is collected, the target lamp flashes based on a preset control signal, the control signal is generated based on identification information of the target lamp, the control signal is reconstructed based on the shooting image, the identification information of the target lamp is obtained through analysis based on the reconstructed control signal, and the target lamp is controlled based on the identification information of the target lamp. In a second aspect, the present application provides an identification control device, including: The system comprises an acquisition module, a control module and a display module, wherein the acquisition module is used for acquiring a shot image of a target lamp, the target lamp flashes based on a preset control signal, and the control signal is generated based on identification information of the target lamp; A reconstruction module for reconstructing the control signal based on the captured image; The analysis module is used for analyzing and obtaining the identification information of the target lamp based on the reconstructed control signal, and controlling the target lamp based on the identification information of the target lamp. In a third aspect, the present application provides a luminaire. The lamp flashes based on a preset control signal, and the control signal is generated based on the identification information of the lamp. In a fourth aspect, the present application provides an electronic device, including an image capturing device, a memory, a processor, and a computer program stored in the memory and executable on the processor, where the image capturing device is configured to capture a captured image of a target lamp, and the processor implements the identification control method when executing the program. In a fifth aspect, the present application provides a non-transitory computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the above-described identification control method. In a sixth aspect, the present application provides a computer program product comprising a computer program which, when executed by a processor, implements the above-described identification control method. According to the identification control method, the identification control device, the lamp, the electronic equipment, the computer readable storage medium and the computer program product based on the lamp light, which are provided by the embodiment of the application, the identification information of the lamp is modulated into the control signal of the lamp, and each lamp can emit light with the modulated identification information when flashing based on the control signal. When a user needs to control any target lamp, the user only needs to shoot the target lamp so as to acquire a shooting image of the target lamp, and it can be understood that the shooting image is generated by light rays modulating the identification information of the target lamp, a control signal can be obtained by analyzing and reconstructing the shooting image of the target lamp, after the reconstructed control signal is obtained, the identification information of the target lamp can be obtained by analyzing the control signal based on the control signal, and after