Disclosure of Invention
The invention aims to provide a lighting device control method capable of presenting rich and complex scenes.
In order to achieve the above object, the present invention provides a lighting device control method, the lighting device including at least one light source assembly including a plurality of light emitting units each having an independent control address, the lighting device control method comprising:
selecting a viewing area, the viewing area having a number of pixel locations;
Establishing a first position mapping relation between a control address of each light emitting unit in the light source assembly and a pixel position of the view finding area;
importing a target image into the scenic spot, wherein the target image has a plurality of pixel positions;
Establishing a second position mapping relation between the pixel position of the target image and the pixel position of the view finding area;
Extracting pixel information at a pixel position of the target image corresponding to the pixel position in the view-finding area based on the first position mapping relation and the second position mapping relation, and sending the pixel position of the view-finding area and the pixel information corresponding to the pixel position on the target image to the lighting device;
And adjusting the color of the light rays emitted by the lighting device based on the pixel information of the target image and the pixel position of the view finding area.
Optionally, the lighting device control method further includes:
The target image is imported into the view finding area, the size of the pixel size of the target image and the size of the pixel size of the view finding area are judged,
When the pixel size of the target image is larger than the pixel size of the viewing area,
Reducing the pixel size of the target image to adapt to the pixel size of the viewing area, establishing a second position mapping relationship between the pixel position of the target image and the pixel position of the viewing area after reduction, or
And directly importing the target image into the view finding area, and establishing a second position mapping relation between the pixel position of the target image matched with the pixel size of the view finding area and the pixel position of the view finding area.
Optionally, the lighting device control method further includes:
The target image is imported into the view finding area, the size of the pixel size of the target image and the size of the pixel size of the view finding area are judged,
When the pixel size of the target image is smaller than the pixel size of the viewing area,
Enlarging the pixel size of the target image to make the target image occupy the view finding area, establishing a second position mapping relation between the pixel position of the enlarged target image and the pixel position of the view finding area, or
And directly importing the target image into the view finding area, and establishing a second position mapping relation of pixel positions of the view finding area matched with the pixel size of the target image.
Optionally, the pixel size of the viewfinder area is less than or equal to 1000×1000.
Optionally, the view finding area comprises any one of a square view finding area, a rectangular view finding area and a round view finding area,
When the view finding area is a square view finding area or a round view finding area, the target image led in the view finding area is square;
When the viewing area is a rectangular viewing area, the target image introduced into the viewing area is rectangular. Optionally, the lighting device stores the received pixel position and the pixel information in a scene number, different scene numbers correspond to different target images, and the lighting device displays the pattern of the target image corresponding to the scene number by calling the different scene numbers.
Optionally, the step of remotely controlling the display pattern of the lighting device by the APP comprises:
selecting a target image through the APP;
Sending an instruction for calling the target image to the cloud through the APP;
the cloud end sends an instruction for calling the scene number corresponding to the target image to a gateway;
Each gateway broadcasts and calls the scene number to the lighting device connected with the gateway;
the lighting device responds to the broadcast call of the gateway and displays the pattern of the target image.
Optionally, the step of controlling the lighting device by a panel includes:
selecting a target image through the panel;
Sending an instruction for calling the scene number corresponding to the target image to a gateway through the panel;
the gateway sends an instruction for calling the scene number to other gateways in the local area network;
each gateway performs broadcast call on the lighting device connected with the gateway;
the lighting device responds to the broadcast call of the gateway and displays the pattern of the target image.
Another object of the present invention is to provide a lighting device applying the above lighting device control method.
In order to achieve the above object, the present invention provides a lighting device, and the lighting device control method is applied.
Another object of the present invention is to provide a lighting system comprising the above lighting device.
To achieve the above object, the present invention provides an illumination system comprising:
the lighting device;
The control end is configured to enable a user to select a target image and send a calling instruction to the lighting device, and comprises an APP and/or a panel;
The control end performs data transmission with the lighting device through the communication module, and the communication module comprises a cloud end and a gateway.
Compared with the prior art, the lighting device has the beneficial effects that firstly, the viewing area is selected, the pixel positions corresponding to the control addresses of the light emitting units one by one are arranged in the viewing area, after the target image is led into the viewing area, the pixel information of each pixel position is extracted, each light emitting unit of the lighting device can emit light rays with corresponding colors according to the pixel information of the corresponding pixel position, the lighting device can display the selected patterns of the target image, and the lighting device can display the patterns of various target images, so that the lighting effect of the lighting device is improved, and has stronger adaptability.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in detail with reference to the accompanying drawings and specific embodiments.
In this case, in order to avoid obscuring the present invention due to unnecessary details, only the structures and/or processing steps closely related to the aspects of the present invention are shown in the drawings, and other details not greatly related to the present invention are omitted.
In addition, it should be further noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus.
The present invention provides an illumination system, which is described below in connection with specific embodiments.
The lighting system comprises a control end and a plurality of lighting devices, wherein the lighting devices comprise at least one light source assembly, the light source assembly comprises a plurality of light emitting units, each light emitting unit is provided with an independent control address, and the lighting devices can be controlled by the following lighting device control method:
Selecting a view finding area, wherein the view finding area is provided with a plurality of pixel positions;
Establishing a first position mapping relation between a control address of each light emitting unit in the light source assembly and a pixel position of a view finding area;
leading in a target image to be led into a scenic spot, so that the target image has a plurality of pixel positions;
Establishing a second position mapping relation between the pixel position of the target image and the pixel position of the view finding area;
And extracting pixel information at a pixel position of the target image corresponding to the pixel position of the viewing area based on the first position mapping relation and the second position mapping relation, and sending the pixel position of the viewing area and the extracted pixel information in the target image corresponding to the pixel position to the lighting device.
The color of the light emitted by each light emitting unit is adjusted based on the pixel information of the target image and the pixel position of the view finding area, so that the lighting device displays the pattern of the target image.
As shown in fig. 1, in the illumination system of the present invention, the illumination device controls each light emitting unit to emit light of a color corresponding to the pixel information according to the pixel position of the view-finding area and the pixel information of the pixel position corresponding to the extracted target image, and the illumination device displays the pattern corresponding to the target image as a whole, thereby having more diversified display patterns.
In this embodiment, the pixel information specifically includes color coordinate information, the control end sends the color coordinate information of each control address to the lighting device, the lighting device controls the light emitting units of each control address to display corresponding colors according to the color coordinates, and the brightness value is set between 1% and 100% according to the needs.
After the target image is imported into the view finding area, the pixel size of the target image and the pixel size of the view finding area are judged first, when the pixel size of the target image is larger than the pixel size of the view finding area, the pixel size of the target image is reduced to adapt to the pixel size of the view finding area, a second position mapping relation between the pixel position of the reduced target image and the pixel position of the view finding area is built, or the target image is imported into the view finding area directly, and only the second position mapping relation between the pixel position of the target image matched with the pixel size of the view finding area and the pixel position of the view finding area is built.
When the pixel size of the target image is smaller than that of the view finding area, the pixel size of the target image is enlarged to cover the view finding area, a second position mapping relation between the pixel position of the enlarged target image and the pixel position of the view finding area is established, or the target image is directly imported into the view finding area, only the second position mapping relation between the pixel position of the view finding area matched with the pixel size of the target image is established, at the moment, a second mapping relation is not established between part of pixel positions in the view finding area and the pixel position of the target image, and the part of pixel positions in the view finding area are directly endowed with preset background color pixel information.
In this embodiment, the pixel size of the viewfinder area is 1000×1000 or less.
The view finding area comprises any one of a square view finding area, a rectangular view finding area and a round view finding area, when the view finding area is the square and the round view finding area, the target image imported into the view finding area is the square, and when the view finding area is the rectangle, the target image imported into the view finding area is the rectangle.
In other embodiments, the pixel information further includes luminance information, as shown in fig. 5, where the control end packages the color coordinate information, the luminance information, and the pixel information and sends them to the lighting device, where Bright in fig. 5 is the luminance information, cx and Cy are the color coordinate information, and the lighting device uses the received luminance information as a reference value, and sets the luminance displayed by the lighting device.
In some embodiments, the light source assembly 100 includes a plurality of light emitting base bands 120, each light emitting base band 120 includes a plurality of light emitting units 110 with the same number, and the arrangement modes of the light emitting base bands 120 include a transverse arrangement, a vertical arrangement, an annular arrangement, and the like.
The control end packages the pixel information of each converted control address, including color coordinates, brightness information and pixel positions, as scene lighting parameters, and sends the scene lighting parameters to the corresponding lighting devices, the lighting devices store the received scene lighting parameters into a scene number, different scene numbers in the lighting devices correspond to unused target images, and when the lighting devices are required to be controlled to display different target images, the whole control process can be realized only by calling different scene numbers through the control end.
As shown in fig. 6, in some embodiments, the control end may be an APP on various mobile devices, and the user may remotely control the lighting device to adjust through the APP, which specifically includes the following steps:
selecting a target image through an APP;
the APP sends an instruction for calling the target image to the cloud;
the cloud end screens the lighting devices matched with the target image and sends instructions for calling scene numbers corresponding to the target image to the gateway connected with the lighting devices;
Each gateway performs broadcast calling scene number on the lighting device connected with the gateway;
The lighting device adapted to the target image responds to the broadcast call of the gateway and displays the pattern of the target image.
As shown in fig. 7, in some embodiments, the control end may be a panel in the lighting device, and the step of controlling the lighting device to adjust through the panel specifically includes:
Selecting a target image through a panel;
The panel sends an instruction for calling the scene number corresponding to the target image to the gateway;
The gateway analyzes the instruction through the engine and sends an instruction for calling the scene number to other gateways in the local area network;
each gateway performs broadcast call on the lighting device connected with the gateway;
The lighting device responds to the broadcast call of the gateway and displays the pattern of the target image.
In some embodiments, the transmission is made between the gateway and the lighting device through a BLE bluetooth device.
The following are embodiments of selecting a target image through a viewing area when the light emitting units 110 in the light source module 100 are arranged in different ways.
Example 1
As shown in fig. 2 and 3, in the present embodiment, the selected viewing area is square, and the side pixels of the viewing area are S.
The light emitting units 110 in the light source assembly 100 are arranged in an annular shape, specifically, the light source assembly 100 comprises a light source substrate and a plurality of light emitting base bands 120 containing the same number of the light emitting units 110, the light source substrate is in a circular shape, the light source substrate comprises a first part 130 which is positioned at the center of the light source substrate and is in a circular shape, and a second part 140 which surrounds the first part 130, the radius of the light source substrate is R1, the radius of the first part 130 is R2, the plurality of light emitting base bands 120 are distributed on the second part 140, the number of the light emitting base bands 120 is M, the average interval angle of each light emitting base band 120 is 360/M, the number of the light emitting base bands 120 in the 3 o' clock direction is assumed to be 1, the number of the light emitting base bands 120 is 1~M anticlockwise, the angle value of the light emitting base band 120 in the number Z is (360/M) is assumed to be (Z-1), the length L (M) =R1-R2 of the light emitting base bands 120, and assuming that e light emitting units 110 are arranged each meter, one control address is arranged on each light emitting unit 110, and e control addresses are shared (R1-R2) on the single light emitting base band 120, and the viewing base band is also arranged on the area.
On the light source substrate, assuming that the pixel values of all the light emitting units 110 on the light source assembly 100 are r1=r1×e, assuming that the pixel values of all the control addresses on the second portion 140 are r2=r2×e, the scaling factor of the light emitting baseband 120 to be combined into a virtual pixel point and an actual picture pixel point is N, n=s/(R1× 2*e), specifically, the address of the light emitting unit 110 on the light emitting baseband 120 is t, (x 0, y 0) is the center coordinate value of the light emitting baseband 120 after virtual to the light emitting unit 110, the center coordinate value is (0, 0), the current required number Z of light emitting baseband 120 and the center horizontal angle are a= (360/M) = (Z-1), and then the control address x1, y1 of the light emitting unit 110 at the current position t on the light emitting baseband 120 is:
x1=x0+(r2+t-1)*cos(a);
y1=y0+(r2+t-1)*sin(a);
The pixel positions of the light emitting units 110 on the viewing area corresponding to address t on the light emitting base band 120 numbered z are:
X1=[x0+(R2*e+t-1)*cos((360/M)*(Z-1))]*S/(R1*2e);
Y1=[y0+(R2*e+t-1)*sin((360/M)*(Z-1))]*S/(R1*2e);
The pixel information on the target image extracted at the pixel position is converted from the sRGB color space to the XYZ color space, and the pixel information is converted from the XYZ color space to the Yxy color space, where x, y in the Yxy color space are respectively taken as the color coordinates Cx, cy of the corresponding light emitting unit 110 (x 1, y 1) on the light emitting base band 120.
The Y value in the Yxy color space is color brightness, which is an absolute value, and is not a dimming brightness ratio, and generally the Y value cannot be directly used as the brightness of the light emitting baseband 120, where 1% -100% of brightness output can be set in the lighting device according to actual needs. In some embodiments, the Y value is also sent to the lighting device, which may use the luminance Y value as a reference.
Example two
In this embodiment, as shown in fig. 4 (a) and fig. 4 (b), when the light emitting units 110 in the light source assembly 100 are arranged in a rectangular shape, the selected viewing area is also rectangular, and in this embodiment, the light emitting units 110 are arranged in an array of 8*4, and the total number of the light emitting units 110 is shown as 4 (b). The aspect ratio of the light source module 100 is identical to that of the view area, and the view area also includes 32 pixel positions which are one-to-one with the control addresses of the light emitting units.
After the target image is imported into the view area, extracting pixel information of 32 pixel positions in the view area, converting the pixel information of each pixel position from an sRGB color space to an XYZ color space, and converting the pixel information from the XYZ color space to a Yxy color space, wherein x and y in the Yxy color space are respectively used as color coordinates Cx and Cy of each light emitting unit 110 corresponding to the pixel position on the light emitting base band 120.
In some embodiments, the control end is connected to the lighting device through the cloud end and the gateway for transmission, and when the control end is transmitted through the gateway, the data packet often exceeds 1k because the data volume of the pixel information is larger, so that the pixel information of each control address is transmitted to the lighting device from the control end through the cloud end and the gateway in sequence in a manner of packetizing the pixel information. In other embodiments, the control end may also directly perform data transmission with the lighting device through bluetooth, and the invention does not limit the data transmission manner.
In some embodiments, the lighting system includes a plurality of lighting devices, the control end is connected with the plurality of lighting devices through the cloud, after the mapping of the light source assembly 100 and the target image is completed on the control end, pixel information is used as scene lighting parameters of the target image and sent to all lighting devices matched with the target image, the lighting devices store the scene lighting parameters into a scene number, when the lighting devices are subsequently called, the control end selects the target image, screens the lighting devices capable of applying the target image on the cloud, sends the calling instruction to the lighting devices, the calling instruction includes the scene number corresponding to the target image, the lighting devices display the pattern of the icon image corresponding to the scene number after receiving the calling instruction, and the lighting system can conveniently and rapidly control the plurality of lighting devices in the system.
The control end of the lighting system comprises APP on various devices and a panel in the lighting device, and each scene number is called through the APP or the panel.
As shown in fig. 5, a flow chart of calling an illumination device through an APP is shown, a user selects a target image at the APP end, after receiving an instruction, screens a gateway connected with the illumination device supporting the target image, sends the instruction to the part of gateway, and then the part of gateway performs broadcast calling to all illumination devices connected with the part of gateway, the illumination device supporting the target image responds to the instruction, and the illumination device issues scene illumination parameters in the scene number to each illumination unit, so that the illumination device displays a pattern of the corresponding target image.
As shown in fig. 6, the flow chart is shown by calling a panel in the lighting device, after the panel selects a target image, the panel sends an instruction to a gateway connected with the lighting device through bluetooth, the gateway also sends the instruction to other gateways in the local area network after receiving the instruction, each gateway analyzes the instruction through an automation engine, then broadcasts and calls a scene number corresponding to the target image to the lighting device, and the lighting device responds to the instruction to display the pattern of the corresponding target image.
In summary, in the lighting device control method of the present invention, the mapping relationship between the control address of each light emitting unit 110 in the light source assembly 100 and the pixel position in the target image is established, the pixel information corresponding to each pixel position in the target image is extracted, and then the pixel information is sent to the lighting device, so that the lighting device can control each light emitting unit 110 to display the corresponding color according to the pixel information, so that the lighting device integrally displays the corresponding pattern of the target image, the pixel information of a plurality of target images is stored in a plurality of scene numbers in the lighting device, and can be quickly called through the APP or a panel in the lighting device in the later stage, the lighting system includes a plurality of lighting devices, different lighting devices in the lighting system can be controlled to display different target images, the lighting system has stronger playability, the lighting device display effect is richer, and the lighting device can be applied to a plurality of occasions such as exhibition hall lighting arrangement, intelligent lighting display, celebration lighting, and the like, so as to meet higher lighting requirements.
The above embodiments are only for illustrating the technical solution of the present invention and not for limiting the same, and it should be understood by those skilled in the art that the technical solution of the present invention may be modified or substituted without departing from the spirit and scope of the technical solution of the present invention.