Lighting management method, device and computer program product
Through the similarity detection and processing of ambient sound data, the problem that the GPS signal positioning module is difficult to distinguish between vertical and horizontal lamps is solved, and the precise grouping of lamps in small areas is realized.
Patent Information
- Application Number
- CN202111491065.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-08
- Publication Date
- 2024-11-12
- Estimated Expiration
- 2041-12-08
AI Technical Summary
In the prior art, it is difficult for the GPS signal positioning module to distinguish the lamps on the upper and lower floors in the same vertical direction, and it is difficult to distinguish the lamps separated by sound insulation walls in the horizontal direction, resulting in the inability to accurately locate and group accurately.
By receiving the ambient sound data collected by the lamp, the server detects the ambient sound similarity of multiple lamp groups until the target lamp group is determined and the target equipment is divided into the target lamp group. The method includes converting ambient sound data into a sound amplitude waveform chart or audio and performing translation and amplification processing to detect similarity.
Accurate grouping of target devices in smaller areas is achieved, and the grouping accuracy of lamps in vertical and horizontal directions is improved.
Smart Images

Figure CN114171060B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of lamp management, and in particular to a lamp management method, device and program product. Background Art
[0002] With the development of technology, lamps can be synchronized to cloud servers. At present, there are many lamps in the entire cloud server, which are distributed in theaters, TV stations, studios and even outdoor venues all over the country.
[0003] In the prior art, in order to facilitate the management of lamps in the cloud server, a GPS signal positioning module is usually provided in the lamps. The geographical location of the lamps is obtained through the GPS signal positioning module, and the lamps are grouped based on the geographical location of the lamps.
[0004] However, it is difficult to accurately group lamps through GPS signal positioning, especially in the same vertical direction, it is impossible to distinguish that lamps on the upper and lower floors belong to two different levels; in addition, if two lamps are located adjacent to each other in the horizontal direction, but are separated by a soundproof wall in two different studios, it is also difficult to accurately group such lamps through GPS signal positioning. Therefore, the GPS signal positioning module cannot accurately locate the geographical location of the lamps, and thus cannot accurately group lamps in a small area or vertical area. Summary of the invention
[0005] Based on this, it is necessary to provide a lamp management method, device and program product to address the above technical issues.
[0006] In a first aspect, the present application provides a lamp management method for use in a server, the method comprising: receiving first ambient sound data collected by a target device, the target device being a lamp or a lamp management terminal; determining a target lamp group from a plurality of lamp groups maintained by the server based on the first ambient sound data, wherein each lamp group includes a plurality of lamps, and second ambient sound data collected by each lamp in the same lamp group are similar to each other, and the second ambient sound data collected by the lamps in the target lamp group are similar to the first ambient sound data; and dividing the target device into the target lamp group.
[0007] In one of the embodiments, a target lamp group is determined from multiple lamp groups maintained by a server based on first ambient sound data, including: performing ambient sound similarity detection on multiple lamp groups in sequence until the ambient sound similarity detection result of a certain lamp group indicates that the second ambient sound data collected by the lamps in the certain lamp group is similar to the first ambient sound data; and taking the certain lamp group as the target lamp group.
[0008] In one of the embodiments, the ambient sound similarity detection includes: detecting whether the first ambient sound data is similar to the second ambient sound data collected by each lamp in the lamp group; if the proportion of lamps with similar ambient sound data reaches a target ratio threshold, it is determined that the second ambient sound data collected by the lamps in the lamp group is similar to the first ambient sound data.
[0009] In one embodiment, detecting whether the first ambient sound data is similar to the second ambient sound data collected by each lamp in the lamp group includes: converting the first ambient sound data into a first sound amplitude waveform graph; converting each second ambient sound data into a second sound amplitude waveform graph; detecting whether the first sound amplitude waveform graph is similar to each second sound amplitude waveform graph.
[0010] In one embodiment, detecting whether a first sound amplitude waveform is similar to each second sound amplitude waveform includes: for each second sound amplitude waveform, translating the second sound amplitude waveform in the x-axis direction, and proportionally amplifying the second sound amplitude waveform in the y-axis direction to obtain a processed second sound amplitude waveform, and detecting whether the first sound amplitude waveform is similar to the processed second sound amplitude waveform.
[0011] In one of the embodiments, the second sound amplitude waveform is translated in the x-axis direction, including: obtaining a first coordinate of a starting point of the first sound amplitude waveform in the x-axis direction, and obtaining a second coordinate of a starting point of the second sound amplitude waveform in the x-axis direction; taking the difference between the first coordinate and the second coordinate as a translation distance; and translating the second sound amplitude waveform in the x-axis direction based on the translation distance.
[0012] In one embodiment, the second sound amplitude waveform is proportionally amplified in the y-axis direction, including: calculating a first difference between the maximum value and the minimum value of the first sound amplitude waveform in the y-axis direction, and calculating a second difference between the maximum value and the minimum value of the second sound amplitude waveform in the y-axis direction; using the ratio of the second difference to the first difference as a magnification factor; and proportionally amplifying the second sound amplitude waveform in the y-axis direction based on the amplification factor.
[0013] In one embodiment, detecting whether the first ambient sound data is similar to the second ambient sound data collected by each lamp in the lamp group includes: converting the first ambient sound data into a first sound audio; converting each second ambient sound data into a second sound audio; and detecting whether the first sound audio is similar to each second sound audio.
[0014] In one of the embodiments, detecting whether the first ambient sound data is similar to the second ambient sound data collected by each lamp in the lamp group includes: parsing the first ambient sound data to obtain the semantics of the first sound; parsing the second ambient sound data to obtain the semantics of the second sound; detecting whether the semantics of the first sound are similar to the semantics of each second sound.
[0015] In a second aspect, the present application provides a lamp management method for use in lamps, the method comprising: sending collected first ambient sound data to a server; wherein the first ambient sound data is used for the server to determine a target lamp group from a plurality of lamp groups maintained, wherein each lamp group includes a plurality of lamps, and second ambient sound data collected by each lamp in the same lamp group are similar to each other, and the second ambient sound data collected by the lamps in the target lamp group are similar to the first ambient sound data.
[0016] In a third aspect, the present application provides a lamp management method for use in a lamp management terminal, the method comprising: sending collected first ambient sound data to a server, wherein the first ambient sound data is used for the server to determine a target lamp group from a plurality of lamp groups maintained, wherein each lamp group includes a plurality of lamps, and second ambient sound data collected by each lamp in the same lamp group are similar to each other, and the second ambient sound data collected by the lamps in the target lamp group are similar to the first ambient sound data; and receiving information of each lamp in the target lamp group sent by the server.
[0017] In a fourth aspect, the present application provides a lamp management device for use in a server. The device includes: a first receiving module for receiving first ambient sound data collected by a target device, the target device being a lamp or a lamp management terminal; a determination module for determining a target lamp group from a plurality of lamp groups maintained by the server according to the first ambient sound data, wherein each lamp group includes a plurality of lamps, and the second ambient sound data collected by each lamp in the same lamp group are similar to each other, and the second ambient sound data collected by the lamps in the target lamp group are similar to the first ambient sound data; and a grouping module for dividing the target device into the target lamp group.
[0018] In one of the embodiments, the determination module is specifically used to: perform ambient sound similarity detection on multiple lamp groups in sequence until the ambient sound similarity detection result of a lamp group indicates that the second ambient sound data collected by the lamps in the lamp group is similar to the first ambient sound data; and take the lamp group as the target lamp group.
[0019] In one of the embodiments, the determination module is specifically used to: detect whether the first ambient sound data is similar to the second ambient sound data collected by each lamp in the lamp group; if the proportion of lamps with similar ambient sound data reaches a target ratio threshold, it is determined that the second ambient sound data collected by the lamps in the lamp group is similar to the first ambient sound data.
[0020] In one embodiment, the determination module is specifically used to: convert the first ambient sound data into a first sound amplitude waveform; convert each second ambient sound data into a second sound amplitude waveform; and detect whether the first sound amplitude waveform is similar to each second sound amplitude waveform.
[0021] In one embodiment, the determination module is specifically used to: for each second sound amplitude waveform graph, translate the second sound amplitude waveform graph in the x-axis direction, and proportionally amplify the second sound amplitude waveform graph in the y-axis direction to obtain a processed second sound amplitude waveform graph, and detect whether the first sound amplitude waveform graph is similar to the processed second sound amplitude waveform graph.
[0022] In one embodiment, the determination module is specifically used to: obtain a first coordinate of a starting point of a first sound amplitude waveform graph in the x-axis direction, and obtain a second coordinate of a starting point of a second sound amplitude waveform graph in the x-axis direction; use the difference between the first coordinate and the second coordinate as a translation distance; and perform translation processing on the second sound amplitude waveform graph in the x-axis direction based on the translation distance.
[0023] In one embodiment, the determination module is specifically used to: calculate a first difference between the maximum value and the minimum value of the first sound amplitude waveform in the y-axis direction, and calculate a second difference between the maximum value and the minimum value of the second sound amplitude waveform in the y-axis direction; use the ratio of the second difference to the first difference as a magnification factor; and proportionally amplify the second sound amplitude waveform in the y-axis direction based on the amplification factor.
[0024] In one embodiment, the determination module is specifically used to: convert the first ambient sound data into a first sound audio; convert each second ambient sound data into a second sound audio; and detect whether the first sound audio is similar to each second sound audio.
[0025] In one of the embodiments, the determination module is specifically used to: parse the first ambient sound data to obtain the semantics of the first sound; parse the second ambient sound data to obtain the semantics of the second sound; and detect whether the semantics of the first sound are similar to the semantics of each second sound.
[0026] In a fifth aspect, the present application provides a lamp management device for use in a lamp management terminal, the device comprising: a sending module for sending collected first ambient sound data to a server, wherein the first ambient sound data is used for the server to determine a target lamp group from a plurality of lamp groups maintained, wherein each lamp group includes a plurality of lamps, and second ambient sound data collected by each lamp in the same lamp group are similar to each other, and the second ambient sound data collected by the lamps in the target lamp group are similar to the first ambient sound data; a second receiving module for receiving information of each lamp in the target lamp group sent by the server.
[0027] In a sixth aspect, the present application provides a lamp, comprising a sound pickup component, a processing component and a communication component; the sound pickup component is used to collect first ambient sound data; the processing component is used to obtain the first ambient sound data collected by the sound pickup component, and control the communication component to send the first ambient sound data collected by the sound pickup component to a server.
[0028] In one embodiment, the lamp also includes a filtering component; the filtering component is used to filter the first ambient sound data collected by the sound pickup component, and transmit the filtered first ambient sound data to the processing component; the processing component is specifically used to obtain the filtered first ambient sound data, and control the communication component to send the filtered first ambient sound data to the server.
[0029] In a seventh aspect, the present application further provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the method described in any one of the first to third aspects are implemented.
[0030] The beneficial effects brought by the technical solution provided by the embodiment of the present application include at least:
[0031] After receiving the first ambient sound data collected by the target device, the target lamp group is determined from the lamp groups maintained by the server according to the first ambient sound data, wherein the second ambient sound data collected by each lamp in the target lamp are similar to each other, and the second ambient sound data is similar to the first ambient sound data, on this basis, the target device is divided into the target lamp group. It can be seen that in the embodiment of the present application, the target devices and target lamp groups corresponding to similar ambient sound data are grouped together, because the smaller the area, the more similar the ambient sound data, so the embodiment of the present application can realize accurate grouping of target devices in a smaller area. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 A schematic diagram of an implementation environment provided for an embodiment of the present application;
[0033] Figure 2A flowchart of a first lamp management method provided in an embodiment of the present application;
[0034] Figure 3 A flowchart of a technical process for determining a target lamp group provided in an embodiment of the present application;
[0035] Figure 4 A flowchart of a technical process for performing translation processing on a second sound amplitude waveform in the x-axis direction provided in an embodiment of the present application;
[0036] Figure 5 A waveform diagram provided for an embodiment of the present application;
[0037] Figure 6 A flowchart of a technical process for performing proportional amplification processing on a second sound amplitude waveform in the y-axis direction provided in an embodiment of the present application;
[0038] Figure 7 A waveform diagram provided for an embodiment of the present application;
[0039] Figure 8 A flowchart of a second lamp management method provided in an embodiment of the present application;
[0040] Fig. 9 A structural block diagram of a first type of lamp provided in an embodiment of the present application;
[0041] Fig.10 A structural block diagram of a second lamp provided in an embodiment of the present application;
[0042] Fig.11 A flowchart of a third lamp management method provided in an embodiment of the present application;
[0043] Fig.12 A general diagram of the technical solution for lamp management provided in the embodiments of the present application;
[0044] Fig.13 A block diagram of a first lamp management device provided in an embodiment of the present application;
[0045] Fig.14 This is a block diagram of a second lamp management device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0046] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0047] See also Figure 1, which shows a schematic diagram of the implementation environment involved in the lamp management method provided in the embodiment of the present application, such as Figure 1 As shown, the implementation environment may include a server 101, a lamp management terminal 102, and lamps 103, wherein the server 101 and the lamp management terminal 102, and the server 101 and the lamps 103 may communicate with each other, and the lamp management terminal 102 and the lamps 103 send the collected ambient sound data to the server 101, and the server 101 is used to group the lamps and lamp management terminals corresponding to the received similar ambient sound data. The server 101 may be a single server or a server cluster composed of multiple servers; different servers may communicate with each other via wired or wireless means, and the wireless means may be realized via WIFI, operator network, NFC (near field communication) or other technologies; the lamp management terminal 102 may be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, and portable wearable devices, and the portable wearable devices may be smart watches, smart bracelets, etc.
[0048] See also Figure 2 , which shows a flowchart of a lamp management method provided by an embodiment of the present application. The lamp management method can be applied to Figure 1 In the server shown. Figure 2 As shown, the lamp management method may include the following steps:
[0049] Step 201: The server receives first ambient sound data collected by a target device.
[0050] The target device is a lamp or a lamp management terminal. Optionally, the lamp can not only provide lighting, but also collect the first ambient sound data in the surrounding environment; the lamp management terminal is mainly used to manage lamps, and to display all lamps at the site where the lamp management terminal is located, and to display the grouping information of all lamps already in the server.
[0051] In an optional embodiment of the present application, the lamp may collect the first ambient sound data in real time or at fixed intervals, which is not limited in the present embodiment. However, in order to save server space and reduce the amount of server calculation, the lamp preferably collects the first ambient sound data at fixed intervals. The lamp management terminal collects the first ambient sound data mainly based on the needs of the user. Usually, after the user performs a trigger operation in the lamp management terminal to obtain the lamp grouping information, the lamp management terminal starts to collect the first ambient sound data in the surrounding environment.
[0052] Step 202: The server determines a target lamp group from a plurality of lamp groups maintained by the server according to the first ambient sound data.
[0053] Among them, each lamp group maintained by the server includes multiple lamps, and the second ambient sound data collected by each lamp in the same lamp group are similar to each other, and the second ambient sound data collected by the lamps in the target lamp group are similar to the first ambient sound data.
[0054] In an embodiment of the present application, multiple lamp groups are maintained in the server. If the second ambient sound data collected by the lamps in the same lamp group are similar to each other, it means that the lamps in the same lamp group are located in the same environment. In order to determine the lamps located in the same environment as the target device, the embodiment of the present application determines the target lamp group in the server based on the first ambient sound data collected by the target device. If the second ambient sound data collected by the lamps in the target lamp group is similar to the first ambient sound data collected by the target device, it means that the target device and the lamps in the target lamp group are located in the same environment.
[0055] Optionally, after detecting that the target lamp is offline, the server may delete the target lamp from the lamp group to which the target lamp belongs. The target lamp is an offline lamp, and the offline lamp mainly refers to a lamp that is powered off. The lamp and the server mainly communicate with each other through the Transmission Control Protocol (TCP). When the lamp is powered off, the TCP connection is disconnected, and the server determines that the target lamp is offline and deletes the target lamp from the lamp group to which the target lamp belongs.
[0056] Step 203: The server divides the target devices into target lamp groups.
[0057] Each lamp in the target lamp group and the target device are located in the same area. Optionally, the target device can be divided into the target lamp group.
[0058] After receiving the first ambient sound data collected by the target device, the target lamp group is determined from the multiple lamp groups maintained by the server according to the first ambient sound data, wherein the second ambient sound data collected by each lamp in the target lamp are similar to each other, and the second ambient sound data is similar to the first ambient sound data, on this basis, the target device is divided into the target lamp group. It can be seen that in the embodiment of the present application, the target devices and target lamp groups corresponding to similar ambient sound data are grouped together, because the smaller the area, the more similar the ambient sound data, so the embodiment of the present application can realize accurate grouping of target devices in a smaller area.
[0059] See also Figure 3 , which shows a technical process of determining a target lamp group provided by an embodiment of the present application. Figure 3 As shown, the technical process may include the following steps:
[0060] Step 301: The server performs ambient sound similarity detection on multiple lamp groups in sequence until the ambient sound similarity detection result of a lamp group indicates that the second ambient sound data collected by the lamps in the lamp group is similar to the first ambient sound data.
[0061] In order to reduce the computing workload of the server when determining the target lamp group, the server can optionally perform ambient sound similarity detection on multiple lamp groups in sequence. When a lamp group is determined to be the target lamp group, the server terminates the execution of the ambient sound similarity detection.
[0062] Optionally, the process of environmental sound similarity detection may include:
[0063] First, the server detects whether the first ambient sound data is similar to the second ambient sound data collected by each lamp in the lamp group.
[0064] Optionally, when detecting whether multiple ambient sound data are similar, the ambient sound data may be converted into a sound amplitude waveform, or the ambient sound data may be converted into sound audio, or the ambient sound data may be parsed to obtain the semantics of the sound. The purpose of detecting whether the ambient sound data are similar is achieved by detecting the similarity of each sound amplitude waveform, sound audio, or the semantics of the sound.
[0065] In an optional embodiment of the present application, the purpose of detecting whether the ambient sound data are similar can be achieved by detecting the similarity of the sound amplitude waveform graph. Optionally, when detecting whether the first ambient sound data is similar to the second ambient sound data collected by each lamp in the lamp group, the ambient sound data can be converted into a sound amplitude waveform graph. By detecting the similarity between the sound amplitude waveform graph corresponding to the first ambient sound data and the sound amplitude waveform graph corresponding to the second ambient sound data, the purpose of detecting whether the first ambient sound data is similar to the second ambient sound data can be achieved. Therefore, the optional process of detecting whether the first ambient sound data is similar to the second ambient sound data collected by each lamp in the lamp group can include: first, converting the first ambient sound data into a first sound amplitude waveform graph; then, converting each second ambient sound data into a second sound amplitude waveform graph; and finally, detecting whether the first sound amplitude waveform graph is similar to each second sound amplitude waveform graph.
[0066] In another optional embodiment of the present application, the purpose of detecting whether the ambient sound data is similar can be achieved by detecting the similarity of sound audio, wherein the sound audio is data obtained by performing analog-to-digital conversion on analog audio data. Optionally, the process of detecting whether the first ambient sound data is similar to the second ambient sound data collected by each lamp in the lamp group may include: first, converting the first ambient sound data into the first sound audio; second, converting each second ambient sound data into the second sound audio; and finally, detecting whether the first sound audio is similar to each second sound audio.
[0067] In another optional embodiment of the present application, the purpose of detecting whether the ambient sound data is similar can be achieved by detecting the semantic similarity of the sound. Optionally, the process of detecting whether the first ambient sound data is similar to the second ambient sound data collected by each lamp in the lamp group may include: first, parsing the first ambient sound data to obtain the semantics of the first sound; parsing the second ambient sound data to obtain the semantics of the second sound; finally, detecting whether the semantics of the first sound are similar to the semantics of each second sound. For example, in a studio, the host said: "Welcome to the artists who participated in this performance." In this case, the server parses the ambient sound data received from the lamps or lamp management terminals, obtains the semantics of the sound corresponding to each ambient sound data, and groups the lamps or lamp management terminals corresponding to the semantics of the sound "Welcome to the artists who participated in this performance" into a group.
[0068] Secondly, if the proportion of lamps with similar ambient sound data reaches the target proportion threshold, the server determines that the second ambient sound data collected by the lamps in the lamp group is similar to the first ambient sound data.
[0069] Because, due to the interference of various external factors, the various ambient sound data collected in the same area and at the same time are not necessarily similar, and even a certain ambient sound data collected may be interfered by external factors, and may be greatly different from the ambient sound data collected in the same environment. Therefore, when determining the target lamp group, the embodiment of the present application may not require that the second ambient sound data collected by each lamp in the target lamp group is similar to the first ambient sound data, and the second ambient sound data collected by the lamps that reach the target ratio threshold in the target lamp group is similar to the first ambient sound data. Among them, the target ratio threshold can be a value obtained after experiments on a certain platform based on a large amount of experimental data, or it can be a fixed value set artificially according to actual needs.
[0070] Step 302: The server selects a certain lamp group as a target lamp group.
[0071] If the second ambient sound data collected by the lamps in a certain lamp group is similar to the first ambient sound data, it means that the lamps in the certain lamp group and the target devices corresponding to the first ambient sound data are located in the same area. In this case, the server can use the certain lamp group as the target lamp group.
[0072] In one embodiment of the present application, a technical method for detecting whether a first sound amplitude waveform is similar to each second sound amplitude waveform is provided, and the method can be applied to the above-mentioned server. The detection method is: for each second sound amplitude waveform, the second sound amplitude waveform is translated in the x-axis direction, and the second sound amplitude waveform is proportionally amplified in the y-axis direction to obtain a processed second sound amplitude waveform, and detect whether the first sound amplitude waveform is similar to the processed second sound amplitude waveform.
[0073] The second sound amplitude waveform is shifted and amplified because the transmission of sound takes time. In the same area, the sound amplitude waveforms collected by lamps or lamp management terminals at different locations have a slight time difference in the initial phase, and the amplitude of the sound amplitude waveform will become weaker and weaker during the transmission of sound. Therefore, when comparing the similarity of the sound amplitude waveforms, it is necessary to process the differences in the initial phase and amplitude of the sound amplitude waveforms. Optionally, in the embodiment of the present application, the second sound amplitude waveform can be shifted and amplified to overcome the differences in initial phase and amplitude between the second sound amplitude waveform and the first sound amplitude waveform.
[0074] See also Figure 4 , which shows a technical process of performing translation processing on the second sound amplitude waveform in the x-axis direction provided by an embodiment of the present application. Figure 4 As shown, the technical process may include the following steps:
[0075] Step 401: The server obtains a first coordinate of a starting point of a first sound amplitude waveform in the x-axis direction, and obtains a second coordinate of a starting point of a second sound amplitude waveform in the x-axis direction.
[0076] Step 402: The server uses the difference between the first coordinate and the second coordinate as the translation distance.
[0077] Step 403: The server performs translation processing on the second sound amplitude waveform in the x-axis direction based on the translation distance.
[0078] In order to clearly describe the technical process of performing translation processing on the second sound amplitude waveform in the x-axis direction, the embodiment of the present application uses Figure 5 The technical process is further described. Figure 5As shown, waveform a and waveform b are sound amplitude waveforms collected by two different devices in the same area during the same time period. Because the transmission of sound takes time, the sound amplitude waveforms collected by the two devices have differences in initial phases. In order to facilitate the detection of the similarity of the two sound amplitude waveforms, one of the sound amplitude waveforms can be optionally shifted according to the difference in initial phases of the two sound amplitude waveforms so that the initial phases of the two sound amplitude waveforms are at the same time point. Figure 5 The t0 in the figure is the difference between the initial phase times of waveform a and waveform b. The size of t0 determines the distance between the two devices. The larger t0 is, the greater the distance between the two devices is.
[0079] See also Figure 6 , which shows a technical process of performing proportional amplification processing on the second sound amplitude waveform in the y-axis direction provided by an embodiment of the present application. Figure 6 As shown, the technical process may include the following steps:
[0080] Step 601: The server calculates a first difference between a maximum value and a minimum value of a first sound amplitude waveform in the y-axis direction, and calculates a second difference between a maximum value and a minimum value of a second sound amplitude waveform in the y-axis direction.
[0081] Step 602: The server uses the ratio of the first difference to the second difference as a magnification factor.
[0082] Step 603: The server performs proportional amplification processing on the second sound amplitude waveform in the y-axis direction based on the amplification factor.
[0083] In order to clearly describe the technical process of performing proportional amplification processing on the second sound amplitude waveform in the y-axis direction, the embodiment of the present application uses Figure 7 The technical process is further described. Figure 7 As shown, waveform c is the second sound amplitude waveform, and waveform d is the first sound amplitude waveform. In order to compare the similarity of waveform c and waveform d, first, the first difference between the maximum value and the minimum value of waveform d in the y-axis direction is calculated, as shown in FIG. Figure 7 As shown, the first difference is 8, and the second difference between the maximum value and the minimum value of the waveform c in the y-axis direction is calculated, as shown in FIG. Figure 7 As shown, the second difference is 4; then, the ratio of the first difference to the second difference is used as the amplification factor, that is, the ratio 2 is used as the amplification factor; finally, based on the amplification factor 2, the waveform c is proportionally amplified in the y-axis direction.
[0084] In one embodiment of the present application, a lamp management method is provided. The lamp management method can be applied to Figure 1In the lamp shown in the figure, the lamp management method may be: the lamp sends the collected first ambient sound data to the server.
[0085] The first ambient sound data is used for the server to determine the target lamp group from the multiple lamp groups maintained, wherein each lamp group includes multiple lamps, and the second ambient sound data collected by the lamps in the same lamp group are similar to each other, and the second ambient sound data collected by the lamps in the target lamp group are similar to the first ambient sound data. Optionally, the lamp can be provided with a sound pickup component for collecting ambient sound data. In addition, in order to facilitate grouping of the target device corresponding to the first ambient sound data and the lamps corresponding to the second ambient sound data, the lamp can also send the lamp identification corresponding to each lamp to the server.
[0086] See also Figure 8 , which shows a flowchart of a lamp management method provided by an embodiment of the present application. The lamp management method can be applied to Figure 1 In the lighting management terminal shown in Figure 8 As shown, the lamp management method may include the following steps:
[0087] Step 801: The lamp management terminal sends the collected first ambient sound data to the server.
[0088] Among them, the first ambient sound data is used for the server to determine the target lamp group from the multiple lamp groups maintained, wherein each lamp group includes multiple lamps, and the second ambient sound data collected by each lamp in the same lamp group are similar to each other, and the second ambient sound data collected by the lamps in the target lamp group are similar to the first ambient sound data.
[0089] In order for the subsequent server to send data to the lamp management terminal, optionally, in addition to sending the collected first ambient sound data to the server, the lamp management terminal also needs to send the device identification of the lamp management terminal. On this basis, when the server needs to send data to the lamp management terminal, it can find the lamp management terminal corresponding to the device identification through the device identification, and thus send data to the lamp management terminal corresponding to the device identification.
[0090] It should be noted here that the lamp management terminal does not need to collect the first ambient sound data in real time, nor does it need to send the collected first ambient sound data to the server in real time. The usual practice is: when the user needs to manage the lamps through the lamp management terminal, after the user performs a trigger operation on the lamp management terminal, the lamp management terminal will automatically collect the first ambient sound data of the surrounding environment, and automatically send the first ambient sound data to the server.
[0091] Step 802: The lamp management terminal receives information of each lamp in the target lamp group sent by the server.
[0092] Among them, the information of the lamp can be the lamp identification or the lamp grouping information. Optionally, when the user performs a trigger operation to obtain the lamp grouping information in the lamp management terminal, the lamp management terminal can receive the lamp grouping information sent by the server. For example, when a lamp management terminal enters a specific performance site, if the administrator wants to know which lamps are currently at the performance site, the administrator can perform a trigger operation to obtain the lamps on site. After performing the trigger operation, the lamp management terminal can obtain the target lamp group where the lamp management terminal is located from the server for the administrator to view; if the administrator wants to know the grouping information of all lamps in the server, the administrator can perform a trigger operation to obtain the grouping information of all lamps in the server in the lamp management terminal. After performing the trigger operation, the server sends the grouping information of all lamps to the lamp management terminal for the administrator to view. Suppose there are two performance sites, namely performance site 1 and performance site 2. The lamps at performance site 1 are as follows:
[0093] Serial number Lighting Marking 1 a 2 b 3 c 4 d 5 e
[0094] The lighting fixtures at the No. 2 performance are as follows:
[0095] Serial number Lighting Marking 1 f 2 g 3 h
[0096] Among them, the lamps at performance site No. 1 and the lamps at performance site No. 2 have been grouped in the server respectively, lamps a, b, c, d, e are a group, and lamps f, g, h are a group. When the administrator brings the lamp management terminal into performance site No. 2 and wants to know the lamps at performance site No. 2, the administrator can perform a trigger operation to obtain the on-site lamps on the lamp management terminal. The lamp management terminal can obtain the lamp identification f, g, h of each lamp in the lamp group where the lamp management terminal is located from the server, and display the lamp identification for the administrator to view. If the administrator wants to know the situation of the lamps at performance site No. 1, he only needs to bring the lamp management terminal into performance site No. 1 and perform the same operation as above. Assuming that there are only these two lamp groups in the current server, and the administrator wants to know the grouping information of all lamps in the server, he can perform a trigger operation in the lamp management terminal to obtain the grouping information of all lamps in the server. After performing the trigger operation, the server sends the information of the two lamp groups to the lamp management terminal, and the lamp management terminal can display lamps a, b, c, d, e as a group, and lamps f, g, h as a group.
[0097] See also Fig. 9 , which shows a structural block diagram of a lamp 900 provided in an embodiment of the present application. Fig. 9As shown, the lamp 900 includes a sound pickup component 901 , a processing component 902 and a communication component 903 .
[0098] The sound pickup component 901 is used to collect the first ambient sound data; the processing component 902 is used to obtain the first ambient sound data collected by the sound pickup component 901, and control the communication component 903 to send the first ambient sound data collected by the sound pickup component 901 to the server. Optionally, the sound pickup component 901 can be a MIC, wherein the MIC is an energy conversion device that converts sound signals into electrical signals, and the cost of the MIC is not high.
[0099] See also Fig.10 , which shows a structural block diagram of another lamp provided by an embodiment of the present application. Fig.10 As shown, the lamp 1000 includes, in addition to the components in the lamp 900, a filtering component 904. The filtering component 904 is used to filter the first ambient sound data collected by the sound pickup component 901, and transmit the filtered first ambient sound data to the processing component 902; the processing component 902 is specifically used to obtain the filtered first ambient sound data, and control the communication component 903 to send the filtered first ambient sound data to the server.
[0100] Optionally, the filter component 904 can be set so that the ambient sound data of the preset frequency band can pass through the filter component 904, while the ambient sound data outside the preset frequency band cannot pass through the filter component 904, so that the ambient sound data collection of the filter component 904 is targeted, and the efficiency of determining the target lamp group is improved. Optionally, the communication component 903 can be used to communicate with the server, and can also be used to perform network time synchronization on the lamp 900 and the lamp 1000 to ensure the accuracy of the time in the lamp 900 and the lamp 1000. Optionally, the processing component 902 can be used to store the first ambient sound data according to a data structure, wherein the data structure includes a lamp identification, a start timestamp and an end timestamp of the first ambient sound data collected by the sound pickup component 901, a time interval for the first ambient sound data collected by the sound pickup component 901, a sequence of the first ambient sound data collected by the sound pickup component 901, and a check code, wherein the check code is used to confirm the integrity of the first ambient sound data; the processing component 902 can also be used to analyze the first ambient sound data, and when the absolute value of the difference between the maximum value and the minimum value of the first ambient sound data is less than a preset threshold, it indicates that the volatility of the first ambient sound data is very small and lacks characteristics, and the processing component 902 can control the communication component 903 not to send the first ambient sound data with very small volatility to the server. The preset threshold can be a value obtained based on a large amount of experimental data and after conducting experiments on a certain platform, or it can be a fixed value set artificially according to actual needs.
[0101] See also Fig.11 , which shows a flowchart of a lamp management method provided by an embodiment of the present application. The lamp management method can be applied to Figure 1 In the implementation environment shown. Fig.11 As shown, the lamp management method may include the following steps:
[0102] Step 1101: A target device collects first ambient sound data, wherein the device is a lamp or a lamp management terminal.
[0103] Step 1102: The target device sends the collected first ambient sound data to the server.
[0104] Step 1103: The server converts the first ambient sound data into a first sound amplitude waveform.
[0105] Step 1104: The server converts the second ambient sound data collected by each lamp in the plurality of lamp groups being maintained into a second sound amplitude waveform.
[0106] Step 1105: The server detects whether the first sound amplitude waveform is similar to the second sound amplitude waveform in each lamp group.
[0107] Step 1106: If the proportion of lamps in a certain lamp group with similar sound amplitude waveforms reaches a target ratio threshold, the server determines that the second ambient sound data collected by the lamps in the certain lamp group is similar to the first ambient sound data.
[0108] Step 1107: The server selects a certain lamp group as a target lamp group.
[0109] Step 1108: The server divides the target devices into target lamp groups.
[0110] Step 1109: If the target device is a lamp management terminal, the server sends information of each lamp in the target lamp group to the lamp management terminal.
[0111] See also Fig.12 , which shows the overall technical solution of lamp management. Fig.12 As shown, there are lamps A, lamps B, lamps C and mobile phone A in Studio No. 1. Lamp A, lamps B, lamps C and mobile phone A respectively collect ambient sound data in Studio No. 1, and upload the collected ambient sound data to the server respectively. If the ambient sound data collected by lamps A, lamps B, lamps C and mobile phone A are similar, the server groups lamps A, lamps B, lamps C and mobile phone A into a group, and sends the grouping information corresponding to mobile phone A to mobile phone A.
[0112] Lamps D and E in Studio No. 2 are grouped together in the server. When mobile phone A moves to Studio No. 2, mobile phone A can collect ambient sound data in Studio No. 2. If the ambient sound data collected by mobile phone A is similar to the ambient sound data collected by lamps D and E, the server will group lamps D, lamps E and mobile phone A into a group and send the grouping information corresponding to mobile phone A to mobile phone A.
[0113] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0114] See also Fig.13 , which shows a block diagram of a lamp management device 1300, wherein the device can be configured in the server mentioned above. Fig.13 As shown, the lamp management device 1300 includes a first receiving module 1301 , a determining module 1302 , and a grouping module 1303 .
[0115] Among them, the first receiving module 1301 is used to receive the first ambient sound data collected by the target device, and the target device is a lamp or a lamp management terminal; the determination module 1302 is used to determine the target lamp group from multiple lamp groups maintained by the server according to the first ambient sound data, wherein each lamp group includes multiple lamps, and the second ambient sound data collected by each lamp in the same lamp group are similar to each other, and the second ambient sound data collected by the lamps in the target lamp group are similar to the first ambient sound data; the grouping module 1303 is used to divide the target device into the target lamp group.
[0116] In an optional embodiment of the present application, the determination module 1302 is specifically used to: perform ambient sound similarity detection on multiple lamp groups in sequence until the ambient sound similarity detection result of a lamp group indicates that the second ambient sound data collected by the lamps in the lamp group is similar to the first ambient sound data; and take the lamp group as the target lamp group.
[0117] In an optional embodiment of the present application, the determination module 1302 is specifically used to: detect whether the first ambient sound data is similar to the second ambient sound data collected by each lamp in the lamp group; if the proportion of lamps with similar ambient sound data reaches the target proportion threshold, it is determined that the second ambient sound data collected by the lamps in the lamp group is similar to the first ambient sound data.
[0118] In an optional embodiment of the present application, the determination module 1302 is specifically used to: convert the first ambient sound data into a first sound amplitude waveform; convert each second ambient sound data into a second sound amplitude waveform; and detect whether the first sound amplitude waveform is similar to each second sound amplitude waveform.
[0119] In an optional embodiment of the present application, the determination module 1302 is specifically used to: for each second sound amplitude waveform graph, translate the second sound amplitude waveform graph in the x-axis direction, and proportionally amplify the second sound amplitude waveform graph in the y-axis direction to obtain a processed second sound amplitude waveform graph, and detect whether the first sound amplitude waveform graph is similar to the processed second sound amplitude waveform graph.
[0120] In an optional embodiment of the present application, the determination module 1302 is specifically used to: obtain the first coordinate of the starting point of the first sound amplitude waveform in the x-axis direction, and obtain the second coordinate of the starting point of the second sound amplitude waveform in the x-axis direction; use the difference between the first coordinate and the second coordinate as the translation distance; and translate the second sound amplitude waveform in the x-axis direction based on the translation distance.
[0121] In an optional embodiment of the present application, the determination module 1302 is specifically used to: calculate a first difference between the maximum value and the minimum value of the first sound amplitude waveform in the y-axis direction, and calculate a second difference between the maximum value and the minimum value of the second sound amplitude waveform in the y-axis direction; use the ratio of the second difference to the first difference as a magnification factor; and perform proportional amplification processing on the second sound amplitude waveform in the y-axis direction based on the amplification factor.
[0122] In an optional embodiment of the present application, the determination module 1302 is specifically used to: convert the first ambient sound data into a first sound audio; convert each second ambient sound data into a second sound audio; and detect whether the first sound audio is similar to each second sound audio.
[0123] In an optional embodiment of the present application, the determination module 1302 is specifically used to: parse the first ambient sound data to obtain the semantics of the first sound; parse the second ambient sound data to obtain the semantics of the second sound; and detect whether the semantics of the first sound are similar to the semantics of each second sound.
[0124] The lamp management device provided in the embodiment of the present application can implement the above method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.
[0125] Each module in the above-mentioned lamp management device can be implemented in whole or in part by software, hardware or a combination thereof. Each of the above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the corresponding operations of each of the above modules.
[0126] See also Fig.14 , which shows a block diagram of a lamp management device 1400 provided in an embodiment of the present application, the device is used in a lamp management terminal. Fig.14 As shown, the device 1400 includes a sending module 1401 and a second receiving module 1402 .
[0127] Among them, the sending module 1401 is used to send the collected first ambient sound data to the server, wherein the first ambient sound data is used for the server to determine the target lamp group from the multiple lamp groups maintained, wherein each lamp group includes multiple lamps, and the second ambient sound data collected by each lamp in the same lamp group are similar to each other, and the second ambient sound data collected by the lamps in the target lamp group are similar to the first ambient sound data; the second receiving module 1402 is used to receive information of each lamp in the target lamp group sent by the server.
[0128] The lamp management device provided in the embodiment of the present application can implement the above method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.
[0129] Each module in the above-mentioned lamp management device can be implemented in whole or in part by software, hardware or a combination thereof. Each of the above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the corresponding operations of each of the above modules.
[0130] In one embodiment of the present application, a computer program product is provided, including a computer program, which implements the following steps when executed by a processor:
[0131] Receive first ambient sound data collected by a target device, where the target device is a lamp or a lamp management terminal; determine a target lamp group from a plurality of lamp groups maintained by a server based on the first ambient sound data, wherein each lamp group includes a plurality of lamps, and second ambient sound data collected by each lamp in the same lamp group are similar to each other, and the second ambient sound data collected by the lamps in the target lamp group are similar to the first ambient sound data; and divide the target device into the target lamp group.
[0132] In one embodiment of the present application, when the computer program is executed by the processor, the following steps are also implemented: performing ambient sound similarity detection on multiple lamp groups in sequence until the ambient sound similarity detection result of a lamp group indicates that the second ambient sound data collected by the lamps in the lamp group is similar to the first ambient sound data; and taking the lamp group as the target lamp group.
[0133] In one embodiment of the present application, when the computer program is executed by the processor, the following steps are also implemented: detecting whether the first ambient sound data is similar to the second ambient sound data collected by each lamp in the lamp group; if the proportion of lamps with similar ambient sound data reaches the target ratio threshold, determining that the second ambient sound data collected by the lamps in the lamp group is similar to the first ambient sound data.
[0134] In one embodiment of the present application, when the computer program is executed by a processor, the following steps are also implemented: converting the first ambient sound data into a first sound amplitude waveform graph; converting each second ambient sound data into a second sound amplitude waveform graph; and detecting whether the first sound amplitude waveform graph is similar to each second sound amplitude waveform graph.
[0135] In one embodiment of the present application, when the computer program is executed by the processor, the following steps are also implemented: for each second sound amplitude waveform graph, the second sound amplitude waveform graph is translated in the x-axis direction, and the second sound amplitude waveform graph is proportionally amplified in the y-axis direction to obtain a processed second sound amplitude waveform graph, and whether the first sound amplitude waveform graph is similar to the processed second sound amplitude waveform graph is detected.
[0136] In one embodiment of the present application, when the computer program is executed by a processor, the following steps are also implemented: obtaining a first coordinate of a starting point of a first sound amplitude waveform graph in the x-axis direction, and obtaining a second coordinate of a starting point of a second sound amplitude waveform graph in the x-axis direction; taking the difference between the first coordinate and the second coordinate as a translation distance; and translating the second sound amplitude waveform graph in the x-axis direction based on the translation distance.
[0137] In one embodiment of the present application, when the computer program is executed by the processor, the following steps are also implemented: calculating a first difference between the maximum value and the minimum value of the first sound amplitude waveform in the y-axis direction, and calculating a second difference between the maximum value and the minimum value of the second sound amplitude waveform in the y-axis direction; using the ratio of the second difference to the first difference as a magnification factor; and proportionally amplifying the second sound amplitude waveform in the y-axis direction based on the amplification factor.
[0138] In one embodiment of the present application, when the computer program is executed by the processor, the following steps are also implemented: converting the first ambient sound data into the first sound audio; converting each second ambient sound data into the second sound audio; and detecting whether the first sound audio is similar to each second sound audio.
[0139] In one embodiment of the present application, when the computer program is executed by a processor, the following steps are also implemented: parsing the first ambient sound data to obtain the semantics of the first sound; parsing the second ambient sound data to obtain the semantics of the second sound; and detecting whether the semantics of the first sound are similar to the semantics of each second sound.
[0140] The implementation principle and technical effects of the computer program product provided in this embodiment are similar to those of the above method embodiments and will not be described in detail here.
[0141] In one embodiment of the present application, a computer program product is provided, including a computer program, which implements the following steps when executed by a processor:
[0142] The collected first ambient sound data is sent to the server; wherein the first ambient sound data is used for the server to determine a target lamp group from a plurality of lamp groups maintained, wherein each lamp group includes a plurality of lamps, and the second ambient sound data collected by each lamp in the same lamp group are similar to each other, and the second ambient sound data collected by the lamps in the target lamp group are similar to the first ambient sound data.
[0143] The implementation principle and technical effects of the computer program product provided in this embodiment are similar to those of the above method embodiments and will not be described in detail here.
[0144] In one embodiment of the present application, a computer program product is provided, comprising a computer program, which implements the following steps when executed by a processor: sending collected first ambient sound data to a server, wherein the first ambient sound data is used for the server to determine a target lamp group from a plurality of lamp groups maintained, wherein each lamp group includes a plurality of lamps, and second ambient sound data collected by each lamp in the same lamp group are similar to each other, and second ambient sound data collected by the lamps in the target lamp group are similar to the first ambient sound data; and receiving information of each lamp in the target lamp group sent by the server.
[0145] The implementation principle and technical effects of the computer program product provided in this embodiment are similar to those of the above method embodiments and will not be described in detail here.
[0146] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0147] The technical features of the above embodiments can be combined arbitrarily. In order to make the description concise, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification. The above-mentioned embodiments only express several implementation methods of the present application, and their descriptions are relatively specific and detailed, but they cannot be understood as limiting the scope of the patent of this application. It should be pointed out that for ordinary technicians in this field, without departing from the concept of the present application, several deformations and improvements can be made, which all belong to the scope of protection of the present application. Therefore, the scope of protection of the present application shall be based on the attached claims.
Claims
1. A lamp management method, characterized in that: Used in a server, the method comprises: Receiving first ambient sound data collected by a target device, wherein the target device is a lamp or a lamp management terminal; Determine a target lamp group from a plurality of lamp groups maintained by the server according to the first ambient sound data, wherein each of the lamp groups includes a plurality of lamps, and second ambient sound data collected by lamps in the same lamp group are similar to each other, and the second ambient sound data collected by the lamps in the target lamp group are similar to the first ambient sound data; Classifying the target devices into the target lamp groups; The method further comprises: Detecting whether the first ambient sound data is similar to the second ambient sound data collected by each lamp in the lamp group; If the proportion of lamps with similar ambient sound data reaches a target proportion threshold, it is determined that the second ambient sound data collected by the lamps in the lamp group is similar to the first ambient sound data; The detecting whether the first ambient sound data is similar to the second ambient sound data collected by each lamp in the lamp group includes: Converting the first ambient sound data into a first sound amplitude waveform graph; Convert each of the second ambient sound data into a second sound amplitude waveform graph; Detecting whether the first sound amplitude waveform is similar to each of the second sound amplitude waveforms; The detecting whether the first sound amplitude waveform is similar to each of the second sound amplitude waveforms includes: For each of the second sound amplitude waveform graphs, the second sound amplitude waveform graph is translated in the x-axis direction, and the second sound amplitude waveform graph is proportionally amplified in the y-axis direction to obtain a processed second sound amplitude waveform graph, and whether the first sound amplitude waveform graph is similar to the processed second sound amplitude waveform graph is detected.
2. The method according to claim 1, characterized in that The step of determining a target lamp group from a plurality of lamp groups maintained by the server according to the first ambient sound data includes: Performing environmental sound similarity detection on the plurality of lamp groups in sequence until an environmental sound similarity detection result of a certain lamp group indicates that the second environmental sound data collected by the lamps in the certain lamp group is similar to the first environmental sound data; The certain lamp group is used as the target lamp group.
3. The method according to claim 1, characterized in that The performing translation processing on the second sound amplitude waveform in the x-axis direction includes: Obtaining a first coordinate of a starting point of the first sound amplitude waveform in the x-axis direction, and obtaining a second coordinate of a starting point of the second sound amplitude waveform in the x-axis direction; Taking the difference between the first coordinate and the second coordinate as the translation distance; The second sound amplitude waveform is translated in the x-axis direction based on the translation distance.
4. The method according to claim 1, characterized in that The step of performing equal-proportion amplification processing on the second sound amplitude waveform in the y-axis direction includes: Calculating a first difference between a maximum value and a minimum value of the first sound amplitude waveform in the y-axis direction, and calculating a second difference between a maximum value and a minimum value of the second sound amplitude waveform in the y-axis direction; using a ratio of the second difference to the first difference as a magnification factor; The second sound amplitude waveform is proportionally amplified in the y-axis direction based on the amplification factor.
5. The method according to claim 1, characterized in that The detecting whether the first ambient sound data is similar to the second ambient sound data collected by each lamp in the lamp group includes: Converting the first ambient sound data into a first sound audio; Convert each of the second ambient sound data into a second sound audio; Detect whether the first sound audio is similar to each of the second sound audios.
6. The method according to claim 1, characterized in that The detecting whether the first ambient sound data is similar to the second ambient sound data collected by each lamp in the lamp group includes: Parsing the first ambient sound data to obtain semantics of the first sound; Parsing the second ambient sound data to obtain semantics of the second sound; It is detected whether the semantics of the first sound are similar to the semantics of each of the second sounds.
7. A lamp management method, characterized in that: Used in a lamp, the method comprises: Sending the collected first ambient sound data to the server; The first ambient sound data is used for the server to determine a target lamp group from a plurality of lamp groups maintained, wherein each of the lamp groups includes a plurality of lamps, and the second ambient sound data collected by each lamp in the same lamp group are similar to each other, and the second ambient sound data collected by the lamps in the target lamp group are similar to the first ambient sound data, and the first ambient sound data is used for the server to detect whether the first ambient sound data is similar to the second ambient sound data collected by each lamp in the lamp group, and if the proportion of lamps with similar ambient sound data reaches a target ratio threshold, it is determined that the second ambient sound data collected by the lamps in the lamp group is similar to the first ambient sound data The first ambient sound data is used for the server to convert the first ambient sound data into a first sound amplitude waveform graph, convert each second ambient sound data into a second sound amplitude waveform graph, detect whether the first sound amplitude waveform graph is similar to each second sound amplitude waveform graph, and for each second sound amplitude waveform graph, the first ambient sound data is used for the server to translate the second sound amplitude waveform graph in the x-axis direction and proportionally amplify the second sound amplitude waveform graph in the y-axis direction to obtain a processed second sound amplitude waveform graph, and detect whether the first sound amplitude waveform graph is similar to the processed second sound amplitude waveform graph.
8. A lamp management method, characterized in that: Used in a lamp management terminal, the method includes: The first ambient sound data collected is sent to a server, wherein the first ambient sound data is used for the server to determine a target lamp group from a plurality of lamp groups maintained, wherein each of the lamp groups includes a plurality of lamps, and the second ambient sound data collected by each lamp in the same lamp group are similar to each other, and the second ambient sound data collected by the lamps in the target lamp group are similar to the first ambient sound data, and the first ambient sound data is used for the server to detect whether the first ambient sound data is similar to the second ambient sound data collected by each lamp in the lamp group, and if the proportion of lamps with similar ambient sound data reaches a target proportion threshold, it is determined that the second ambient sound data collected by the lamps in the lamp group is similar to the second ambient sound data. The first environmental sound data are similar, the first environmental sound data is used for the server to convert the first environmental sound data into a first sound amplitude waveform graph, convert each second environmental sound data into a second sound amplitude waveform graph, detect whether the first sound amplitude waveform graph is similar to each second sound amplitude waveform graph, for each second sound amplitude waveform graph, the first environmental sound data is used for the server to translate the second sound amplitude waveform graph in the x-axis direction, and perform proportional amplification processing on the second sound amplitude waveform graph in the y-axis direction to obtain a processed second sound amplitude waveform graph, and detect whether the first sound amplitude waveform graph is similar to the processed second sound amplitude waveform graph; Receive information of each lamp in the target lamp group sent by the server.
9. A lamp management device, characterized in that: Used in a server, the device comprises: A first receiving module, configured to receive first ambient sound data collected by a target device, wherein the target device is a lamp or a lamp management terminal; a determination module, configured to determine a target lamp group from a plurality of lamp groups maintained by the server according to the first ambient sound data, wherein each of the lamp groups includes a plurality of lamps, and second ambient sound data collected by the lamps in the same lamp group are similar to each other, and the second ambient sound data collected by the lamps in the target lamp group are similar to the first ambient sound data; A grouping module, used for dividing the target devices into the target lamp groups; The determination module is specifically used to detect whether the first ambient sound data is similar to the second ambient sound data collected by each lamp in the lamp group; if the proportion of lamps with similar ambient sound data reaches a target proportion threshold, it is determined that the second ambient sound data collected by the lamps in the lamp group is similar to the first ambient sound data; The determination module is specifically used to convert the first ambient sound data into a first sound amplitude waveform graph; convert each of the second ambient sound data into a second sound amplitude waveform graph; and detect whether the first sound amplitude waveform graph is similar to each of the second sound amplitude waveform graphs; The determination module is specifically used to perform translation processing on each of the second sound amplitude waveform graphs in the x-axis direction, and perform proportional amplification processing on the second sound amplitude waveform graph in the y-axis direction to obtain a processed second sound amplitude waveform graph, and detect whether the first sound amplitude waveform graph is similar to the processed second sound amplitude waveform graph.
10. A lamp management device, characterized in that: Used in a lamp management terminal, the device comprises: A sending module, used for sending the collected first ambient sound data to the server, wherein the first ambient sound data is used for the server to determine a target lamp group from a plurality of lamp groups maintained, wherein each of the lamp groups includes a plurality of lamps, and the second ambient sound data collected by the lamps in the same lamp group are similar to each other, the second ambient sound data collected by the lamps in the target lamp group are similar to the first ambient sound data, and the first ambient sound data is used for the server to detect whether the first ambient sound data is similar to the second ambient sound data collected by the lamps in the lamp group, and if the proportion of lamps with similar ambient sound data reaches a target proportion threshold, then the second ambient sound data collected by the lamps in the lamp group is determined. According to the first environmental sound data, each of the second environmental sound data is similar to the first environmental sound data, the first environmental sound data is used for the server to convert the first environmental sound data into a first sound amplitude waveform graph, convert each of the second environmental sound data into a second sound amplitude waveform graph, detect whether the first sound amplitude waveform graph is similar to each of the second sound amplitude waveform graphs, for each of the second sound amplitude waveform graphs, the first environmental sound data is used for the server to perform a translation process on the second sound amplitude waveform graph in the x-axis direction, and perform a proportional amplification process on the second sound amplitude waveform graph in the y-axis direction to obtain a processed second sound amplitude waveform graph, and detect whether the first sound amplitude waveform graph is similar to the processed second sound amplitude waveform graph; The second receiving module is used to receive the information of each lamp in the target lamp group sent by the server.
11. A lamp, characterized in that: The lamp includes a sound pickup component, a processing component and a communication component; The sound pickup component is used to collect first ambient sound data; The processing component is used to obtain the first ambient sound data collected by the sound pickup component, and control the communication component to send the first ambient sound data collected by the sound pickup component to the server; the first ambient sound data is used for the server to determine the target lamp group from the multiple lamp groups maintained, wherein each of the lamp groups includes multiple lamps, and the second ambient sound data collected by each lamp in the same lamp group are similar to each other, and the second ambient sound data collected by the lamps in the target lamp group are similar to the first ambient sound data, and the first ambient sound data is used for the server to detect whether the first ambient sound data is similar to the second ambient sound data collected by each lamp in the lamp group. If the proportion of lamps with similar ambient sound data reaches the target ratio threshold, the server is determined. The second ambient sound data collected by the lamps in the lamp group are similar to the first ambient sound data, and the first ambient sound data are used for the server to convert the first ambient sound data into a first sound amplitude waveform graph, convert each second ambient sound data into a second sound amplitude waveform graph, detect whether the first sound amplitude waveform graph is similar to each second sound amplitude waveform graph, and for each second sound amplitude waveform graph, the first ambient sound data is used for the server to translate the second sound amplitude waveform graph in the x-axis direction and proportionally amplify the second sound amplitude waveform graph in the y-axis direction to obtain a processed second sound amplitude waveform graph, and detect whether the first sound amplitude waveform graph is similar to the processed second sound amplitude waveform graph.
12. The lamp according to claim 11, characterized in that The lamp also includes a filter component; The filtering component is used to filter the first ambient sound data collected by the sound pickup component and transmit the filtered first ambient sound data to the processing component; The processing component is specifically used to obtain the first ambient sound data after the filtering process, and control the communication component to send the first ambient sound data after the filtering process to the server.
13. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.
