The control method of environment lamp system and environment lamp system
Technical field
The present invention relates to a kind of lamp system, particularly relate to a kind of environment lamp system.
The invention still further relates to a kind of control method of light fixture, particularly a kind of control method of environment lamp system.
Background technology
It is few to be used at present the multi-color lamp showing design or set off environment by contrast on the market, and substantially all has only single color scheme.Because the change color principle of existing Multi-colour lamps and lanterns and implementation are: change the voltage of blue, red, green three primary colours bulb, the bulb of three kinds of colors is simultaneously bright, goes out different colors by different luminance mix; Generally all be that three lamps are all bright in a period of time, perhaps have only two lamps bright.Its dull coloring, hue distinguishes gradient seldom, and all color change rules all can write on the chip in advance, so the user always can't dispatch glow color on one's own initiative subtly.
Play up the blank of lamp on market for filling up environment, studied correlation technique, designed a mainly trying out, can show the environment lamp of nearly thousand kinds of different colors, can accept the selection of user simultaneously the color personalization in indoor environment.
Summary of the invention
The purpose of this invention is to provide a kind of passing through the color frequency that source picture file to be shown uses is compressed described source file, the levels of color according to the source file after the described compression reverts to the environment lamp system that goes in the image display device truly with it simultaneously.
For solving the problems of the technologies described above, the present invention takes following technical scheme: a kind of environment lamp system comprises image processing apparatus and image display device; It is characterized in that: described image processing apparatus calculates some kinds of the highest main colors of the frequency of occurrences in the source picture file to be shown, thereby the source picture file is compressed according to described main color, and with the data of main color, promptly the picture file after the compression sends in the described image display device and shows.
The present invention also provides a kind of control method of environment lamp system, and described system comprises that system's image processing apparatus and image display device is characterized in that: may further comprise the steps,
(1) described image processing apparatus reads the source picture file, and calculates some kinds of the highest main colors of the frequency of occurrences;
(2) described image processing apparatus only keeps described source picture file boil down to the picture file of described some kinds of main colors;
(3) described image processing apparatus is preserved the data of described some kinds of main colors and the picture file after the described compression;
(4) picture file of described image processing apparatus after with steering order and described compression sends to image display device;
(5) picture file of described image display device after according to steering order and described compression shows picture to be shown.
Environment lamp among the present invention reduces source picture to be shown owing to having adopted the master color that only keeps predetermined number to compress the picture file that obtains, therefore can show nearly thousand kinds of colors, and can preset regulation and control to the color of needs by the specific software in the computing machine.Thereby have the advantages that function is direct, versatility is good, and can generally be applicable to the display device of common LED three-basic-colour lamp on the market; The expressive force of color is stronger simultaneously, expand as nearly thousand kinds of colors from original less than 10 kinds of colors, thereby its display effect is better; And efficiently solve the demand that the user participates in the design of ambient light photosystem, can be widely used in various indoor places.
Description of drawings
Fig. 1 is the block diagram of intelligent environment atmosphere lamp system.
Fig. 2 is the structural drawing of image display device.
Fig. 3 is the processing procedure figure that extracts main color.
Fig. 4 is the preferred process figure that extracts main color.
Fig. 5 shows according to the color data in the picture file that receives and controls the schematic diagram that the LED lamp is lighted.
Fig. 6 is the example that the color data in the picture file that receives of basis shown in Figure 5 is controlled the principle that the LED lamp lights.
Embodiment
Below in conjunction with accompanying drawing technical scheme of the present invention is elaborated.
Fig. 1 shows the block diagram of intelligent environment atmosphere lamp system.Intelligent environment atmosphere lamp system among the present invention comprises image processing apparatus and image display device; View data after described image processing apparatus is handled it by bus passes to image display device, and image display device shows image by its inner controller after receiving view data after the described processing.Preferably, as shown in Figure 1, described image processing apparatus can be by PC and be installed on its inner image processing software and constitute that described image display device comprises intelligent microcontroller, LED display and driving circuit thereof and power module; Described PC, promptly image processing apparatus is connected with the intelligent microcontroller of described image display device by USB interface or RS232 interface, with view data and the control signal after the described processing of transmission between the two; Described intelligent microcontroller shows by the image of the control of described driving circuit being controlled in the LED display; In addition, power module is to intelligent microcontroller, LED display and drive circuitry thereof.
Fig. 2 shows the structural drawing of image display device.As shown in Figure 2, described display device comprises PVC plate 2, color lamp module 3, switch and pilot lamp 5, RS232 or USB interface 6 and power interface 7; Described color lamp module 3 is installed to by mounting screw 1 on the pedestal that is made of described PVC plate 2, and switch and pilot lamp 5 have been used to open the power supply that cuts off described image display device and can have indicated the power supply state of power supply; RS232 or USB interface 6 are used for communicating with described image processing apparatus; Described power interface 7 is used for providing external power source to described display device.Preferably, described adopting also is provided with organic glass decorative patterns 4 on the lamp module 3.
Fig. 3 shows the processing procedure figure that extracts main color.As everyone knows, digital picture is that it has all carried out the colouring information coding to each pixel in the image through the data file behind the colouring information coding.On this basis, image processing apparatus among the present invention is handled needs data presented image, promptly by the algorithm ordering some kinds of the highest colors of the frequency of occurrences in the picture of publishing picture, thereby take out out main color information data, send the described main color information data that extract in the described image display device microcontroller by the bus between described image processing apparatus and the image display device again, at last drive described driving circuit on described LED display, to show the main color that is extracted by microcontroller, thereby true reappearance the color ratio of original image, preferably, described microcontroller is single-chip microcomputer or dsp processor.As shown in Figure 3, the analysis of the color information of the software in the computing machine by treating the display digit image, extract the color of more ratio successively, and the color information of being extracted sent to each specific light emitting module in the described image display device, at last image is presented on the LED display.Preferably, as shown in Figure 4, the process of main color of described extraction and transmission data is as follows: at first read the source picture file, and calculate 12 kinds of the highest main colors of the frequency of occurrences; Secondly the picture file that described source picture file boil down to is only kept 12 kinds of main colors, the 3rd demonstrates described 12 kinds of main colors on user interface, the 4th preserves the data of described 12 kinds of main colors and the picture file after the described compression, at last picture file after the described compression and steering order are sent to image display device by USB or RS232 interface, and by the picture file of the described intelligent controller in the image display device after according to its described compression that receives and the switch of the LED lamp on the steering order control LED display.
Fig. 5 shows according to the color data in the picture file that receives and controls the schematic diagram that the LED lamp is lighted.Usually the general RGB standard of this area employing is 0-255, promptly represents that with these 256 digital values of 0-255 simultaneously, the luminosity of light-emitting component also is divided into 256 grades; But the RGB standard among the present invention is 0-15, promptly to represent that with these 16 digital values of 0-15 simultaneously, the luminosity of light-emitting component also is divided into 16 grades.As shown in Figure 5, the color-values of each pixel in the picture file after overcompression that described image display device receives, promptly rgb value is represented with these 16 digital values of 0-15; And just the luminosity of each LED lamp also is divided into 16 grades, in addition, the time that also will light each LED lamp draws and is divided into corresponding 16 recurrence intervals, on this basis, according to described color-values, be rgb value, the recurrence interval number that each LED is lighted equates with described color-values, thereby makes it send specific luminosity.
Further, Fig. 6 principle that the described control of Fig. 5 LED lamp is lighted has been carried out further explanation.As shown in Figure 6, the recurrence interval under the brightest situation of described LED lamp is 16, if promptly in its 16 recurrence intervals all control make it luminous, so described LED lamp will send the brightest light, at this moment, we are referred to as full value brightness; If the color-values of representing with 0-15 is 10, controlling the luminous recurrence interval number of LED lamp so also is 10, and then Ci Shi luminosity is for completely being worth 5/8ths of brightness, and promptly the color-values (being rgb value) in the Dui Ying 0-255 scope is in the interval of 160-176.Thereby intelligent environment atmosphere lamp among the present invention, can segment and show nearly thousand kinds of colors, and can preset regulation and control by computing machine to the color of needs by the user.
In sum, intelligent environment atmosphere lamp is in conjunction with PC and single-chip microcomputer characteristics separately among the present invention, give full play to the strong point of PC strong multimedia processing capacity and Single-chip Controlling engineering object, utilize PC to become simple data to pass to single-chip microcomputer the Image Information Processing of large amount of complex, utilize the limited resources of single-chip microcomputer to finish control simultaneously the LED object.