Resource cataloging method, resource directory tree generation method, device and electronic equipment

By automatically determining the mount nodes of video points in the video surveillance system using resource directory trees and cataloging rules, the problem of low manual mount efficiency in the existing technology is solved, and efficient automatic mount of video points is achieved.

CN119226565BActive Publication Date: 2025-04-18HANGZHOU HIKVISION SYST TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411724382.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-11-28
Publication Date
2025-04-18
Estimated Expiration
2044-11-28

AI Technical Summary

Technical Problem

In the prior art, the cataloging of video points requires a large amount of manual mount, resulting in inefficiency.

Method used

By determining the target information of the video point based on at least two cataloging rules of the resource directory tree, the target information of the video point is determined, and the node corresponding to the video point is determined from the resource directory tree. The node with the lowest level is used as the target mounting node, and the automatic mounting of the video point is realized.

Benefits of technology

It improves the mount efficiency of video points, reduces manual participation, saves human resources, and improves the generation efficiency of resource directory trees.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119226565B_ABST
    Figure CN119226565B_ABST
Patent Text Reader

Abstract

The present application is applicable to the field of video surveillance technology, and provides a resource cataloging method, a resource directory tree generation method, a device, and an electronic device. The resource cataloging method includes: determining the target information of a video point based on at least two cataloging rules of a resource directory tree; the target information is information related to the cataloging rules; based on each of the cataloging rules and the target information, determining each node corresponding to the video point from the resource directory tree, and determining the node with the lowest level among the nodes corresponding to the video point as the target mounting node; mounting the video point on the target mounting node. The present application can improve the mounting efficiency of video points.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of video surveillance technology, and in particular relates to a resource cataloging method, a resource directory tree generation method, a device and an electronic device. Background Art

[0002] With the continuous development of urban digitalization, the number of video points gathered by a city's video aggregation platform has reached hundreds of thousands or even millions. These numerous video points are gathered by different platforms at the lower level. Since the cataloging methods of different platforms at the lower level are different, after being aggregated to the upper-level platform, the video catalog directory will be chaotic. In order to facilitate users to find relevant video points better and faster when using video resources (such as video surveillance equipment connected to the IoT platform), it is necessary to catalog resources for tens of thousands of video points.

[0003] Currently, the video points in the resource catalog are manually mounted to the corresponding directory area. This manual mounting method consumes a lot of human resources and has low mounting efficiency. Summary of the invention

[0004] The embodiments of the present application provide a resource cataloging method, a resource directory tree generation method, a device and an electronic device, which can improve the mounting efficiency of video points.

[0005] In a first aspect, an embodiment of the present application provides a resource cataloging method, including:

[0006] Determine target information of the video point based on at least two cataloging rules of the resource directory tree; the target information is information related to the cataloging rules;

[0007] Based on the cataloging rules and the target information, determine the nodes corresponding to the video points from the resource directory tree, and determine the lowest-level node among the nodes corresponding to the video points as the target mounting node;

[0008] Mount the video point to the target mounting node.

[0009] In an embodiment of the present application, based on at least two cataloging rules of the resource directory tree, the target information of the video point can be determined. The target information is information related to the cataloging rules. Therefore, based on the cataloging rules and the target information, the nodes corresponding to the video point can be determined from the resource directory tree. The lower the level of the node, the more accurately the information represented by it can be located to the video location. Therefore, the node with the lowest level among the nodes corresponding to the video point can be determined as the target mounting node, and the video point can be mounted on the target mounting node, thereby realizing automatic mounting of the video point. The above process does not require human participation, thereby improving the mounting efficiency of the video point.

[0010] In a second aspect, an embodiment of the present application provides a method for generating a resource directory tree, comprising:

[0011] Determining at least two cataloging rules, the cataloging information required by each cataloging rule, and the hierarchical relationship between each of the cataloging rules;

[0012] A resource directory tree is generated based on each of the cataloging rules, the cataloging information required by each of the cataloging rules, and the hierarchical relationship between each of the cataloging rules.

[0013] In the embodiment of the present application, by determining at least two cataloging rules, the cataloging information required by each cataloging rule, and the hierarchical relationship between each cataloging rule, a resource directory tree can be automatically generated based on each cataloging rule, the cataloging information required by each cataloging rule, and the hierarchical relationship between each cataloging rule. Compared with manually creating a resource directory tree, this solution is more flexible and efficient, can save labor costs, and improve the efficiency of generating a resource directory tree.

[0014] In a third aspect, an embodiment of the present application provides a resource cataloging device, including:

[0015] An information determination module, used to determine target information of a video point based on at least two cataloging rules of a resource directory tree; the target information is information related to the cataloging rules;

[0016] A mounting determination module, for determining each node corresponding to the video point from the resource directory tree based on each of the cataloging rules and the target information, and determining the node with the lowest level among the nodes corresponding to the video point as the target mounting node;

[0017] The resource mounting module is used to mount the video point to the target mounting node.

[0018] In a fourth aspect, an embodiment of the present application provides a resource directory tree generation device, including:

[0019] A cataloging determination module, used to determine at least two cataloging rules, the cataloging information required for each cataloging rule, and the hierarchical relationship between each of the cataloging rules;

[0020] The directory tree generation module is used to generate a resource directory tree based on each of the cataloging rules, the cataloging information required by each of the cataloging rules, and the hierarchical relationship between each of the cataloging rules.

[0021] In the fifth aspect, an embodiment of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the electronic device implements the resource cataloging method described in the first aspect above, or implements the resource directory tree generation method described in the second aspect above.

[0022] In a sixth 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 computer, the computer program implements the resource cataloging method described in the first aspect above, or implements the resource directory tree generation method described in the second aspect above.

[0023] In a seventh aspect, an embodiment of the present application provides a computer program product, including a computer program. When the computer program is run, the resource cataloging method described in the first aspect or the resource directory tree generation method described in the second aspect is executed.

[0024] It can be understood that the beneficial effects of the third to seventh aspects can be found in the relevant descriptions of the first and second aspects, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] 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.

[0026] Figure 1 It is a flowchart of a resource cataloging method provided in an embodiment of the present application;

[0027] Figure 2 It is a flowchart of a method for determining each node corresponding to a video point provided in an embodiment of the present application;

