CN113672146A - Light control method, device, system, electronic equipment and storage medium - Google Patents

Light control method, device, system, electronic equipment and storage medium Download PDF

Info

Publication number
CN113672146A
CN113672146A CN202110921083.8A CN202110921083A CN113672146A CN 113672146 A CN113672146 A CN 113672146A CN 202110921083 A CN202110921083 A CN 202110921083A CN 113672146 A CN113672146 A CN 113672146A
Authority
CN
China
Prior art keywords
control
light
equipment
color
emitting
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.)
Pending
Application number
CN202110921083.8A
Other languages
Chinese (zh)
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.)
Shenzhen Zhiyan Technology Co Ltd
Original Assignee
Shenzhen Zhiyan 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 Shenzhen Zhiyan Technology Co Ltd filed Critical Shenzhen Zhiyan Technology Co Ltd
Priority to CN202110921083.8A priority Critical patent/CN113672146A/en
Publication of CN113672146A publication Critical patent/CN113672146A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • 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/165Controlling the light source following a pre-assigned programmed sequence; Logic control [LC]
    • 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/175Controlling the light source by remote control
    • H05B47/19Controlling the light source by remote control via wireless transmission

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

The application discloses a light control method, which is applied to a light control system, the light control system comprises terminal equipment, group control equipment and light-emitting equipment, the terminal equipment is provided with a display screen for displaying images, and the method comprises the following steps: the terminal equipment determines a color taking area in an image displayed on a display screen and acquires image color information on the color taking area; the terminal equipment generates a control rule according to the image color information and sends the control rule to the group control equipment; the group control equipment acquires a control rule sent by the terminal equipment, wherein the control rule comprises a state instruction and a control instruction; the group control equipment sends the control rule to the light-emitting equipment so as to control the light-emitting equipment to feed back the working state according to the state instruction and control the light-emitting equipment to show the light effect according to the control instruction. The method ensures that the terminal equipment does not need to be responsible for all work of light control, effectively saves computing resources, improves the operation efficiency and enhances the user experience.

Description

