A method, device and equipment for counting the number of users in a building group
By identifying user units and deep learning models in target images of building groups, combined with time series statistical charts, the problem of low efficiency in counting the number of users in traditional building groups is solved, and efficient and accurate user counting is achieved.
Patent Information
- Application Number
- CN202410525261.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-29
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2044-04-29
AI Technical Summary
Statistics on the number of users in traditional building groups rely on manual surveys, which results in low efficiency. Especially in high-rise residential buildings, it requires a lot of manpower and time.
By obtaining the target image of the target building group, identifying the window characteristics and building structure, combined with the deep learning model and preset user activity conditions, the user unit is automatically identified, and the current number of users is calculated based on the average number of people per household, and a time series statistical chart is generated for filtering and optimization.
It improves the efficiency and accuracy of statistics on the number of users in building groups, reduces labor costs, and can quickly obtain information on the number of users in target building groups.
Smart Images

Figure CN118097444B
Abstract
Description
Technical Field
[0001] The present application belongs to the field of image detection technology, and in particular relates to a method, device and equipment for counting the number of users in a building group. Background Art
[0002] At present, the number of users in a building group often requires statisticians to go door-to-door one by one, relying on manual surveys or manual records. However, with the rapid development of society, there are more and more high-rise residential buildings and higher and higher floors. If we continue to use traditional user number counting methods to count the number of users, it will take a lot of manpower and time costs, and there will be problems of low efficiency. Summary of the invention
[0003] The embodiments of the present application provide a method, device and equipment for counting the number of users in a building group, which can solve the problem of low statistical efficiency caused by reliance on manual investigation or manual recording in traditional methods for counting the number of users in a building group.
[0004] In a first aspect, an embodiment of the present application provides a method for counting the number of users in a building group, the method comprising:
[0005] Acquire a target image of a target building group; wherein the target image at least includes window features and building structures of the target building group;
[0006] identifying all first user units in the target image according to preset user activity conditions, the building structure and the window features;
[0007] The current number of users in the target building group is determined according to all the first user units and a preset average number of persons per household.
[0008] In a possible implementation manner of the first aspect, after identifying all first user units in the target image, the method includes:
[0009] Obtaining the number of historical users corresponding to each historical period of the target building group in multiple historical periods;
[0010] According to a preset time dimension, the plurality of historical user numbers are sorted and classified to obtain the classified historical user numbers; wherein the preset time dimension includes at least one of the following: an annual dimension, a quarterly dimension, a monthly dimension, and a seasonal dimension;
[0011] Arranging the classified historical user numbers according to time series to obtain a corresponding time series statistical graph;
[0012] By filtering the number of historical users according to a preset filtering condition through the time series statistical graph, a second user unit in the target building group is identified; wherein the second user unit is used to indicate an independent unit in the target building group whose user residence time is less than a first threshold;
[0013] The second user unit is excluded from all the first user units to obtain an optimized first user unit.
[0014] In a possible implementation of the first aspect, determining the current number of users of the target building group according to all the first user units and a preset average number of persons per household includes:
[0015] Counting all the optimized first user units to obtain the total number of optimized first user units;
[0016] The current number of users in the target building group is obtained by multiplying the optimized total number of first user units and the preset average number of persons per household.
[0017] In a possible implementation manner of the first aspect, acquiring a target image of a target building group includes:
[0018] Acquire an initial image of the target building group;
[0019] Preprocessing the initial image to obtain a preprocessed initial image; wherein the preprocessing includes at least one of the following: image denoising, image contrast enhancement;
[0020] The window features and the building structure in the preprocessed initial image are extracted according to the first preset extraction condition and the second preset extraction condition respectively to obtain the target image; wherein the window features include at least one of the following: whether the window is light-transmitting, and whether the window has a hot spot.
[0021] In a possible implementation manner of the first aspect, acquiring the initial image of the target building group includes:
[0022] Scanning the target building group according to a preset route using an aerial photography device to obtain a remote sensing image of the target building group;
[0023] The remote sensing image is used as the initial image.
[0024] In a possible implementation manner of the first aspect, identifying all first user units in the target image according to the preset user activity condition, the building structure, and the window feature includes:
[0025] By using a deep learning model, the window features are classified according to the preset user activity conditions to obtain a corresponding target user window;
[0026] The first user unit in the target image is identified according to the target user window and the building structure.
[0027] In a possible implementation manner of the first aspect, the method further includes:
[0028] Acquire a training set, wherein the training set includes a plurality of sample images and recognition results of the plurality of sample images;
[0029] Build an initial deep learning model;
[0030] The initial deep learning model is trained using the multiple sample images and the recognition results of the multiple sample images to obtain the deep learning model.
[0031] In a possible implementation manner of the first aspect, the method further includes:
[0032] The current number of users of the target building group and the number of historical users of the target building group corresponding to each historical period in multiple historical periods are displayed through a preset visualization model, and a corresponding visualization report is generated;
[0033] According to the current number of users and the historical number of users in the visualization report, the change trend and seasonal fluctuation of the current number of users of the target building group are obtained;
[0034] According to the changing trend and seasonal fluctuation of the current number of users, the expected number of users of the target building complex in the future period is determined.
[0035] In a second aspect, an embodiment of the present application provides a device for counting the number of users in a building group, the device comprising:
[0036] An acquisition module, used to acquire a target image of a target building group; wherein the target image at least includes window features and building structures of the target building group;
[0037] an identification module, configured to identify all first user units in the target image according to preset user activity conditions, the building structure and the window features;
[0038] The statistical module is used to determine the current number of users in the target building group according to all the first user units and the preset average number of people per household.
[0039] In a third aspect, an embodiment of the present application provides a device for counting the number of users in a building group, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements any of the above-mentioned methods for counting the number of users in a building group when executing the computer program.
[0040] In a fourth aspect, 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 for counting the number of users in a building group described in any one of the above items is implemented.
[0041] In a fifth aspect, an embodiment of the present application provides a computer program product. When the computer program product is run on a terminal device, the terminal device executes any of the above-mentioned methods for counting the number of users in a building group.
[0042] Compared with the prior art, the embodiments of the present application have the following beneficial effects: the present application obtains a target image of a target building group; wherein the target image includes the window features and building structure of the target building group; identifies all first user units in the target image according to preset user activity conditions, building structure and window features; and determines the current number of users in the target building group according to all first user units and the preset average number of people per household. By analyzing and processing the target image of the target building group, the first user units that meet the preset user activity conditions are identified, thereby obtaining the current number of users in the target building group, improving the efficiency and accuracy of the building group user number statistics, thereby reducing labor costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0044] Figure 1 It is a flowchart of a method for counting the number of users in a building group provided by an embodiment of the present application;
[0045] Figure 2 It is a flowchart of a method for counting the number of users in a building group provided by another embodiment of the present application;
[0046] Figure 3 It is a structural schematic diagram of a device for counting the number of users in a building group provided by an embodiment of the present application;
[0047] Figure 4 It is a structural schematic diagram of a building group user number counting device provided by an embodiment of the present application. DETAILED DESCRIPTION
[0048] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0049] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.
[0050] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0051] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.
[0052] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0053] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0054] See also Figure 1 , Figure 1 1 is a flow chart of a method for counting the number of users in a building group provided by an embodiment of the present application. The method comprises:
[0055] S11, acquiring a target image of a target building group; wherein the target image at least includes window features and building structures of the target building group;
[0056] S12, identifying all first user units in the target image according to preset user activity conditions, building structures and window features;
[0057] S13. Determine the current number of users in the target building group according to all first user units and the preset average number of people per household.
[0058] It should be noted that, in this embodiment, the execution subject may be a terminal device such as a server, and no specific limitation is made to this.
[0059] In step S11, in this embodiment, the target building group refers to a specific building group whose number of users needs to be counted, generally one or more high-rise buildings that are adjacent or related to each other. The target building group can be composed of various types of buildings, such as residential buildings, office buildings, apartment buildings, etc., and these buildings can have different heights, structures and appearances. The target image refers to the image data containing the target building group obtained by aerial photography equipment and after data processing such as pre-processing. The target image should at least contain the window features and building structure of the target building group, which is the basis for subsequent user unit identification and quantity statistics. Among them, the aerial photography equipment can be equipment such as drones, and the aerial photography equipment is not specifically limited in this embodiment.
[0060] Window features refer to specific properties of building windows visible in the target image. Window features include at least one of the following: whether the window is light-transmissive, whether the window has a hot spot. Window features can also include features such as the size, shape, arrangement, and whether there are curtains on the window. Window features can be used to distinguish which windows are occupied or working, and which windows may be vacant, so as to determine which windows represent a user unit for residence or work, and thus perform user statistics.
[0061] Building structure refers to the various mechanical components that make up a building and their interrelationships, and is the basic framework of a building. Building structure can reflect information such as the apartment type of the target building complex, and further, it can determine how many windows a user unit corresponds to based on the information of the building structure.
[0062] In step S12, the preset user activity conditions refer to a series of judgment criteria for identifying the first user unit, which are set according to the characteristics of the target building group and statistical requirements before counting the number of users, that is, for identifying the user unit where people live or work. The preset user activity conditions may include light transmission through the window and signs of hot spots on the window.
[0063] The first user unit is an independent user unit where people live or work in the target image, indicating a possible user activity area. The independent user unit is an independent living unit for a single family or individual in a specific area or building, such as an apartment room, an office or a store.
[0064] In this embodiment, the window features are first classified according to preset user activity conditions to determine which windows are occupied or worked in; then, based on the architectural structure of the target building complex, the independent user units corresponding to the windows where people live or work, i.e., the first user units, are identified, thereby counting the number of all first user units.
[0065] In step S13, by identifying all the first user units in the target image, combined with the preset average number of people per household, the current number of users in the target building group can be determined. Wherein, the preset average number of people per household is an average value pre-set based on historical data, statistical experience or relevant surveys when counting the number of users in the building group, which is used to estimate the number of people living or working in each user unit. For example, if it is identified that there are 100 first user units in the target building group, and the preset average number of people per household is set to 3 people, then it can be determined that the current number of users in the target building group is 300 people. It should be noted that the preset average number of people per household is an approximate value, which may be affected by many factors, such as changes in family size, utilization of office space, etc. Therefore, in practical applications, the preset average number of people per household needs to be adjusted and optimized according to the actual situation of the target building group and statistical needs to improve the accuracy and reliability of user number statistics. In this embodiment, the preset average number of people per household is not specifically limited.
[0066] It can be understood that the present application obtains a target image of a target building group, wherein the target image includes window features and building structures of the target building group; identifies all first user units in the target image according to preset user activity conditions, building structures and window features; and determines the current number of users of the target building group according to all first user units and the preset average number of people per household. By analyzing and processing the target image of the target building group, the first user units that meet the preset user activity conditions are identified, thereby obtaining the current number of users of the target building group, thereby improving the efficiency and accuracy of the building group user number statistics, thereby reducing labor costs.
[0067] It is understandable that by counting the number of users in the target building complex, information about the number of people living or working in the area can be obtained, which is of great significance to many fields such as urban planning, security management, water supply management, and public services.
[0068] In one possible implementation, Figure 2 FIG. 1 is a flow chart showing a method for counting the number of users in a building group provided by another embodiment of the present application. Figure 2 After all the first user units in the target image are identified, the method for counting the number of users in the building group includes:
[0069] S21, obtaining the number of historical users corresponding to each historical period in the target building group in multiple historical periods;
[0070] S22. Sort and classify multiple historical user numbers according to a preset time dimension to obtain a classified historical user number; wherein the preset time dimension includes at least one of the following: an annual dimension, a quarterly dimension, a monthly dimension, and a seasonal dimension;
[0071] S23, arranging the classified historical user numbers according to time series to obtain a corresponding time series statistical graph;
[0072] S24, filtering the number of historical users according to a preset filtering condition through a time series statistical chart, and identifying a second user unit in the target building group; wherein the second user unit is used to indicate an independent unit in the target building group where the user's residence time is less than a first threshold;
[0073] S25. Exclude the second user unit from all the first user units to obtain an optimized first user unit.
[0074] It should be noted that, in this embodiment, it is also necessary to comprehensively consider the data changes in the number of users in different time periods and seasons, and the impact on the current user number statistics of the target building group. It is necessary to conduct a spatiotemporal series analysis to exclude the impact of short-term occupancy that is not long-term residential or commercial in nature, so as to improve the estimation accuracy.
[0075] Specifically, the number of historical users corresponding to each historical period in the target building group in multiple historical periods is obtained, and the historical user number data is sorted and classified according to the preset time dimension; secondly, the classified historical user number is arranged according to the time series to construct a time series statistical chart; then, the historical user number is filtered using the preset filtering condition to identify the second user units whose residence time is less than the first threshold, and these second user units are excluded from the first user unit to obtain the optimized first user unit. The optimized first user unit is the first user unit after the second user unit is excluded.
[0076] It should be noted that the historical period refers to a specific time range, which is mainly used to distinguish and record the number of users of the target building group in different time periods. The historical period can be set according to statistical needs, which can be a period of several years or several months. By recording and analyzing the number of users in multiple historical periods, we can understand the changing trend of the number of users in the target building group and provide a basis for subsequent statistics and predictions.
[0077] The preset time dimension refers to the time division standard used when sorting and classifying the number of historical users. The preset time dimension may include an annual dimension, a quarterly dimension, a monthly dimension, a seasonal dimension, etc., that is, the number of historical users can be classified according to the annual dimension, or according to preset time dimensions such as the seasonal dimension. Selecting an appropriate time dimension can better show the changing trend and periodicity of the number of historical users, and help discover potential patterns and problems. In this embodiment, the preset time dimension is not specifically limited.
[0078] A time series chart is a chart used to show how data changes over time, and it displays the trend of data changes in the form of a line chart or a bar chart. A time series chart can intuitively present the changes in the number of historical users, helping to identify the peaks and troughs of the number of users, as well as possible periodic or trend changes.
[0079] The preset filtering condition is a filtering condition set according to a specific rule or standard when filtering the number of historical users. The preset filtering condition can be set based on multiple aspects such as the threshold value, change rate, stability, etc. of the number of users. In this embodiment, the preset filtering condition can be set as the user's residence time is less than the first threshold value, that is, the user's residence time in the first user unit is less than the first threshold value. It can be determined as the second user unit. That is, the second user unit is an independent unit in the target building group where the user's residence time is less than the first threshold value, that is, an independent user unit for short-term residence or short-term occupation. Among them, the first threshold value is a pre-set time value, such as 1 month, 3 months, etc. In this embodiment, the first threshold value is not specifically limited. By setting the preset filtering condition, the second user unit that meets the specific conditions is screened out from the number of historical users, thereby optimizing the statistical results of the number of users and improving the accuracy of the analysis.
[0080] It is understandable that by recording and analyzing the number of users in multiple historical periods and constructing a time series statistical graph, the changes in the number of historical users can be intuitively presented, helping to identify the peaks and troughs of the number of users, as well as possible periodic or trend changes, providing a basis for subsequent statistics and forecasts. At the same time, by setting preset filtering conditions, the second user unit that meets specific conditions can be screened out from the number of historical users, thereby optimizing the statistical results of the number of users and improving the accuracy of the analysis.
[0081] In a possible implementation, determining the current number of users in the target building group according to all first user units and a preset average number of people per household includes:
[0082] Counting all optimized first user units to obtain the total number of optimized first user units;
[0083] The total number of optimized first user units is multiplied by the preset average number of people per household to obtain the current number of users in the target building complex.
[0084] Specifically, after obtaining the optimized first user unit, the number of the optimized first user units is counted to obtain the total number of the optimized first user units, and the total number of the optimized first user units is multiplied by the preset average number of people per household to obtain the current number of users in the target building group. By optimizing the first user unit, the statistical result of the current number of users is more accurate.
[0085] In a possible implementation, obtaining a target image of a target building group includes:
[0086] Acquire the initial image of the target building group;
[0087] Preprocessing the initial image to obtain a preprocessed initial image; wherein the preprocessing includes at least one of the following: image denoising, image contrast enhancement;
[0088] According to the first preset extraction condition and the second preset extraction condition, the window features and the building structure in the preprocessed initial image are extracted to obtain the target image; wherein the window features include at least one of the following: whether the window is light-transmitting, whether the window has a hot spot.
[0089] It should be noted that the initial image is a remote sensing image of the target building group that is directly obtained by aerial photography equipment without preprocessing or other data processing. The initial image includes the building structure of the target building group. The initial image is preprocessed to obtain a preprocessed initial image, wherein the preprocessing mainly includes operations such as image denoising and image contrast enhancement to improve the quality of the initial image and the effect of image recognition. Image denoising is to eliminate noise in the image and improve the clarity and signal-to-noise ratio of the image. Image contrast enhancement is to enhance the contrast between different features in the image to make the image clearer and easier to identify.
[0090] The first preset extraction condition is a series of rules or standards set according to application requirements and analysis objectives when extracting window features from the preprocessed initial image, which can be used to guide how to extract window features from the preprocessed initial image. The preset extraction condition can be set as a window having a certain brightness, shape or size to ensure accurate window features are extracted.
[0091] Window features refer to the specific attributes of the windows of buildings visible in the target image, that is, the specific attributes of the windows of the target buildings in the initial image after preprocessing. Window features include at least one of the following: whether the window is light-transmitting, whether the window has a hot spot. Window features can also include the size, shape, arrangement, whether there are curtains, etc. of the window. Among them, hot spots refer to abnormally bright or abnormally hot areas that appear in local areas of the image. Window light transmission and hot spots on windows can be used to indicate that there are users living or working in the units corresponding to these windows. Window features are the key basis for identifying and analyzing the living or working status in the target building.
[0092] The second preset extraction condition is a series of rules or standards set according to application requirements and analysis objectives when extracting the architectural structure from the preprocessed initial image, which can be used to guide how to extract the architectural structure from the preprocessed initial image. The preset extraction condition can be set to the target building group having certain conditions such as color, outline structure or spatial layout to ensure the accurate architectural structure extracted. The architectural structure refers to the various mechanical components that constitute the building and their mutual relationship, and is the basic framework of the building. The architectural structure can reflect the spatial layout of the target building group and other information, and further determine how many windows a user unit corresponds to based on the information of the architectural structure.
[0093] Specifically, the initial image is preprocessed by performing image denoising, image contrast enhancement and other preprocessing on the initial image to obtain a preprocessed initial image; the window features in the preprocessed initial image are extracted according to the first preset extraction condition and the building structure in the preprocessed initial image is extracted according to the second preset extraction condition to obtain a target image of the target building group.
[0094] In a possible implementation, obtaining an initial image of a target building group includes:
[0095] Through the aerial photography equipment, the target buildings are scanned according to the preset route to obtain the remote sensing image of the target buildings;
[0096] The remote sensing image is used as the initial image.
[0097] It should be noted that aerial photography equipment refers to equipment and systems used to photograph ground targets or scenes from the air, usually carried on drones, airplanes or other aircraft, and obtains detailed images of the ground through high-resolution cameras or sensors. Aerial photography equipment can be equipment such as drones, and the aerial photography equipment is not specifically limited in this embodiment. The preset route refers to the flight path of the aerial photography equipment that has been pre-planned, which is determined according to the location, range and aerial photography requirements of the target building group, ensuring that the aerial photography equipment can fly according to the set path and accurately capture the remote sensing image of the target area. The preset route may include parameters such as flight altitude, flight speed, and shooting angle, and in this embodiment, no specific limitation is made. By setting the preset route, it can be ensured that the aerial photography equipment can efficiently and accurately obtain the remote sensing image of the target building group, thereby improving the efficiency and quality of aerial photography. Remote sensing images refer to image data of ground targets or scenes obtained by remote sensing technology, which can be in various forms such as visible light images, infrared images, radar images, etc., and can reflect the morphology, structure, texture and other characteristics of the target building group. In this embodiment, the form of remote sensing images is not specifically limited.
[0098] In this embodiment, the target building group is scanned by an aerial photography device according to a preset route, and the obtained remote sensing image of the target building group is the initial image of the target building group.
[0099] In practical applications, drones carrying high-precision cameras and infrared sensors can be used to conduct periodic, all-round scans of target buildings to obtain multi-dimensional remote sensing images that include building structures and window features. Drones can fly automatically according to preset routes to ensure the integrity and accuracy of the scanning range.
[0100] In a possible implementation, identifying all first user units in a target image according to preset user activity conditions, building structures, and window features includes:
[0101] Through the deep learning model, the window features are classified according to the preset user activity conditions to obtain the corresponding target user window;
[0102] According to the target user window and the building structure, the first user unit in the target image is identified.
[0103] It should be noted that the deep learning model is an advanced algorithm in the field of machine learning, which can extract features from multi-level and complex data and realize tasks such as image recognition, speech recognition, and natural language processing. In the user identification of the target building group, the deep learning model can classify the window features according to the preset user activity conditions, thereby identifying the target user window and then determining the first user unit.
[0104] Among them, the preset user activity conditions refer to a series of judgment criteria for identifying the first user unit, which are set according to the characteristics of the target building group and statistical requirements before counting the number of users, that is, for identifying the user unit where people live or work. The preset user activity conditions may include light transmission through the window and signs of hot spots on the window. The target user window is a window indicating that someone lives or works, which is obtained by classifying and identifying the window features according to the preset user activity conditions through the deep learning model. Generally, light transmission through the window and hot spots on the window determine that someone lives or works in the unit corresponding to the window.
[0105] Specifically, the window features are first classified according to the preset user activity conditions to determine which windows are occupied or worked, namely the target user windows; then, combined with the building structure of the target building group, the independent user unit corresponding to the target user window is identified, namely the first user unit, so as to count the first user unit. Through the recognition of the deep learning model, the efficiency of counting the current number of users in the target building group is improved.
[0106] It should be noted that in actual applications, the scanning parameters of the drone and the recognition parameters of the deep learning model can be set according to the specific conditions and needs of the target building complex. For example, for high-rise residential buildings, the flight altitude and angle of the drone can be adjusted to ensure that the residential units on each floor are scanned; for low-density villa areas, the deep learning model parameters can be optimized to better identify the outline and features of the villas.
[0107] In a possible implementation, the method for counting the number of users in a building group further includes:
[0108] Obtaining a training set, where the training set includes a plurality of sample images and recognition results of the plurality of sample images;
[0109] Build an initial deep learning model;
[0110] An initial deep learning model is trained using multiple sample images and recognition results of the multiple sample images to obtain a deep learning model.
[0111] It should be noted that, in this embodiment, before using the deep learning model to classify the window features, it is necessary to perform model training on the constructed initial deep learning model. The initial deep learning model is a newly constructed deep learning model that has not been trained. The training set is a subset of data used to train the model, which contains known input features and expected output labels, that is, sample images and recognition results of sample images. The sample image is the target image of the target building group collected. The recognition result of the sample image is the image of the target user window identified after classifying the window features according to the preset user activity conditions, that is, the image that the model expects to output.
[0112] It can be understood that by training the initial deep learning model, the model can accurately predict or classify new data and accurately identify the target user window.
[0113] In a possible implementation, the method for counting the number of users in a building group further includes:
[0114] The current number of users of the target building group and the corresponding historical number of users of the target building group in each historical period in multiple historical periods are displayed through a preset visualization model, and a corresponding visualization report is generated;
[0115] According to the current number of users and the historical number of users in the visualization report, the changing trend and seasonal fluctuation of the current number of users in the target building group are obtained;
[0116] Based on the changing trend and seasonal fluctuations in the current number of users, determine the expected number of users for the target building complex in the future.
[0117] Specifically, the current number of users and the historical number of users of the target building group can be displayed in the form of a visual report; by analyzing the current number of users and the historical number of users in the visual report, the changing trend and seasonal fluctuation of the current number of users of the target building group can be obtained, so as to determine the expected number of users of the target building group in the future period.
[0118] It should be noted that the preset visualization model refers to a pre-set framework or tool for data visualization, which may include various types of charts, such as bar charts, line charts, pie charts, scatter plots, etc. By using the preset visualization model, it is possible to generate visualization charts or reports that meet the requirements more conveniently and quickly, thereby better viewing and analyzing user quantity data. When selecting a preset visualization model, the visualization report needs to consider factors such as the type, scale, and distribution characteristics of the data, and comprehensively consider the specific analysis purpose and user needs, which is not specifically limited in this embodiment.
[0119] Visual reports are charts that display the current number of users of the target building group and the corresponding historical number of users of the target building group in each historical period in multiple historical periods through a preset visualization model. Visual reports can intuitively display the current number of users and the historical number of users, and can more clearly understand the changing trend of the number of users and seasonal fluctuations. By analyzing the changing trend and seasonal fluctuations of the current number of users, potential problems and patterns can be discovered, and the number of users of the target building group in the future period can be predicted. Among them, the changing trend of the current number of users can include the growth or decline trend of the number of users, as well as the rate and stability of these trends. The seasonal fluctuation of the current number of users refers to the periodic changes in the number of users in different seasons or time periods.
[0120] It should be noted that the method of counting the number of users in a building complex can also be combined with relevant technologies in the tap water industry, such as smart water meters and water usage data analysis, to form a complete user quantity statistics and management system for the tap water industry, providing more comprehensive and accurate data support for water supply planning, fee management and other aspects.
[0121] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0122] Corresponding to a method for counting the number of users in a building group in the above embodiment, Figure 3 A schematic diagram of the structure of a device for counting the number of users in a building group provided in an embodiment of the present application is shown. For the sake of convenience of explanation, only the parts related to the embodiment of the present application are shown.
[0123] Reference Figure 3 The building group user number counting device 3 of this embodiment includes:
[0124] An acquisition module 31 is used to acquire a target image of a target building group; wherein the target image at least includes window features and building structures of the target building group;
[0125] An identification module 32, configured to identify all first user units in the target image according to preset user activity conditions, the building structure and the window features;
[0126] The statistical module 33 is used to determine the current number of users in the target building group according to all the first user units and the preset average number of people per household.
[0127] It can be understood that by analyzing and processing the target image of the target building group, the first user unit that meets the preset user activity conditions is identified, thereby obtaining the current number of users in the target building group, improving the efficiency and accuracy of building group user number statistics, and reducing labor costs.
[0128] It should be noted that the information interaction, execution process and other contents between the modules in the above-mentioned building group user number counting device 3 are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0129] The present application also provides a device for counting the number of users in a building group, such as Figure 4 As shown, Figure 4 This is a schematic diagram of a device for counting the number of users in a building group provided in one embodiment of the present application. Figure 4The building group user quantity counting device 4 of this embodiment includes: a memory 41, a processor 42, and a computer program stored in the memory 41 and executable on the processor 42. When the processor 42 executes the computer program, the steps in any one of the above-mentioned building group user quantity counting method embodiments are implemented.
[0130] The 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 steps in the above-mentioned method embodiments can be implemented.
[0131] The embodiment of the present application also provides a computer program product. When the computer program product runs on a mobile terminal, the mobile terminal can implement the steps in the above-mentioned method embodiments when executing the computer program product.
[0132] 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 present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the above-mentioned method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device that can carry the computer program code to the camera / terminal device, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.
[0133] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0134] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0135] In the embodiments provided in the present application, it should be understood that the disclosed devices / network equipment and methods can be implemented in other ways. For example, the device / network equipment embodiments described above are only schematic. For example, the division of modules or 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.
[0136] The units described 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.
[0137] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A method for counting the number of users in a building group, characterized in that: include: Acquire a target image of a target building group; wherein the target image at least includes window features and building structures of the target building group; identifying all first user units in the target image according to preset user activity conditions, the building structure and the window features; Wherein, after identifying all first user units in the target image, the method includes: Obtaining the number of historical users corresponding to each historical period of the target building group in multiple historical periods; According to a preset time dimension, the plurality of historical user numbers are sorted and classified to obtain the classified historical user numbers; wherein the preset time dimension includes at least one of the following: an annual dimension, a quarterly dimension, a monthly dimension, and a seasonal dimension; Arranging the classified historical user numbers according to time series to obtain a corresponding time series statistical graph; By filtering the number of historical users according to a preset filtering condition through the time series statistical graph, a second user unit in the target building group is identified; wherein the second user unit is used to indicate an independent unit in the target building group whose user residence time is less than a first threshold; Excluding the second user unit from all the first user units to obtain an optimized first user unit; Counting all the optimized first user units to obtain the total number of optimized first user units; The optimized total number of first user units and the preset average number of persons per household are multiplied to obtain the current number of users in the target building group.
2. The method for counting the number of building group users as claimed in claim 1, characterized in that: The step of acquiring a target image of a target building group comprises: Acquire an initial image of the target building group; Preprocessing the initial image to obtain a preprocessed initial image; wherein the preprocessing includes at least one of the following: image denoising, image contrast enhancement; The window features and the building structure in the preprocessed initial image are extracted according to the first preset extraction condition and the second preset extraction condition respectively to obtain the target image; wherein the window features include at least one of the following: whether the window is light-transmitting, and whether the window has a hot spot.
3. The method for counting the number of building group users as claimed in claim 2, characterized in that: The obtaining of the initial image of the target building group comprises: Scanning the target building group according to a preset route using an aerial photography device to obtain a remote sensing image of the target building group; The remote sensing image is used as the initial image.
4. The method for counting the number of building group users as claimed in claim 2, characterized in that: The step of identifying all first user units in the target image according to the preset user activity condition, the building structure and the window feature comprises: By using a deep learning model, the window features are classified according to the preset user activity conditions to obtain a corresponding target user window; The first user unit in the target image is identified according to the target user window and the building structure.
5. The method for counting the number of building group users as claimed in claim 4, characterized in that: The method further comprises: Acquire a training set, wherein the training set includes a plurality of sample images and recognition results of the plurality of sample images; Build an initial deep learning model; The initial deep learning model is trained using the multiple sample images and the recognition results of the multiple sample images to obtain the deep learning model.
6. The method for counting the number of building group users as claimed in claim 1, characterized in that: The method further comprises: The current number of users of the target building group and the number of historical users of the target building group corresponding to each historical period in multiple historical periods are displayed through a preset visualization model, and a corresponding visualization report is generated; According to the current number of users and the historical number of users in the visualization report, the change trend and seasonal fluctuation of the current number of users of the target building group are obtained; According to the changing trend and seasonal fluctuation of the current number of users, the expected number of users of the target building complex in the future period is determined.
7. A device for counting the number of users in a building group, characterized in that: include: An acquisition module, used to acquire a target image of a target building group; wherein the target image at least includes window features and building structures of the target building group; an identification module, configured to identify all first user units in the target image according to preset user activity conditions, the building structure and the window features; Wherein, the device is also used for: Obtaining the number of historical users corresponding to each historical period of the target building group in multiple historical periods; According to a preset time dimension, the plurality of historical user numbers are sorted and classified to obtain the classified historical user numbers; wherein the preset time dimension includes at least one of the following: an annual dimension, a quarterly dimension, a monthly dimension, and a seasonal dimension; Arranging the classified historical user numbers according to time series to obtain a corresponding time series statistical graph; By filtering the number of historical users according to a preset filtering condition through the time series statistical graph, a second user unit in the target building group is identified; wherein the second user unit is used to indicate an independent unit in the target building group whose user residence time is less than a first threshold; Excluding the second user unit from all the first user units to obtain an optimized first user unit; The statistical module is used to count all the optimized first user units to obtain the total number of optimized first user units; multiply the total number of optimized first user units by the preset average number of people per household to obtain the current number of users in the target building group.
8. A device for counting the number of users in a building group, characterized in that: The method comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method according to any one of claims 1 to 6 when executing the computer program.