[0028] Figure 3 It is a flowchart of a method for generating a resource directory tree provided in an embodiment of the present application;

[0029] Figure 4 This is an example diagram of generating a resource directory tree;

[0030] Figure 5 It is a flowchart of a method for generating a resource directory tree provided in an embodiment of the present application;

[0031] Figure 6-1 This is an example diagram of the subdirectory tree corresponding to the administrative division rules;

[0032] Figure 6-2 This is an example diagram of the subdirectory tree corresponding to the label rule;

[0033] Figure 7 This is an example diagram of a resource directory tree;

[0034] Figure 8 This is an example diagram of the change process of the mounting node of the video point provided in the embodiment of the present application;

[0035] Fig. 9 is a schematic diagram of the structure of a resource cataloging device provided in an embodiment of the present application;

[0036] Fig.10 It is a structural diagram of a resource directory tree generating device provided in an embodiment of the present application;

[0037] Fig.11 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0038] 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.

[0039] 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.

[0040] 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.

[0041] 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.

[0042] 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.

[0043] 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.

[0044] The resource cataloging method and resource directory tree generation method provided in the embodiments of the present application can be applied to electronic devices such as mobile phones, tablet computers, laptop computers, ultra-mobile personal computers (UMPCs), netbooks, personal digital assistants (PDAs), etc. The embodiments of the present application do not impose any restrictions on the specific types of electronic devices.

[0045] See also Figure 1 , Figure 1 The flowchart of the resource cataloging method provided in the embodiment of the present application is shown, which is applied to an electronic device. As an example but not a limitation, the method includes the following steps:

[0046] Step 101, determining target information of a video point based on at least two cataloging rules of a resource directory tree.

[0047] The target information is information related to the cataloging rules. The cataloging rules are used to generate a resource directory tree.

[0048] As an example but not a limitation, the above video points can come from a video aggregation platform, that is, in this application, the electronic device can mount resources on the video points in the video aggregation platform. The video aggregation platform is a low-cost, highly scalable, highly compatible, and high-performance remote real-time video service platform provided to users in network environments such as the Internet, virtual private networks (VPN), 4G / 5G networks, and local area networks.

[0049] The resource directory tree may refer to a tree structure of resource mounting, and each node of the resource directory tree may mount a video point.

[0050] In one embodiment, the cataloging rules of the resource directory tree may be at least two of administrative division rules, label rules, industry rules, and management unit rules.

[0051] Among them, the administrative division rule may refer to the rule for generating a resource directory tree according to the administrative division. The tag rule may refer to the rule for generating a resource directory tree according to the tag. The industry rule may refer to the rule for generating a resource directory tree according to the industry. The management unit rule may refer to the rule for generating a resource directory tree according to the management unit.

[0052] The information related to the video point and the administrative division rules includes but is not limited to the location information of the video point (such as the latitude and longitude information of the video point), the national standard code of the point, and other information that can locate the administrative division to which the video point belongs. The first six digits of the national standard code of the point are the administrative district code, which is used to identify the county-level administrative area. When the latitude and longitude information of the video point exists in the target information, the latitude and longitude information can be combined with the spatial surface data of each administrative division to locate the administrative division to which the video point belongs. The town and street administrative division can be located based on the latitude and longitude information; when the latitude and longitude information of the video point does not exist in the target information, the district and county administrative division to which the video point belongs can be located based on the first six digits of the international code of the point. Among them, the spatial surface data of the administrative area is the boundary data of the administrative area on the electronic map. If the latitude and longitude information of the video point is within the range of the spatial surface data of a certain administrative division, it can be determined that the video point is located within the administrative division.

[0053] The information related to the video point and the labeling rule includes but is not limited to the label of the video point. The label of the video point can refer to the business classification of the video point. For example, if a video point belongs to a subway station, a school, etc., then the label of the video point is a subway station, a school, etc.

[0054] Information related to the video point and industry rules includes but is not limited to the industry to which the video point belongs. For example, the industry to which a video point belongs is the public security industry or the information technology service industry.

[0055] The information related to the video point and the management unit rules includes but is not limited to the unit to which the video point belongs. For example, the unit to which a certain video point belongs is the Water Conservancy Bureau or the Education Bureau.

[0056] Step 102, based on the cataloging rules and target information, determine the nodes corresponding to the video points from the resource directory tree, and determine the lowest-level node among the nodes corresponding to the video points as the target mounting node.

[0057] Since the target information of the video point is related to the cataloging rules, and the nodes of the resource directory tree are related to the cataloging rules, based on the cataloging rules and the target information, the nodes corresponding to the video point can be found from the resource directory tree, and the hierarchical relationship of each node can be determined. Among them, each node corresponding to the video point can refer to a node that matches the target information of the video point.

[0058] As an example, the target information of the video point is the latitude and longitude information of the video point. Based on the latitude and longitude information of the video point, it is determined that the video point is in Binjiang District of Hangzhou City. Then, it can be determined that the node representing Hangzhou City and the node representing Binjiang District in the resource directory tree are both nodes corresponding to the video point, and the level of the node representing Hangzhou City is higher than the level of the node representing Binjiang District.

[0059] When there are more than two nodes with the lowest level in the nodes corresponding to the video point, all nodes with the lowest level can be used as target mounting nodes, that is, the video point can be mounted on multiple target mounting nodes. For example, a video point located near a subway station can also monitor the road next to it, and both the subway station and the road belong to the sub-tag of traffic. In this case, the video point can be mounted on the node corresponding to the subway station and the node corresponding to the road respectively.

[0060] In a possible implementation, the electronic device may Figure 2 Steps 201 to 203 in the method determine the nodes corresponding to the video points.

[0061] Step 201, determining whether there is sub-target information related to each cataloging rule in the target information.

[0062] Among them, the sub-target information related to the cataloging rules may refer to the information related to the cataloging rules. It is called sub-target information for the convenience of description. This application does not impose any restrictions on the name of the information related to the cataloging rules.

[0063] As an example but not limitation, the cataloging rules of the resource directory tree include administrative division rules and label rules, then step 201 may refer to determining whether there is sub-target information related to the administrative division rules and whether there is sub-target information related to the label rules in the target information of the video point.