Light control method, device, system, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of lighting control technologies, and in particular, to a light control method, device, system, electronic device, and storage medium.
Background
The light control technology plays an important role in intelligent Home (Home Automation), and a user can control indoor and outdoor lighting equipment by using the light control system according to different application scenes. Nowadays, more and more users use an ambience lamp, which can represent the desktop color of an electronic device in the form of a corresponding light effect, in order to enhance interaction while using the electronic device.
At present, in the use process of an atmosphere lamp, terminal devices such as a mobile phone/a computer need to be fully responsible for all the work of collecting screen color information, analyzing color characteristics, controlling lamp group effects and the like, so that a system of the terminal devices needs to consume a large amount of computing resources, and especially, when a lamp group has a large number of light-emitting devices, the operating efficiency of the terminal devices can be greatly reduced, and the user experience of using other applications is influenced.
Disclosure of Invention
The embodiment of the application provides a light control method, a light control device, a light control system, electronic equipment and a storage medium.
In a first aspect, some embodiments of the present application provide a light control method applied to a terminal device, where the terminal device is configured with a display screen for displaying an image, the terminal device establishes a communication link with a group control device, and the group control device establishes a communication link with a plurality of light emitting devices to control the light emitting devices, the method including: determining a color taking area in an image displayed on a display screen, wherein the color taking area is used for obtaining image color information corresponding to a part of display area of the display screen; acquiring image color information on a color taking area; generating a control rule according to the image color information, wherein the control rule is used for carrying out light emitting control on the light emitting equipment; and sending a control rule to the group control equipment, wherein the control rule is used for triggering the group control equipment to control the light-emitting equipment according to the control rule.
In a second aspect, some embodiments of the present application further provide a light control method applied to a group control device, where the group control device establishes a communication link with a terminal device, and the group control device establishes a communication link with a plurality of light emitting devices to control the light emitting devices, and the method includes: acquiring a control rule sent by terminal equipment, wherein the control rule at least comprises a state instruction and a control instruction; and sending the control rule to the light-emitting equipment so as to control the light-emitting equipment to feed back the working state according to the state instruction and control the light-emitting equipment to show the light effect according to the control instruction.
In a third aspect, some embodiments of the present application provide a light control method applied to a light control system, where the light control system includes a terminal device, a group control device, and a light emitting device, where the group control device establishes communication links with the terminal device and the light emitting device, respectively, and the terminal device is configured with a display screen for displaying an image, and the method includes: the method comprises the steps that terminal equipment determines a color taking area in an image displayed on a display screen and obtains image color information on the color taking area; the terminal equipment generates a control rule according to the image color information and sends the control rule to the group control equipment; the group control equipment acquires a control rule sent by the terminal equipment, wherein the control rule comprises a state instruction and a control instruction; the group control equipment sends the control rule to the light-emitting equipment so as to control the light-emitting equipment to feed back the working state according to the state instruction and control the light-emitting equipment to show the light effect according to the control instruction.
In a fourth aspect, some embodiments of the present application further provide a light control apparatus applied to a terminal device, the terminal device being configured with a display screen for displaying images, the terminal device establishing a communication link with a group control device, the group control device establishing a communication link with a plurality of light emitting devices to control the light emitting devices, the apparatus including: the device comprises a determining module, a color selecting module and a color selecting module, wherein the determining module is used for determining a color selecting area in an image displayed on a display screen, and the color selecting area is used for acquiring image color information corresponding to a part of display area of the display screen; the color acquisition module is used for acquiring image color information on the color acquisition area; the generating module is used for generating a control rule according to the image color information, and the control rule is used for carrying out light emitting control on the light emitting equipment; and the first sending module is used for sending the control rule to the group control equipment so that the group control equipment controls the light-emitting equipment according to the control rule.
In a fifth aspect, some embodiments of the present application further provide a light control apparatus applied to a group control device, where the group control device establishes a communication link with a terminal device, and the group control device establishes a communication link with a plurality of light emitting devices to control the light emitting devices, and the apparatus includes: the rule obtaining module is used for obtaining a control rule sent by the terminal equipment, and the control rule at least comprises a state instruction and a control instruction; and the second sending module is used for sending the control rule to the light-emitting equipment so as to control the light-emitting equipment to feed back the working state according to the state instruction and control the light-emitting equipment to show the light effect according to the control instruction.
In a sixth aspect, some embodiments of the present application further provide a light control system, which is applied to a light control system, where the light control system includes a terminal device, a group control device, and a light emitting device, the group control device establishes communication links with the terminal device and the light emitting device, respectively, and the terminal device is configured with a display screen for displaying an image. The system comprises: the terminal equipment is used for determining a color taking area in an image displayed on the display screen and acquiring image color information on the color taking area; the terminal equipment is also used for generating a control rule according to the image color information and sending the control rule to the group control equipment; the group control equipment is used for acquiring a control rule sent by the terminal equipment, and the control rule comprises a state instruction and a control instruction; and the group control equipment is also used for sending the control rule to the light-emitting equipment so as to control the light-emitting equipment to feed back the working state according to the state instruction and control the light-emitting equipment to show the light effect according to the control instruction.
In a seventh aspect, some embodiments of the present application further provide an electronic device, which includes a processor, a memory and a display screen, where the memory stores computer program instructions, and the computer program instructions, when called by the processor, execute the light control method.
In an eighth aspect, an embodiment of the present application further provides a computer-readable storage medium, which stores program codes, wherein the program codes, when executed by a processor, perform the light control method described above.
The application provides a light control method, a device, a system, an electronic device and a storage medium, which are applied to a terminal device, wherein the terminal device is provided with a display screen for displaying an image, the terminal device establishes a communication link with a group control device, the group control device establishes a communication link with a plurality of light-emitting devices to control the light-emitting devices, and the terminal device determines a color-taking area in the image displayed on the display screen and acquires image color information on the color-taking area; the terminal equipment generates a control rule according to the image color information and sends the control rule to the group control equipment; the group control equipment acquires a control rule sent by the terminal equipment, wherein the control rule comprises a state instruction and a control instruction; the group control equipment sends the control rule to the light-emitting equipment so as to control the light-emitting equipment to feed back the working state according to the state instruction and control the light-emitting equipment to show the light effect according to the control instruction. Therefore, the terminal equipment is responsible for acquiring the image color information on the display screen and generating the control rule, sending the control rule to the group control equipment, and controlling the light-emitting equipment by the group control equipment, so that the terminal equipment does not need to be responsible for all work of light control, the computing resources are effectively saved, the operating efficiency is improved, and the user experience is enhanced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 shows an architecture diagram of a light control system according to an embodiment of the present application.
Fig. 2 is a schematic diagram illustrating a relationship between a color extraction area and a light emitting device of a light control system according to an embodiment of the present application.
Fig. 3 shows a schematic flowchart of a light control method according to an embodiment of the present application.
Fig. 4 is a schematic diagram illustrating an application scenario of determining a color-picking area in the light control method of fig. 2.
Fig. 5 shows a schematic diagram of a framework for controlling a lighting device in the light control method of fig. 2.
Fig. 6 shows a schematic flow chart of another light control method provided in the embodiment of the present application.
Fig. 7 is a schematic flowchart illustrating another light control method according to an embodiment of the present application.
Fig. 8 is a schematic flowchart illustrating a further light control method according to an embodiment of the present application.
Fig. 9 shows a block schematic diagram of establishing a communication link in the light control method of fig. 8.
Fig. 10 shows a system architecture diagram of a light control system according to an embodiment of the present application.
Fig. 11 shows a block diagram of a light control device according to an embodiment of the present application.
Fig. 12 shows a block diagram of another light control device according to an embodiment of the present application.
Fig. 13 is a block diagram of an electronic device according to an embodiment of the present application.
Fig. 14 is a block diagram of a computer-readable storage medium according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are exemplary only for the purpose of explaining the present application and are not to be construed as limiting the present application.
In order to make the technical solutions of the present application better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Currently, a variable color lighting system generally includes a plurality of light sources with specific lighting colors, which can show the color of the display screen of the terminal device to achieve the effect of creating a mood and increasing the user experience. It should be noted that the plurality of light sources are managed in a unified manner by the terminal device. However, the terminal device has limited computing resources, and with the increasing number of light sources, the computing resources required for controlling the light source lamp efficiency are increased, which further reduces the operating efficiency of the terminal device.
In order to solve the above problem, the inventor has made a long-term study and proposed a light control method provided in an embodiment of the present application, in which a terminal device determines a color-taking region in an image displayed on a display screen, acquires image color information on the color-taking region, further generates a control rule according to the image color information, and sends the control rule to a group control device, so that the group control device controls a light-emitting device according to the control rule. Therefore, the terminal equipment only needs to be responsible for acquiring the image color information on the display screen and generating the control rule, and the group control equipment completes the control on the light-emitting equipment, so that the computing resource of the terminal equipment is effectively saved, and the operation efficiency is improved.
The hardware environment of the light control method according to the present application will be described first. As shown in fig. 1, in some embodiments, the light control method provided in the embodiments of the present application may be applied to the light control system 500 shown in fig. 1, where the light control system 500 includes a terminal device 501, a group control device 503, a light emitting device 505, and a cloud server 507. The terminal device 501 includes a display screen 509, and the terminal device 501 may be a mobile terminal and a PC terminal having a display screen and a computing function, such as a mobile phone and a tablet. The light emitting device 505 is a plurality of light emitting devices. The cluster control device 503 may be an electronic device with communication and control capabilities, such as a cluster control box, a keyboard, a game pad, etc. The cloud server 507 may be used to store device information of the light emitting device 505, such as a device name, a device type, a device communication protocol, and the like.
Optionally, the terminal device 501 and the group control device 503, and the group control device 503 and the light emitting device 505 may establish a communication link by using a Universal Serial Bus (USB), or may establish a communication link by using wireless communication technologies such as Wi-Fi, Bluetooth, and ZigBee, which is not limited herein. As an embodiment, the terminal device 501, the group control device 503, and the light emitting device 505 may be located in the same local area network, and when the terminal device determines a color extraction region in an image displayed on the display screen, the terminal device may obtain image color information from the color extraction region to generate a control rule, and send the control rule to the group control device, and further, the group control device may perform light emission control on the light emitting device according to the control rule. In the embodiment of the application, each color taking area on the display screen of the terminal equipment is provided with a corresponding light-emitting device. For example, referring to fig. 2, fig. 2 shows a corresponding relationship between color extracting regions and light emitting devices, and a display 509 of the terminal device 501 has four color extracting regions: a first color extraction region 520, a second color extraction region 540, a third color extraction region 560, and a fourth color extraction region 580, wherein the first color extraction region 520 corresponds to the first light emitting device 510, the second color extraction region 540 corresponds to the second light emitting device 530, the third color extraction region 560 corresponds to the third light emitting device 550, and the fourth color extraction region 580 corresponds to the fourth light emitting device 570. As an embodiment, after acquiring the image color information on the color sampling region, the terminal device may generate a control rule, and send the control rule to the group control device, and further, the group control device may perform light emission control on the light emitting device corresponding to the color sampling region according to the control rule.
Embodiments in the present application will be described in detail below with reference to the accompanying drawings.
Referring to fig. 3, fig. 3 illustrates a light control method applied to a light control system, where the light control method is provided by an embodiment of the present application, and the light control system includes a terminal device, a group control device, and a light emitting device, where the group control device establishes communication links with the terminal device and the light emitting device, respectively, and the terminal device is configured with a display screen for displaying an image, and the light control method may include the following steps S110 to S140.
Step S110: the terminal equipment determines a color taking area in an image displayed on a display screen and acquires image color information on the color taking area.
The color-taking area refers to a part of a display area designated on a display screen of the terminal device, the size, the number, and the distribution position of the display area can be set by a user according to actual application requirements, the terminal device can obtain displayed image color information on the display area, the image color information refers to color information of an image shown by the display screen in the color-taking area when a preset application program runs, the preset application program can be an entertainment application program, such as a video playing application program, a music playing application program, a game application program, and the like, or a work application program, such as a thought guide application program, a work conference application program, and the like, which can be set by the user or preset by a system, and is not limited herein.
Referring to fig. 4, the terminal device may be a mobile phone 101, and at this time, three color extracting regions, namely a first color extracting region 102, a second color extracting region 104, and a third color extracting region 106, exist on a display screen 103 of the mobile phone 101. The image color information may include RGB values of colors, or/and YUV values, or/and color temperature values, and the like, and the image color information on the color sampling region may be formed by an average value of the image color information of a plurality of pixels in the color sampling region, for example, the RGB value of a certain color sampling region may be an average value of the RGB values of each pixel in an image displayed in the color sampling region.
As an embodiment, the terminal device may determine the color sampling region according to a user operation, and further acquire image color information on the color sampling region. Specifically, the terminal device may acquire a sliding operation of the user on the display screen, and according to the sliding operation, a display area defined by the user on the display screen is used as a color extraction area, and further, the terminal device may acquire color information of an image displayed in the color extraction area by using a built-in color extraction program, for example:
when the operating system of the terminal device is a Windows system, the terminal device may acquire screen data of the color-taking area by using a DXGI graphic device interface provided by the Windows system, further create a D3DDevice, acquire an idxgioutputdupling desktop object, and call AcquireNextFrame, thereby acquiring screen data of the current color-taking area, and save the screen data in IDXGIResource, and further may map the screen data from the GPU to the memory, so as to obtain image color information on the color-taking area.
When the operating system of the terminal device is the IOS system, the terminal device may record the screen of the color taking area by using the ReplayKit SDK provided by the IOS system, and operate the ProcessSampleBuffe function to obtain the real-time recorded screen data information CMSampleBufferRef, where the CMSampleBufferRef includes CVPixelBufferRef, and further, obtain the color data of the screen of the color taking area, that is, the image color information on the color taking area, through the CVPixelBufferRef.
When the operating system of the terminal equipment is an Android system, the terminal equipment can project a screen shown by the color taking area to the ImageReader by using the Android system, and when the ImageReader acquires screen data of the color taking area, the screen data can be transmitted to the BitMap, and then the Bitmap performs RGB/ARGB color mode conversion to obtain image color information on the color taking area.
Step S120: and the terminal equipment generates a control rule according to the image color information and sends the control rule to the group control equipment.
Wherein, control rule can include state instruction and control command at least, and state instruction can be used for controlling light emitting equipment to feed back the state of self work, and control command can be used for controlling light emitting equipment to accomplish the show of light effect, and this control command can control every light emitting equipment show the light effect that different color areas correspond. For example, two color-taking regions on the display screen: the light-emitting device E is associated with the color-taking region a, and the light-emitting device F is associated with the color-taking region B, so that the control rule can control the light-emitting device E to exhibit a light effect corresponding to the color-taking region a, and can control the light-emitting device F to exhibit a light effect corresponding to the color-taking region B.
It should be noted that the association between the color extraction region and the light-emitting device may be set by a user according to an actual application scenario, for example, after the terminal device determines the color extraction region, a prompt window may be sent to the user, and the prompt window may be used to provide the user with a selection of binding the light-emitting device to the color extraction region.
As an embodiment, when the terminal device acquires the image color information in the color sampling area, the terminal device may generate a control rule according to the image color information and send the control rule to the group control device. Specifically, the terminal device may transmit the control rule to the group control device in the form of a data packet.
For example, the terminal device may perform data analysis on the acquired image color information of different areas to obtain working parameters, such as color, brightness, color temperature, and the like of light, of the plurality of light-emitting devices when performing light effect display, and further, the terminal device may form a data packet with the plurality of working parameters in sequence and send the data packet to the group control device through the USB bus interface.
Step S130: the group control device acquires the control rule transmitted by the terminal device.
Considering that the terminal device needs to consume a large amount of computing resources when the terminal device is in full charge of the control of all the lamp effects, the workload of the terminal device can be reduced by setting the group control device, and the operating efficiency of the terminal device can be improved. In the embodiment of the present application, the control rule is an important basis for the group control device to control the operation of the light emitting device, and the control rule at least includes a status instruction and a control instruction. Optionally, the control rules may further comprise connection instructions according to which the group control device may establish or cancel a communication link with the specified lighting device.
The status instruction may be used for the group control device to control the light emitting devices to feed back the operating status, for example, the group control device may determine the operating mode and the connection status of a certain light emitting device by receiving information fed back by the light emitting device. Such as whether the light emitting device is in a standby state, a power saving mode, etc. The control instruction can be used for the group control device to control the light-emitting device to work, for example, the group control device can control the light-emitting device to display the brightness, the color and the like of the light according to the control rule. As an embodiment, the group control device may obtain the control rule sent by the terminal device through a universal serial bus or a wireless network. For example, the group control device may receive the control rule sent by the terminal device by cyclically receiving the data packet transmitted by the terminal device through the USB interface.
Step S140: the group control device sends the control rules to the lighting devices.
As an embodiment, when acquiring the control rule, the group control device may send the control rule to the plurality of light emitting devices, trigger the light emitting devices to feed back the operating state according to the state instruction in the control rule, and display the light effect according to the control instruction in the control rule. Optionally, the group control device may receive the data packet sent by the terminal device, analyze the data packet to obtain a connection instruction, and then establish a communication link with the specified light-emitting device according to the connection instruction, and further send the status instruction and the control instruction to the light-emitting device through the communication link.
Exemplarily, as shown in fig. 5, fig. 5 illustrates a light control method provided by an embodiment of the present application, and the method is applied to a group control device. Optionally, the group control device may obtain the control rule sent by the terminal device, and send the control rule to the light emitting device, so as to control the light emitting device to feed back the working state and display the light effect. Optionally, the group control device may circularly receive a data packet, that is, a control rule, sent by the terminal device through the USB interface, and analyze the data packet to obtain the state instruction and the control instruction.
Further, the group control device may send the status instruction to the light emitting device, and when the light emitting device receives the status instruction, the light emitting device may upload data of its own working status to the group control device, so that the group control device may know the working status of the light emitting device at any time, where the working status data may include a connection status and a working mode of the light emitting device, the connection status may be used to determine whether the light emitting device establishes a communication link with the group control device, and if the light emitting device does not establish a communication link with the group control device, the terminal device may trigger the group control device to reconnect the light emitting device by resending the connection instruction, and the working mode may be used to determine whether the light emitting device normally works, that is, determine whether the light emitting device can normally exhibit lamp efficacy.
Further, the group control device may send a control instruction to the light emitting device, and when the light emitting device receives the control instruction, the light emitting device may display a specific light effect according to the control instruction, for example, a specific light color, a light brightness, and the like. Optionally, the group control device may add or cancel the communication link established with the light emitting device in the local area network according to the control rule when receiving the control rule.
In the embodiment of the application, the terminal device determines the color taking area in the image displayed on the display screen and obtains image color information on the color taking area, the terminal device generates a control rule according to the image color information and sends the control rule to the group control device, the group control device obtains the control rule sent by the terminal device, the control rule comprises a state instruction and a control instruction, and the group control device sends the control rule to the light emitting device so as to control the light emitting device to feed back the working state according to the state instruction and control the light emitting device to show the light effect according to the control instruction. Therefore, the terminal equipment is responsible for extracting and analyzing the screen color, and the control of the light effect is finished by the group control equipment, so that the terminal equipment and the group control equipment coordinate with each other to jointly finish the control of the light effect, the terminal equipment does not need to be responsible for all work of the light control, the computing resource of the terminal equipment is effectively saved, and the operation efficiency is improved.
As shown in fig. 6, fig. 6 schematically illustrates another lighting control method provided in an embodiment of the present application, which is applied to a terminal device, the terminal device being configured with a display screen for displaying an image, the terminal device establishing a communication link with a group control device, the group control device establishing a communication link with a plurality of lighting devices to control the lighting devices, and the lighting control method may include the following steps S210 to S290.
Step S210: a calibration area is obtained that characterizes a portion of a display area of a display screen determined based on user manipulation.
In the embodiment of the application, considering the diversity of the lighting effect of the atmosphere lamp, the terminal device can correspondingly bind different color regions with different light-emitting devices, and therefore the terminal device can detect and calibrate the corresponding relation between the regions and the light-emitting devices so as to ensure that the light-emitting devices which show the respective lighting effects are arranged in different display regions of the display screen. The calibration area is a part of a display area of the display screen determined by the terminal device based on user operation, and when the corresponding relation between the calibration area and the light-emitting device is accurate, the calibration area can be used as a color extraction area.
As an implementation mode, the terminal device can acquire the operation of the user on the display screen, the operation represents that the user needs to demarcate different display areas on the display screen, and the operation at least comprises the steps of sliding the screen by a finger and manually setting parameters. After the terminal device obtains the operation, the color-taking area can be determined based on the operation. For example, the terminal device may obtain a sliding operation of the user on the display screen, determine a display area defined by the user on the display screen according to the sliding operation, and use the display area as the calibration area.
Further, after determining the calibration area, the terminal device may send a prompt window to the user, where the prompt window may be used to provide the user with a selection of binding the light-emitting devices to the calibration area, for example, a drop-down menu of selection is displayed in the prompt window, where the drop-down menu includes all the light-emitting devices, so that the light-emitting devices exhibit a light effect that matches the color of the calibration area.
Step S220: calibration color information is determined from the calibration area, the calibration color information being used to characterize color information set in the calibration area based on a user operation.
In order to ensure that the light effect displayed by the light-emitting device can be consistent with the color of the calibration area, a user can set a specific color for each calibration area, and control the light-emitting device corresponding to the calibration area to display the light effect according to the specific color, so that whether the color displayed in the calibration area is consistent with the light effect can be judged. Wherein the calibration color information refers to a specific color set by the user in the calibration area.
As an embodiment, the terminal device may obtain the calibration color information in the calibration area, and optionally, the user may manually input a color parameter for the terminal device to control the light-emitting device to display the light effect, and then the terminal device generates the calibration color information according to the color parameter, where the color parameter may include an RGB value (or a YUV value, etc.). Specifically, after the user determines the color extraction area, arbitrary RGB data may be manually set for the color extraction area through the input box, and then the terminal device acquires the RGB data from the input box and uses the RGB data as calibration color information.
Step S230: and generating a calibration instruction according to the calibration color information, wherein the calibration instruction is used for controlling the light-emitting equipment to show the light effect.
Step S240: and transmitting the calibration instruction to the group control equipment to obtain luminous color information, wherein the luminous color information is used for representing the light effect displayed by the luminous equipment.
In the embodiment of the application, in order to judge whether the light effect displayed by the light-emitting device conforms to the color of the calibration area, the terminal device can generate the calibration instruction according to the calibration color information so as to control the light-emitting device to display the light effect, so that a user can observe and determine the calibration result through human eyes, or compare and judge after obtaining the displayed effect through a computer vision technology.
As an implementation manner, when the terminal device obtains calibration color information, a calibration instruction may be generated according to the calibration color information, where the calibration instruction is used to trigger the group control device to control the target light-emitting device to display the light effect, and further, after the group control device controls the target light-emitting device to display the light effect, the terminal device may obtain light-emitting color information, where the light-emitting color information is used to represent color information of the light effect.
Specifically, terminal equipment can generate control instruction according to the calibration color information in the calibration area and the light emitting equipment that the calibration area corresponds to, and send this control instruction to the crowd control equipment, and the crowd control equipment can connect light emitting equipment when receiving control instruction, and control light emitting equipment to demonstrate the light effect that corresponds with calibration color information, and further, when light emitting equipment demonstrates light effect, terminal equipment can acquire light emitting color information.
It can be understood that the screen of the terminal device may include a plurality of calibration areas, where different calibration areas correspond to different light emitting devices, the terminal device may obtain calibration color information of each calibration area, and generate a control instruction according to the calibration color information of each calibration area, further, the terminal device may send the control instruction to the group control device, and the group control device controls the light emitting devices corresponding to the calibration areas to exhibit a lighting effect according to the control instruction, so that the terminal device may obtain the light emitting color information.
For example, when the light emitting device exhibits a light effect, the user may input the observed light effect exhibited by the light emitting device as light emission color information, such as a color kind of the light effect, a color temperature value, and the like, to the terminal device. Thereby, the terminal device can acquire the light emission color information after the user finishes the input operation. In addition, the user can also shoot the picture of the light effect that the light-emitting device shows through the camera to the picture is uploaded to terminal equipment, and then terminal equipment can obtain luminous colour information according to this picture analysis, it needs to explain that terminal equipment also can pass through the picture that camera device obtained the light effect automatically.
Optionally, after the terminal device obtains the device information of the light-emitting device from the cloud server, the device information may be sent to the group control device, when the terminal device receives a connection request of the light-emitting device, a connection instruction may be generated as a control instruction and sent to the group control device, and when the group control device receives the control instruction, that is, the connection instruction, the light-emitting device may be connected according to the device information.
Step S250: and judging whether the light-emitting color information is matched with the calibration color information.
Step S260: and if the light-emitting color information is matched with the calibration color information, determining the calibration area as a color-taking area.
In some embodiments, the terminal device may match the acquired light-emitting color information with the calibration color information, and further determine whether the light effect displayed by the light-emitting device matches the color of the calibration area according to the matching result. Specifically, the light emission color information and the calibration color information may be subjected to matching calculation.
For example, difference calculation is performed based on RGB values in the lighting color information and the calibration color information, and if the difference calculation result exceeds a preset color difference range, it may be determined that the lighting color information is not matched with the calibration color information, that is, whether the lighting effect exhibited by the lighting device does not match the color of the calibration area. The preset color difference value range is used for representing the tolerance range of errors between the RGB numerical values of the luminous color information and the calibration color information.
In one embodiment, if the emission color information matches the calibration color information, the calibration area is determined as the color extraction area, and if the emission color information does not match the calibration color information, the calibration area is re-acquired and the color extraction area is re-determined. Specifically, the user may adjust the color parameters displayed in the color sampling region to obtain new calibration color information, and then determine the color sampling region again until the light-emitting color information matches the calibration color information.
Step S270: and acquiring image color information on the color taking area.
Step S280: and generating a control rule according to the image color information, wherein the control rule is used for carrying out light emitting control on the light emitting device.
Step S290: and sending the control rule to the group control equipment so that the group control equipment controls the light-emitting equipment according to the control rule.
In this embodiment, the specific implementation of step S270, step S280 and step S290 may refer to the description of step S110 and step S120 provided in the above embodiments, and are not described herein again.
In the embodiment of the application, the terminal device acquires the calibration area, determines calibration color information according to the calibration area, generates a calibration instruction according to the calibration color information, transmits the calibration instruction to the group control device to obtain the light-emitting color information, judges whether the light-emitting color information is matched with the calibration color information, determines the calibration area as the color-taking area if the light-emitting color information is matched with the calibration color information, further acquires image color information on the color-taking area, generates a control rule according to the image color information, and transmits the control rule to the group control device, so that the group control device controls the light-emitting device according to the control rule. Therefore, the terminal equipment ensures that the light-emitting equipment for displaying the respective light effects is arranged in different display areas of the display screen by detecting the corresponding relation between the calibration area and the light-emitting equipment, and the diversity of the light effects is increased.
As shown in fig. 7, fig. 7 schematically illustrates yet another light control method provided by an embodiment of the present application, which is applied to a terminal device configured with a display screen for displaying an image, the terminal device establishing a communication link with a group control device, the group control device establishing a communication link with a plurality of light emitting devices to control the light emitting devices, and the light control method may include the following steps S310 to S350.
Step S310: a color-picking area is determined in an image displayed on a display screen.
Step S320: image color information of each of the plurality of color-extracting regions is acquired.
As an embodiment, the terminal device may determine a plurality of color sampling areas in an image displayed on the display screen, and further obtain corresponding image color information from each color sampling area. In this embodiment, the specific implementation of step S310 and step S320 may refer to the description of step S110 provided in the above embodiments, and details are not repeated here.
Step S330: and acquiring color features in the image color information of each color taking area.
In order to enable the light-emitting device to exhibit a light effect corresponding to the color of the color-extracting region, the terminal device may extract a color feature from the acquired image color information of each color-extracting region, and use the color feature for light effect control of the light-emitting device. The color feature refers to a feature value of the image color information in an RGB color space, where the RGB color space is formed based on a principle that a computer color display adopts R, G, B additive color mixing display colors, and the color feature may specifically be an RGB value, or may be a color feature vector including the image color information, which is not limited herein.
As an embodiment, the terminal device may obtain RGB values corresponding to all pixels of the image of the color sampling region, and obtain an average value of the RGB values corresponding to all pixels in the color sampling region through calculation as the color feature in the image color information of the color sampling region. For example, on the display screen of the terminal device, any one of the color-taking regions has a pixel set V ═ { V ═ V1,v2,…,vn}(n>1 and N ∈ N), where vnThe RGB value of the nth pixel point in the color extraction region is represented, and correspondingly, the color characteristic of the color extraction region is
Figure BDA0003207468740000111
Figure BDA0003207468740000112
As another embodiment, the terminal device may extract color features of an image using deep learning/machine learning after acquiring color information of the image. Optionally, the terminal device performs data preprocessing on the acquired RGB data of the image of the color extraction region to obtain an input data set, and then inputs the input data set into a deep neural network model for extracting color features of the image, and outputs the color features from the deep neural network model, where the deep neural network model may be obtained by training based on a large number of training data sets in advance.
Step S340: generating a control rule according to the color characteristic, the control rule being used to instruct the group control device to control the light emitting device according to the color characteristic.
In the embodiment of the application, after the terminal device generates the color feature, the control rule may be generated according to the color feature. Optionally, the control rule may include a control instruction, and the terminal device may generate a control instruction for controlling the light-emitting device to display the light effect according to the color feature, where the control instruction may control the light-emitting device to display different light effects, including brightness and color of light emitted by the light-emitting device.
For example, the color feature of the image color information may be represented by RGB values, and when the color feature of the image color information acquired by the terminal device in any color sampling region is RGB (α, β, γ), the control instruction corresponding to the color feature may control the light-emitting device to exhibit a lamp effect with a lamp color of RGB (α, β, γ).
Step S350: and sending the control rule to the group control equipment to trigger the group control equipment to control the light-emitting equipment according to the control rule.
In addition to reducing the consumption of excessive computing resources of the terminal equipment, the light color of the light-emitting equipment and the color of the screen of the color taking area of the terminal equipment are required to be kept in synchronous change and the coordination of the light effect display among the light-emitting equipment are also required to be considered.
As an embodiment, the terminal device may be connected to the group control device through a wireless network or a USB interface, and optionally, the terminal device may send the control rule to the group control device through the wireless network, so that the group control device may control the light emitting device according to the control rule.
In the embodiment of the application, the terminal device determines the color taking area in the image displayed on the display screen, and respectively obtains the image color information of each color taking area in the plurality of color taking areas, further obtains the color feature in the image color information of each color taking area, and generates the control rule according to the color feature, so that the control rule is sent to the group control device, and the group control device controls the light emitting device according to the control rule. Therefore, the terminal equipment generates the control rule by extracting the color features in the image color information and controls the light effect of the light-emitting equipment through the group control equipment, so that the synchronous change of the color of the screen of the color taking area and the light color of the light-emitting equipment can be ensured while the consumption of the computing resources of the terminal equipment is reduced, and the user experience is enhanced.
As shown in fig. 8, fig. 8 schematically illustrates another light control method provided by an embodiment of the present application, which is applied to a group control device, the group control device establishing a communication link with a terminal device, the group control device establishing a communication link with a plurality of light emitting devices to control the light emitting devices, and the light control method may include the following steps S410 to S450.
Step S410: and acquiring a control rule sent by the terminal equipment, wherein the control rule at least comprises a state instruction and a control instruction.
In this embodiment, the specific implementation of step S410 may refer to the description of step S130 provided in the above embodiments, and is not described herein again.
Step S420: device information of at least one light-emitting device transmitted by a terminal device is acquired.
In the application embodiment, the light-emitting device may send out a broadcast signal through a wireless local area network, and when the terminal device detects the broadcast signal, the terminal device may obtain device information of the light-emitting device from a cloud service and send the device information to the group control device, and then the group control device may establish a communication link with the light-emitting device according to the device information.
The device information may include at least a device name, a device type, a device communication protocol, and a device physical address of the light emitting device. The device information may be stored in a cloud server. It should be noted that the device information stored in the cloud server is pre-recorded before shipment, each light-emitting device has its own protocol version number, and optionally, the device information of the light-emitting device may be updated.
As an embodiment, when the terminal device detects the broadcast signal of the light emitting device, the device information of the light emitting device may be acquired from the cloud server and transmitted to the group control device, and at this time, the group control device may acquire the device information of the light emitting device transmitted by the terminal device, and optionally, the device information may include device information of a plurality of light emitting devices.
Step S430: and acquiring a pre-stored address of the light-emitting device based on the device information, wherein the pre-stored address is used for representing a physical address of the light-emitting device pre-stored by the terminal device.
Wherein the pre-stored address refers to a physical address of the light emitting device contained in the device information. The group control device may determine which light emitting device to establish a communication link with based on the pre-stored address. As an embodiment, after the group control device acquires the device information, a physical address of the light emitting device may be acquired from the device information as a pre-stored address, where the physical address may be a MAC address of the light emitting device, for example, a MAC: 08-00-20-0A-8C-6D.
Step S440: a communication link is established with the lighting device based on the pre-stored address.
In some embodiments, when the group control device acquires the pre-stored address of the light emitting device, a communication link may be established with the light emitting device according to the pre-stored address.
As an embodiment, when a light emitting device is detected to be present in the network, a detection address of the light emitting device is obtained, where the detection address is used to characterize a physical address of the detected light emitting device, and further, the detection address is matched with a prestored address to obtain a matching result, and according to the matching result, it is determined whether to establish a communication link with the detected light emitting device. And if the detected address is matched with the prestored address, establishing a communication link with the detected light-emitting equipment.
Optionally, the group control device may periodically send a specific UDP broadcast packet (which may include a UDP port for receiving data) to the local area network by using a User Datagram Protocol (UDP) broadcast or multicast mode, the light emitting device in the local area network may return a UDP directional broadcast data packet (which may include an IP address and a unique identifier of the light emitting device) after receiving the broadcast packet, the group control device may establish an IP and light emitting device information mapping relationship (IP may be used for Socket TCP link) after receiving the light emitting device directional broadcast data packet by the search module, and set the state of the light emitting device to an online state, and if the group control device does not receive a confirmation packet of a light emitting device search response within a preset time, for example, 10 seconds, the group control device may convert the state of the light emitting device to an offline state.
Further, the group control device may establish a TCP link for each light emitting device to be connected through the IP and the fixed port of the designated light emitting device connected by the TCP, so as to form a point-to-multipoint wireless local area network, that is, a communication link. In addition, when the TCP link communication of each light emitting device is abnormal, the group control device may determine whether the light emitting device is in an online state, and automatically reconnect the TCP if the light emitting device is in the online state, and not reconnect the TCP if the light emitting device is in the offline state.
The condition that the equipment is disconnected and interfered can be avoided by considering the connection mode of a hardware serial port bus between different equipment. Optionally, the group control device and the light emitting device use a Modbus communication protocol to exchange data. The group control device may act as a master device and the lighting devices may act as slave devices, wherein the master device may communicate with the slave devices individually or in a broadcast manner with all slave devices. If the master device can communicate with the slave device separately, the message returned from the slave device can be used as a response, and if the communication is performed in a broadcast manner, the message can be used as no response, and whether the light-emitting device needing to be connected is online can be detected in a query-response manner, please participate in fig. 9, where fig. 9 shows a query-response process.
Step S450: and sending the control rule to the light-emitting equipment based on the communication link so as to control the light-emitting equipment to feed back the working state according to the state instruction and control the light-emitting equipment to show the light effect according to the control instruction.
In this embodiment of the application, the terminal device may obtain device information of the light emitting device supported by the group control device from the cloud server, and send the device information of the light emitting device to be added to the group control device through a wireless connection mode (Wi-Fi/BLE point-to-point connection), the group control device stores the device information of the light emitting device to be connected in a Non-Volatile (Non-Volatile) memory, and then the group control device may search and establish a communication link with the corresponding light emitting device according to a physical address in the device information through a wireless networking mode (Wi-Fi/BLE).
As an implementation manner, the group control device may put data to be transmitted into a transmission queue, for example, put a control rule into the transmission queue, and further, the group control device may transmit the transmission queue to the corresponding light emitting device according to a communication link established by different device communication protocols, thereby achieving an effect of uniformly controlling the light emitting devices to display light.
Exemplarily, as shown in fig. 10, fig. 10 shows a system architecture diagram of a light control system provided in an embodiment of the present application, where the light control system includes a cloud server, a terminal device, a group control device, and a light emitting device. The terminal device may include a cloud synchronization service, a data acquisition and processing service, and a calibration service. The group control device may include an interaction service as well as a management service. The terminal device and the group control device, and the group control device and the light emitting device can establish communication links through a wireless Network or a serial bus, and the terminal device can establish communication links with a cloud server through a Cellular Network (Cellular Network).
Optionally, the cloud synchronization service may be used for the terminal device to obtain, from the cloud server, device information of the light-emitting device supported by the group control device, where the device information may include a device name, a device type, a device communication protocol, and the like, and the cloud synchronization service may also be used for the terminal device to transmit the device information of the light-emitting device to be connected to the group control device through the communication link.
Optionally, the data collection and processing service may include a data collection module, a data analysis module, and a Socket server. The data acquisition module can be used for acquiring image color information of a color taking area on the display screen by the terminal equipment. The data analysis module can be used for carrying out data analysis on the image color information to obtain color characteristics, generating a control rule for carrying out light emitting control on the light emitting equipment according to the color, and transmitting the control rule to the group control equipment. The Socket server may provide an Application Programming Interface (API) for interacting with other modules, and is used to configure parameters of data acquisition, such as resolution, frame rate, and the like.
Optionally, the calibration service is configured to determine a color extraction area, and the user defines a specific display area on a display screen of the terminal device, and specifies a corresponding lighting device and a corresponding lighting color in the display area, and determines the color extraction area by comparing the lighting color with a lighting effect of the lighting device. When the color extraction area is determined, the calibration service can synchronously transmit the corresponding relation between the color extraction area and the light-emitting device to the data acquisition and processing service through the Socket server so that the data acquisition and processing service can acquire the image color information of the color extraction area.
Optionally, the interactive service may be used for the group control device to cyclically receive the control rule transmitted by the terminal device communication link and parse the control rule. The management service may be used to connect the lighting devices and to perform lamp efficiency control on the lighting devices according to the result of the control rule parsing. It should be noted that the group control device and the lighting device may communicate with each other through a Wi-Fi router.
In the embodiment of the application, the group control device acquires the control rule sent by the terminal device, acquires the device information of at least one light-emitting device sent by the terminal device, acquires the pre-stored address of the light-emitting device based on the device information, acquires the detection address of the light-emitting device when detecting that the light-emitting device exists in the network, matches the detection address with the pre-stored address to obtain a matching result, determines whether to establish a communication link with the detected light-emitting device according to the matching result, and sends the control rule to the light-emitting device based on the communication link so as to control the light-emitting device to feed back the working state according to the state instruction and control the light-emitting device to show the light effect according to the control instruction. So that the group control device can establish a communication link with the light emitting devices and perform synchronous light emitting control on the light emitting devices.
Referring to fig. 11, a block diagram of a light control device 600 according to an embodiment of the present disclosure is shown. The light control apparatus 600 is applied to a terminal device equipped with a display screen for displaying an image, the terminal device establishing a communication link with a group control device, the group control device establishing a communication link with a plurality of light emitting devices to control the light emitting devices, and the apparatus may include: a determining module 610, configured to determine a color-taking area in an image displayed on a display screen, where the color-taking area is used to obtain image color information corresponding to a part of a display area of the display screen; a color obtaining module 620, configured to obtain image color information on the color taking area; a generating module 630, configured to generate a control rule according to the image color information, where the control rule is used to perform lighting control on the lighting apparatus; the first sending module 640 is configured to send a control rule to the group control device, where the control rule is used to trigger the group control device to control the light emitting device according to the control rule.
In some embodiments, the color extraction regions are associated with corresponding light emitting devices, and the determining module 610 may be specifically configured to: acquiring a calibration area, wherein the calibration area is used for representing at least one part of a display area of a display screen determined based on user operation; determining calibration color information from the calibration area, the calibration color information being used to characterize color information set in the calibration area based on a user operation; generating a calibration instruction according to the calibration color information, wherein the calibration instruction is used for controlling the light-emitting equipment to show the light effect; transmitting the calibration instruction to the group control equipment to obtain luminous color information, wherein the luminous color information is used for representing the light effect displayed by the luminous equipment; judging whether the luminous color information is matched with the calibration color information; and if the light-emitting color information is matched with the calibration color information, determining the calibration area as a color-taking area.
In some embodiments, the display screen includes a plurality of color sampling regions, and the color obtaining module 620 is configured to obtain image color information of each color sampling region in the plurality of color sampling regions, respectively;
the generating module 630 may be further specifically configured to obtain color features in the image color information of each color extraction region; generating a control rule according to the color characteristic, the control rule being used to instruct the group control device to control the light emitting device according to the color characteristic.
Referring to fig. 12, a block diagram of another light control device 700 according to an embodiment of the present disclosure is shown. The light control apparatus 700 is applied to a group control device, the group control device establishes a communication link with a terminal device, the group control device establishes a communication link with a plurality of light emitting devices to control the light emitting devices, and the apparatus may include: a rule obtaining module 710, configured to obtain a control rule sent by a terminal device, where the control rule at least includes a status instruction and a control instruction; and a second sending module 720, configured to send the control rule to the light-emitting device, so as to control the light-emitting device to feed back the working state according to the state instruction and control the light-emitting device to display the light effect according to the control instruction.
In some embodiments, the light control device 700 may further include: the information acquisition module is used for acquiring the equipment information of at least one light-emitting equipment sent by the terminal equipment; the address acquisition module is used for acquiring a pre-stored address of the light-emitting equipment based on the equipment information, wherein the pre-stored address is used for representing a physical address of the light-emitting equipment pre-stored by the terminal equipment; and the establishing module is used for establishing a communication link with the light-emitting equipment according to the prestored address.
The second sending module 720 may specifically be configured to send the control rule to the light emitting device based on the communication link.
In some embodiments, the establishing module may be specifically configured to: when the light-emitting device exists in the network, acquiring a detection address of the light-emitting device, wherein the detection address is used for representing a physical address of the detected light-emitting device; matching the detection address with a prestored address to obtain a matching result; determining whether to establish a communication link with the detected light emitting device according to the matching result, including: and if the detected address is matched with the prestored address, establishing a communication link with the detected light-emitting equipment.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and modules may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, the coupling between the modules may be electrical, mechanical or other type of coupling.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
The embodiment of the application also provides a light control system, which comprises terminal equipment, group control equipment and light-emitting equipment, wherein the group control equipment is respectively communicated with the terminal equipment and the light-emitting equipment, and the terminal equipment is provided with a display screen for displaying images. The system comprises:
the terminal equipment is used for determining a color taking area in an image displayed on the display screen, acquiring image color information on the color taking area, generating a control rule according to the image color information and sending the control rule to the group control equipment;
and the group control equipment is used for acquiring the control rule sent by the terminal equipment, wherein the control rule comprises a state instruction and a control instruction, and is also used for sending the control rule to the light-emitting equipment so as to control the light-emitting equipment to feed back the working state according to the state instruction and control the light-emitting equipment to show the light effect according to the control instruction.
As shown in fig. 13, an embodiment of the present application further provides an electronic device 800, where the electronic device 800 includes a processor 810, a memory 820 and a display screen 830, the memory 820 stores computer program instructions, and the computer program instructions are invoked by the processor 810 to execute the light control method.
Processor 810 may include one or more processing cores. The processor 810 interfaces with various interfaces and circuitry throughout the various parts of the battery management system to perform various functions of the battery management system and process data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 820 and invoking data stored in the memory 820. Alternatively, the processor 810 may be implemented in hardware using at least one of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 810 may integrate one or a combination of a Central Processing Unit (CPU) 810, a Graphics Processing Unit (GPU) 810, a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing display content; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 810, but may be implemented by a communication chip.
The Memory 820 may include a Random Access Memory (RAM) 820 or a Read-Only Memory (Read-Only Memory) 820. The memory 820 may be used to store instructions, programs, code, sets of codes, or sets of instructions. The memory 820 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing various method embodiments described below, and the like. The storage data area can also store data (such as a phone book, audio and video data, chatting record data) created by the electronic device map in use and the like.
As shown in fig. 14, an embodiment of the present application further provides a computer-readable storage medium 900, where computer program instructions 910 are stored in the computer-readable storage medium 900, and the computer program instructions 910 can be called by a processor to execute the method described in the above embodiment.
The computer-readable storage medium may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Alternatively, the computer-readable storage medium includes a non-volatile computer-readable storage medium. The computer readable storage medium 900 has storage space for program code for performing any of the method steps of the method described above. The program code can be read from or written to one or more computer program products. The program code may be compressed, for example, in a suitable form.
Although the present application has been described with reference to the preferred embodiments, it is to be understood that the present application is not limited to the disclosed embodiments, but rather, the present application is intended to cover various modifications, equivalents and alternatives falling within the spirit and scope of the present application.

