Sensor arrangement method, system and equipment based on indoor area size and medium
Through the sensor layout method based on the indoor area size, the sensor location is determined using grid processing and coordinate information, which solves the problems of inefficient manual layout and uneven distribution, and achieves more efficient indoor environment monitoring.
Patent Information
- Application Number
- CN202510069633.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-16
- Publication Date
- 2025-05-09
AI Technical Summary
In the prior art, the arrangement of indoor environmental monitoring sensors relies on manual manual, which is inefficient and can easily lead to uneven distribution of monitoring points, affecting the environmental monitoring effect.
A sensor arrangement method based on indoor area size is proposed. By acquiring sensor information and the area size of the target area, grid processing is performed in combination with area size and sensor information, coordinate information of each sensor is determined, and a sensor arrangement scheme is generated.
It improves the layout efficiency of sensors, ensures that the sensors are evenly distributed indoors, and improves the effect of indoor environment monitoring.
Smart Images

Figure CN119967359A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of environmental monitoring technology, and in particular to a sensor arrangement method, system, device and medium based on indoor area size. Background Art
[0002] With the advancement of smart home technology and health monitoring, the importance of indoor environmental quality monitoring has become increasingly prominent. Parameters such as indoor air temperature and humidity, air quality, and concentrations of various pollutants are related to the health status and quality of life of the residents, and are also used to support the operation of various smart home production capacities indoors. At present, the layout of sensors used for indoor environmental monitoring generally relies on manual layout. This layout method is not only inefficient, but also faces the diversity and complexity of indoor spaces. The layout strategy that relies on the experience of the layout personnel has limitations, which can easily lead to uneven distribution of the arranged monitoring points, affecting the effect of indoor environmental monitoring.
[0003] In summary, the technical problems existing in the relevant technologies need to be improved. Summary of the invention
[0004] The main purpose of the embodiments of the present application is to propose a sensor layout method, system, device and medium based on the indoor area size, aiming to improve the layout efficiency of the sensors and improve the distribution effect of the sensors indoors through gridding, thereby improving the effect of indoor environment monitoring.
[0005] To achieve the above object, an embodiment of the present application provides a sensor arrangement method based on indoor area size, the method comprising: Acquire sensor information and an area size of an indoor target area, wherein the sensor information is information of various sensors that need to be arranged in the target area; Gridding the target area according to the area size and the sensor information to obtain grid information of the target area after gridding, wherein the grid information includes information of the grids in the length direction, the width direction and the height direction of the target area; Determining coordinate information of each sensor according to the grid information and the area size; A sensor arrangement plan for the target area is generated and outputted according to the sensor information and the coordinate information.
[0006] In some embodiments, the region size includes region length, region width and region height, and the step of gridding the target region according to the region size and the sensor information to obtain grid information of the target region after gridding includes: Determine a sensor density of a target sensor according to the sensor information, wherein the target sensor is a sensor that needs to be arranged in the target area, and the sensor density is used to quantitatively characterize the distribution density of the target sensor in space; Determining the number of length grids according to the sensor density and the area length; Determine the number of width grids according to the sensor density and the area width; Determining the number of height grids according to the sensor density and the height of the area; The grid information includes the number of length grids, the number of width grids and the number of height grids.
[0007] In some embodiments, the step of determining the coordinate information of each sensor according to the grid information and the area size includes: Determine a first coordinate in the length direction according to the length grid number and the region length; Determine a second coordinate in the width direction according to the width grid number and the area width; Determine a third coordinate in the height direction according to the number of height grids and the height of the area; The coordinate information of each of the target sensors is formed according to different combinations of the first coordinates, the second coordinates, and the third coordinates, and the sensors include the target sensors.
[0008] In some embodiments, the step of generating and outputting a sensor arrangement scheme for the target area according to the sensor information and the coordinate information includes: The coordinate information is associated with the target sensor in the sensor information to form the sensor arrangement plan, and the sensor arrangement plan is output.
[0009] In some embodiments, after the step of determining the sensor density of the target sensor according to the sensor information, the method further includes: Determine the region volume of the target region according to the region length, the region width and the region height; The number of target arrangements of the target sensors in the target area is determined according to the area volume and the sensor density.
[0010] In some embodiments, after the step of obtaining the grid information of the target area after gridding, the step further includes: Determine the actual arrangement number of the target sensors according to the length grid number, the width grid number and the height grid number; The difference between the actual arrangement quantity and the target arrangement quantity is determined, and in response to the difference satisfying a preset condition, the length grid quantity, the width grid quantity, and the height grid quantity are adjusted.
[0011] In some embodiments, the step of adjusting the number of length grids, the number of width grids, and the number of height grids comprises: Determine the target number of grids for which a rounding operation is performed when calculating the result among the number of length grids, the number of width grids, and the number of height grids; Adjusting the target grid quantity to obtain updated grid information; The updated actual arrangement quantity is determined according to the updated grid information, and the step of returning to perform the step of determining the difference between the actual arrangement quantity and the target arrangement quantity is performed.
[0012] To achieve the above object, another aspect of an embodiment of the present application provides a sensor arrangement system based on indoor area size, the system comprising: An input module, used to obtain sensor information and the size of an indoor target area, wherein the sensor information is information of various sensors that need to be arranged in the target area; A gridding module, used for gridding the target area according to the area size and the sensor information to obtain grid information of the target area after gridding, wherein the grid information includes information in the length direction, width direction and height direction of the target area; A coordinate calculation module, used to determine the coordinate information of each sensor according to the grid information and the area size; A solution output module is used to generate and output a sensor layout solution for the target area according to the sensor information and the coordinate information.
[0013] To achieve the above-mentioned purpose, another aspect of an embodiment of the present application provides an electronic device, the electronic device comprising a memory and a processor, the memory storing a computer program, and the processor implementing the above-mentioned method when executing the computer program.
[0014] To achieve the above objective, another aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described above is implemented.
[0015] The embodiments of the present application include at least the following beneficial effects: The present application provides a sensor arrangement method, system, device and medium based on the size of an indoor area. The scheme obtains sensor information and the area size of the target area where the sensor needs to be arranged, performs corresponding grid processing on the target area in combination with the area size and sensor information, obtains grid information, and then determines the coordinate information of each specific sensor arrangement position according to the grid information and area size in the length direction, width direction and height direction, thereby generating a sensor arrangement scheme for the target area according to the sensor information and coordinate information, and outputting the sensor arrangement scheme. Compared with sensors that need to be manually planned and arranged in the target area, the present application improves the arrangement efficiency of the sensor by automatically performing matching grid processing in combination with the area size and sensor information, and determines the coordinates of each sensor arrangement position, and can ensure that each sensor arranged based on the grid is evenly distributed in the target area, thereby improving the effect of indoor environment monitoring. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 is a flow chart of a sensor arrangement method based on indoor area size provided in an embodiment of the present application; Figure 2 This is a schematic diagram of the gridding effect of an embodiment of the present application; Figure 3 is a structural schematic diagram of a sensor arrangement system based on indoor area size provided in an embodiment of the present application; Figure 4 It is a schematic diagram of the hardware structure of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION
[0017] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is further described in detail below in conjunction with the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the embodiments of the present application. They are only examples of devices and methods consistent with some aspects of the embodiments of the present application as detailed in the attached claims.
[0018] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0019] In the related technologies, with the progress in smart home technology and health monitoring, the importance of indoor environmental quality monitoring has become increasingly prominent. Parameters such as indoor air temperature and humidity, air quality, and concentrations of various pollutants are related to the health status and quality of life of the residents, and are also used to support the operation of various smart home production capacities indoors. However, the current sensor layout for indoor environmental monitoring generally relies on manual layout, which is not only inefficient, but also faces the diversity and complexity of indoor spaces. The layout strategy that relies on the experience of the layout personnel has limitations, which can easily lead to uneven distribution of the arranged monitoring points, affecting the effect of indoor environmental monitoring.
[0020] In view of this, the embodiments of the present application provide a sensor arrangement method, system, device and medium based on indoor area size. Figure 1 is an optional flow chart of a sensor arrangement method based on indoor area size provided in an embodiment of the present application. Figure 1 The method may include but is not limited to steps S101 to S104.
[0021] Those skilled in the art will appreciate that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than shown in the figures, or a combination of certain steps, or different steps.
[0022] Step S101, obtaining sensor information and the size of an indoor target area, wherein the sensor information is information of various sensors that need to be arranged in the target area.
[0023] The target area targeted by this application is an indoor target area, such as a living room, kitchen, or toilet. In actual application scenarios, the design of the sensor layout scheme can be for an indoor space including multiple target areas, such as a space including multiple areas such as a living room, kitchen, toilet, or master bedroom. For different target areas of the indoor space, the sensor layout scheme is determined separately. This embodiment is only described for the situation facing one target area. The method of this embodiment can also be applied to multiple target areas at the same time to determine the sensor layout scheme of the indoor space. In other embodiments, the sensor layout scheme can also be determined by connecting part of the space.
[0024] The area size is used to quantitatively describe the size of the target area. The area size includes area length, area width and area height, so that the sensor layout scheme can be calculated based on the length direction, width direction and height direction.
[0025] The sensor information is the information of various sensors that need to be deployed in the target area, including the types of sensors and the distribution density of each type of sensor. For the same target area, there may be a need to monitor multiple different types of environmental data. For example, if temperature and humidity need to be monitored simultaneously, at least two different types of sensors, temperature sensors and humidity sensors, need to be deployed. Due to the functional differences of each type of sensor, calculations need to be performed separately for each type of sensor.
[0026] After the staff inputs the sensor information and the area size of the target area, the present embodiment can obtain the sensor information and the area size to start calculating the sensor layout plan, wherein the sensor information and the area size can be determined by the staff after arriving at the site through on-site investigation and evaluation, or can be determined remotely based on digital data related to the target area.
[0027] Step S102 , gridding the target area according to the area size and the sensor information to obtain grid information of the target area after gridding, wherein the grid information includes information of the grids in the length direction, the width direction and the height direction of the target area.
[0028] Based on the area size and sensor information, the target area can be gridded in a targeted manner in combination with the length, height and width of the target area and the distribution density of the sensor, and the target area is divided into multiple grids in space, each grid being equivalent to a cuboid in space. For the multiple divided grids, in order to calculate and describe the coordinates of the sensor in subsequent steps, grid information is defined in this embodiment, and the grid information is used to describe the information of the grids of the target area in the length, width and height directions after the gridding process, so as to describe and locate a certain grid in space.
[0029] Step S103, determining the coordinate information of each sensor according to the grid information and the area size.
[0030] Furthermore, since the grid information is only used to describe and locate the grid in the space in this embodiment, in order to generate a sensor layout plan, it is still necessary to specifically determine the coordinate information of each sensor, and the coordinate information needs to be described in actual distance units. Therefore, in combination with the grid information and the area size, the grid information can be used to determine which grid each sensor is located in the space, and combined with the area size, it can be converted into corresponding coordinate information for positioning by distance, thereby determining the coordinate information of each sensor, and the coordinate information is the three-dimensional coordinate of the space.
[0031] Step S104: Generate and output a sensor layout plan for the target area according to the sensor information and the coordinate information.
[0032] After determining the coordinate information of each sensor, it can be summarized with the sensor information and a sensor layout plan for the target area is generated. The sensor layout plan includes instructions on what type of sensor should be configured in the target area, and for each type of sensor, the location of each sensor of that type that needs to be deployed is listed with coordinate information. Based on the sensor layout plan, staff can complete the sensor layout work quickly and accurately.
[0033] Steps S101 to S104 shown in the embodiment of the present application are to obtain sensor information and the area size of the target area where sensors need to be arranged, and perform corresponding grid processing on the target area in combination with the area size and sensor information to obtain grid information, and then determine the coordinate information of each specific sensor arrangement position according to the grid information and area size in the length direction, width direction and height direction, so as to generate a sensor arrangement plan for the target area according to the sensor information and coordinate information, and output the sensor arrangement plan. Compared with sensors that need to be manually planned and arranged in the target area, the present application improves the layout efficiency of the sensors by automatically performing matching grid processing in combination with the area size and sensor information, and determines the coordinates of each sensor arrangement position, and can ensure that each sensor arranged based on the grid is evenly distributed in the target area, thereby improving the effect of indoor environment monitoring.
[0034] In step S102 of some embodiments, the step of gridding the target area according to the area size and the sensor information to obtain grid information of the gridded target area includes: The sensor density of the target sensor is determined according to the sensor information. The target sensor is a sensor that needs to be arranged in the target area. The sensor density is used to quantitatively characterize the distribution density of the target sensor in space.
[0035] The number of length grids is determined based on the sensor density and the area length.
[0036] The number of width grids is determined based on the sensor density and the area width.
[0037] The number of height grids is determined based on the sensor density and the area height.
[0038] The grid information includes the number of length grids, the number of width grids, and the number of height grids.
[0039] In this embodiment, a sensor that needs to be deployed is defined as a target sensor, such as a temperature sensor. This embodiment calculates a sensor deployment plan for one type of sensor of the target sensor. If the sensor information requires that the target area needs to be configured with multiple types of sensors, other types of sensors also execute the method of this embodiment respectively, and calculate the sensor deployment plans corresponding to the type of sensor respectively.
[0040] The sensor information also includes sensor density, which is used to define the distribution density of the target sensor in the target area. The specific description of the sensor density is not limited here, for example, "per Place one", it should be noted that, is the ideal detection range of the target sensor, not the space occupied by its entity. It is defined as the effective volume of the target sensor, which can be directly obtained based on the sensor density.
[0041] Furthermore, the target area is gridded according to the effective volume and the area size. According to the definition of sensor density, it can be understood that the number of target sensors that should be arranged in the target area is the quotient of the area volume and the effective volume. Since the area volume is the product of the area length, the area width and the area height, the following equations (1), (2) and (3) can be obtained. Specifically: (1) (2) (3) Where L is the region length, W is the region width, and H is the region height. is the length grid number, is the number of width grids, is the number of height grids, and D is the effective volume. In order to ensure that the number of target sensors is sufficient so that the ideal detection range of the target sensors can cover all spaces in the target area, the calculation results of the number of length grids, the number of width grids, and the number of height grids are rounded up. All are positive integers.
[0042] For example, suppose the target area has a length of 6 m, a width of 12 m, a height of 4 m, and an effective volume of 8 , after gridding processing, the processing results will be 3 length grids, 6 width grids, and 2 height grids, totaling 36 grids.
[0043] Reference Figure 2 , Figure 2This is a schematic diagram of the gridding effect when the number of length grids, the number of width grids, and the number of height grids are all 2.
[0044] This is equivalent to gridding the target area of the cuboid. If observed based on the length direction of the cuboid, it will be divided into the number of length grids, if observed based on the width direction of the cuboid, it will be divided into the number of width grids, and if observed based on the height direction of the cuboid, it will be divided into the number of height grids. The product of the number of length grids, the number of width grids, and the number of height grids is the total number of grids. Each grid is equivalent to a cuboid representing the effective volume of the target sensor, so the number of grids is also equivalent to the number of target sensors.
[0045] By gridding the target area in combination with the sensor density, the sensor layout scheme based on grid computing can effectively utilize the ideal detection range of the target sensor, ensure that each sensor is evenly distributed in the target area, and improve the effect of indoor environment monitoring.
[0046] In step S103 of some embodiments, the step of determining the coordinate information of each sensor according to the grid information and the area size includes: The first coordinate in the length direction is determined according to the length grid number and the region length.
[0047] The second coordinate in the width direction is determined based on the width grid number and the region width.
[0048] The third coordinate in the height direction is determined according to the height grid number and the region height.
[0049] Coordinate information of each target sensor is formed according to different combinations of the first coordinate, the second coordinate and the third coordinate, and the sensor includes the target sensor.
[0050] Based on the calculated length grid number, width grid number and height grid number, the corresponding grid index can be defined to describe the specific grid divided. Specifically, define , where the value range of i is , the value range of j is , the value range of k is , by traversing All grids in the target area can be traversed.
[0051] In this embodiment, the target sensor is set at the center of the grid. In other embodiments, the target sensor is set at other positions in the grid. Based on this, by combining the grid information and area size in the same direction, the coordinate information of the sensor to be set in each grid can be calculated, and the following equations (4), (5) and (6) are obtained: (4) (5) (6) in, is the first coordinate, is the second coordinate, is the third coordinate, a combination of the first coordinate, the second coordinate and the third coordinate That is the coordinate information of the target sensor.
[0052] It should be noted that the above equations (4), (5) and (6) calculate the first coordinate, the second coordinate and the third coordinate independently, and their combination is the coordinate information of the target sensor. Therefore, when calculating, it can be traversed , which is equivalent to traversing each grid to determine the coordinate information of each target sensor.
[0053] Exemplarily, taking the example of the above embodiment as an example, the coordinate information of the target sensor in the grid with the grid index (1, 3, 1) can be calculated to be (3, 7, 3), where the unit is m.
[0054] By combining grid information and area size, the coordinate information of the position of the target sensor to be arranged in each grid is determined, so that subsequent staff can accurately arrange the sensors according to the coordinate information, thereby improving the efficiency and accuracy of sensor arrangement.
[0055] In some embodiments, after the step of determining the sensor density of the target sensor according to the sensor information, the method further includes: The region volume of the target region is determined based on the region length, region width, and region height.
[0056] The number of target sensors to be arranged in the target area is determined according to the area volume and the sensor density.
[0057] In the process of calculating the sensor arrangement scheme, the target arrangement number of the target sensors in the target area may be determined first, so as to evaluate the accuracy of the calculated scheme through the target arrangement number.
[0058] Specifically, the area volume of the target area is calculated according to the product of the area length, area width and area height, and the effective volume of the target sensor is determined according to the sensor density. The target arrangement quantity of the target sensor can be calculated according to the following formula (7): (7) Where V is the area volume, D is the effective volume, and N is the number of target arrangements. The calculation result of formula (7) can be set to be rounded up to ensure that the number of target sensors is sufficient to cover all spaces in the target area.
[0059] By calculating the target arrangement quantity, the subsequent calculation process of the sensor arrangement plan can evaluate the accuracy of the calculation through the target arrangement quantity, thereby improving the accuracy of the sensor arrangement plan.
[0060] In some embodiments, after step S102, the method further includes: The actual arrangement number of the target sensors is determined according to the length grid number, the width grid number and the height grid number.
[0061] The difference between the actual arrangement quantity and the target arrangement quantity is determined, and in response to the difference satisfying a preset condition, the length grid quantity, the width grid quantity, and the height grid quantity are adjusted.
[0062] As described in the above embodiment, after the target area is gridded, the number of grids is equivalent to the number of target sensors. Therefore, after obtaining the grid information, the actual number of target sensors can be calculated based on the number of length grids, the number of width grids and the number of height grids to determine the actual number of target sensors.
[0063] The deviation between the target deployment number and the actual deployment number is caused by the rounding operation of the grid information during the calculation process. Since the number of target sensors and grids must be integers, the results may be rounded during the calculation process of equations (1), (2) and (3). Each rounding operation will cause the actual deployment number to deviate further from the target deployment number.
[0064] For example, suppose the target area has a length of 4 m, a width of 8 m, a height of 2.9 m, and an effective volume of 4 , we can calculate that the target layout quantity is 24 (23.2 is rounded up to 24), and the calculated length grid quantity is 3 (2.5198 is rounded up to 3), the width grid quantity is 6 (5.0397 is rounded up to 6), and the height grid quantity is 2 (1.8269 is rounded up to 2). Therefore, the actual layout quantity is 36, and the difference between the actual layout quantity and the target layout quantity is 12.
[0065] Based on this, the difference between the target layout quantity and the actual layout quantity is determined, and when the difference meets the preset condition, the length grid quantity, width grid quantity and height grid quantity after the rounding operation are adjusted to reduce the difference between the actual layout quantity and the target layout quantity. The preset condition can be set to a ratio of the difference to the target layout quantity greater than a preset ratio, or the difference is greater than a preset value, etc.
[0066] By evaluating the difference between the actual layout quantity and the target layout quantity, it is determined whether the current calculation plan needs to be adjusted, thereby reducing the deviation between the final calculation result and the expected result, improving the accuracy of the sensor layout plan, and reducing the sensor layout cost.
[0067] In some embodiments, the step of adjusting the number of length grids, the number of width grids, and the number of height grids comprises: Determines the target number of grids for which rounding is performed when calculating the number of grids for length, number of grids for width, and number of grids for height.
[0068] The target grid quantity is adjusted to obtain updated grid information.
[0069] The updated actual layout quantity is determined according to the updated grid information, and the step of determining the difference between the actual layout quantity and the target layout quantity is returned to be executed.
[0070] Optionally, among the length grid number, the width grid number and the height grid number, first determine one of the three parameters for which the rounding operation is performed in the calculation process, and determine it as the target grid number. If more than one of them, or even all three parameters have been rounded, then determine the actual values of the length grid number, the width grid number and the height grid number before the rounding operation is performed in the calculation process, and determine the item with the smallest decimal part corresponding to the actual value as the target grid number. Since the calculation process of the grid information performs a rounding operation of rounding up, the deviation caused by rounding up the item with the smallest decimal part is the largest. Taking the example of the above embodiment as an example, the actual values are 2.5198, 5.0397 and 1.8269, respectively, among which 5.0397 has the smallest decimal part, and then determine the width grid number 6 as the target grid number.
[0071] Furthermore, the target number of grids is adjusted. Since the range of values affected by rounding up does not exceed 1, the adjustment operation is to round down the actual value of the target number of grids, and use the rounded-down value as its updated value, thereby obtaining updated grid information. The actual number of layouts is recalculated based on the updated grid information, and the difference between the actual number of layouts updated at this time and the target number of layouts is determined again to determine whether the difference still meets the preset conditions. If not, it means that the deviation is reduced to the acceptable range preset by the staff. If still satisfied, it means that the target number of grids needs to be determined again and the corresponding adjustment operation is performed until the difference does not meet the preset conditions.
[0072] By determining the number of target grids and adjusting them according to their rounding operation, the deviation between the target layout number of target sensors and the actual layout number is reduced, the accuracy of the sensor layout plan is improved, and the layout cost of the sensors is reduced.
[0073] In step S104 of some embodiments, the step of generating and outputting a sensor arrangement scheme of the target area according to the sensor information and the coordinate information includes: The coordinate information is associated with the target sensor in the sensor information to form a sensor layout plan, and the sensor layout plan is output.
[0074] In the sensor information, there is only one data item related to the target sensor, two fields of which are the sensor density and the sensor type of the target sensor. For this type of target sensor, after calculation by the method of the above embodiment, the coordinate information of multiple target sensors can be obtained, and the multiple coordinate information can be associated with the data item. The association method can be to establish a form for recording coordinate information and associate the form with the data item of the target sensor, or to expand the data item into multiple data items according to different coordinate information, etc., which is not limited in this embodiment.
[0075] In addition, if the sensor information requires that the target area need to be equipped with multiple different types of sensors, then for other types of sensors, they are also determined as target sensors, and the calculations of the above-mentioned embodiment method are performed respectively to obtain their corresponding coordinate information, and they are also associated with the sensor information until the coordinate information of all sensor types involved in the sensor information is determined and the association is completed.
[0076] After the coordinate information is associated with the sensor information, the sensor layout plan is formed, and the sensor layout plan is output to the client of the staff so that the staff can understand and evaluate the automatically calculated sensor layout plan and perform the sensor layout work.
[0077] By associating coordinate information and sensor information, a sensor layout plan is formed, and the sensor layout plan is automatically calculated based on the area size of the target area and the sensor information related to the required sensor layout, thereby improving the sensor layout efficiency.
[0078] The following is a detailed description and explanation of the solution of the embodiment of the present invention in conjunction with a specific application example: In an embodiment of the present application, a sensor arrangement method based on indoor area size is provided. The method obtains the area size of a target area in an indoor space and sensor information related to sensors that need to be arranged in the target area, determines the sensor density therein according to the sensor information, and determines the effective volume corresponding to the sensor density, calculates the area volume according to the area length, area width and area height in the area size, and calculates the target arrangement number of target sensors in the target area through the area volume and the effective volume, so as to evaluate the accuracy of the solution.
[0079] Secondly, the number of length grids is calculated according to the effective volume and the area length, the number of width grids is determined according to the effective volume and the area width, and the number of height grids is determined according to the effective volume and the area height. Based on the number of length grids, the number of width grids and the number of height grids, three-dimensional gridding processing of the target area is achieved.
[0080] The actual number of target sensors to be arranged in the scheme at this time is calculated according to the number of length grids, the number of width grids and the number of height grids, and the difference between the actual number of arrangements and the target number of arrangements is determined. When the difference meets the preset condition, the number of target grids for which rounding operation is performed when calculating the result among the number of length grids, the number of width grids and the number of height grids is determined, and the target number of grids is adjusted accordingly, the grid information is updated, and the step of calculating the actual number of arrangements and the difference between the actual number of arrangements and the target number of arrangements is returned based on the updated grid information until the difference does not meet the preset condition.
[0081] After determining the grid information, the first coordinate of the target sensor in the length direction is calculated according to the number of length grids and the area length, the second coordinate of the target sensor in the width direction is calculated according to the number of width grids and the area width, and the third coordinate of the target sensor in the height direction is calculated according to the number of height grids and the area height. The traversal combination of the first coordinate, the second coordinate and the third coordinate forms the coordinate information of each target sensor. For different types of sensors, the above steps are performed to determine their corresponding coordinate information, and the coordinate information is associated with the corresponding target sensor in the sensor information to form a sensor layout plan, which is then output.
[0082] The sensor arrangement method based on indoor area size provided in the embodiment of the present application relates to the field of environmental monitoring technology. The sensor arrangement method based on indoor area size provided in the embodiment of the present application can be applied to a terminal, can also be applied to a server, and can also be software running in a terminal or a server. In some embodiments, the terminal can be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, and a car terminal, etc., but is not limited to this; the server side can be configured as an independent physical server, or it can be configured as a server cluster or a distributed system composed of multiple physical servers, and can also be configured as a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. The server can also be a node server in a blockchain network; the software can be an application that implements a sensor arrangement method based on indoor area size, etc., but is not limited to the above forms.
[0083] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.
[0084] See also Figure 3 The embodiment of the present application further provides a sensor arrangement system based on indoor area size, which can implement the above-mentioned sensor arrangement method based on indoor area size, and the system includes: An input module is used to obtain sensor information and the size of the indoor target area, where the sensor information is information of various sensors that need to be arranged in the target area; A gridding module is used to grid the target area according to the area size and sensor information to obtain grid information of the target area after gridding, wherein the grid information includes information in the length direction, width direction and height direction of the target area; A coordinate calculation module, used to determine the coordinate information of each sensor according to the grid information and the area size; The plan output module is used to generate and output the sensor layout plan of the target area according to the sensor information and coordinate information.
[0085] It can be understood that the contents of the above method embodiments are all applicable to the present system embodiments, the functions specifically implemented by the present system embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0086] The embodiment of the present application also provides an electronic device, the electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the above-mentioned sensor arrangement method based on indoor area size when executing the computer program. The electronic device can be any smart terminal including a tablet computer, a car computer, etc.
[0087] It can be understood that the contents of the above method embodiments are all applicable to the present device embodiments, the functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0088] See also Figure 4 , Figure 4 The hardware structure of an electronic device of another embodiment is illustrated, and the electronic device includes: The processor 901 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application; The memory 902 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 902 can store an operating system and other application programs. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 902, and the processor 901 calls and executes the sensor arrangement method based on the indoor area size of the embodiment of the present application; Input / output interface 903, used to implement information input and output; Communication interface 904, used to realize communication interaction between the device and other devices, which can be realized through wired mode (such as USB, network cable, etc.) or wireless mode (such as mobile network, WIFI, Bluetooth, etc.); A bus 905 that transmits information between various components of the device (e.g., the processor 901, the memory 902, the input / output interface 903, and the communication interface 904); The processor 901 , the memory 902 , the input / output interface 903 and the communication interface 904 are connected to each other in communication within the device via a bus 905 .
[0089] An embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the sensor arrangement method based on the indoor area size is implemented.
[0090] It can be understood that the contents of the above method embodiments are all applicable to the present storage medium embodiments, the functions specifically implemented by the present storage medium embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0091] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0092] The embodiments described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0093] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.
[0094] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0095] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0096] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the above units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0097] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0098] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0099] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including multiple instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store programs.
[0100] The preferred embodiments of the present invention are described above with reference to the accompanying drawings, but the scope of the rights of the present invention is not limited thereto. Any modification, equivalent substitution and improvement made by a person skilled in the art without departing from the scope and essence of the present invention should be within the scope of the rights of the present invention.
Claims
1. A sensor arrangement method based on indoor area size, characterized in that: The method comprises: Acquire sensor information and an area size of an indoor target area, wherein the sensor information is information of various sensors that need to be arranged in the target area; Gridding the target area according to the area size and the sensor information to obtain grid information of the target area after gridding, wherein the grid information includes information of the grids in the length direction, the width direction and the height direction of the target area; Determining coordinate information of each sensor according to the grid information and the area size; A sensor arrangement plan for the target area is generated and outputted according to the sensor information and the coordinate information.
2. The method according to claim 1, characterized in that The area size includes area length, area width and area height. The step of gridding the target area according to the area size and the sensor information to obtain grid information of the target area after gridding includes: Determine a sensor density of a target sensor according to the sensor information, wherein the target sensor is a sensor that needs to be arranged in the target area, and the sensor density is used to quantitatively characterize the distribution density of the target sensor in space; Determining the number of length grids according to the sensor density and the area length; Determine the number of width grids according to the sensor density and the area width; Determining the number of height grids according to the sensor density and the height of the area; The grid information includes the number of length grids, the number of width grids and the number of height grids.
3. The method according to claim 2, characterized in that The step of determining the coordinate information of each sensor according to the grid information and the area size comprises: Determine a first coordinate in the length direction according to the length grid number and the region length; Determine a second coordinate in the width direction according to the width grid number and the area width; Determine a third coordinate in the height direction according to the number of height grids and the height of the area; The coordinate information of each of the target sensors is formed according to different combinations of the first coordinates, the second coordinates, and the third coordinates, and the sensors include the target sensors.
4. The method according to claim 3, characterized in that The step of generating and outputting the sensor arrangement scheme of the target area according to the sensor information and the coordinate information comprises: The coordinate information is associated with the target sensor in the sensor information to form the sensor arrangement plan, and the sensor arrangement plan is output.
5. The method according to claim 2, characterized in that: After the step of determining the sensor density of the target sensor according to the sensor information, the method further includes: Determine the region volume of the target region according to the region length, the region width and the region height; The number of target arrangements of the target sensors in the target area is determined according to the area volume and the sensor density.
6. The method according to claim 5, characterized in that After the step of obtaining the grid information of the target area after gridding, the method further includes: Determine the actual arrangement number of the target sensors according to the length grid number, the width grid number and the height grid number; The difference between the actual arrangement quantity and the target arrangement quantity is determined, and in response to the difference satisfying a preset condition, the length grid quantity, the width grid quantity, and the height grid quantity are adjusted.
7. The method according to claim 6, characterized in that The step of adjusting the number of length grids, the number of width grids and the number of height grids comprises: Determine the target number of grids for which a rounding operation is performed when calculating the result among the number of length grids, the number of width grids, and the number of height grids; Adjusting the target grid quantity to obtain updated grid information; The updated actual arrangement quantity is determined according to the updated grid information, and the step of returning to perform the step of determining the difference between the actual arrangement quantity and the target arrangement quantity is performed.
8. A sensor placement system based on indoor area size, characterized in that: The system comprises: An input module, used to obtain sensor information and the size of an indoor target area, wherein the sensor information is information of various sensors that need to be arranged in the target area; A gridding module, used for gridding the target area according to the area size and the sensor information to obtain grid information of the target area after gridding, wherein the grid information includes information in the length direction, width direction and height direction of the target area; A coordinate calculation module, used to determine the coordinate information of each sensor according to the grid information and the area size; A solution output module is used to generate and output a sensor layout solution for the target area according to the sensor information and the coordinate information.
9. An electronic device, characterized in that: The electronic device comprises a memory and a processor, the memory stores a computer program, and the processor implements the method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.