[0064] When there are at least two cataloging rules, the target information may contain sub-target information related to each cataloging rule, or may not contain sub-target information related to at least one of the cataloging rules. Therefore, when determining each node corresponding to the video point, the above step 201 needs to be performed first.

[0065] As an example but not a limitation, for a label rule, if a video point is not labeled or the labeled label does not match the label type in the label rule, then there is no sub-target information related to the label rule in its target information.

[0066] Step 202: If there is sub-target information related to each cataloging rule in the target information, then based on each cataloging rule and the corresponding sub-target information, each node corresponding to the video point is determined from the resource directory tree.

[0067] As an example but not limitation, the cataloging rules of the resource directory tree include administrative division rules and label rules. If the target information contains sub-target information related to the administrative division rules and sub-target information related to the label rules, then the nodes corresponding to the video points can be determined from the resource directory tree based on the administrative division rules, the label rules, the sub-target information related to the administrative division rules and the sub-target information related to the label rules.

[0068] In a possible implementation, based on each cataloging rule and corresponding sub-target information, each node corresponding to the video point is determined from the resource directory tree, including:

[0069] Based on the sub-target information corresponding to each cataloging rule, determine whether there is a node matching the corresponding sub-target information in the node corresponding to each cataloging rule in the resource directory tree;

[0070] If there are nodes matching the sub-target information corresponding to each cataloging rule, then nodes located on the same branch among the nodes matching the sub-target information corresponding to each cataloging rule are determined to be the nodes corresponding to the video point positions;

[0071] If there is no node matching the sub-target information corresponding to the candidate cataloging rule and there is a node matching the sub-related information corresponding to each remaining cataloging rule, then the nodes located on the same branch among the nodes matching the sub-target information corresponding to each remaining cataloging rule are determined to be the nodes corresponding to the video points.

[0072] The candidate cataloging rule is the cataloging rule corresponding to the lowest-level node in the resource directory tree, and the remaining cataloging rules are the cataloging rules other than the candidate cataloging rule among at least two cataloging rules.

[0073] For any cataloging rule, the electronic device can match the cataloging information represented by the node corresponding to the cataloging rule in the resource directory tree with the corresponding sub-target information; if there is a node whose represented cataloging information matches the corresponding sub-target information in the node corresponding to the cataloging rule in the resource directory tree, then the node is determined to be the node that matches the sub-target information corresponding to the cataloging rule; if there is no node whose represented cataloging information matches the corresponding sub-target information in the node corresponding to the cataloging rule in the resource directory tree, then it is determined that there is no node that matches the corresponding sub-target information in the node corresponding to the cataloging rule in the resource directory tree.

[0074] Since the same cataloging rule may have nodes representing the same cataloging information on different branches of the resource directory tree, in order to accurately find the target mount node from the resource directory tree, it is necessary to use the nodes located on the same branch among the nodes matching the corresponding sub-target information as the nodes corresponding to the video points.

[0075] As an example but not a limitation, the cataloging rules of the resource directory tree include administrative division rules and labeling rules. The resource directory tree includes two branches. One branch includes nodes representing Hangzhou City, nodes representing Binjiang District, and nodes representing traffic from the root node to the leaf nodes, and the other branch includes nodes representing Hangzhou City, nodes representing West Lake District, and nodes representing traffic from the root node to the leaf nodes. For video point A, the nodes that match the sub-target information corresponding to the administrative division rules are the nodes representing Hangzhou City and the nodes representing Binjiang District; the nodes that match the sub-target information corresponding to the labeling rules are the nodes representing traffic. There are nodes representing traffic on both branches of the resource directory tree. In this case, the nodes representing Hangzhou City, the nodes representing West Lake District, and the nodes representing traffic located in the same branch are determined to be the nodes corresponding to video point A.

[0076] Step 203, if there is no sub-target information related to the candidate cataloging rule in the target information and there is sub-target information related to each remaining cataloging rule, then based on each remaining cataloging rule and the corresponding sub-related information, determine each node corresponding to the video point from the resource directory tree.

[0077] As an example but not limitation, the cataloging rules of the resource directory tree include administrative division rules and label rules. The level of the node corresponding to the administrative division rule in the resource directory tree is higher than the level of the node corresponding to the label rule in the resource directory tree. In this case, the label rule is a candidate cataloging rule and the administrative division rule is a remaining cataloging rule.

[0078] In a possible implementation, based on the remaining cataloging rules and the corresponding sub-related information, determining the nodes corresponding to the video points from the resource directory tree includes:

[0079] Based on the sub-target information corresponding to each remaining cataloging rule, determining whether there is a node matching the corresponding sub-target information in the nodes corresponding to each remaining cataloging rule in the resource directory tree;

[0080] If there are nodes matching the sub-target information corresponding to each remaining cataloging rule, the nodes located on the same branch among the nodes matching the sub-target information corresponding to each remaining cataloging rule are determined to be the nodes corresponding to the video points.

[0081] For any remaining cataloging rule, the electronic device can match the cataloging information represented by the node corresponding to the remaining cataloging rule in the resource directory tree with the corresponding sub-target information; if there is a node whose represented cataloging information matches the corresponding sub-target information in the node corresponding to the remaining cataloging rule in the resource directory tree, then the node is determined to be the node that matches the sub-target information corresponding to the remaining cataloging rule; if there is no node whose represented cataloging information matches the corresponding sub-target information in the node corresponding to the remaining cataloging rule in the resource directory tree, then it is determined that there is no node that matches the corresponding sub-target information in the node corresponding to the remaining cataloging rule in the resource directory tree.

[0082] Since the same remaining cataloging rule may have nodes representing the same cataloging information on different branches of the resource directory tree, in order to accurately find the target mounting node from the resource directory tree, it is necessary to use the nodes located on the same branch among the nodes matching the corresponding sub-target information as the nodes corresponding to the video points.

