Relationship determination, image collector quantity determination method, device, equipment and medium
By setting address levels and establishing hierarchical relationships for theoretical regional units of administrative divisions, the problem of inaccurate determination of the number of image collectors in electronic maps is solved, and an intuitive display of the number of image collectors in administrative units or parks is realized.
Patent Information
- Application Number
- CN202011091259.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-10-13
- Publication Date
- 2026-01-02
- Estimated Expiration
- 2040-10-13
AI Technical Summary
Existing technology cannot accurately determine the number of image collectors within administrative units or parks on electronic maps, resulting in a poor user query experience.
By setting associated address levels for each theoretical regional unit of administrative division, the smallest administrative unit of each layer in the electronic map is determined, and the hierarchical relationship between address level and map level is established to construct information association relationship to determine the number of image collectors.
It enables an accurate and intuitive display of the number of image acquisition devices within each theoretical region unit, solving the problem that simply dividing rectangular blocks by area in electronic maps cannot meet users' query needs.
Smart Images

Figure CN114357091B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] Embodiments of the present application relate to the security technology field, and in particular to a relationship determination method and device, an image collector quantity determination method and device, equipment and a medium. BACKGROUND
[0002] The result obtained by querying a location on an electronic map is usually presented in the form of a marker point. In some areas, the result obtained by querying may be more, and thus the marker points presented may also be more. If all the marker points are displayed, not only will the rendering time of the client be greatly increased, causing the client to lag and affecting the user experience, but also the user may have a fear of crowds. Therefore, it is necessary to aggregate and display multiple marker points within the limited visual area of the user, so as to display the most comprehensive information with the smallest area.
[0003] At present, the way of aggregating and displaying the deployed image collector points is generally to divide the electronic map into rectangular frames with equal areas, and to aggregate the image collectors scattered in the rectangular frames. The above scheme can only determine the number of image collectors in multiple rectangular regions, and cannot determine the number of corresponding image collectors in the actual administrative unit or park. SUMMARY
[0004] Embodiments of the present application provide a relationship determination method and device, an image collector quantity determination method and device, and equipment and a medium, to establish a relationship between the image collector quantity and each theoretical region unit, so as to determine the number of image collectors within the administrative unit region.
[0005] In one embodiment, the present application provides a relationship determination method, which comprises:
[0006] setting an associated address level for each theoretical region unit obtained by dividing an administrative region;
[0007] determining the smallest administrative unit in the display page of each map level in the electronic map;
[0008] establishing a level association relationship between the address level and the map level according to the matching result of the smallest administrative unit and each theoretical region unit;
[0009] constructing an information association relationship among the map level, the theoretical region unit and the image collector quantity according to the address level associated with the theoretical region unit, the level association relationship and the number of image collectors within the region of each theoretical region unit.
[0010] In another embodiment, the present application provides an image collector quantity determination method, which comprises:
[0011] obtaining a target map level input by a user;
[0012] determining, based on the information association relationship, a target area unit associated with the target map level and a number of image collectors located within a range of the target area unit, wherein the information association relationship is determined according to the relationship determination method in any of the embodiments of the present application.
[0013] In one embodiment, the embodiments of the present application further provide a relationship determination device, which comprises:
[0014] an address level determination module configured to set an associated address level for each theoretical area unit obtained by dividing an administrative region;
[0015] a minimum administrative unit determination module configured to determine a minimum administrative unit in a display page of each map level in an electronic map;
[0016] a level association relationship determination module configured to establish a level association relationship between the address level and the map level according to a matching result of the minimum administrative unit and the theoretical area units;
[0017] an information association relationship determination module configured to construct an information association relationship among the map level, the theoretical area units and the number of image collectors within a range of each theoretical area unit according to the address level associated with the theoretical area units, the level association relationship and the number of image collectors.
[0018] In another embodiment, the embodiments of the present application further provide a number of image collector determination device, which comprises:
[0019] a target map level obtaining module configured to obtain a target map level input by a user;
[0020] a number of image collector determination module configured to determine, based on an information association relationship, a target area unit associated with the target map level and a number of image collectors located within a range of the target area unit, wherein the information association relationship is determined according to the relationship determination method in any of the embodiments of the present application.
[0021] In one embodiment, the embodiments of the present application further provide a relationship determination device, which comprises one or more processors;
[0022] a memory configured to store one or more programs;
[0023] when the one or more programs are executed by the one or more processors, the one or more processors implement the relationship determination method in any of the embodiments of the present application, or execute the number of image collector determination method in any of the embodiments of the present application.
[0024] In one embodiment, the application also provides a computer readable storage medium, having stored thereon a computer program, which when executed by a processor implements the relationship determining method in any of the embodiments of the application, or executes the image collector quantity determining method in any of the embodiments of the application.
[0025] In the embodiments of the application, the address levels associated with the theoretical region units divided according to the administrative regions are set; the minimum administrative units in the display pages of each map level in the electronic map are determined; and the level association relationship between the address levels and the map levels is established according to the matching results of the minimum administrative units and each theoretical region unit, so as to facilitate the establishment of the connection between the map levels and the theoretical region units. The information association relationship among the map levels, the theoretical region units and the image collector quantities is constructed according to the address levels associated with the theoretical region units, the level association relationship and the image collector quantities in the region ranges of each theoretical region unit, so as to establish the information association relationship between the image collector quantities and each theoretical region unit, and to facilitate the intuitive determination of the image collector quantities in the region ranges of each theoretical region unit. BRIEF DESCRIPTION OF DRAWINGS
[0026] Figure 1 The flowchart of the relationship determining method provided by one embodiment of the application;
[0027] Figure 2 The flowchart of the relationship determining method provided by another embodiment of the application;
[0028] Figure 3 The flowchart of the image collector quantity determining method provided by another embodiment of the application;
[0029] Figure 4 The schematic diagram of the image collector dispersion display provided by another embodiment of the application;
[0030] Figure 5 The schematic diagram of the image collector aggregation display provided by another embodiment of the application;
[0031] Figure 6 The structural schematic diagram of the relationship determining device provided by one embodiment of the application;
[0032] Figure 7 The structural schematic diagram of the image collector quantity determining device provided by one embodiment of the application;
[0033] Figure 8 The structural schematic diagram of the electronic device provided by one embodiment of the application. DETAILED DESCRIPTION
[0034] The application will be described in further detail below with reference to the drawings and embodiments. It should be understood that the specific embodiments described herein are intended for explanation only and are not limiting of the application. It should also be noted that, for the sake of brevity, the figures only show the parts of the application that are necessary to understand the application.
[0035] The relationship determination method and the image collector quantity determination method in the embodiments of the application can be executed by a backend server. Since the method in the embodiments of the application involves processing and calculation processes such as area division, address level setting, level correlation determination, image collector quantity determination, and the like, if integrated in a front-end image collector, the performance of the image collector can be affected due to triggering of point aggregation and the like. In the embodiments of the application, the point aggregation calculation is executed by the backend server, thereby reducing the calculation pressure of point aggregation, so that the image collector can normally play its performance.
[0036] Figure 1 A flowchart of a relationship determination method provided by an embodiment of the application. The relationship determination method provided by the embodiment can be applicable to the case of determining the quantity of image collectors in a region. Typically, the method can be applicable to establishing the information correlation relationship between each theoretical region unit and the quantity of image collectors, so as to directly and clearly determine the quantity of image collectors located in the administrative unit region range. The method can be specifically executed by a relationship determination device, which can be realized by software and / or hardware, and can be integrated in an electronic device. Referring to Figure 1 The method of the embodiment of the application specifically includes:
[0037] S110, setting an associated address level for each theoretical region unit obtained by region division.
[0038] The region division can be divided according to actual conditions, for example, can be divided according to administrative regions, and each theoretical region unit obtained can be a region in units of country, province, city, district, county, township, and village. It can also be divided according to other manners, for example, into North China, Northeast China, East China, Central South China, Southwest China, and lower-level regions of fine-grained division. The quantity and representation form of the address level can be set according to actual conditions. For example, the quantity of the address level can be set to 9, and the representation form can be numbers 1-9. In the above example, the theoretical region unit can correspond to address level 1 for country, address level 2 for province, address level 3 for city, address level 4 for district, address level 5 for town, address level 6 for village, address level 7 for road, address level 8 for park, and address level 9 for door. The above is only an example, and in fact, the quantity of the address level can also be other quantities, and the representation form can also be letters and the like.
[0039] The above scheme has the beneficial effect that each theoretical region unit can be clearly and intuitively distinguished and displayed, which facilitates the establishment of a relationship with the map level in the electronic map and the establishment of a correlation relationship.
[0040] S120, determining the smallest administrative unit in the display page of each map level in the electronic map.
[0041] The electronic map can be a map displayed in a smart electronic device, such as Baidu Map, Gaode Map, Google Map, etc. The electronic map includes a preset number of map levels. When the electronic map is displayed, for each map level, a display page corresponding to the map level is displayed. For example, when the map level is 3, only the country is displayed in the display page of the electronic map. When the map level is 10, the province, city, and county are displayed in the display page of the electronic map. The number of map levels can be different for different electronic maps.
[0042] In the display page of each map level, there will be a smallest administrative unit. For example, when the map level is 10, the display page of the electronic map displays the province, city, and county. According to the level of regional division, the smallest administrative unit is the county.
[0043] For different map levels, the smallest administrative unit in the display page can be the same. For example, when the map level is 10 and 11, the display page displays the province, city, and county, and the smallest administrative unit is the county. The above is only an example, and the smallest administrative unit in the display page of each map level can be determined according to the zoom ratio and display of the electronic map. The smallest administrative unit of the same or different map levels of different electronic maps can be different.
[0044] S130, according to the matching result of the smallest administrative unit and the theoretical region unit, establishing a level correlation relationship between the address level and the map level.
[0045] For example, for different address levels, the associated map level is determined, thereby establishing a level correlation relationship between the address level and the map level. Specifically, the theoretical region unit associated with different address levels is matched with the smallest administrative unit corresponding to different map levels in the electronic map. If the matching is successful, that is, the theoretical region unit and the smallest administrative unit are consistent, a level correlation relationship is established between the address level associated with the theoretical region unit and the map level corresponding to the smallest administrative unit. The level correlation relationship can be displayed in the form of a table, as shown in Table 1.
[0046] Table 1
[0047]
[0048] For example, as shown in Table 1, for address level 3, the associated theoretical area unit is a city. In the minimum administrative unit corresponding to the electronic map level, when the minimum administrative unit is a city, the corresponding map levels are 8 and 9, and therefore the level association relationship between address level 3 and map level 8 and map level 9 is established. For each address level, the associated map level is determined in the above manner, and the level association relationship is established.
[0049] S140, according to the address level associated with the theoretical area unit, the level association relationship, and the number of image collectors in the area range of each theoretical area unit, constructing the information association relationship of the map level, the theoretical area unit, and the number of image collectors.
[0050] For example, for each theoretical area unit, the corresponding address level is determined. Based on the level association relationship and the address level corresponding to the theoretical area unit, the map level corresponding to the theoretical area unit is determined. Through the pre-stored position information of the image collector, the number of image collectors located in the range of the theoretical area unit is determined, and the information association relationship of the theoretical area unit, the corresponding map level, and the number of image collectors is established. The information association relationship can be displayed in the form of a table, as shown in Table 2.
[0051] Table 2
[0052] Map hierarchy Theoretical area unit Number of image collectors N1 **City n1 … … … N5 **District n5 N6 **District n6 … … … N17 **Park n17 N18 **Hotel n18
[0053] In Table 2, N1-N18 represents the map level, and N1-N18 is only a symbol representing the specific value of the map level and is not necessarily different. There can be at least two cases where the map levels are the same. n1-n18 represents the number of image collectors. The establishment of the information association relationship facilitates subsequent receipt of a user input map level, and direct determination of the number of image collectors in the range of the theoretical area unit corresponding to the map level according to the information association relationship, and quick and intuitive display of the number of image collectors in the area, thereby solving the problem that simple division of an electronic map into rectangular blocks according to area and display of the number of image collectors in the rectangular blocks cannot meet the user's query requirements for administrative units or parks.
[0054] In the embodiments of the present application, the address levels associated with each theoretical region unit obtained by region division are set; the smallest administrative unit in the display page of each map level in the electronic map is determined; and the level association relationship between the address levels and the map levels is established according to the matching result of the smallest administrative unit and each theoretical region unit, so as to facilitate the establishment of the relationship between the map levels and the theoretical region units. The information association relationship among the map levels, the theoretical region units and the image collector quantity is constructed according to the address levels associated with the theoretical region units, the level association relationship and the image collector quantity in the region range of each theoretical region unit, so as to establish the information association relationship between the image collector quantity and each theoretical region unit, so as to facilitate the intuitive determination of the image collector quantity in the region range of each theoretical region unit.
[0055] Figure 2 The flowchart of the relationship determination method provided by another embodiment of the present application is shown in FIG. 6. The embodiment of the present application is a further optimization of the above-mentioned embodiment, and the details not described in the embodiment are shown in the above-mentioned embodiment. Referring to FIG. 6, the relationship determination method provided by the embodiment of the present application can include the following steps. Figure 2
[0056] S210, setting the address levels associated with each theoretical region unit obtained by region division.
[0057] S220, performing text recognition on the display page of each map level in the electronic map.
[0058] Specifically, the smallest administrative unit is the smallest administrative unit in the visible administrative unit on the display page of the map level. When the processor is executed, the executed method can be that text recognition is performed on the display page of each map level in the electronic map, all the administrative units displayed on the display page are recognized, and then the smallest administrative unit is searched from all the administrative units.
[0059] S230, determining the smallest administrative unit from the administrative units obtained by text recognition according to the level of the theoretical region unit obtained by region division.
[0060] For example, the theoretical region unit levels obtained by region division can be stored in advance, and the theoretical region unit levels can be ranked, for example, ranked in descending order of level as country, province, city, county, township, village, street, and household. According to the pre-stored levels, the smallest administrative unit is determined from all the administrative units identified. For example, all the administrative units identified include country, province, city, and county. By matching the identified administrative units to the pre-stored theoretical region unit levels, it can be determined that the smallest administrative unit is county. Alternatively, according to the pre-stored theoretical region unit levels in descending order, the theoretical region units are sequentially matched with all the administrative units identified, to find out whether there is an administrative unit matching the theoretical region unit in all the administrative units identified. If not, it is found out whether there is a theoretical region unit of a higher level. If there is, the administrative unit matching the theoretical region unit is taken as the smallest administrative unit. For example, all the administrative units identified include country, province, city, and county. The lowest household in the pre-stored theoretical region unit level ranking is matched with country, province, city, and county, and all the matching fails. Then, street is matched with country, province, city, and county, and all the matching fails. Then, village is matched with country, province, city, and county, and all the matching fails. Then, township is matched with country, province, city, and county, and all the matching fails. Then, county is matched with country, province, city, and county, and county is matched successfully, which indicates that county is the smallest administrative unit.
[0061] S240, if the smallest administrative unit matches any theoretical region unit, a hierarchical association relationship between the map level corresponding to the smallest administrative unit and the address level associated with the theoretical region unit matching the smallest administrative unit is established.
[0062] For example, the obtained smallest administrative unit is matched with each theoretical region unit obtained by region division. If the smallest administrative unit matches any theoretical region unit, a hierarchical association relationship between the map level corresponding to the smallest administrative unit and the address level associated with the theoretical region unit matching the smallest administrative unit is established.
[0063] S250, for each theoretical region unit, a map level corresponding to the theoretical region unit is determined based on the address level associated with the theoretical region unit and the hierarchical association relationship.
[0064] For example, for each theoretical region unit, an address level associated therewith is determined. According to the hierarchical association relationship, a map level associated with the address level is determined, and then a map level corresponding to the theoretical region unit is determined.
[0065] S260, determine the number of image collectors in the area range of the theoretical area unit according to the position information of the image collectors.
[0066] For example, the position information of each image collector under control is stored in advance. According to the position information, it can be determined in which administrative unit the image collector is located. Therefore, according to the position information of the image collector, the number of image collectors in the area range of each theoretical area unit can be counted.
[0067] In the embodiment of the present application, before determining the number of image collectors in the area range of the theoretical area unit according to the position information of the image collectors, the method further comprises: determining the address of the image collector according to the latitude and longitude information of the image collector; determining the address level associated with the actual area unit included in the address of the image collector; and determining the position information of the image collector according to the image collector identifier, the actual area unit included in the image collector, and the associated address level. Determining the address level associated with the actual area unit included in the address of the image collector comprises: dividing the address of the image collector into regions to obtain the actual area unit; and determining the address level associated with the actual area unit according to the address level associated with each theoretical area unit.
[0068] For example, when the image collector is controlled, the latitude and longitude information of the image collector and the identifier of the image collector are recorded. The identifier can be the image collector code and / or the image collector name, etc. As shown in Table 3.
[0069] Table 3
[0070]
[0071] According to the latitude and longitude information, the detailed address of the image collector can be determined. The detailed address includes the actual area unit, such as the country, the province, the city, etc. The address level associated with each actual area unit is determined. The position information of the image collector is composed of the image collector identifier, the actual area unit in the address of the image collector, and the associated address level.
[0072] The address level associated with the actual area unit of the image collector includes: performing area division on the address of the image collector according to an area division method to obtain an actual area unit. For example, for the address **country** province **city** county **town** village **street** and **house**, the area division method is used for division to obtain the actual area units **country**, **province**, **city**, **county**, **town**, **village**, **street**, and **house**. The address level corresponding to the actual area unit is determined according to the address level set in advance for the theoretical area unit. For example, the address level associated with the theoretical area unit that matches the actual area unit is searched, and the address level associated with the actual area unit is taken as the address level associated with the actual area unit. As shown in Table 4.
[0073] Table 4
[0074]
[0075] In the embodiment of the present application, the number of image collectors in the area range of the theoretical area unit is determined according to the position information of the image collector, which includes: determining the actual area unit and the image collector identifier under the address level associated with the theoretical area unit in the position information of the image collector; and counting the number of image collectors in the case where the actual area unit is consistent with the theoretical area unit.
[0076] For example, the address level associated with the theoretical area unit is determined, and the actual area unit and the image collector identifier under the address level are searched in the position information of the image collector. The number of image collectors in the case where the actual area unit is consistent with the theoretical area unit is counted. For example, the address level associated with the K county is 4, and the actual area unit and the image collector identifier under the address level 4 are searched in the position information of the image collector. As shown in Table 4, the actual area unit under the address level 4 includes the C district and the K county, and the actual area unit matching the theoretical area unit K county is the K county, so the image collector controlled in the K county is counted into the total number. The number of image collectors in the area range of the K county is counted according to the above scheme.
[0077] S270, an information association relationship of the theoretical area unit, the corresponding map level, and the number of image collectors is constructed.
[0078] As shown in Table 5. The information association relationship can also include the image collector code, so that the user can query the relevant information of the image collector, such as the image collector name, the latitude and longitude information, the type, etc., from the position information of the image collector according to the code. The number of image collectors in Table 5 is only an example, and the actual number is determined according to the number of image collectors controlled.
[0079] Table 5
[0080]
[0081] The technical scheme of the embodiment of the application determines the map level corresponding to each theoretical region unit based on the address level associated with the theoretical region unit and the level association relationship; determines the number of image collectors within the region range of the theoretical region unit according to the position information of the image collectors; and constructs the information association relationship of the theoretical region unit, the corresponding map level, and the number of image collectors, thereby accurately and intuitively establishing the corresponding relationship among the theoretical region unit, the map level, and the number of image collectors, and facilitating subsequent determination of the number of image collectors within the region range for an administrative unit or a target region.
[0082] Figure 3 A flowchart of an image collector number determination method provided by an embodiment of the application. The relationship determination method provided by the embodiment can be applied to the case of determining the number of image collectors in a region. Typically, the method can be applied to establishing the information association relationship between each theoretical region unit and the number of image collectors, to directly and clearly determine the number of image collectors within the region range of the theoretical region unit. The method can be specifically executed by an image collector number determination device, which can be implemented in the form of software and / or hardware, and can be integrated in an electronic device. Referring to Figure 3 The method of the embodiment of the application specifically includes the following steps.
[0083] S310, obtaining a target map level input by a user.
[0084] For example, the user can input or select the target map level through a front-end visual interface.
[0085] S320, determining a target region unit associated with the target map level and the number of image collectors within the region range of the target region unit based on an information association relationship, wherein the information association relationship is determined according to the relationship determination method in any embodiment of the application.
[0086] According to the target map level, the target region unit associated with the target map level is searched in the information association relationship, and the number of associated image collectors is searched, to determine the number of image collectors within the region range of the target region unit. The determination process of the information association relationship is described in the above embodiment.
[0087] In the embodiment of the present application, after determining the target area unit associated with the target map level and the number of image collectors located within the range of the target area unit, the method further comprises: displaying the image collectors within the range of the target area unit on the electronic map; or, aggregating the image collectors within the range of the target area unit into one display point, labeling the number of image collectors on the display point, and displaying on the electronic map.
[0088] As shown in Figure 4 , each image collector is displayed according to its actual position within the range of the target area unit. As shown in Figure 5 , for the sake of concise display, each image collector can also be aggregated to obtain one display point, and the number of image collectors is labeled on the display point to intuitively display the number of image collectors located within the range of the target area unit.
[0089] The technical scheme of the embodiment of the present application determines the corresponding target area unit when the target map level of the user is obtained, and determines the number of image collectors located within the range of the target area unit according to the information association relationship, thereby solving the problem that only simply dividing the electronic map into rectangular blocks according to the area and displaying the number of image collectors in the rectangular blocks cannot meet the user's query demand for administrative units or park areas.
[0090] Figure 6 The structure diagram of the relationship determination device provided by an embodiment of the present application is shown. The device can be applied to the case of determining the number of image collectors in a region. Typically, the method can be applied to establish the information association relationship between each theoretical area unit and the number of image collectors to intuitively and clearly determine the number of image collectors located within the range of the theoretical area unit. The device can be realized by software and / or hardware, and the device can be integrated in an electronic device. Referring to Figure 6 , the device specifically comprises:
[0091] The address level determination module 410 is configured to set the associated address level for each theoretical area unit obtained by dividing the region;
[0092] The minimum administrative unit determination module 420 is configured to determine the minimum administrative unit in the display page of each map level of the electronic map;
[0093] The level association relationship determination module 430 is configured to establish the level association relationship between the address level and the map level according to the matching result of the minimum administrative unit and each theoretical area unit;
[0094] The information correlation relationship determining module 440 is configured to construct an information correlation relationship among the map level, the theoretical region unit, and the number of image collectors according to the address level associated with the theoretical region unit, the level correlation relationship, and the number of image collectors in the region range of each theoretical region unit.
[0095] In the embodiment of the present application, the minimum administrative unit determining module 420 comprises:
[0096] The identifying unit is configured to perform text recognition on the display page of each map level in the electronic map.
[0097] The determining unit is configured to determine the minimum administrative unit from the administrative units obtained through text recognition according to the theoretical region unit level obtained through region division.
[0098] In the embodiment of the present application, the level correlation relationship determining module 430 is specifically configured to:
[0099] If the minimum administrative unit matches any theoretical region unit, the level correlation relationship between the map level corresponding to the minimum administrative unit and the address level associated with the theoretical region unit is established.
[0100] In the embodiment of the present application, the information correlation relationship determining module 440 comprises:
[0101] The map level determining unit is configured to determine, for each theoretical region unit, the map level corresponding to the theoretical region unit based on the address level associated with the theoretical region unit and the level correlation relationship.
[0102] The number determining unit is configured to determine the number of image collectors in the region range of the theoretical region unit according to the position information of the image collectors.
[0103] The relationship constructing unit is configured to construct an information correlation relationship among the theoretical region unit, the corresponding map level, and the number of image collectors.
[0104] In the embodiment of the present application, the number determining unit is specifically configured to:
[0105] In the position information of the image collectors, the actual region unit under the address level associated with the theoretical region unit and the image collector identifier are determined.
[0106] The number of image collectors in the case where the actual region unit is consistent with the theoretical region unit is counted.
[0107] In the embodiment of the present application, the apparatus further comprises:
[0108] The address determining module is configured to determine an address of the image collector according to the latitude and longitude information of the image collector.
[0109] The level determining module is configured to determine an address level associated with an actual area unit included in the address of the image collector.
[0110] The position information determining module is configured to determine position information of the image collector according to the image collector identifier, the actual area unit included in the image collector, and the address level associated with the actual area unit.
[0111] In the embodiments of the present application, the level determining module comprises:
[0112] The actual determining unit is configured to divide the address of the image collector into area units to obtain actual area units.
[0113] The searching unit is configured to determine the address level associated with the actual area unit according to the address level associated with each theoretical area unit.
[0114] The relationship determining apparatus provided in the embodiments of the present application can perform the relationship determining method provided in any of the embodiments of the present application, and has the function modules and beneficial effects corresponding to the execution method.
[0115] Figure 7 The structure diagram of the image collector quantity determining apparatus provided in an embodiment of the present application is shown. The apparatus can be applied to the case of determining the quantity of image collectors in a region. Typically, the method can be applied to establish the information association relationship between each theoretical area unit and the quantity of image collectors, so as to directly and clearly determine the quantity of image collectors located in the region range of the theoretical area unit. The apparatus can be realized by software and / or hardware, and the apparatus can be integrated in an electronic device. Referring to Figure 7 The apparatus specifically comprises:
[0116] The target map level obtaining module 510 is configured to obtain a target map level input by a user.
[0117] The image collector quantity determining module 520 is configured to determine a target area unit associated with the target map level and the quantity of image collectors located in the region range of the target area unit based on the information association relationship, wherein the information association relationship is determined according to the relationship determining method in any of the embodiments of the present application.
[0118] In the embodiments of the present application, the image collector quantity determining module 520 comprises:
[0119] The first display unit is configured to display the image collectors in the region range of the target area unit on an electronic map; or
[0120] A second display unit is configured to aggregate the image collectors in the target area unit into one display point, mark the number of image collectors on the display point, and display on the electronic map.
[0121] The image collector number determination apparatus provided by the embodiments of the present application can execute the image collector number determination method provided by any of the embodiments of the present application, and has the corresponding function modules and beneficial effects of the execution method.
[0122] Figure 8 The structure schematic diagram of the electronic device provided by one embodiment of the present application is shown. Figure 8 A block diagram of an example electronic device 612 suitable for implementing embodiments of the present application is shown. Figure 8 The electronic device 612 shown is merely an example, and should not impose any limitation on the functions and use range of the embodiments of the present application.
[0123] As shown in Figure 8 The electronic device 612 can include one or more processors 616, and a memory 628 for storing one or more programs, when the one or more programs are executed by the one or more processors 616, the one or more processors 616 implement the relationship determination method provided by the embodiments of the present application, including:
[0124] An address level associated with each theoretical area unit obtained by area division is set;
[0125] The smallest administrative unit in the display page of each map level in the electronic map is determined;
[0126] According to the matching result of the smallest administrative unit and the theoretical area unit, a level association relationship between the address level and the map level is established;
[0127] According to the address level associated with the theoretical area unit, the level association relationship, and the number of image collectors in the area range of the theoretical area unit, an information association relationship of the map level, the theoretical area unit, and the number of image collectors is constructed.
[0128] Or implement the image collector number determination method provided by the embodiments of the present application, including:
[0129] Obtain the target map level input by the user.
[0130] Determine the target area unit associated with the target map level and the number of image collectors in the area range of the target area unit based on the information association relationship, wherein the information association relationship is determined according to the relationship determination method in any of the embodiments of the present application.
[0131] The components of electronic device 612 may, collectively or individually, be implemented using a processing system that includes one or more processors 616. Examples of processors 616 include conventional microprocessors, microcontrollers, application specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), and other hardware well known in the art. The components of electronic device 612 may, collectively or individually, be implemented using a processing system that includes one or more processors 616. Examples of processors 616 include conventional microprocessors, microcontrollers, application specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), and other hardware well known in the art.
[0132] Bus 618 generally operates under control of an operating system and is used to communicate information between components of electronic device 612, such as processor 616, memory 628, and input / output devices 620. Such communication can be one-directional, as when a program is loaded into memory 628 from a removable storage medium such as a floppy disk, or two-way, as when components of electronic device 612 send information over bus 618 to one another.
[0133] Electronic device 612 typically includes a variety of computer device readable media. Such media can be any available media that is localized or remote to electronic device 612, and includes both volatile and nonvolatile media, removable and non-removable media.
[0134] Memory 628 can include computer device readable media in the form of volatile memory, such as random access memory (RAM) 630 and / or cache memory 632. Electronic device 612 can further include other removable / non-removable, volatile / non-volatile computer device storage media. By way of example only, storage system 634 can be provided for reading from and writing to a non-removable, non-volatile magnetic media (not shown and typically called a "hard drive"). Figure 8 Although not shown, a magnetic hard disk drive can also be used for reading from and writing to a removable, non-volatile magnetic media (e.g., a "floppy disk"), and an optical disk drive can be used for reading from and writing to a removable, non-volatile optical media (e.g., a CD-ROM, DVD-ROM, or other optical media). Figure 8 In such instances, each drive might also be connected to bus 618 via one or more data media interfaces. As will be further depicted and described below, memory 628 can include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the application.
[0135] Program / utility 640 having a set (at least one) of program modules 642 can be stored in memory 628 by way of example, and not limitation, as well as an operating system, one or more application programs, other program modules, and program data, each of which
[0136] The electronic device 612 can also communicate with one or more external devices 614 such as a keyboard or a pointing device, displays 624, etc.; other devices such as a storage device (removable and / or non-removable); and so forth. This Figure 8 communication occurs via the input and output (I / O) interfaces 622. Still yet, the electronic device 612 can communicate with one or more networks, such as one or more local area networks (LANs) ; one or more metropolitan area networks (MANs) ; one or more wide area networks (WANs) ; and / or one or more networks that are publicly accessible such as the Internet. As shown, the network adapter 620 communicates with the other components of the electronic device 612 via the bus 618. It should be understood that although not shown, other hardware and / or software components could be used in conjunction with the electronic device 612. These include, but are not limited to, microcode, device drivers, redundant processing units, external disk drive arrays, RAID devices, tape drives, and data archival storage devices, etc.
[0137] The processor 616 executes instructions and manipulates data and is only one of several components used in a functional electronic device. Multiple processors can be provided to accelerate processing, in particular when the components of the electronic device 612 are provided in the distributed computing environment. Additionally, the memory 628 can be a dynamic random access memory (DRAM), or other such memory or data storage.
[0138] An embodiment of the present application provides a storage medium containing computer executable instructions, which when executed by a computer processor, are used to perform a relationship determining method, comprising:
[0139] Setting an associated address hierarchy for each theoretical area unit obtained by area division;
[0140] Determining the minimum administrative unit in the display page of each map hierarchy in the electronic map;
[0141] According to the matching result of the minimum administrative unit and the theoretical area unit, establishing a hierarchy correlation relationship between the address hierarchy and the map hierarchy;
[0142] According to the address hierarchy associated with the theoretical area unit, the hierarchy correlation relationship, and the number of image collectors within the area range of the theoretical area unit, constructing an information correlation relationship of the map hierarchy, the theoretical area unit, and the number of image collectors.
[0143] Or implementing the image collector number determining method provided by an embodiment of the present application, comprising:
[0144] Obtaining a target map hierarchy input by a user.
[0145] Determine a target area unit associated with a target map level and a number of image collectors located within a range of the target area unit based on information association, wherein the information association is determined according to the relationship determination method in any of the embodiments of the present application.
[0146] The computer storage medium of the embodiments of the present application can adopt any combination of one or more computer readable storage media. The computer readable storage medium can be a computer readable signal storage medium or a computer readable storage medium. The computer readable storage medium may, for example, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor device, device or device, or any combination of the above. More specific examples (non-exhaustive list) of computer readable storage media include: electrical connection with one or more conductive wires, portable computer disk, hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above. In the embodiments of the present application, the computer readable storage medium can be any tangible storage medium containing or storing a program that can be used by or in conjunction with an instruction execution device, device or device.
[0147] The computer readable signal storage medium can include a data signal propagating in a baseband or as a carrier wave part of a carrier wave, in which a computer readable program code is carried. Such a propagating data signal can take various forms, including but not limited to electromagnetic signals, optical signals or any suitable combination of the above. The computer readable signal storage medium can also be any computer readable storage medium other than the computer readable storage medium, which can send, propagate or transmit programs for use by or in conjunction with an instruction execution device, device or device.
[0148] The program code contained on the computer readable storage medium can be transmitted in any suitable storage medium, including but not limited to wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0149] Computer program code for carrying out operations of the present application can be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code can execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection can be made to an external computer (for example, through the Internet using an Internet Service Provider).
[0150] It is to be understood that the above description is directed to the preferred embodiments and that those skilled in the art will be able to devise various modifications which, although not specifically described herein, embody the principles of the application and are included within the spirit and scope of the application. Accordingly, while the preferred embodiments have been described above, those skilled in the art will understand that they are not to be limited to the preferred embodiments, but are to include all such embodiments falling within the scope of the application as defined by the appended claims.
Claims
1. A relationship determination method characterized by, The method comprises: setting an associated address level for each theoretical regional unit obtained by administrative division; determining the smallest administrative unit in the display page of each map level in the electronic map; establishing a level association relationship between the address level and the map level according to the matching result of the smallest administrative unit and each theoretical regional unit; constructing an information association relationship among the map level, the theoretical regional unit and the number of image collectors in the region of each theoretical regional unit according to the address level associated with the theoretical regional unit, the level association relationship and the number of image collectors in the region of each theoretical regional unit; wherein the number of image collectors in the region of each theoretical regional unit is counted according to the position information of the image collector, specifically comprising: in the position information of the image collector, determining the actual regional unit under the address level associated with the theoretical regional unit and the image collector identifier; wherein the determination process of the address level associated with each actual regional unit comprises: finding the theoretical regional unit matched with the actual regional unit, and taking the address level associated with the theoretical regional unit as the address level associated with the actual regional unit; counting the number of image collectors under the condition that the actual regional unit is consistent with the theoretical regional unit; the determination process of the position information of the image collector comprises: determining the detailed address of the image collector according to the latitude and longitude information, and the detailed address comprises the actual regional unit, and the position information of the image collector is composed of the image collector identifier, the actual regional unit in the detailed address of the image collector and the associated address level.
2. The method of claim 1, wherein, determining the smallest administrative unit in the display page of each map level in the electronic map, comprising: performing text recognition on the display page of each map level in the electronic map; determining the smallest administrative unit from the administrative unit obtained by text recognition according to the level of the theoretical regional unit obtained by administrative division.
3. The method of claim 1, wherein, establishing a level association relationship between the address level and the map level according to the matching result of the smallest administrative unit and each theoretical regional unit, comprising: if the smallest administrative unit is matched with any theoretical regional unit, a level association relationship is established between the map level corresponding to the smallest administrative unit and the address level associated with the theoretical regional unit.
4. The method of claim 1, wherein, constructing an information association relationship among the map level, the theoretical regional unit and the number of image collectors in the region of each theoretical regional unit according to the address level associated with the theoretical regional unit, the level association relationship and the number of image collectors in the region of each theoretical regional unit, comprising: for each theoretical regional unit, determining the map level corresponding to the theoretical regional unit based on the address level associated with the theoretical regional unit and the level association relationship; determining the number of image collectors in the region of the theoretical regional unit according to the position information of the image collector; constructing an information association relationship among the theoretical regional unit, the corresponding map level and the number of image collectors.
5. The method of claim 1, wherein, determining the address level associated with the actual regional unit included in the address of the image collector, comprising: The address of the image collector is divided by administrative region to obtain an actual region unit; According to the address level associated with each theoretical region unit, an address level associated with the actual region unit is determined.
6. The method according to any one of claims 1-5, characterized in that, The method is executed by a backend server.
7. An image acquirer number determination method characterized by comprising: The method comprises: Obtaining a target map level input by a user; Based on the information association relationship, a target region unit associated with the target map level and the number of image collectors located within the region range of the target region unit are determined, wherein the information association relationship is determined by the relationship determination method according to any one of claims 1-6.
8. The method of claim 7, wherein, After determining the target region unit associated with the target map level and the number of image collectors located within the region range of the target region unit, the method further comprises: Displaying the image collectors within the region range of the target region unit on an electronic map; or, Aggregating the image collectors within the region range of the target region unit into one display point, labeling the number of image collectors on the display point, and displaying on an electronic map.
9. A relationship determining apparatus characterized by comprising: The device comprises: An address level determination module for setting an associated address level for each theoretical region unit obtained by administrative region division; A minimum administrative unit determination module for determining the minimum administrative unit in the display page of each map level in an electronic map; A level association relationship determination module for establishing a level association relationship between the address level and the map level according to the matching result of the minimum administrative unit and the theoretical region unit; An information association relationship determination module for constructing an information association relationship among the map level, the theoretical region unit, and the number of image collectors within the region range of the theoretical region unit according to the address level associated with the theoretical region unit, the level association relationship, and the number of image collectors within the region range of the theoretical region unit; Wherein, the number of image collectors within the region range of each theoretical region unit is counted according to the position information of the image collector, specifically including: In the position information of the image collector, the actual region unit and the image collector identifier under the address level associated with the theoretical region unit are determined; wherein the determination process of the address level associated with each actual region unit includes: finding a theoretical region unit matched with the actual region unit, and taking the address level associated with the theoretical region unit as the address level associated with the actual region unit; Counting the number of image collectors under the condition that the actual region unit is consistent with the theoretical region unit; The determination process of the position information of the image collector includes: determining the detailed address of the image collector according to the latitude and longitude information, and the detailed address includes the actual region unit, and the position information of the image collector is composed of the image collector identifier, the actual region unit in the detailed address of the image collector, and the associated address level.
10. An image acquirer number determination apparatus characterized by comprising: The device comprises: A target map level acquisition module for obtaining a target map level input by a user; An image collector quantity determination module is configured to determine a target area unit associated with a target map level and a quantity of image collectors located within a range of the target area unit based on an information association relationship, wherein the information association relationship is determined by the relationship determination method according to any one of claims 1-6.
11. An electronic device, comprising: The electronic device includes: one or more processors; memory for storing one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors implement the relationship determination method according to any one of claims 1-6, or implement the image collector quantity determination method according to claim 7 or 8.
12. A computer readable storage medium having stored thereon a computer program, characterized in that, The program is executed by the processor to implement the relationship determination method according to any one of claims 1-6, or implement the image collector quantity determination method according to claim 7 or 8.
Citation Information
Patent Citations
Method and device for displaying dynamic map
CN103136232A