Claims (12)

1. A light control method applied to a terminal device provided with a display screen for displaying an image, the terminal device establishing a communication link with a group control device that establishes a communication link with a plurality of light emitting devices to control the light emitting devices, the method comprising:
determining a color taking area in an image displayed by the display screen, wherein the color taking area is used for acquiring image color information corresponding to a part of display area of the display screen;
acquiring image color information on the color taking area;
generating a control rule according to the image color information, wherein the control rule is used for carrying out light emitting control on the light emitting equipment; and
and sending the control rule to the group control equipment, wherein the control rule is used for triggering the group control equipment to control the light-emitting equipment according to the control rule.
2. The method of claim 1, wherein the lighting device associated with the color extraction region, and wherein determining the color extraction region in the image displayed on the display screen comprises:
acquiring a calibration area, wherein the calibration area is used for representing a part of a display area of the display screen determined based on user operation;
determining calibration color information according to the calibration area, wherein the calibration color information is used for representing color information set in the calibration area based on user operation;
generating a calibration instruction according to the calibration color information, wherein the calibration instruction is used for controlling the light-emitting equipment to show the light effect;
transmitting the calibration instruction to the group control equipment to obtain luminous color information, wherein the luminous color information is used for representing the light effect displayed by the luminous equipment;
judging whether the light-emitting color information is matched with the calibration color information; and
and if the luminous color information is matched with the calibration color information, determining the calibration area as the color sampling area.
3. The method of claim 1, wherein the display screen comprises a plurality of color sampling areas, and wherein the obtaining image color information on the color sampling areas comprises:
respectively acquiring image color information of each color taking area in the plurality of color taking areas;
the generating of the control rule according to the image color information includes:
acquiring color features in the image color information of each color taking area; and
generating a control rule according to the color feature, the control rule being used to instruct the group control device to control the light emitting device according to the color feature.
4. A light control method applied to a group control device, the group control device establishing a communication link with a terminal device, the group control device establishing a communication link with a plurality of light emitting devices to control the light emitting devices, the method comprising:
acquiring a control rule sent by the terminal equipment, wherein the control rule at least comprises a state instruction and a control instruction; and
and sending the control rule to the light-emitting equipment so as to control the light-emitting equipment to feed back the working state according to the state instruction and control the light-emitting equipment to show the light effect according to the control instruction.
5. The method of claim 4, further comprising:
acquiring device information of at least one of the light-emitting devices transmitted by the terminal device;
acquiring a pre-stored address of the light-emitting device based on the device information, wherein the pre-stored address is used for representing a physical address of the light-emitting device pre-stored by the terminal device; and
establishing a communication link with the light-emitting device according to the prestored address;
the sending the control rule to the light emitting device includes:
sending the control rule to the light emitting device based on the communication link.
6. The method according to claim 5, wherein establishing a communication link with the lighting device according to the pre-stored address comprises:
when a light-emitting device is detected to exist in a network, acquiring a detection address of the light-emitting device, wherein the detection address is used for representing a detected physical address of the light-emitting device;
matching the detection address with a prestored address to obtain a matching result; and
determining whether to establish a communication link with the detected light emitting device according to the matching result, including:
and if the detection address is matched with a prestored address, establishing a communication link with the detected light-emitting equipment.
7. A light control method is applied to a light control system, the light control system comprises a terminal device, a group control device and a light emitting device, the group control device establishes communication links with the terminal device and the light emitting device respectively, the terminal device is provided with a display screen for displaying images, and the method comprises the following steps:
the terminal equipment determines a color taking area in the image displayed on the display screen and acquires image color information on the color taking area;
the terminal equipment generates a control rule according to the image color information and sends the control rule to the group control equipment;
the group control equipment acquires a control rule sent by the terminal equipment, wherein the control rule comprises a state instruction and a control instruction;
and the group control equipment sends the control rule to the light-emitting equipment so as to control the light-emitting equipment to feed back the working state according to the state instruction and control the light-emitting equipment to show the light effect according to the control instruction.
8. A terminal device configured with a display screen for displaying images, the terminal device establishing a communication link with a group control device, the group control device establishing a communication link with a plurality of light emitting devices to control the light emitting devices, the terminal device comprising:
the device comprises a determining module, a color extracting module and a color extracting module, wherein the determining module is used for determining a color extracting area in an image displayed by the display screen, and the color extracting area is used for acquiring image color information corresponding to a part of display area of the display screen;
the color acquisition module is used for acquiring image color information on the color taking area;
the generating module is used for generating a control rule according to the image color information, and the control rule is used for carrying out light emitting control on the light emitting equipment; and
the first sending module is used for sending the control rule to the group control equipment, and the control rule is used for triggering the group control equipment to control the light-emitting equipment according to the control rule.
9. A group control device, wherein the group control device establishes a communication link with a terminal device, wherein the group control device establishes a communication link with a plurality of light emitting devices to control the light emitting devices, and wherein the group control device comprises:
a rule obtaining module, configured to obtain a control rule sent by the terminal device, where the control rule at least includes a status instruction and a control instruction; and
and the second sending module is used for sending the control rule to the light-emitting equipment so as to control the light-emitting equipment to feed back the working state according to the state instruction and control the light-emitting equipment to show the light effect according to the control instruction.
10. The light control system is characterized by comprising terminal equipment, group control equipment and light-emitting equipment, wherein the group control equipment is respectively communicated with the terminal equipment and the light-emitting equipment, and the terminal equipment is provided with a display screen for displaying images. Wherein:
the terminal device is used for determining a color taking area in the image displayed on the display screen and acquiring image color information on the color taking area;
the terminal device is further configured to generate a control rule according to the image color information, and send the control rule to the group control device;
the group control device is used for acquiring a control rule sent by the terminal device, wherein the control rule comprises a state instruction and a control instruction; and
the group control equipment is further used for sending the control rule to the light-emitting equipment so as to control the light-emitting equipment to feed back the working state according to the state instruction and control the light-emitting equipment to show the light effect according to the control instruction.
11. An electronic device, comprising:
a display screen;
a memory;
one or more processors;
one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the method of any of claims 1-7.
12. A computer-readable storage medium, having stored thereon program code that can be invoked by a processor to perform the method according to any one of claims 1 to 7.
CN202110921083.8A 2021-08-11 2021-08-11 Light control method, device, system, electronic equipment and storage medium Pending CN113672146A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110921083.8A CN113672146A (en) 2021-08-11 2021-08-11 Light control method, device, system, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110921083.8A CN113672146A (en) 2021-08-11 2021-08-11 Light control method, device, system, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113672146A true CN113672146A (en) 2021-11-19