[0083] In order to find the target mounting node more accurately and quickly, in another possible implementation, the electronic device may also determine the nodes corresponding to the video point from the resource directory tree based on the cataloging rules, the hierarchical relationship between the cataloging rules, and the target information, and determine the target mounting node with the lowest level among the nodes corresponding to the video point. Its implementation scheme may include: if there is sub-target information related to the first cataloging rule in the target information, then based on the first cataloging rule and the corresponding sub-target information, determine the first nodes corresponding to the video point from the resource directory tree, the first node is the node that matches the sub-target information corresponding to the first cataloging rule, and determine the node with the lowest level among the first nodes as the target mounting node; take the second cataloging rule whose level is after the first cataloging rule as the first cataloging rule; determine whether there is sub-target information related to the first cataloging rule in the target information; if there is sub-target information related to the first cataloging rule in the target information, then based on the first cataloging rule and the sub-target information related to the first cataloging rule, Starting from the next node of the target mount node in the resource directory tree, search for each second node corresponding to the video point, and update the target mount node to the node with the lowest level among the second nodes; determine whether there is a second cataloging rule, the second cataloging rule is a cataloging rule in the cataloging rules of the resource directory tree that is not used to determine the target mount node; if there is a second cataloging rule, the cataloging rule in the second cataloging rule that is located after the first cataloging rule is used as the first cataloging rule, and return to execute the step of determining whether there is sub-target information related to the first cataloging rule in the target information and subsequent steps, until there is no second cataloging rule or there is no sub-target information related to the first cataloging rule in the target information. Step 103, mount the video point on the target mount node.

[0084] The above-mentioned mounting the video point on the target mounting node may refer to associating the video point with the target mounting node.

[0085] After a video point is mounted on the target mounting node, if the target information of the video point changes (for example, the latitude and longitude information of the video point may be incorrect during the previous calibration, and the incorrect longitude and latitude information is corrected, or the label name of the video point is modified, the label of the video point is cancelled, and a new label is added to the video point, etc.), these changes may cause the mounting node of the video point in the resource directory to change.

[0086] In response to the above-mentioned situation where the target information changes, in order to mount the video point to the node that best matches it on the resource directory tree, in one embodiment, after mounting the video point to the target mounting node, the electronic device can monitor whether the target information has changed through the message queue service; if the target information is monitored to have changed, the latest mounting node of the video point on the resource directory tree is determined based on the cataloging rules and the changed target information; if the latest mounting node is different from the target mounting node, the video point is mounted to the latest mounting node, and the mounting of the video point on the target mounting node is canceled, thereby realizing automatic update of resource mounting.

[0087] In an embodiment of the present application, based on at least two cataloging rules of the resource directory tree, the target information of the video point can be determined. The target information is information related to the cataloging rules. Therefore, based on the cataloging rules and the target information, the nodes corresponding to the video point can be determined from the resource directory tree. The lower the level of the node, the more accurately the information represented by it can be located to the video location. Therefore, the node with the lowest level among the nodes corresponding to the video point can be determined as the target mounting node, and the video point can be mounted on the target mounting node, thereby realizing automatic mounting of the video point. The above process does not require human participation, thereby improving the mounting efficiency of the video point.

[0088] See also Figure 3 , Figure 3 A flow chart of a method for generating a resource directory tree provided in an embodiment of the present application is shown, which is applied to an electronic device. As an example but not a limitation, the method includes the following steps:

[0089] Step 301, determining at least two cataloging rules, the cataloging information required by each cataloging rule, and the hierarchical relationship between the cataloging rules.

[0090] In one embodiment, the cataloging rules of the resource directory tree may be at least two of administrative division rules, label rules, industry rules, and management unit rules.

[0091] In a possible implementation, the electronic device may determine at least two cataloging rules based on the industry scenario of the resource directory tree, wherein the industry scenario of the resource directory tree may refer to a usage scenario or an application scenario of the resource directory tree.

[0092] The electronic device can pre-store the correspondence between different industry scenarios and cataloging rules, and each industry scenario in the correspondence corresponds to at least two cataloging rules. On this basis, the electronic device can determine at least two cataloging rules corresponding to the industry scenario of the resource directory tree from the correspondence based on the industry scenario of the resource directory tree. Optionally, the hierarchical relationship between the cataloging rules corresponding to each industry scenario can also be pre-set in the above correspondence, or the user can specify the hierarchical relationship between the cataloging rules corresponding to each industry scenario, which is not limited in this application.

[0093] As an example but not limitation, if the industry scenario of the resource directory tree is the emergency industry, it can be determined from the above correspondence that the cataloging rules corresponding to the emergency industry include administrative division rules and label rules, and the hierarchical relationship between the two rules is that the level of the administrative division rules is higher than the level of the label rules; if the industry scenario of the resource directory tree is a general industry, it can be determined from the above correspondence that the cataloging rules corresponding to the general industry include administrative division rules, industry rules and label rules, and the hierarchical relationship between the three rules is that the level of the administrative division rules is higher than the level of the industry rules, and the level of the industry rules is higher than the level of the label rules.

[0094] In one embodiment, when the cataloging rule is a tag rule, the electronic device can determine the cataloging information required for the tag rule based on the industry scenario of the resource directory tree, so that the cataloging information related to the industry scenario of the resource directory tree can be filtered out from a large amount of cataloging information related to the tag rule. The cataloging information is the cataloging information required for the tag rule.

[0095] As an example but not limitation, the industry scenario of the resource directory tree is the emergency industry, and it can be determined that the cataloging information required by the tag rules corresponding to the emergency industry can be tags related to the emergency industry.

[0096] In another possible implementation, the user may select at least two cataloging rules of the resource directory tree and specify the hierarchical relationship between the cataloging rules.

[0097] like Figure 4 The following is an example of generating a resource directory tree. Figure 4 In the interface shown, users can select the cataloging rules used to generate the resource directory tree from the four cataloging rules of "Administrative Division", "Management Unit", "Industry" and "Tag". Figure 4 The two cataloging rules "Administrative Division" and "Tag" are checked in turn, that is, when generating the resource directory tree, the level of "Administrative Division" is higher than that of "Tag". Figure 4, the hierarchical relationship between the two cataloging rules "Administrative Division" and "Label" can be changed by clicking the "Move Down" or "Move Up" option in the Figure 4 The "Generate" option in the , can generate a resource directory tree based on the two cataloging rules of "Administrative Division" and "Tag" with one click. Figure 4 You can return to the previous step by clicking the "Previous step" option in Figure 4 You can cancel the generation of the resource directory tree by clicking the "Cancel" option in the dialog box.

