Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
It will be understood that when an element is referred to as being "mounted" or "disposed" on another element, it can be directly on the other element or be indirectly on the other element. When an element is referred to as being "connected to" another element, it can be directly connected to the other element or be indirectly connected to the other element.
It should be further noted that terms such as left, right, upper, and lower in the embodiments of the present application are merely relative terms or references to normal use states of the product, and should not be construed as limiting.
Referring to fig. 1, a flowchart of a method for controlling a sound box atmosphere lamp 111 according to an embodiment of the present application is shown. The control method of the sound box atmosphere lamp 111 comprises the steps of acquiring image information input to the display device 10 connected with the sound box 11; acquiring audio information input to the loudspeaker box 11; reading the image information and the audio information; determining the display scheme of the atmosphere lamp 111 according to the image information and the audio information according to preset rules; and controlling the atmosphere lamp 111 to display according to the display scheme of the atmosphere lamp 111. In the present control method, the image information may be obtained by capturing a picture on the display device 10 by an image capturing means such as a camera, or the image signal input to the display device 10 may be directly captured to obtain the image information.
In the conventional scheme that the speaker 11 is connected to the display device 10, the display device 10 generally only transmits an audio signal to the speaker 11, the speaker 11 plays a sound according to the audio signal transmitted by the display device 10, and some of the display devices 10 transmit an audio signal and an image signal to the speaker 11 together, and the speaker 11 reads only the audio signal therein and then forwards the image signal to other display devices 10. In this embodiment, the display device 10 sends the audio signal and the image signal to the speaker 11 at the same time, the speaker 11 reads the audio signal and the image signal respectively, on one hand, sends the audio signal to the speaker to sound, and on the other hand, determines the display scheme of the atmosphere lamp 111 according to the audio signal and the image signal according to the preset rule, and controls the atmosphere lamp 111 to display according to the display scheme.
Specifically, the sound box 11 reads the image signal sent by the display device 10, determines image information according to the image signal, then obtains color information according to the image information, controls the light color of the atmosphere lamp 111 according to the color information, and the sound box 11 reads the audio signal to determine audio information and controls the interval of lighting and lighting of the atmosphere lamp 111 according to the audio signal. That is, the lamplight color of the atmosphere lamp 111 is determined according to the image information of the display device 10, and the lighting time sequence of the atmosphere lamp 111 is determined by the audio signal, so that the lamplight display can effectively combine vision and hearing effects, better viewing experience is provided for users, particularly better immersive acousto-optic experience can be provided for users in game scenes, and the user experience of products is greatly improved.
Specifically, the step of reading the image information to obtain the color information includes reading the image information at a preset time interval, extracting the color that is most displayed by the image information during the preset time interval, and controlling the atmosphere lamp 111 to display the color during the time interval. It should be noted that, since the images are all played at a fixed frame rate to form a video, the determined period corresponds to a determined number of image frames, for example, the image playing rate is 100 frames/s, and the preset time is 1s, the color displayed most in the 100 frames of images is extracted, and the atmosphere lamp 111 is controlled to display the color. When the atmosphere lamp 111 of the speaker 11 may be partitioned and simultaneously display a plurality of colors, it may be extracted that 2 or more colors are displayed in the preset period of time and displayed by the atmosphere lamp 111. In addition, after determining the color displayed by the atmosphere lamp 111 in the period, the lighting timing of the atmosphere lamp 111 in the period is determined based on the audio signal, for example, 0.2s on, 0.2s off, 0.1s on, 0.2s off, 0.3s on, and the like.
In one embodiment, reading the image information to obtain the color information includes reading the image information input to the edge area of the display device 10, and determining the display color of the atmosphere lamp 111 according to the image information input to the edge area of the display device 10, that is, the color of the atmosphere lamp 111 is consistent with the image color of the edge area of the display device 10, so that the width of the display device 10 can be visually expanded, and an effect larger than the screen size display screen of the display device 10 can be provided. It should be noted that, illustratively, the edge area of the display device 10 refers to a distance from the edge that is less than 1/5-1/3 of the overall size of the display device 10, as shown in fig. 5, where the hatched portion is the edge area of the display device 10.
In one embodiment, the method further comprises determining a display mode before reading the image information to obtain the color information, and determining the color information in combination with the display mode after reading the image information. The display modes include a warm color display mode and a cold color display mode, and a user can select the warm color display mode or the cold color display mode according to his own preference, and after the user selects the warm color display mode, the control system selects the color with the largest occurrence among the warm colors as the display color of the atmosphere lamp 111, and after the user selects the cold color display mode, the control system selects the color with the largest occurrence among the cold colors as the display color of the atmosphere lamp 111. In the present embodiment, when the image information and the audio information are combined to control the atmosphere lamp 111, the user may be given a certain independent option, and a customizable atmosphere may be provided for different moods or contents.
In one embodiment, the display device 10 includes N partitions, and the speaker atmosphere lamp 111 includes corresponding N partitions; obtaining the light control scheme according to the image information and the audio information according to the preset rule includes controlling light display of N partitions of the sound box atmosphere lamp 111 according to the image information of N partitions of the display device 10 in sequence, where N is a natural number greater than or equal to 2. In the present embodiment, by dividing the display device 10 into N partitions, the speaker atmosphere lamp 111 also includes N corresponding partitions, so that the colors of the plurality of atmosphere lamps 111 can be simultaneously provided. Please refer to fig. 6, wherein 4 partitions of the atmosphere of the display device 10 are shown, two speakers are correspondingly disposed, and the speaker atmosphere lamp on each speaker is partitioned into two areas, namely, the atmosphere lamp disposed at the left side of the display device 10 is responsible for the left display area of the display device 10, and the atmosphere lamp disposed at the right side of the display device 10 is responsible for the right display area of the display device 10.
Further, after determining the color displayed by each of the N partitions, determining M colors with the largest occurrence number, and controlling the atmosphere lamp 111 to display the M colors with the largest occurrence number, where M is a natural number smaller than N. That is, the color corresponding to each of the N partitions is determined according to the principle that the color appears most, and then statistics is performed, and the M colors with the most occurrence times are selected as the display colors of the atmosphere lamp 111, preferably, M is a natural number smaller than 4, so that a sense of confusion caused by excessive colors of the atmosphere lamp 111 can be avoided.
In one embodiment, the audio information of the speaker 11 is read and the lighting interval of the atmosphere lamp 111 is controlled according to the audio information, specifically, the lighting interval when the audio is high-pitched is shorter than the lighting interval when the audio is low-pitched. The loudspeaker amplitude is small and the vibration frequency is high in the high sound, and the loudspeaker amplitude is large and the vibration frequency is low in the low sound. In one embodiment, the lighting interval or frequency of the atmosphere lamp 111 is the same as the vibration frequency of the horn. In other embodiments, the trend may be the same, that is, the lighting interval of the lighting at the high tone may be shorter than the lighting interval at the low tone.
Specifically, acquiring the image information input to the display device 10 connected to the sound box 11 includes the display device 10 transmitting an image signal to the sound box 11 through an audio signal transmission channel connected to the sound box 11, and the sound box 11 acquiring the image information from the image signal.
On the other hand, the application also provides a method for controlling the atmosphere lamp 111 of the sound box, the atmosphere lamp 111 is arranged on the sound box 11 and is electrically connected with the sound box 11, and the method comprises the following steps: acquiring an image signal input to a display device 10 connected to the sound box 11, and reading the image signal; determining the atmosphere lamp 111 display scheme according to the image signal; and controlling the atmosphere lamp 111 to display according to the display scheme of the atmosphere lamp 111. In the method, the loudspeaker box 11 directly reads the image signal and then controls the atmosphere lamp 111 to display according to the image signal, so that the visual effect of the video can be improved.
On the other hand, the present application also provides a computer-readable storage medium, on which computer-readable instructions are stored, which when executed by a processing module, can implement the above-described atmosphere lamp 111 control method.
On the other hand, the present application also provides a sound box 11, including: the sound box atmosphere lamp 111, the processing module, the signal input module and the computer readable storage medium, wherein the sound box atmosphere lamp 111 is arranged on the back wall of the sound box 11 and is electrically connected with the processing module, and the signal input module is used for being connected with the display equipment 10 and receiving the audio signal and the image signal input by the display equipment 10; the processing module reads the computer readable storage medium and controls the atmosphere lamp 111 to display according to the display scheme. The sound box 11 is provided with an input port 112 for audio signals and image signals, and the display device 10 is provided with a signal output port 101, as shown in fig. 4, the display device 10 and the sound box 11 can transmit signals in a wired manner through the signal output port 101 and the input port 112 for audio signals and image signals. Of course, in other embodiments, the display device 10 and the speaker 11 may also transmit signals wirelessly.
The foregoing description of the preferred embodiments of the present application is not intended to be limiting, but is intended to cover any and all modifications, equivalents, or alternatives falling within the spirit and principles of the present application.