Family

ID=78542361

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110921083.8A Pending CN113672146A (en) 2021-08-11 2021-08-11 Light control method, device, system, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113672146A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114401574A (en) * 2021-12-02 2022-04-26 北京小米移动软件有限公司 Light emission control method and system, display device, and readable storage medium
WO2023123581A1 (en) * 2021-12-29 2023-07-06 深圳市智岩科技有限公司 Lamp effect control method and apparatus, illumination device, electronic device, and storage medium
CN117042247A (en) * 2023-10-10 2023-11-10 深圳市千岩科技有限公司 Segmentation method, segmentation device, luminaire and computer-readable storage medium
CN118019193A (en) * 2024-04-08 2024-05-10 深圳爱图仕创新科技股份有限公司 Lamp body control method, device, computer equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106922057A (en) * 2015-12-24 2017-07-04 北京奇虎科技有限公司 The closely control method and system of illuminating lamp
CN107771313A (en) * 2015-03-31 2018-03-06 飞利浦照明控股有限公司 Color extractor
CN107995404A (en) * 2017-12-28 2018-05-04 欧普照明股份有限公司 A kind of region control method and system, controller, camera and lamps and lanterns
CN111132408A (en) * 2020-01-09 2020-05-08 中山市晓琦智能科技有限公司 Lamp control system and control method thereof
CN111123877A (en) * 2020-01-10 2020-05-08 浙江创意声光电科技有限公司 Intelligent lighting control system and method
CN112512184A (en) * 2020-12-02 2021-03-16 深圳市智岩科技有限公司 Color-taking illumination control method, device, system and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107771313A (en) * 2015-03-31 2018-03-06 飞利浦照明控股有限公司 Color extractor
CN106922057A (en) * 2015-12-24 2017-07-04 北京奇虎科技有限公司 The closely control method and system of illuminating lamp
CN107995404A (en) * 2017-12-28 2018-05-04 欧普照明股份有限公司 A kind of region control method and system, controller, camera and lamps and lanterns
CN111132408A (en) * 2020-01-09 2020-05-08 中山市晓琦智能科技有限公司 Lamp control system and control method thereof
CN111123877A (en) * 2020-01-10 2020-05-08 浙江创意声光电科技有限公司 Intelligent lighting control system and method
CN112512184A (en) * 2020-12-02 2021-03-16 深圳市智岩科技有限公司 Color-taking illumination control method, device, system and storage medium

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114401574A (en) * 2021-12-02 2022-04-26 北京小米移动软件有限公司 Light emission control method and system, display device, and readable storage medium
CN114401574B (en) * 2021-12-02 2024-01-09 北京小米移动软件有限公司 Light emission control method and system, display device, and readable storage medium
WO2023123581A1 (en) * 2021-12-29 2023-07-06 深圳市智岩科技有限公司 Lamp effect control method and apparatus, illumination device, electronic device, and storage medium
CN117042247A (en) * 2023-10-10 2023-11-10 深圳市千岩科技有限公司 Segmentation method, segmentation device, luminaire and computer-readable storage medium
CN117042247B (en) * 2023-10-10 2024-02-23 深圳市千岩科技有限公司 Segmentation method, segmentation device, luminaire and computer-readable storage medium
CN118019193A (en) * 2024-04-08 2024-05-10 深圳爱图仕创新科技股份有限公司 Lamp body control method, device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN113672146A (en) Light control method, device, system, electronic equipment and storage medium
CN113412469B (en) Equipment network distribution method and device, electronic equipment and storage medium
CN113677071B (en) Lamp control method and device, electronic equipment and storage medium
US11061385B2 (en) Method, apparatus and system for controlling device
CN109617963B (en) Equipment control method and device and Internet of things system
US10591999B2 (en) Hand gesture recognition method, device, system, and computer storage medium
CN112596406A (en) Control method and device of intelligent equipment, control panel and storage medium
WO2023015607A1 (en) Control method and apparatus for light emitting device, electronic device, and storage medium
CN110798646B (en) Indoor cloud intercom method, indoor cloud intercom and storage medium
CN109788359B (en) Video data processing method and related device
CN113692091B (en) Equipment control method, device, terminal equipment and storage medium
CN112764351A (en) Control method and device of intelligent device, electronic device and storage medium
EP2779532A1 (en) Electrical equipment and communication apparatus
CN109981424B (en) Linkage scheme processing method and device, electronic equipment and storage medium
CN110045705B (en) Intelligent home control method, device and system adopting heterogeneous wireless network
CN113132191A (en) Voice control method of intelligent device, intelligent device and storage medium
CN112996206B (en) Stroboscopic lamp information acquisition method and device, stroboscopic lamp and light supplementing system
CN114553626A (en) Equipment state query method, query device, electronic equipment and storage medium
CN113254077B (en) State control method and device of intelligent equipment, electronic equipment and storage medium
CN109116998B (en) Electronic system capable of sharing peripheral device
CN113784486B (en) Equipment control method, device, electronic equipment and storage medium
CN113254077A (en) State control method and device of intelligent equipment, electronic equipment and storage medium
CN110636099A (en) Control method, device, equipment and system of electronic equipment
CN112738445B (en) Multi-line plug flow method and device, storage medium and electronic equipment
CN116997062B (en) Control method, device, illumination structure and computer 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