[0098] As an example but not a limitation, the cataloging rules of the resource directory tree are administrative division rules and labeling rules. If the video points of a city (such as Hangzhou) are mounted on the resource directory tree, then a resource directory tree corresponding to Hangzhou can be generated. When generating the resource directory tree, the cataloging information required for the administrative division rules can be the prefecture-level administrative divisions of Hangzhou (i.e. Hangzhou), the district and county administrative divisions of Hangzhou (such as Binjiang District and Xihu District), etc., and the cataloging information required for the labeling rules is transportation, the names of subway stations in the district and county administrative divisions of Hangzhou, etc.

[0099] Step 302: Generate a resource directory tree based on each cataloging rule, the cataloging information required by each cataloging rule, and the hierarchical relationship between each cataloging rule.

[0100] The nodes in the resource directory tree represent a cataloging information required by the corresponding cataloging rule. The level of the nodes corresponding to each cataloging rule in the resource directory tree is determined by the hierarchical relationship between the cataloging rules.

[0101] Electronic devices can automatically generate a resource directory tree through various cataloging rules, the cataloging information required by each cataloging rule, and the hierarchical relationship between each cataloging rule. On this basis, all video points of the video aggregation platform can be automatically mounted according to the cataloging rules used when generating the resource directory tree and the hierarchical relationship between each cataloging rule. Compared with manual creation of resource directory trees and manual mounting, this solution is more flexible and efficient, can save labor costs, and improve the efficiency of generating resource directory trees and mounting video points.

[0102] In a possible implementation, the electronic device may generate a resource directory tree through steps 501 to 503 .

[0103] Step 501 : for any cataloging rule, based on the cataloging rule and the cataloging information required by the cataloging rule, determine the hierarchical relationship of each node corresponding to the cataloging rule, each node corresponding to the cataloging rule represents a cataloging information corresponding to the cataloging rule.

[0104] Before determining the hierarchical relationship of each target node corresponding to the cataloging rule, the electronic device can set at least one level included in the cataloging rule; and match the cataloging information required by the cataloging rule with the level included in the cataloging rule to obtain the hierarchical relationship of each node corresponding to the cataloging rule.

[0105] Optionally, the present application does not limit the number of levels included in each cataloging rule, which can be set according to scenario requirements.

[0106] As an example but not limitation, the administrative division rules may include two levels, which may be prefecture-level administrative divisions and district-county administrative divisions, respectively, and the level of the prefecture-level administrative divisions is higher than the level of the district-county administrative divisions. The cataloging information required for the administrative division rules is the prefecture-level administrative divisions of Hangzhou and the district-county administrative divisions of Hangzhou (for example, Binjiang District and Xihu District). By matching the cataloging information required for the administrative division rules with the two levels contained in the administrative division rules, it can be obtained that the nodes corresponding to the administrative division rules are the nodes representing Hangzhou, the nodes representing Binjiang District, and the nodes representing Xihu District, and the hierarchical relationship between the three nodes is that the level of the node representing Hangzhou is higher than the level of the node representing Binjiang District, and also higher than the level of the node representing Xihu District, and the level of the node representing Binjiang District is the same as the level of the node representing Xihu District.

[0107] Of course, it is understandable that administrative divisions can also include three levels: prefecture-level administrative divisions, district-county administrative divisions, and town-street administrative divisions, and the prefecture-level administrative divisions are higher than the district-county administrative divisions, and the district-county administrative divisions are higher than the town-street administrative divisions. Label rules can include two levels, which can be transportation and subway stations, respectively, and the transportation level is higher than the subway station level, that is, the subway station is a sub-label of transportation. Industry rules and management unit rules can both include one level.

[0108] Step 502: Generate a subdirectory tree corresponding to the cataloging rule based on the hierarchical relationship of each node corresponding to the cataloging rule.

[0109] Among them, each node in the above sub-directory tree is a node corresponding to the corresponding cataloging rule.

[0110] Take administrative division rules and label rules as an example. When generating the subdirectory tree corresponding to administrative division rules, the cataloging information required by administrative division rules can be the prefecture-level administrative divisions of Hangzhou City (i.e. Hangzhou City), the district-county administrative divisions of Hangzhou City (such as Binjiang District and Xihu District), etc. Hangzhou City, Binjiang District and Xihu District each correspond to a node, and the level of the node representing Hangzhou City is higher than the level of the node representing Binjiang District, and also higher than the level of the node representing Xihu District. For example, Figure 6-1The following is an example of a sub-directory tree corresponding to an administrative division rule. When generating a sub-directory tree corresponding to a label rule, the cataloging information required by the label rule may be transportation, the names of subway stations in the district and county administrative divisions of Hangzhou (e.g., subway station A and subway station B), etc. Transportation and subway stations each correspond to a node, and the level of the node representing transportation is higher than the level of the node representing subway station A, and also higher than the level of the node representing subway station B, such as Figure 6-2 The following is an example of a subdirectory tree corresponding to a label rule.

[0111] Step 503: Generate a resource directory tree based on the hierarchical relationship between the cataloging rules and the sub-directory trees corresponding to the cataloging rules.

[0112] Based on the hierarchical relationship between the cataloging rules, the electronic device can determine the hierarchical relationship between the sub-directory trees corresponding to the cataloging rules, and can generate a resource directory tree based on the hierarchical relationship between the sub-directory trees corresponding to the cataloging rules.

[0113] In one possible implementation, for any alternative cataloging rule, the electronic device connects the root node in the sub-directory tree corresponding to the alternative cataloging rule to the leaf node in the sub-directory tree corresponding to the cataloging rule of the previous level based on the hierarchical relationship between the cataloging rules, and the alternative cataloging rule is a cataloging rule other than the cataloging rule with the highest level among at least two cataloging rules; after the root nodes in the sub-directory trees corresponding to all the alternative cataloging rules are connected to the leaf nodes in the sub-directory trees corresponding to the cataloging rules of the previous level, a resource directory tree is generated.

[0114] like Figure 7 Shown is a sample diagram of a resource directory tree. Figure 7 The resource directory tree in is based on Figure 6-1 The subdirectory tree corresponding to the administrative division rules in Figure 6-2 The resource directory tree generated by the subdirectory tree corresponding to the tag rules in .

