A smart lighting monitoring and management system and method based on the Internet of Things
Through the smart lighting monitoring and management system based on the Internet of Things, it analyzes the key areas of advertising content and adjusts the lighting angle and color of solar floodlights, solving the problem of unclear advertising display at night, improving publicity effects and achieving energy-saving intelligence. Lighting management.
Patent Information
- Application Number
- CN202211475118.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-23
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2042-11-23
AI Technical Summary
In the existing technology, due to dim lighting of park advertising display boards at night, users cannot clearly see the advertising content, and solar lighting lamps cannot adjust the illumination angle and illumination color according to the advertising content, making it impossible to effectively achieve the purpose of publicity.
Design a smart lighting monitoring and management system based on the Internet of Things. Through data collection, database, data analysis, data processing and information replacement modules, it collects advertising content, analyzes key areas, adjusts the lighting angle and lighting color of solar floodlights, and Determine whether to turn on the lights based on portrait recognition to achieve intelligent lighting management.
It improves the effect of nighttime advertising, enhances the visibility of advertising content, saves energy and distributes power reasonably, ensuring that solar floodlights are not unusable due to inability to replenish power in rainy weather.
Smart Images

Figure CN115713370B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of lighting management, and specifically to an intelligent lighting monitoring and management system and method based on the Internet of Things. Background Art
[0002] Advertising is an important competitive strategy for enterprises. Through the spread of advertising signs, consumers can understand the name, purpose, purchase location and purchase method of the product. In the fierce market competition, products can be attractive through large-scale advertising, which is very beneficial for enterprises to expand their markets.
[0003] At present, there are many paper advertising display boards in the park. However, due to the dim light at night, users cannot see the advertisement content clearly, thus failing to achieve the purpose of publicity. At the same time, in the prior art, using solar lighting to illuminate the advertising display board only illuminates the light onto the advertising display board, and it is impossible to adjust the illumination angle and light color according to the advertisement content information.
[0004] Therefore, people need an intelligent lighting monitoring and management system and method based on the Internet of Things to solve the above problems. By establishing a system to analyze the key areas and overall color of the advertising content, the solar floodlights can be intelligently controlled to illuminate the designated locations, greatly increasing the purpose of publicity. Summary of the invention
[0005] The purpose of the present invention is to provide an intelligent lighting monitoring and management system and method based on the Internet of Things to solve the problems raised in the above background technology.
[0006] In order to solve the above technical problems, the present invention provides the following technical solutions: a smart lighting monitoring and management system based on the Internet of Things, the system comprising: a data acquisition module, a database, a data analysis module, a data processing module, a data identification module and an information replacement module;
[0007] The output end of the data acquisition module is connected to the input end of the database, the output end of the database is connected to the input ends of the data analysis module, the data identification module and the information replacement module, the output end of the data analysis module is connected to the input end of the data processing module, the output end of the data processing module is connected to the input end of the database, and the output end of the information replacement module is connected to the input end of the data analysis module;
[0008] The data collection module collects all the advertisement contents in the park and performs numbering processing according to the position of the advertisement display column;
[0009] Storing all collected information through the database;
[0010] Confirm the advertisement location through the data analysis module, extract the advertisement content corresponding to the number, and analyze the key areas of the advertisement content;
[0011] The data processing module is used to adjust the lighting angle and lighting color of the solar floodlight according to the key advertising area;
[0012] Identify the human figure in the camera area through the data recognition module, and determine whether to turn on the light according to the human figure;
[0013] The information replacement module determines whether the advertisement content has been replaced and processes the replaced content.
[0014] Furthermore, the data acquisition module includes a content acquisition unit, a location acquisition unit and a number processing unit;
[0015] The content collection unit is used to collect all advertising content in the park by uploading information; the location acquisition unit is used to collect the location information of all advertising display columns in the park by using a positioning algorithm; and the number processing unit is used to number the advertising display column information.
[0016] Furthermore, the database is used to store all collected information, and also includes a font library and a color card comparison library.
[0017] Further, the data analysis module includes an information matching unit, a data extraction unit and a content analysis unit;
[0018] The information matching unit is used to match the advertisement content with the serial number by manual input; the data extraction unit is used to extract the advertisement content in the corresponding serial number; and the content analysis unit is used to analyze the key areas of the advertisement content according to the comparison model.
[0019] Further, the data processing module includes an angle adjustment unit and a color matching unit;
[0020] The angle adjustment unit is used to adjust the lighting angle of the solar projector according to the key area; the color matching unit is used to adjust the lighting color of the solar projector according to the overall color of the key area.
[0021] Furthermore, the data recognition module includes a portrait recognition unit and a signal processing unit;
[0022] The portrait recognition unit is used to use a spherical camera to recognize a portrait in the camera area and determine whether there is a person; the signal processing unit is used to determine whether the solar floodlight is turned on according to whether a portrait is recognized in the camera area: if a portrait is recognized, the light is turned on; if a portrait is recognized in the camera area, the light is turned on; otherwise, if no portrait is recognized, the light is turned off.
[0023] Further, the information replacement module includes an information judgment unit and a data overwriting unit;
[0024] The information judgment unit is used to use the information comparison model to judge whether the advertisement content has been changed; the data overwriting unit is used to overwrite the original advertisement content, display the new advertisement content, and send the data to the data analysis module.
[0025] A smart lighting monitoring and management method based on the Internet of Things includes the following steps:
[0026] S1: Collect all the advertisements in the park and number them according to the positions of the advertisement display columns;
[0027] S2: stores all collected information;
[0028] S3: confirm the advertisement position, extract the advertisement content corresponding to the number, and analyze the key areas of the advertisement content;
[0029] S4: Adjust the lighting angle and lighting color of the solar floodlight according to the key areas of the advertisement;
[0030] S5: Identify the human figure in the camera area and determine whether to turn on the light according to the human figure;
[0031] S6: Determine whether the advertisement content has been changed, and process the changed content.
[0032] Further, in step S1: all advertisement contents in the park are collected and numbered according to the positions of the advertisement display columns. The specific steps are as follows:
[0033] S101: Collect all advertisement contents in the park by uploading information to form advertisement data: X = {x i}, i = 1, 2, ..., n;
[0034] S102: Using the positioning algorithm to collect the location information of all the advertising display columns in the park, and perform numbering processing to form numbering data: A = {a i}, i = 1, 2, ..., n; wherein, the positioning algorithm is a conventional technical means of those skilled in the art, and therefore, no further elaboration is made.
[0035] Furthermore, in step S2: a database is used to store all collected information, and the database includes a font library and a color card comparison library.
[0036] Further, in step S3: the advertisement data: X = {x i}, i = 1, 2, ..., n and serial number data: A = {a i}, i=1,2,…,n for one-to-one matching;
[0037] Extract the matching advertisement data x i ; Use the contrast model to analyze the key areas of the advertising content. The specific steps are as follows:
[0038] S301: Divide the image into regions and merge blocks with high similarity. The steps are as follows:
[0039] A1: According to the image ratio, the advertising image data x i Divide into m×k blocks to form different block data: x i = {u s}, s = 1, 2, ..., m × k, wherein the m × k blocks are as small as possible to avoid grouping different text data into one block;
[0040] A2: Calculate the image similarity of each block: by traversing the block data: x i = {u s},s=1,2,…,m×k, get the mean value of each block data: x i ={e s},s=1,2,…,m×k; According to the similarity formula: Then we get the similarity set E between block s and other blocks i (s) = {h δ (j)}, δ=1,2,…,m×ks; s=1,2,…,m×k;
[0041] A3: Compare block similarities and merge blocks with high similarity: By traversing the similarity set E between block s and other blocks i (s) = {h δ (s)}, δ=1,2,…,m×ks; s=1,2,…,m×k; if h δ (s)>α, where α is the set threshold, indicating that block s is similar to other blocks, then similar blocks are screened out and form a new block with block s: U(j)={u γ}, on the contrary, if h δ (s)<α, indicating that block s is not similar to other blocks; other blocks are similar, thus forming a new block data set: x i ={U(j)},j=1,2,…,β,β <m×k;
[0042] S302: By traversing the block data set: x i={U(j)}, j = 1, 2, …, β, β < m×k. Use OCR technology to identify the text data in the image information, and confirm that the block set with text data is: H = {U(j)}, j = 1, 2, …, μ, μ ≤ β, where Filter it out and go to step S303; among them, the OCR technology belongs to the conventional technical means of those skilled in the art, so no excessive elaboration is made;
[0043] S303: Extract the text data in the block, filter out the blocks with prominent text features, and confirm the key area of the advertisement content. The steps are as follows:
[0044] B1: Compare the block text data with the font library P: The system obtains the text data from the block set: H = {U(j)}, j = 1, 2, …, μ to obtain the text set H 1 ={w j}, j = 1, 2, …, μ; According to the comparison formula: Then the text feature set is obtained: D = {d j}, j = 1, 2, …, μ;
[0045] B2: Compare the text feature similarity: According to the formula: The text similarity set E(j) = {y τ} of block j and other blocks is obtained, τ = 1, 2, …, μ - j, and further the average similarity of block j is obtained By traversing the text feature set: D = {d j}, j = 1, 2, …, μ, the text feature similarity set: Z = {z(j)}, j = 1, 2, …, μ is obtained;
[0046] B3: Confirm the key area of the advertisement content: By traversing the text feature similarity set: Z = {z(j)}, j = 1, 2, …, μ; Use the bubble sort algorithm to sort in ascending order, then extract the block text data d x corresponding to z(1), and confirm that block x is the key area of the advertisement content, because the font features of this block have the lowest similarity and the greatest difference with the font features of other blocks, and have the effect of prominent text. At this time, go to step S4.
[0047] Furthermore, in step S4: Adjust the lighting angle and light color of the solar floodlight according to the key area of the advertisement. The specific steps are as follows:
[0048] S401: Adjust the lighting angle of the solar floodlight. The steps are as follows:
[0049] C1: Establish the smallest rectangular frame that can enclose block x and confirm the center point position: By establishing a two-dimensional rectangular coordinate system, we can obtain the vertex coordinate set R of each block x = {(m r ,n r )}, r=1,2,…,q;Traverse the horizontal coordinates and vertical coordinates in the vertex coordinate set R, and extract max(m r ),max(n r ),min(m r ),min(n r ) forms a minimum rectangular frame, then the center point coordinate R of block x is determined o for:
[0050] C2: After receiving the center coordinates, the solar floodlight is controlled according to the infrared signal to aim the light at the center point coordinate R o superior;
[0051] S402: Adjust the lighting color of the solar floodlight. The steps are as follows:
[0052] D1: Confirm the color of the image of block x: Extract the image data of block x and use the color recognition algorithm to identify all the color data of the image of block x: V = {v f}, f = 1, 2, ..., ∈; confirm the color mean, that is, the color of the block x image: The color recognition algorithm is a conventional technical means of those skilled in the art, and therefore, no further elaboration is made;
[0053] D2: Use the color card comparison library to extract the corresponding light color according to the color mean v At this time, adjust the color of the solar floodlight to Among them, the corresponding lighting colors in the color card comparison library are entered in advance.
[0054] Further, in step S5: a spherical camera is used to identify a human figure in a circular area with a radius of T. If a human figure is detected in the circular area, the solar floodlight is automatically controlled to turn on; otherwise, if no human figure is detected in the circular area, the light is turned off;
[0055] Further, in step S6: determine whether the advertisement content is changed, and process the changed content. The specific steps are as follows:
[0056] S601: Using the information comparison model to determine whether the advertisement content has been changed, the steps are as follows:
[0057] E1: Get the new input number a λ and the corresponding advertising data L λ = {l s}, s = 1, 2, ..., m × k; at the same time, extract the number a in the original database λ Advertising data x λ = {u s},s=1,2,…,m×k;
[0058] E2: Calculate advertising data L using the comparison algorithm λ With advertising data x λ Similarity: Use word embedding algorithm to embed the advertising data L λ and x λ Mapping to an n-dimensional vector space and establishing a coordinate system, we can get the similarity between the two advertisements: The word embedding algorithm is a conventional technical means of those skilled in the art, and therefore, no further elaboration is made;
[0059] E2: Determine whether the advertisement content has been changed: If ξ<θ, where θ is the set threshold, it means that the two advertisement contents are different, then number a λ The advertisement data has been replaced, at this time, enter step S602; on the contrary, if ξ>θ, it means that the two advertisements have the same content, then the number a λ The advertising data has not been replaced;
[0060] S602: Use the overlay algorithm to convert the advertisement data into λ Overlay to display new advertising data L λ , at this time, enter step S3.
[0061] Compared with the prior art, the beneficial effects achieved by the present invention are:
[0062] The present invention collects the location information of all advertising display columns in the park by using a positioning algorithm and performs numbering processing. At the same time, the advertising data is matched with the numbering data one-to-one by manual input, which is convenient for the statistics of the park advertising information and the subsequent replacement of the advertising information; the database includes a font library and a color card comparison library, which is convenient for the comparison of advertising texts and the comparison of advertising image colors; by dividing the advertising image data into multiple blocks according to the image ratio, and merging the blocks with high similarity, it is beneficial to the accuracy of image analysis and the subsequent analysis of key advertising areas; by comparing the block text data with the font library, the blocks with prominent text characteristics are screened, which is beneficial to the subsequent adjustment of the angle of the solar floodlight; by establishing a two-dimensional rectangular coordinate system, the minimum rectangular frame that can surround the block is analyzed to determine Recognizing the center point position makes it easier to confirm the irradiation angle of the solar floodlight, which is beneficial to the promotion of advertising content; by using the color recognition algorithm to identify all the color data of the block image and using the color card comparison library to extract the corresponding lighting color, the nighttime publicity effect is greatly increased; by using the spherical camera to identify the human figure in the circular area within the radius to determine the switch state of the solar floodlight, it is beneficial to energy saving and the reasonable allocation of electricity, preventing the problem of continuous rainy weather causing the solar floodlight to be unable to replenish electricity; by using the information comparison model to determine whether the advertising content has been changed, and using the overlay algorithm to overwrite the advertising data, it is beneficial to the intelligent deployment of the solar floodlight when the advertising data is changed; the use of intelligent solar floodlights solves the problem that users cannot see the content of paper billboards clearly at night, greatly improving the publicity effect. BRIEF DESCRIPTION OF THE DRAWINGS
[0063] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:
[0064] Figure 1 It is a structural diagram of a smart lighting monitoring and management system based on the Internet of Things of the present invention;
[0065] Figure 2 It is a flow chart of a smart lighting monitoring and management method based on the Internet of Things of the present invention. DETAILED DESCRIPTION
[0066] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0067] See also Figure 1-Figure 2, the present invention provides a technical solution: a smart lighting monitoring and management system and method based on the Internet of Things, the system includes: a data acquisition module, a database, a data analysis module, a data processing module, a data identification module and an information replacement module;
[0068] The output end of the data acquisition module is connected to the input end of the database, the output end of the database is connected to the input ends of the data analysis module, the data identification module and the information replacement module, the output end of the data analysis module is connected to the input end of the data processing module, the output end of the data processing module is connected to the input end of the database, and the output end of the information replacement module is connected to the input end of the data analysis module;
[0069] The data collection module collects all the advertisement contents in the park and performs numbering processing according to the position of the advertisement display column;
[0070] The data acquisition module includes a content acquisition unit, a location acquisition unit and a number processing unit;
[0071] The content collection unit is used to collect all advertising content in the park by uploading information; the location acquisition unit is used to collect the location information of all advertising display columns in the park by using a positioning algorithm; and the number processing unit is used to number the advertising display column information.
[0072] Storing all collected information through the database;
[0073] The database is used to store all collected information, and also includes a font library and a color card comparison library to facilitate comparison of advertising texts.
[0074] Confirm the advertisement location through the data analysis module, extract the advertisement content corresponding to the number, and analyze the key areas of the advertisement content;
[0075] The data analysis module includes an information matching unit, a data extraction unit and a content analysis unit;
[0076] The information matching unit is used to match the advertisement content with the serial number by manual input; the data extraction unit is used to extract the advertisement content in the corresponding serial number; and the content analysis unit is used to analyze the key areas of the advertisement content according to the comparison model.
[0077] The data processing module is used to adjust the lighting angle and lighting color of the solar floodlight according to the key advertising area;
[0078] The data processing module includes an angle adjustment unit and a color matching unit;
[0079] The angle adjustment unit is used to adjust the lighting angle of the solar projector according to the key area; the color matching unit is used to adjust the lighting color of the solar projector according to the overall color of the key area.
[0080] Identify the human figure in the camera area through the data recognition module, and determine whether to turn on the light according to the human figure;
[0081] The data recognition module includes a portrait recognition unit and a signal processing unit;
[0082] The portrait recognition unit is used to use a spherical camera to recognize a portrait in the camera area and determine whether there is a person; the signal processing unit is used to determine whether the solar floodlight is turned on according to whether a portrait is recognized in the camera area: if a portrait is recognized, the light is turned on; if a portrait is recognized in the camera area, the light is turned on; otherwise, if no portrait is recognized, the light is turned off.
[0083] The information replacement module determines whether the advertisement content has been replaced and processes the replaced content.
[0084] The information replacement module includes an information judgment unit and a data overwriting unit;
[0085] The information judgment unit is used to use the information comparison model to judge whether the advertisement content has been changed; the data overwriting unit is used to overwrite the original advertisement content, display the new advertisement content, and send the data to the data analysis module.
[0086] A smart lighting monitoring and management method based on the Internet of Things includes the following steps:
[0087] S1: Collect all the advertisements in the park and number them according to the positions of the advertisement display columns;
[0088] In step S1: all advertisement contents in the park are collected and numbered according to the positions of the advertisement display columns. The specific steps are as follows:
[0089] S101: Collect all advertisement contents in the park by uploading information to form advertisement data: X = {x i}, i = 1, 2, ..., n;
[0090] S102: Using the positioning algorithm to collect the location information of all the advertising display columns in the park, and perform numbering processing to form numbering data: A = {a i}, i = 1, 2, ..., n; wherein, the positioning algorithm is a conventional technical means of those skilled in the art, and therefore, no further elaboration is made.
[0091] S2: stores all collected information;
[0092] In step S2: using a database to store all collected information, the database includes a font library and a color card comparison library.
[0093] S3: confirm the advertisement position, extract the advertisement content corresponding to the number, and analyze the key areas of the advertisement content;
[0094] In step S3: the advertisement data: X = {x i}, i = 1, 2, ..., n and serial number data: A = {a i}, i = 1, 2, ..., n for one-to-one matching; this facilitates the statistics of the park's advertising information and the subsequent replacement of the advertising information;
[0095] Extract the matching advertisement data x i ; Use the contrast model to analyze the key areas of the advertising content. The specific steps are as follows:
[0096] S301: Divide the image into regions and merge blocks with high similarity. The steps are as follows:
[0097] A1: According to the image ratio, the advertising image data x i Divide into m×k blocks to form different block data: x i = {u s}, s = 1, 2, ..., m × k, wherein the m × k blocks are as small as possible to avoid grouping different text data into one block;
[0098] A2: Calculate the image similarity of each block: by traversing the block data: x i = {u s},s=1,2,…,m×k, get the mean value of each block data: x i ={e s},s=1,2,…,m×k; According to the similarity formula: Then we get the similarity set E between block s and other blocks i (s) = {h δ (j)}, δ=1,2,…,m×ks; s=1,2,…,m×k;
[0099] A3: Compare block similarities and merge blocks with high similarity: By traversing the similarity set E between block s and other blocks i (s) = {h δ (s)}, δ=1,2,…,m×ks; s=1,2,…,m×k; if h δ(s) > α, where α is a set threshold value, indicating that block s is similar to other blocks. Then, the similar blocks are screened out and form a new block with block s: U(j) = {u γ}, conversely, if h δ (s) < α, it means that block s is not similar to other blocks; and so on for other blocks, then a new block data set is formed: x i = {U(j)}, j = 1, 2, …, β, β < m × k;
[0100] S302: By traversing the block data set: x i = {U(j)}, j = 1, 2, …, β, β < m × k, use the OCR technology to identify the text data in the image information, and confirm that the block set with text data is: H = {U(j)}, j = 1, 2, …, μ, μ ≤ β, where screen them out and enter step S303; among them, the OCR technology belongs to the conventional technical means of those skilled in the art, so no further elaboration is made;
[0101] S303: Extract the text data in the block, screen the blocks with prominent text features, and confirm the key area of the advertisement content. The steps are as follows:
[0102] B1: Compare the block text data with the font library P: The system obtains the text data from the block set: H = {U(j)}, j = 1, 2, …, μ to obtain the text set H 1 = {w j}, j = 1, 2, …, μ; According to the comparison formula: then the text feature set is obtained: D = {d j}, j = 1, 2, …, μ;
[0103] B2: Compare the text feature similarity: According to the formula: the text similarity set E(j) = {y τ} of block j and other blocks is obtained, τ = 1, 2, …, μ - j, and further the average similarity of block j is obtained By traversing the text feature set: D = {d j}, j = 1, 2, …, μ, the text feature similarity set is obtained: Z = {z(j)}, j = 1, 2, …, μ;
[0104] B3: Confirm the key area of the advertisement content: By traversing the text feature similarity set: Z = {z(j)}, j = 1, 2, …, μ; Use the bubble sort algorithm to sort in ascending order, then extract the block text data d corresponding to z(1) x, confirm that block x is the key area of the advertisement content, because the font characteristics of this block have the lowest similarity and the greatest difference with the font characteristics of other blocks, and have the effect of highlighting the text. At this time, enter step S4.
[0105] S4: Adjust the lighting angle and lighting color of the solar floodlight according to the key advertising area;
[0106] In step S4: adjusting the lighting angle and lighting color of the solar floodlight according to the key advertising area, the specific steps are as follows:
[0107] S401: Adjust the lighting angle of the solar floodlight. The steps are as follows:
[0108] C1: Establish the smallest rectangular frame that can enclose block x and confirm the center point position: By establishing a two-dimensional rectangular coordinate system, we can obtain the vertex coordinate set R of each block x = {(m r ,n r )}, r=1,2,…,q;Traverse the horizontal coordinates and vertical coordinates in the vertex coordinate set R, and extract max(m r ),max(n r ),min(m r ),min(n r ) forms a minimum rectangular frame, then the center point coordinate R of block x is determined o for:
[0109] C2: After receiving the center coordinates, the solar floodlight is controlled according to the infrared signal to aim the light at the center point coordinate R o superior;
[0110] S402: Adjust the lighting color of the solar floodlight. The steps are as follows:
[0111] D1: Confirm the color of the image of block x: Extract the image data of block x and use the color recognition algorithm to identify all the color data of the image of block x: V = {v f}, f = 1, 2, ..., ∈; confirm the color mean, that is, the color of the block x image: The color recognition algorithm is a conventional technical means of those skilled in the art, and therefore, no further elaboration is made;
[0112] D2: Use the color card comparison library to extract the corresponding light color according to the color mean v At this time, adjust the color of the solar floodlight to Among them, the corresponding lighting colors in the color card comparison library are entered in advance.
[0113] S5: Identify the human figure in the camera area and determine whether to turn on the light according to the human figure;
[0114] In step S5: a spherical camera is used to identify a human figure in a circular area with a radius of T. If a human figure is detected in the circular area, the solar floodlight is automatically controlled to turn on; otherwise, if no human figure is detected in the circular area, the light is turned off;
[0115] S6: Determine whether the advertisement content has been changed, and process the changed content.
[0116] In step S6: determine whether the advertisement content has been changed, and process the changed content. The specific steps are as follows:
[0117] S601: Using the information comparison model to determine whether the advertisement content has been changed, the steps are as follows:
[0118] E1: Get the new input number a λ and the corresponding advertising data L λ = {l s}, s = 1, 2, ..., m × k; at the same time, extract the number a in the original database λ Advertising data x λ = {u s},s=1,2,…,m×k;
[0119] E2: Calculate advertising data L using the comparison algorithm λ With advertising data x λ Similarity: Use word embedding algorithm to embed the advertising data L λ and x λ Mapping to an n-dimensional vector space and establishing a coordinate system, we can get the similarity between the two advertisements: The word embedding algorithm is a conventional technical means of those skilled in the art, and therefore, no further elaboration is made;
[0120] E2: Determine whether the advertisement content has been changed: If ξ<θ, where θ is the set threshold, it means that the two advertisement contents are different, then number a λ The advertisement data has been replaced, at this time, enter step S602; on the contrary, if ξ>θ, it means that the two advertisements have the same content, then the number a λ The advertising data has not been replaced;
[0121] S602: Use the overlay algorithm to convert the advertisement data into λ Overlay to display new advertising data L λ , at this time, enter step S3.
[0122] Embodiment 1:
[0123] In step S1: all advertisement contents in the park are collected and numbered according to the positions of the advertisement display columns. The specific steps are as follows:
[0124] S101: Collect 20 advertisement contents in the park by uploading information to form advertisement data: X = {x i}, i = 1, 2, ..., 20;
[0125] S102: Using the positioning algorithm to collect the location information of all the advertising display columns in the park, and perform numbering processing to form numbering data: A = {a i},i=1,2,…,20.
[0126] In step S2: using a database to store all collected information, the database includes a font library and a color card comparison library.
[0127] In step S3: the advertisement data: X = {x i}, i = 1, 2, ..., 20 and serial number data: A = {a i}, i=1,2,…,20 for one-to-one matching;
[0128] Extract a matching advertisement data x1; use the contrast model to analyze the key areas of the advertisement content. The specific steps are as follows:
[0129] S301: Divide the image into regions and merge blocks with high similarity. The steps are as follows:
[0130] A1: According to the image ratio, the advertisement image data x1 is divided into 20×10 blocks to form different block data: x1={u s},s=1,2,…,200;
[0131] A2: Calculate the image similarity of each block: By traversing the block data: x1 = {u s},s=1,2,…,200, and get the mean value of each block data: x1={e s},s=1,2,…,200; According to the similarity formula: Then we get the similarity set E1(s) between block 1 and other blocks = {h δ (j)}, δ=1,2,…,200-s; s=1,2,…,200;
[0132] A3: Compare block similarities and merge blocks with high similarity: By traversing the similarity set E between block 1 and other blocks i (1) = {h δ(1)},δ=1,2,…,m×k-1;s=1,2,…,200;if h δ (1)>70 ° , indicating that block 1 is similar to other blocks, similar blocks are selected and form a new block with block 1: U(j) = {u γ}; The same goes for other blocks, thus forming a new data set of 30 blocks: x1={U(j)}, j=1,2,…,30;
[0133] S302: By traversing the block data set: x1 = {U(j)}, j = 1, 2, ..., 30, using OCR technology to identify the text data in the image information, confirming that the block set containing text data is: H = {U(j)}, j = 1, 2, ..., 6, it is screened out and the process proceeds to step S303;
[0134] S303: extracting text data in the block, screening blocks with prominent text features, and confirming key areas of the advertisement content, the steps are as follows:
[0135] B1: Compare the block text data with the font library P: The system obtains text data from the block set: H = {U(j)}, j = 1, 2, ..., 6, and obtains the text set H of different blocks 1 ={w j},j=1,2,…,6; According to the comparison formula: Then we get the text feature set: D = {d j}, j = 1, 2, ..., 6;
[0136] B2: Compare the similarity of text features: According to the formula: Get the text similarity set E(j) between block 2 and other blocks = {y τ},τ=1,2,…,4, and further get the average similarity of block 2 By traversing the text feature set: D = {d j},j=1,2,…,6, and obtain the text feature similarity set: Z={z(j)},j=1,2,…,6;
[0137] B3: Confirm the key areas of the advertisement content: By traversing the text feature similarity set: Z = {z(j)}, j = 1, 2, ..., 6; using the bubble sort algorithm to sort in ascending order, the block text data d corresponding to the data z(1) is extracted. x , confirm that block 3 is the key area of the advertising content, and enter step S4.
[0138] In step S4: adjusting the lighting angle and lighting color of the solar floodlight according to the key advertising area, the specific steps are as follows:
[0139] S401: Adjust the lighting angle of the solar floodlight. The steps are as follows:
[0140] C1: Establish the smallest rectangular frame that can enclose block x and confirm the center point position: By establishing a two-dimensional rectangular coordinate system, we can obtain the vertex coordinate set R of each block x = {(m r ,n r )}, r=1,2,…,q;Traverse the horizontal coordinates and vertical coordinates in the vertex coordinate set R, and extract max(m r )=10,max(n r )=60,min(m r )=0,min(n r )=10 to form a minimum rectangular frame, then the center point coordinate R of block x is determined o is: (5,35);
[0141] C2: After receiving the center coordinates, the solar floodlight is controlled according to the infrared signal to aim the light at the center point coordinate R o superior;
[0142] S402: Adjust the lighting color of the solar floodlight. The steps are as follows:
[0143] D1: Confirm the color of block 3 image: Extract the image data of block 3 and use the color recognition algorithm to identify all the color data of block 3 image: V = {v f},f=1,2,…,∈;Confirm the color mean:
[0144] D2: Use the color card comparison library to extract the corresponding light color based on the color mean v = "red" At this time, adjust the color of the solar floodlight to
[0145] In step S5: a spherical camera is used to identify a human figure in a circular area with a radius of 10m. At this time, if a human figure is detected in the circular area, the solar floodlight is automatically controlled to light up.
[0146] In step S6: determine whether the advertisement content has been changed, and process the changed content. The specific steps are as follows:
[0147] S601: Using the information comparison model to determine whether the advertisement content has been changed, the steps are as follows:
[0148] E1: Get the new input number a 10 and the corresponding advertising data L 10 = {l s}, s = 1, 2, ..., 200; at the same time, extract the number a in the original database λ Advertising data x 10 = {u s},s=1,2,…,200;
[0149] E2: Calculate advertising data L using the comparison algorithm 10 With advertising data x 10 Similarity: Use word embedding algorithm to embed the advertising data L 10 and x 10 Mapping to an n-dimensional vector space and establishing a coordinate system, we can get the similarity between the two advertisements:
[0150]
[0151] E2: Determine whether the advertisement content has been changed: If ξ<98 ° , indicating that the two advertisements have different contents, which means that the advertisement data with number a has been replaced. At this time, the process goes to step S602;
[0152] S602: Use the overlay algorithm to convert the advertisement data into 10 Overlay to display new advertising data L 10 , at this time, enter step S3.
[0153] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.
[0154] Finally, it should be noted that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art can still modify the technical solutions described in the aforementioned embodiments or replace some of the technical features therein by equivalents. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A smart lighting monitoring and management system based on the Internet of Things, characterized by: The system includes: a data acquisition module, a database, a data analysis module, a data processing module, a data identification module and an information replacement module; The output end of the data acquisition module is connected to the input end of the database, the output end of the database is connected to the input ends of the data analysis module, the data identification module and the information replacement module, the output end of the data analysis module is connected to the input end of the data processing module, the output end of the data processing module is connected to the input end of the database, and the output end of the information replacement module is connected to the input end of the data analysis module; The data collection module collects all the advertisement contents in the park and performs numbering processing according to the position of the advertisement display column; Storing all collected information through the database; Confirm the advertisement location through the data analysis module, extract the advertisement content corresponding to the number, and analyze the key areas of the advertisement content; The data processing module is used to adjust the lighting angle and lighting color of the solar floodlight according to the key advertising area; Identify the human figure in the camera area through the data recognition module, and determine whether to turn on the light according to the human figure; The information replacement module determines whether the advertisement content has been replaced and processes the replaced content.
2. According to claim 1, the intelligent lighting monitoring and management system based on the Internet of Things is characterized by: The data acquisition module includes a content acquisition unit, a location acquisition unit and a number processing unit; The content collection unit is used to collect all advertising content in the park by uploading information; the location acquisition unit is used to collect the location information of all advertising display columns in the park by using a positioning algorithm; and the number processing unit is used to number the advertising display column information.
3. According to the IoT-based intelligent lighting monitoring and management system of claim 1, it is characterized by: The data analysis module includes an information matching unit, a data extraction unit and a content analysis unit; The information matching unit is used to match the advertisement content with the serial number by manual input; the data extraction unit is used to extract the advertisement content in the corresponding serial number; and the content analysis unit is used to analyze the key areas of the advertisement content according to the comparison model.
4. According to the IoT-based intelligent lighting monitoring and management system of claim 1, it is characterized by: The data processing module includes an angle adjustment unit and a color matching unit; The angle adjustment unit is used to adjust the lighting angle of the solar projector according to the key area; the color matching unit is used to adjust the lighting color of the solar projector according to the overall color of the key area.
5. According to the IoT-based intelligent lighting monitoring and management system of claim 1, it is characterized by: The data recognition module includes a portrait recognition unit and a signal processing unit; The portrait recognition unit is used to use the spherical camera to recognize the portrait in the camera area and determine whether there is a person; the signal processing unit is used to determine whether the solar floodlight is turned on according to whether the portrait is recognized in the camera area: if the portrait is recognized, the solar floodlight is turned on; The information replacement module includes an information judgment unit and a data overwriting unit; The information judgment unit is used to use the information comparison model to judge whether the advertisement content has been changed; the data overwriting unit is used to overwrite the original advertisement content, display the new advertisement content, and send the data to the data analysis module.
6. A smart lighting monitoring and management method based on the Internet of Things, characterized in that: The following steps are involved: S1: Collect all the advertisements in the park and number them according to the positions of the advertisement display columns; S2: stores all collected information; S3: confirm the advertisement position, extract the advertisement content corresponding to the number, and analyze the key areas of the advertisement content; S4: Adjust the lighting angle and lighting color of the solar floodlight according to the key advertising area; S5: Identify the human figure in the camera area and determine whether to turn on the light according to the human figure; S6: Determine whether the advertisement content has been changed, and process the changed content.
7. The method for intelligent lighting monitoring and management based on the Internet of Things according to claim 6 is characterized in that: In step S1: all advertisement contents in the park are collected and numbered according to the positions of the advertisement display columns. The specific steps are as follows: S101: Collect all advertisement contents in the park by uploading information to form advertisement data: X = {x i }, i = 1, 2, ..., n; S102: Using the positioning algorithm to collect the location information of all the advertising display columns in the park, and perform numbering processing to form numbering data: A = {a i },i=1,2,…,n.
8. The method for intelligent lighting monitoring and management based on the Internet of Things according to claim 7 is characterized in that: In step S3: the advertisement data: X = {x i }, i = 1, 2, ..., n and serial number data: A = {a i }, i=1,2,…,n for one-to-one matching; Extract the matching advertisement data x i ; Use the contrast model to analyze the key areas of the advertising content. The specific steps are as follows: S301: Divide the image into regions and merge blocks with high similarity. The steps are as follows: A1: According to the image ratio, the advertising image data x i Divide into m×k blocks to form different block data: x i = {u s },s=1,2,…,m×k; A2: Calculate the image similarity of each block: by traversing the block data: x i = {u s },s=1,2,…,m×k, get the mean value of each block data: x i ={e s },s=1,2,…,m×k; According to the similarity formula: Then we get the similarity set E between block s and other blocks i (s) = {h δ (j)}, δ=1,2,…,m×ks; s=1,2,…,m×k; A3: Compare block similarities and merge blocks with high similarity: By traversing the similarity set E between block s and other blocks i (s) = {h δ (s)}, δ=1,2,…,m×ks; s=1,2,…,m×k; if h δ (s)>α, indicating that block s is similar to other blocks, then similar blocks are selected and form a new block with block s: U(j)={u γ }; The same goes for other blocks, forming a new block data set: x i ={U(j)},j=1,2,…,β,β <m×k; S302: By traversing the block data set: x i = {U(j)}, j = 1, 2, …, β, β < m×k, use OCR technology to identify the text data in the image information, and confirm that the block set with text data is: H = {U(j)}, j = 1, 2, …, μ, μ ≤ β, where filter it out and proceed to step S303; S303: extracting text data in the block, screening blocks with prominent text features, and confirming key areas of the advertisement content, the steps are as follows: B1: Compare the block text data with the font library P: The system obtains text data from the block set: H = {U(j)}, j = 1, 2, ..., μ, and obtains the text set H of different blocks 1 ={w j },j=1,2,…,μ; According to the comparison formula: Then we get the text feature set: D={d j },j=1,2,…,μ; B2: Compare the similarity of text features: According to the formula: Get the text similarity set E(j) between block j and other blocks = {y τ },τ=1,2,…,μ-j, and further get the average similarity of block j By traversing the text feature set: D = {d j },j=1,2,…,μ, and obtain the text feature similarity set: Z={z(j)},j=1,2,…,μ; B3: Confirm the key areas of the advertisement content: By traversing the text feature similarity set: Z = {z(j)}, j = 1, 2, ..., μ; using the bubble sort algorithm to sort in ascending order, the block text data d corresponding to the data z(1) is extracted. x , confirm that block x is the key area of the advertising content, and enter step S4.
9. The method for intelligent lighting monitoring and management based on the Internet of Things according to claim 8, characterized in that: In step S4: adjusting the lighting angle and lighting color of the solar floodlight according to the key advertising area, the specific steps are as follows: S401: Adjust the lighting angle of the solar floodlight. The steps are as follows: C1: Establish the smallest rectangular frame that can enclose block x and confirm the center point position: By establishing a two-dimensional rectangular coordinate system, we can obtain the vertex coordinate set R of each block x = {(m r ,n r )}, r=1,2,…,q;Traverse the horizontal coordinates and vertical coordinates in the vertex coordinate set R, and extract max(m r ),max(n r ),min(m r ),min(n r ) forms a minimum rectangular frame, then the center point coordinate R of block x is determined o for: C2: After receiving the center coordinates, the solar floodlight is controlled according to the infrared signal to aim the light at the center point coordinate R o superior; S402: Adjust the lighting color of the solar floodlight. The steps are as follows: D1: Confirm the color of the image of block x: Extract the image data of block x and use the color recognition algorithm to identify all the color data of the image of block x: V = {v f },f=1,2,…,∈;Confirm the color mean: D2: Use the color card comparison library to extract the corresponding light color according to the color mean v At this time, adjust the color of the solar floodlight to 10. The method for intelligent lighting monitoring and management based on the Internet of Things according to claim 9, characterized in that: In step S5: using the spherical camera to identify a human figure in a circular area with a radius of T, if a human figure is detected in the circular area, the solar floodlight is automatically controlled to light up; On the contrary, if no human image is detected in the circular area, the light will be turned off; In step S6: determine whether the advertisement content has been changed, and process the changed content. The specific steps are as follows: S601: Using the information comparison model to determine whether the advertisement content has been changed, the steps are as follows: E1: Get the new input number as a λ and the corresponding advertising data L λ = {l s }, s = 1, 2, ..., m × k; at the same time, extract the number a in the original database λ Advertising data x λ = {u s },s=1,2,…,m×k; E2: Calculate advertising data L using the comparison algorithm λ With advertising data x λ Similarity: Use word embedding algorithm to embed the advertising data L λ and x λ Mapping to an n-dimensional vector space and establishing a coordinate system, we can get the similarity between the two advertisements: E2: Determine whether the advertisement content has been changed: If ξ<θ, where θ is the set threshold, it means that the two advertisement contents are different, then number a λ The advertisement data has been replaced, and at this time, the process proceeds to step S602; S602: Use the overlay algorithm to convert the advertisement data into λ Overlay to display new advertising data L λ , at this time, enter step S3.