[0115] In one possible implementation, after generating a resource directory tree, the electronic device may also monitor whether the cataloging information has changed (for example, a label or administrative division has changed) through a message queue service. If a change in the cataloging information is detected, the resource directory tree is updated based on the cataloging rules and the changed cataloging information, thereby achieving dynamic adjustment of the resource directory tree.

[0116] In one embodiment, taking administrative division rules and label rules as examples, the electronic device may include a resource directory service, a label service, a message queue service, and a resource cataloging service. Based on these four services, a resource directory tree can be generated and the mounting of video resources can be realized. The resource directory service is mainly used to provide a resource directory tree creation interface, a video point mounting interface, and a resource directory tree query interface. The label service is mainly used to label video points. The message queue service is mainly used to monitor changes in target information. The resource cataloging service is mainly used to determine the target mounting node and synchronize the target mounting node to the resource directory service. The resource directory service realizes the mounting of video resources based on the target mounting node.

[0117] like Figure 8 The following is an example diagram of the change process of the mounting node of a video point. When the longitude and latitude information of a video point changes, the resource directory service can send a message to the message queue service that the longitude and latitude have changed. The resource catalog service can obtain the corresponding longitude and latitude change notification from the message queue service and determine the new mounting node based on the changed longitude and latitude information. If the new mounting node is different from the target mounting node, the new mounting node is sent to the resource directory service, and the resource directory service mounts the video resource to the latest mounting node. When modifying the label name of a video point, the label service can send a label change message to the message queue service. The resource catalog service can obtain the corresponding label change notification from the message queue service and determine whether the resource directory tree is associated with the changed label. If the changed label is associated, the new mounting node is determined based on the changed label. If the new mounting node is different from the target mounting node, the new mounting node is sent to the resource directory service, and the resource directory service mounts the video resource to the latest mounting node. When adding a new tag to a video point, the tag service can send a message about the new tag to the message queue service. The resource catalog server can obtain the corresponding tag addition notification from the message queue service and determine whether the resource directory tree is associated with the new tag. If so, the new mounting node is determined based on the new tag. If the new mounting node is different from the target mounting node, the new mounting node is sent to the resource directory service, and the resource directory service mounts the video resource to the latest mounting node. When canceling the tag of a video point, the tag service can send a tag cancellation notification to the message queue service and determine whether the video point is mounted on the node corresponding to the tag. If it is mounted on the node corresponding to the tag, the mounting of the video point on the node is canceled.

[0118] In one embodiment, the software implementing this solution can be called resource cataloging software, which can be integrated in a video convergence platform. The electronic device is installed with the video convergence platform. By running the resource cataloging software in the video convergence platform, the electronic device can automatically generate a resource directory tree and realize automatic mounting of video points, thereby improving the efficiency of generating the resource directory tree and mounting the video points, and also improving the operational efficiency of the video convergence platform, and can help users quickly establish a catalog directory of video points to meet the catalog query needs of users. Among them, after the video point is mounted on the target mounting node, the resource directory tree and the video points mounted on the resource directory tree together constitute the catalog directory of the video point.

[0119] As an example but not limitation, when the resource is mounted for the first time in the resource directory tree, the above-mentioned resource cataloging software can be used to determine the target mounting node of all video points of the video aggregation platform, and generate a comma-separated values ​​(CSV) file containing the target mounting nodes of all video points, and send the CSV file to the resource directory service for mounting of all video points.

[0120] 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.

[0121] Corresponding to the resource cataloging method described in the above embodiment, Fig. 9 A schematic diagram of the structure of a resource cataloging device provided in an embodiment of the present application is shown. For ease of explanation, only the parts related to the embodiment of the present application are shown.

[0122] Reference Fig. 9 , the device comprises:

[0123] The information determination module 901 is used to determine the target information of the video point based on at least two cataloging rules of the resource directory tree; the target information is information related to the cataloging rules;

[0124] The mounting determination module 902 is used to determine the nodes corresponding to the video points from the resource directory tree based on the cataloging rules and the target information, and determine the node with the lowest level among the nodes corresponding to the video points as the target mounting node;

[0125] The resource mounting module 903 is used to mount the video point to the target mounting node.

[0126] Optionally, the mount determination module 902 includes:

[0127] A target determination unit, used for determining whether there is sub-target information related to each of the cataloguing rules in the target information;

[0128] A first determining unit is used to determine each node corresponding to the video point from the resource directory tree based on each cataloging rule and the corresponding sub-target information if the target information contains sub-target information related to each cataloging rule;

[0129] The second determination unit is used to determine each node corresponding to the video point from the resource directory tree based on each of the remaining cataloging rules and the corresponding sub-related information if there is no sub-target information related to the candidate cataloging rule in the target information and there is sub-target information related to each remaining cataloging rule, the candidate cataloging rule is the cataloging rule corresponding to the node with the lowest level in the resource directory tree, and the remaining cataloging rules are cataloging rules other than the candidate cataloging rule in at least two of the cataloging rules.

[0130] Optionally, the first determining unit is specifically configured to:

[0131] Based on the sub-target information corresponding to each of the cataloging rules, determining whether there is a node matching the corresponding sub-target information in the nodes corresponding to each of the cataloging rules in the resource directory tree;

[0132] If there are nodes matching the sub-target information corresponding to each of the cataloging rules, determine that the nodes located on the same branch among the nodes matching the sub-target information corresponding to each of the cataloging rules are the nodes corresponding to the video points;

[0133] If there is no node matching the sub-target information corresponding to the candidate cataloging rule and there is a node matching the sub-related information corresponding to each of the remaining cataloging rules, then the nodes located on the same branch among the nodes matching the sub-target information corresponding to each of the remaining cataloging rules are determined to be the nodes corresponding to the video points.

[0134] Optionally, the second determining unit is specifically configured to:

[0135] Based on the sub-target information corresponding to each of the remaining cataloging rules, determining whether there is a node matching the corresponding sub-target information in the nodes corresponding to each of the remaining cataloging rules in the resource directory tree;

[0136] If there are nodes matching the sub-target information corresponding to each of the remaining cataloging rules, the nodes located on the same branch among the nodes matching the sub-target information corresponding to each of the remaining cataloging rules are determined to be the nodes corresponding to the video points.

[0137] Corresponding to the resource directory tree generation method described in the above embodiment, Fig.10A schematic diagram of the structure of a resource directory tree generating device provided in an embodiment of the present application is shown. For ease of explanation, only the parts related to the embodiment of the present application are shown.

[0138] The catalog determination module 1001 is used to determine at least two catalog rules, the catalog information required by each catalog rule, and the hierarchical relationship between the catalog rules;

[0139] The directory tree generation module 1002 is used to generate a resource directory tree based on each of the cataloging rules, the cataloging information required by each of the cataloging rules, and the hierarchical relationship between each of the cataloging rules.

[0140] Optionally, the directory tree generation module 1002 includes:

[0141] A hierarchical determination unit, configured to determine, for any of the cataloging rules, a hierarchical relationship of each node corresponding to the cataloging rule based on the cataloging rule and the cataloging information required by the cataloging rule, wherein each node corresponding to the cataloging rule represents one of the cataloging information corresponding to the cataloging rule;

[0142] A subdirectory generating unit, configured to generate a subdirectory tree corresponding to the cataloging rule based on the hierarchical relationship of each node corresponding to the cataloging rule;

[0143] The resource generation unit is used to generate the resource directory tree based on the hierarchical relationship between the cataloging rules and the sub-directory trees corresponding to the cataloging rules.

[0144] Optionally, the resource generation unit is specifically used for:

[0145] For any candidate cataloging rule, based on the hierarchical relationship between the cataloging rules, the root node in the sub-directory tree corresponding to the candidate cataloging rule is connected to the leaf node in the sub-directory tree corresponding to the cataloging rule of the previous level, and the candidate cataloging rule is a cataloging rule other than the cataloging rule with the highest level in at least two of the cataloging rules;

[0146] After the root nodes in the sub-directory trees corresponding to all the candidate cataloging rules are connected to the leaf nodes in the sub-directory trees corresponding to the cataloging rules of the corresponding upper level, the resource directory tree is generated.

[0147] Optionally, the above device further comprises:

[0148] A level setting module, used for setting at least one level included in the cataloging rule;

[0149] The above-mentioned level determination unit is specifically used for:

[0150] The cataloging information required by the cataloging rule is matched with the hierarchy contained in the cataloging rule to obtain the hierarchical relationship of each node corresponding to the cataloging rule.

[0151] Optionally, the cataloging rules are at least two of administrative division rules, label rules, industry rules and management unit rules.

[0152] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units 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.

[0153] Fig.11 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Fig.11 As shown, the electronic device 11 of this embodiment includes: at least one processor 1100 ( Fig.11 Only one is shown in the figure), a memory 1101 and a computer program 1102 stored in the memory 1101 and executable on the at least one processor 1100, wherein the processor 1100 implements the steps of any of the above-mentioned method embodiments when executing the computer program 1102.

[0154] The electronic device may include, but is not limited to, a processor 1100 and a memory 1101. Those skilled in the art will appreciate that Fig.11 It is only an example of the electronic device 11 and does not constitute a limitation on the electronic device 11. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, it may also include input and output devices, network access devices, etc.

[0155] The processor 1100 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0156] In some embodiments, the memory 1101 may be an internal storage unit of the electronic device 11, such as a hard disk or memory of the electronic device 11. In other embodiments, the memory 1101 may also be an external storage device of the electronic device 11, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the electronic device 11. Further, the memory 1101 may also include both an internal storage unit of the electronic device 11 and an external storage device. The memory 1101 is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as the program code of the computer program. The memory 1101 may also be used to temporarily store data that has been output or is to be output.

[0157] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0158] An embodiment of the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the electronic device implements the steps in any of the above-mentioned method embodiments.

[0159] An embodiment of the present application further 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 computer, the steps in the above-mentioned method embodiments are implemented.

[0160] An embodiment of the present application provides a computer program product, including a computer program. When the computer program is executed, the steps in the above-mentioned method embodiments are executed.

[0161] 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, and 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 various 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 device / electronic device, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electric carrier signal, a telecommunication signal, and a 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.

[0162] 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.

[0163] 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.

[0164] In the embodiments provided in the present application, it should be understood that the disclosed devices / electronic devices and methods can be implemented in other ways. For example, the device / electronic device embodiments described above are merely schematic. For example, the division of the 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.

[0165] 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.

[0166] The embodiments described above 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, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such 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 resource cataloging method, characterized in that: Applied to electronic devices, the electronic devices run resource cataloging software, the resource cataloging software provides resource directory services, label services, message queue services and resource cataloging services, including: Determine target information of the video point based on at least two cataloging rules of the resource directory tree; the target information is information related to the cataloging rules; Based on the cataloging rules and the target information, determine the nodes corresponding to the video points from the resource directory tree, and determine the lowest-level node among the nodes corresponding to the video points as the target mounting node; Mounting the video point to the target mounting node; The step of determining each node corresponding to the video point from the resource directory tree based on each of the cataloging rules and the target information includes: Determining whether there is sub-target information related to each of the cataloging rules in the target information; If the target information contains sub-target information related to each of the cataloging rules, then based on each of the cataloging rules and the corresponding sub-target information, determine each node corresponding to the video point from the resource directory tree; If there is no sub-target information related to the candidate cataloging rule in the target information and there is sub-target information related to each remaining cataloging rule, then based on each remaining cataloging rule and the corresponding sub-related information, each node corresponding to the video point is determined from the resource directory tree, the candidate cataloging rule is the cataloging rule corresponding to the node with the lowest level in the resource directory tree, and the remaining cataloging rules are the cataloging rules other than the candidate cataloging rule in at least two of the cataloging rules; When the longitude and latitude information of the video point changes, the resource directory service sends a message of the longitude and latitude change to the message queue service, the resource catalog service obtains the corresponding longitude and latitude change notification from the message queue service, and determines a new mounting node based on the changed longitude and latitude information. If the new mounting node is different from the target mounting node, the new mounting node is sent to the resource directory service, and the resource directory service mounts the video point to the new mounting node; Or, when modifying the tag name of the video point, the tag service sends a message that the tag has changed to the message queue service, and the resource catalog service obtains the corresponding tag change notification from the message queue service. If the resource directory tree is associated with the changed tag, a new mount node is determined based on the changed tag. If the new mount node is different from the target mount node, the new mount node is sent to the resource directory service, and the resource directory service mounts the video point to the new mount node. Or, when adding a label to the video location, the label service sends a message of adding a label to the message queue service, and the resource catalog service obtains the corresponding label addition notification from the message queue service. If the resource directory tree is associated with the newly added label, a new mounting node is determined based on the newly added label. If the new mounting node is different from the target mounting node, the new mounting node is sent to the resource directory service, and the resource directory service mounts the video location to the new mounting node. Alternatively, when canceling the label of the video point, the label service sends a label cancellation message to the message queue service, and the resource cataloging service obtains the corresponding label cancellation notification from the message queue service. If the video point is mounted on the node corresponding to the label, the mounting of the video point on the node corresponding to the label is canceled.

2. The resource cataloging method according to claim 1, characterized in that: The step of determining each node corresponding to the video point from the resource directory tree based on each of the cataloging rules and the corresponding sub-target information includes: Based on the sub-target information corresponding to each of the cataloging rules, determining whether there is a node matching the corresponding sub-target information in the nodes corresponding to each of the cataloging rules in the resource directory tree; If there are nodes matching the sub-target information corresponding to each of the cataloging rules, determine that the nodes located on the same branch among the nodes matching the sub-target information corresponding to each of the cataloging rules are the nodes corresponding to the video points; If there is no node matching the sub-target information corresponding to the candidate cataloging rule and there is a node matching the sub-related information corresponding to each of the remaining cataloging rules, then the nodes located on the same branch among the nodes matching the sub-target information corresponding to each of the remaining cataloging rules are determined to be the nodes corresponding to the video points.

3. The resource cataloging method according to claim 1, characterized in that: Determining each node corresponding to the video point from the resource directory tree based on each of the remaining cataloging rules and the corresponding sub-related information includes: Based on the sub-target information corresponding to each of the remaining cataloging rules, determining whether there is a node matching the corresponding sub-target information in the nodes corresponding to each of the remaining cataloging rules in the resource directory tree; If there are nodes matching the sub-target information corresponding to each of the remaining cataloging rules, the nodes located on the same branch among the nodes matching the sub-target information corresponding to each of the remaining cataloging rules are determined to be the nodes corresponding to the video points.

4. A method for generating a resource directory tree, characterized in that: The resource directory tree generated by the method is used in a resource cataloging method as claimed in claim 1, comprising: Determining at least two cataloging rules, the cataloging information required by each cataloging rule, and the hierarchical relationship between each of the cataloging rules; A resource directory tree is generated based on each of the cataloging rules, the cataloging information required by each of the cataloging rules, and the hierarchical relationship between each of the cataloging rules.

5. The method for generating a resource directory tree according to claim 4, characterized in that: The generating of a resource directory tree based on each of the cataloging rules, the cataloging information required by each of the cataloging rules, and the hierarchical relationship between each of the cataloging rules includes: For any of the cataloging rules, based on the cataloging rule and the cataloging information required by the cataloging rule, determine the hierarchical relationship of each node corresponding to the cataloging rule, each node corresponding to the cataloging rule represents one of the cataloging information corresponding to the cataloging rule; Based on the hierarchical relationship of each node corresponding to the cataloging rule, generating a subdirectory tree corresponding to the cataloging rule; The resource directory tree is generated based on the hierarchical relationship between the cataloging rules and the sub-directory trees corresponding to the cataloging rules.

6. The method for generating a resource directory tree according to claim 5, characterized in that: The generating the resource directory tree based on the hierarchical relationship between the cataloging rules and the sub-directory trees corresponding to the cataloging rules includes: For any candidate cataloging rule, based on the hierarchical relationship between the cataloging rules, the root node in the sub-directory tree corresponding to the candidate cataloging rule is connected to the leaf node in the sub-directory tree corresponding to the cataloging rule of the previous level, and the candidate cataloging rule is a cataloging rule other than the cataloging rule with the highest level in at least two of the cataloging rules; After the root nodes in the sub-directory trees corresponding to all the candidate cataloging rules are connected to the leaf nodes in the sub-directory trees corresponding to the cataloging rules of the corresponding upper level, the resource directory tree is generated.

7. The method for generating a resource directory tree according to claim 5, characterized in that: Before determining the hierarchical relationship of each node corresponding to the cataloging rule, the method further includes: Setting at least one level included in the cataloging rule; The step of determining the hierarchical relationship of each node corresponding to the cataloging rule based on the cataloging rule and the cataloging information required by the cataloging rule includes: The cataloging information required by the cataloging rule is matched with the hierarchy contained in the cataloging rule to obtain the hierarchical relationship of each node corresponding to the cataloging rule.

8. The method for generating a resource directory tree according to any one of claims 4 to 7, characterized in that: The cataloguing rules are at least two of administrative division rules, labeling rules, industry rules and management unit rules.

9. A resource cataloging device, characterized in that: The device is used to execute a resource cataloging method as claimed in claim 1, comprising: An information determination module, used to determine target information of a video point based on at least two cataloging rules of a resource directory tree; the target information is information related to the cataloging rules; A mounting determination module, for determining each node corresponding to the video point from the resource directory tree based on each of the cataloging rules and the target information, and determining the node with the lowest level among the nodes corresponding to the video point as the target mounting node; The resource mounting module is used to mount the video point to the target mounting node.

10. A resource directory tree generation device, characterized in that: The device is used to execute a resource directory tree generation method as claimed in claim 4, comprising: A cataloging determination module, used to determine at least two cataloging rules, the cataloging information required for each cataloging rule, and the hierarchical relationship between each of the cataloging rules; The directory tree generation module is used to generate a resource directory tree based on each of the cataloging rules, the cataloging information required by each of the cataloging rules, and the hierarchical relationship between each of the cataloging rules.

11. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the electronic device implements the resource cataloging method as described in any one of claims 1 to 3, or implements the resource directory tree generation method as described in any one of claims 4 to 8.

Citation Information

Patent Citations

  • Monitoring directory generation method and device

    CN110839140A

  • Monitoring directory sharing method and device

    CN110839142A

  • Catalog compiling method and device

    CN112182138A

  • Data mounting method and device, equipment, storage medium and program product

    CN115718631A