A data analysis method and system
By introducing bus communication and cache allocation mechanisms into the video surveillance AI analysis system, the problem of unbalanced analysis node data is solved, maximum computing power utilization of the system is achieved, and resource waste and overload are avoided.
Patent Information
- Application Number
- CN201911362443.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-12-26
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2039-12-26
AI Technical Summary
In the existing technology, due to the imbalance of target objects in the AI analysis system in the field of video surveillance, some analysis nodes have a waste of computing power or the amount of analysis is too large, and the maximum computing power of the entire system cannot be exerted.
By introducing bus communication and cache allocation mechanisms into the analysis system, each analysis node obtains its own amount of data to be analyzed, and allocates it through the bus cache according to the amount of data, achieving balanced data distribution among analysis nodes.
It effectively balances the data volume of the analysis nodes, maximizes the use of the system's computing resources, and avoids resource waste and overload of the analysis nodes.
Smart Images

Figure CN113051957B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data analysis technology, and in particular, to a data analysis method and system. Background Art
[0002] AI (Artificial Intelligence) technology has made rapid progress, and computing power and algorithms have been greatly improved and enriched. Security manufacturers have made great progress in AI technology in the field of video surveillance, which has played a great role in the implementation of AI and the stable development of society.
[0003] In order to improve the processing speed of images or videos, multiple analysis nodes are generally required to analyze the video stream or image stream simultaneously.
[0004] However, due to the imbalance of target objects in actual use, some analysis nodes may be wasted or the analysis volume of some analysis nodes is too large, and the maximum computing power of the entire analysis system cannot be exerted. Summary of the invention
[0005] The purpose of this application is to provide a data analysis method and system to solve the problem in the prior art that the maximum computing power of the entire analysis system cannot be brought into play when performing data analysis.
[0006] In order to achieve the above purpose, the technical solution adopted in the embodiment of the present application is as follows:
[0007] On the one hand, an embodiment of the present application provides a data analysis method, the method is applied to an analysis system, the analysis system includes at least two analysis nodes, the at least two analysis nodes communicate through a bus, the method includes:
[0008] Each of the analysis nodes obtains its own amount of data to be analyzed;
[0009] Each of the analysis nodes allocates its own amount of data to be analyzed through the cache of the bus according to its own amount of data to be analyzed.
[0010] On the other hand, an embodiment of the present application provides an analysis system, the analysis system comprising at least two analysis nodes, the at least two analysis nodes communicating via a bus;
[0011] Each of the analysis nodes is used to obtain its own amount of data to be analyzed;
[0012] Each of the analysis nodes is further configured to allocate its own amount of data to be analyzed through the cache of the bus according to its own amount of data to be analyzed.
[0013] Compared with the prior art, this application has the following beneficial effects:
[0014] The present application provides a data analysis method, which is applied to an analysis system, wherein the analysis system includes at least two analysis nodes, and the at least two analysis nodes communicate through a bus, and each analysis node obtains its own amount of data to be analyzed; then each analysis node adjusts its own amount of data to be analyzed through the cache of the bus according to its own amount of data to be analyzed. Since the present application can realize that each analysis node adjusts its own amount of data to be analyzed through the cache of the bus, for each analysis node, it can effectively achieve a balance in the amount of data to be analyzed, and thus can exert the maximum computing power of the entire system.
[0015] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0017] Figure 1 A schematic flowchart of a data analysis method provided in an embodiment of the present application.
[0018] Figure 2 A schematic diagram of a module in which analysis nodes provided in an embodiment of the present application are connected via a bus.
[0019] Figure 3 Another schematic diagram of modules in which analysis nodes are connected via a bus according to an embodiment of the present application.
[0020] Figure 4 A schematic diagram of the modules of the analysis system provided in an embodiment of the present application.
[0021] Figure 5 Provided for the embodiments of this application Figure 1 A first schematic flow chart of S104 is shown in FIG.
[0022] Figure 6 Provided for the embodiments of this application Figure 1 A second schematic flow chart of S104 in FIG.
[0023] Figure 7 Provided for the embodiments of this application Figure 1 A third schematic flow chart of S104 in FIG.
[0024] Figure 8Provided in the embodiments of this application Figure 1 A fourth schematic flow chart of S104 in FIG.
[0025] Fig. 9 Another schematic flow chart of the data analysis method provided in an embodiment of the present application.
[0026] In the figure: 200 - analysis system; 210 - first analysis node; 220 - second analysis node; 230 - management node; 240 - data access node; 250 - data center. DETAILED DESCRIPTION
[0027] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations.
[0028] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for which protection is sought, but merely represents selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0029] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of this application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
[0030] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0031] In the description of the present application, it should be noted that the terms "upper", "lower", "inside", "outside", etc. indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, or are the orientations or positional relationships in which the product of the application is usually placed when in use. They are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present application.
[0032] In the description of this application, it is also necessary to explain that, unless otherwise clearly specified and limited, the terms "disposed" and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be an indirect connection through an intermediate medium, or it can be the internal communication of two elements. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.
[0033] In conjunction with the accompanying drawings, some embodiments of the present application are described in detail below. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.
[0034] First embodiment
[0035] As described in the background technology, for the analysis system, due to the imbalance of target objects in actual use, some analysis nodes may be wasted or the analysis volume of some analysis nodes is too large, and the maximum computing power of the entire analysis system cannot be exerted.
[0036] For example, a hierarchical system includes analysis node A and analysis node B, both of which are used for vehicle identification analysis, such as identification analysis of vehicle license plates, and both of which communicate with a management node. The management node configures analysis node A to obtain the video stream captured by camera a for analysis, and configures analysis node B to obtain the video stream captured by camera b for analysis. Due to the uncertainty in the vehicle driving process, it may happen that camera a does not capture any vehicles in a certain period of time, while camera b captures continuous vehicles. Understandably, at this time, analysis node A is in an idle state, while analysis node B is in a full-load working state, that is, at this time, there is a waste of computing power (i.e., analysis capability) of analysis node A, and the analysis volume of analysis node B is too large.
[0037] In view of this, the present application provides a data analysis method, which realizes the allocation of caches of various analysis nodes and buses through a bus, thereby exerting the maximum computing power of the entire analysis system.
[0038] The following is an exemplary description of the data analysis method provided in this application:
[0039] See also Figure 1 As a possible implementation provided by the present application, the method includes:
[0040] S102, each analysis node obtains its own amount of data to be analyzed.
[0041] S104, each analysis node allocates its own data volume to be analyzed through the cache of the bus according to its own data volume to be analyzed.
[0042] It should be noted that in the present application, each analysis node can obtain its own amount of data to be analyzed, and for each analysis node, its own amount of data to be analyzed can be the same or different. For example, the amount of data to be analyzed of analysis node A is 100, that is, there are 100 data to be analyzed in analysis node A, and the amount of data to be analyzed of analysis node B is 0, that is, at this time there is no data to be analyzed in analysis node B and it is in an idle state.
[0043] After each analysis node obtains its own amount of data to be analyzed, the analysis node will also allocate its own amount of data to be analyzed through the bus cache. The allocation described in this application means that for the analysis node, when the amount of data to be processed is large, the excess amount of data to be processed can be sent to the bus cache; and when the amount of data to be processed of the analysis node is small, the analysis node can obtain the data to be analyzed from the bus buffer for processing.
[0044] It should be noted that, since each analysis node is coordinated with the cache of the bus, the present application essentially uses the cache of the bus as a medium to achieve coordination between analysis nodes.
[0045] As a possible implementation of this application, please refer to Figure 2 The analysis nodes described in the present application communicate via a bus, and each analysis node may include a bus module, and the bus module in each analysis node is connected to the bus module in other analysis nodes, thereby realizing communication between the analysis nodes. Moreover, in this implementation, each analysis node includes a bus cache, thereby realizing the deployment between the analysis node and the bus cache.
[0046] As another possible implementation of this application, please refer to Figure 3 The analysis nodes described in the present application communicate via a bus, which means that each analysis node is connected and communicates via a bus, and in this implementation, the cache of the bus can be a fixed cache, for example, the cache of the bus is implemented in the form of a common pool, that is, each analysis node is connected to the common pool via the bus, thereby realizing the allocation between each analysis node and the common pool.
[0047] Also, to manage the analysis nodes, see Figure 4 The analysis system 200 further includes a management node 230, wherein the management node 230 is connected to each analysis node, thereby managing the work of each analysis node. For example, in a certain area, the analysis nodes include A and B, and the sources of the data sources include a, b, c, and d. Then the management node 230 can configure the analysis node A to receive the data sources from a and b, and configure the analysis node B to receive the data sources from c and d, thereby realizing the analysis of all data in the entire area.
[0048] It should be noted that the data source of the analysis node is not fixed. For example, when analysis node A fails, the management node 230 can control analysis node B to receive data sources from a, b, c, and d.
[0049] At the same time, it should be noted that the present application can also use a bus to realize the connection between the management node 230 and the analysis node. For example, a bus module is also installed in the management node 230, and the connection between the management node 230 and the analysis node is realized through the bus module.
[0050] Through the analysis system 200 provided by the present application, the management node 230 and the analysis node can form a bus cluster similar to a distributed bus, which together form a cluster bus. At the same time, through the bus cache, the load balancing of each analysis node is achieved, thereby maximizing the use of system analysis resources.
[0051] As a first implementation of the present application, the analysis node includes a first analysis node 210 and at least one second analysis node 220, see Figure 5 , S104 includes:
[0052] S104-1, the first analysis node determines whether the amount of data to be analyzed is greater than a first threshold, and if so, executes S104-2.
[0053] S104-2, the first analysis node sends the redundant data to be analyzed to the cache of the bus.
[0054] S104-3, the first analysis node and / or the second analysis node determines whether the amount of data to be analyzed by itself is lower than the second threshold, and if so, executes S104-4.
[0055] S104-4, the first analysis node and / or the second analysis node obtains the data to be analyzed from the cache of the bus and performs analysis.
[0056] That is, for any analysis node, when the amount of data to be analyzed is large, it can send excess data to be analyzed to the bus cache, so that other analysis nodes or itself can obtain the data to be analyzed from the bus buffer for analysis when the amount of data to be analyzed is small.
[0057] For example, if the first threshold is set to 100, when the amount of data to be processed of the first analysis node 210 exceeds 100, the first analysis node 210 will send the extra data to be processed to the cache of the bus. If the data source continuously sends data to the first analysis node 210, and the analysis speed of the first analysis node 210 is lower than the speed of inputting data from the data source to the first analysis node 210, the data to be processed of the first analysis node 210 will accumulate. Once the amount of data to be processed exceeds the first threshold, it means that the analysis pressure of the first analysis node 210 is relatively large, and the extra data to be processed needs to be sent to the cache of the bus.
[0058] When a second analysis node 220 is relatively idle, for example, when the second threshold is set to 20, if the amount of data to be processed by the second analysis node 220 is only 5, the second analysis node 220 can obtain the data to be processed sent by the first analysis node 210 from the cache of the bus, and process the data to be processed through the second analysis node 220, thereby achieving load balancing of different analysis nodes and maximizing the analysis capabilities of the analysis nodes in the system. Optionally, when the amount of data to be processed by the second analysis node 220 is greater than or equal to the second threshold, the second analysis node 220 will give priority to processing its own data.
[0059] Of course, the first analysis node 210 can also retrieve the data to be analyzed from the cache of the bus and analyze it when it is relatively idle. That is, when the processing volume of the first analysis node 210 is large, the excess data to be processed is sent to the cache of the bus, and when the first analysis node 210 is in a relatively idle state again, the first analysis node 210 retrieves the previously placed data from the cache of the bus.
[0060] For example, when more data is input from the data source to the first analysis node 210 in a certain period of time, the data to be processed in the first analysis node 210 is accumulated, and the first analysis node 210 sends the redundant data to be processed to the cache of the bus. If the other second analysis nodes 220 are also in a state of large processing volume at this time, the second analysis node 220 will not obtain the data in the bus and analyze it. On this basis, if the data input from the data source to the first analysis node 210 decreases, and when the amount of data to be processed of the first analysis node 210 decreases to the second threshold, the first analysis node 210 will pull the previously stored data to be processed from the cache of the bus.
[0061] It should be noted that in this application, the first threshold and the second threshold of each analysis node may be the same or different, and this application does not impose any restrictions on this. For example, for some analysis nodes, if their analysis capability is relatively poor, the first threshold is relatively low; if their analysis capability is relatively good, the first threshold is relatively high.
[0062] As a possible implementation of the present application, the data source may be a video captured by a video acquisition device. That is, the analysis system 200 provided by the present application also includes a video acquisition device, such as a camera. Of course, the data source may also be other sources, such as a cached video source, etc., and the present application does not make any limitation on this.
[0063] On this basis, see Figure 6 , S104 includes:
[0064] S104-a, the first analysis node obtains the video stream to be analyzed, and preprocesses the video stream to be analyzed to obtain preprocessed picture information to be analyzed.
[0065] S104-b, the first analysis node stores the image information to be analyzed in a local cache.
[0066] S104 - c, when the amount of the image information to be analyzed in the local cache reaches a first threshold, the first analysis node sends the excess image information to be analyzed to the cache of the bus.
[0067] That is, in the present application, the first analysis node 210 can directly obtain the video stream to be analyzed sent by the camera, and convert the video stream to be analyzed into the image information to be analyzed after preprocessing.
[0068] Optionally, the first analysis node 210 may include a bus module, an analysis module, a decoding module, and a local cache module, wherein the decoding module is used to pre-process the received video stream to be analyzed, including but not limited to decoding and cutting out the video stream, that is, converting the video stream into a picture and cutting out the picture.
[0069] For example, the first analysis node 210 is used to analyze the state of the motor vehicle, such as analyzing whether the motor vehicle has violated the rules. When the decoding module performs decoding, the video stream is converted into a picture, and the part of the picture where the motor vehicle appears is cut out. Among them, there may be a situation where no vehicles pass through in a period of time, or there may be a situation where there are many vehicles in a period of time. Alternatively, when face recognition is required, the decoding module will cut out the face while decoding the video stream. At the same time, the decoding module can also cut out multiple types of pictures at the same time, for example, it can simultaneously identify vehicles and faces in the picture.
[0070] After preprocessing and obtaining the preprocessed image information to be analyzed, the analysis module in the analysis node will analyze the image information to be analyzed according to certain rules, such as analyzing whether the vehicle has run a red light.
[0071] Among them, as a possible implementation method, after the analysis module in the first analysis node 210 preprocesses the video stream, the image information to be analyzed obtained after the preprocessing will be stored in the local cache module. And, it can be understood that the local cache module has a certain storage upper limit. For example, the storage upper limit of the local cache module is 1,000 pieces of image information to be analyzed. At the same time, the first threshold and the second threshold described in this embodiment are actually thresholds set for the local cache module. For example, the first threshold is set to 80% of the upper limit of the local cache module, that is, the first threshold is 800, and the second threshold is set to 20% of the upper limit of the local cache module, that is, the second threshold is 200.
[0072] When the amount of image information to be analyzed in the local cache reaches a first threshold, the first analysis node 210 will send the excess image information to be analyzed to the cache of the bus. As an optional implementation of the present application, the local cache module will actively pull the image to be analyzed after being processed by the decoding module. When the image information to be analyzed in the local cache module reaches a first threshold, the local cache module will suspend pulling the image information to be analyzed.
[0073] At this time, if the decoding and cutting module still parses out the image information to be analyzed, the first analysis node 210 will send the image information to be analyzed parsed by the decoding and cutting module to the cache of the bus. That is, during this period of time, the image to be analyzed generated after being processed by the decoding and cutting module will directly enter the cache of the bus, and will not enter the local cache module.
[0074] As a possible implementation method of the present application, after the first analysis node 210 sends the image information to be analyzed to the cache of the bus, there is a second analysis node 220 in an idle state. For example, the number of image information to be analyzed by the second analysis node 220 at this time is 5. At this time, the second analysis node 220 will obtain the image to be analyzed from the cache of the bus and analyze it.
[0075] As another possible implementation method of the present application, after the first analysis node 210 sends the image information to be analyzed to the cache of the bus, the amount of data to be analyzed in the second analysis node 220 is relatively large, so the second analysis node 220 will not obtain data from the cache of the bus. On this basis, if the image information to be analyzed in the local cache module of the first analysis node 210 is continuously consumed and is lower than the second image to be analyzed, the local cache module of the first analysis node 210 will re-take the image to be analyzed from the cache of the bus and analyze it.
[0076] It should be noted that in the present application, the analysis module of the first analysis node 210 will only pull data from the local cache module and analyze it. When the data in the local cache is lower than the second threshold, the local cache module of the first analysis node 210 will obtain data from the cache of the bus.
[0077] Furthermore, based on the above implementation, the first threshold and the second threshold satisfy the relationship:
[0078] LT_high–LT_low ≥ n*m;
[0079] n*m=x+△;
[0080] Among them, LT_high represents the first threshold, LT_low represents the second threshold; n represents the time period for calling the image information to be analyzed from the cache of the bus; m represents the amount of image information to be analyzed called from the cache of the bus per unit time, x represents the amount of image information analyzed by the first analysis node 210 per unit time, and △ represents a preset adjustment factor.
[0081] For example, the time period for the first analysis node 210 to call the image information to be analyzed from the bus cache is 2S, that is, when the image to be analyzed in the local cache module of the first analysis node 210 is lower than the second threshold, the image to be analyzed will be obtained from the bus cache every 2S, and 200 pieces of image information to be processed will be obtained per second.
[0082] Of course, when there are other services in the first analysis node 210 that consume the capacity of the analysis module, the above formula satisfies:
[0083] n*m=x+△-y;
[0084] Where y is the analytical capacity occupied by other businesses.
[0085] Furthermore, as a possible implementation, the bus cache includes multiple sets to store different types of image information. For example, one set is used to store image information to be analyzed related to face recognition, and another set is used to store image information to be analyzed related to vehicles. This application does not make any limitation on this.
[0086] Therefore, in this application, S104-c includes:
[0087] A target set is determined according to the category of the image information to be analyzed, and the image information to be analyzed is stored in the target set.
[0088] That is, when the amount of the image information to be analyzed in the local cache reaches the first threshold, the first analysis node 210 will store the image information to be analyzed processed by the decoding and cutout module into the target set of the bus cache according to the category.
[0089] It can be understood that the analysis node can work according to the category of the analyzed data. For example, there are 10 analysis nodes in total, 5 of which are used to analyze face data and the other 5 are used to analyze vehicle data. In actual use, when the analysis amount of the analysis node used to analyze face data is lower than the second threshold, it can obtain the information to be analyzed from the collection storing the face data.
[0090] At the same time, as another implementation of this application, please refer to Figure 7 , S104 also includes:
[0091] S104-e, when the amount of data to be analyzed of the first analysis node is less than the second threshold, the first analysis node obtains the data to be analyzed from the cache of the bus and analyzes the data to be analyzed, wherein the data to be analyzed is data sent by any second analysis node 220 when the amount of data to be analyzed is greater than the first threshold.
[0092] That is, in the present application, when the amount of data to be analyzed is greater than the first threshold value, any second analysis node 220 can also send the data to be analyzed to the cache of the bus. Furthermore, when the amount of data to be analyzed is less than the second threshold value, the first analysis node 210 can also obtain the amount of data to be analyzed from the cache of the bus, and store the amount of data to be analyzed in the local cache module for processing.
[0093] In other words, in the present application, when the amount of data to be analyzed by any analysis node is large, the data to be analyzed can be sent to the cache of the bus, and then the analysis node processing the same type of data can obtain the data to be analyzed from the cache of the bus for analysis when it is relatively idle.
[0094] Furthermore, as another implementation of the present application, the analysis system 200 further includes a data access node 240, and the data access node 240 communicates with the first analysis node 210 and the second analysis node 220 respectively through a bus.
[0095] It should be noted that there is no order of precedence between S104 - e and S104 - a to S104 - c.
[0096] Among them, the data access node 240 is mainly used for the analysis system 200 to access the front end, other video image acquisition systems, etc. to upload and collect picture data, which is used for secondary intelligent analysis within the analysis system 200.
[0097] On this basis, see Figure 8 , S104 also includes:
[0098] S104-f, when the amount of data to be analyzed of the first analysis node and / or the second analysis node is less than a second threshold, the first analysis node and / or the second analysis node obtains the data to be analyzed from the cache of the bus and analyzes the data to be analyzed, wherein the data to be analyzed is the data in the cache sent by the data access node to the bus.
[0099] That is, when the data access node 240 receives the image information to be analyzed, it will send the image information to be analyzed to the cache of the bus. When the amount of data to be analyzed of the first analysis node 210 is less than the second threshold, or the amount of data to be analyzed of the second analysis node 220 is less than the second threshold, or the amount of data to be analyzed of the first analysis node 210 and the second analysis node 220 is less than the second threshold at the same time, the data sent to the bus cache by the data access node 240 can be obtained from the cache of the bus and analyzed.
[0100] At the same time, it should be noted that, as another possible implementation method in the present application, the analysis node may not include a decoding and cutting-out module. On this basis, the analysis node can only obtain the data to be analyzed from the cache of the bus and perform analysis.
[0101] For example, if the first analysis node 210 does not include a decoding and cutting-out module, then as a possible implementation, the second threshold is set to 1, so that the first analysis node 210 can always obtain the data to be analyzed from the cache of the bus for processing.
[0102] It should be noted that there is no order of precedence between S104-f and S104-a to S104-c and S104-e.
[0103] It should be noted that, as a possible implementation, the analysis system 200 also includes a data center 250, see Fig. 9 , the method further comprises:
[0104] S106 , each analysis node sends the analyzed data to the data center 250 via the bus.
[0105] In the present application, each analysis node can directly put the analysis results into the bus through the bus, for example, into the cache of the bus, and then the data center 250 pulls the relevant data in the bus and completes the storage and other processing. Among them, the data center 250 can be a collection of databases, big data service clusters or cloud storage, local hard disk storage, etc.
[0106] In summary, the present application realizes full-service load balancing of the analysis system 200 by setting a bus, and by means of the bus, local cache, etc. At the same time, by splitting and decoupling the decoding module and the analysis module, the decoding and analysis capability resources of the analysis node are maximized. Moreover, after the cache reaches the threshold of the analysis node, the local decoded image cache can still be processed preferentially, reducing the overhead of pulling images from other parts of the bus.
[0107] Second embodiment
[0108] See also Figure 5 The embodiment of the present application further provides an analysis system 200, the analysis system 200 includes at least two analysis nodes, and the at least two analysis nodes communicate via a bus; wherein,
[0109] Each analysis node is used to obtain its own amount of data to be analyzed.
[0110] Each analysis node is also used to allocate its own data volume to be analyzed through the cache of the bus according to its own data volume to be analyzed.
[0111] Furthermore, the first analysis node 210 is configured to send excess data to be analyzed to a cache of the bus when the amount of data to be analyzed is greater than a first threshold.
[0112] At the same time, the first analysis node 210 and / or the second analysis node 220 is used to obtain the data to be analyzed from the cache of the bus and perform analysis when the amount of the data to be analyzed is lower than the second threshold.
[0113] Of course, the analysis system 200 may also include a management node 230, a data access node 240 and a data center 250, wherein the management node 230 is used to connect to each analysis node and to configure each analysis node. The data access node 240 is used to access the front end, other video image acquisition systems, etc. in the analysis system 200 to upload the collected picture data, which is used for secondary intelligent analysis in the analysis system 200. The data center 250 can be a collection of a database, a big data service cluster and a cloud storage, and the database and the big data service cluster are mainly used for data record storage. Since the first embodiment has already described the data analysis method in detail, this application will not be repeated.
[0114] In summary, the present application provides a data analysis method, which is applied to an analysis system, wherein the analysis system includes at least two analysis nodes, and the at least two analysis nodes communicate through a bus, and each analysis node obtains its own amount of data to be analyzed; then each analysis node adjusts its own amount of data to be analyzed through the cache of the bus according to its own amount of data to be analyzed. Since the present application enables each analysis node to adjust its own amount of data to be analyzed through the cache of the bus, for each analysis node, it can effectively achieve a balance in the amount of data to be analyzed, and thus can exert the maximum computing power of the entire system.
[0115] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
[0116] It will be apparent to those skilled in the art that the present application is not limited to the details of the exemplary embodiments described above, and that the present application can be implemented in other specific forms without departing from the spirit or essential features of the present application. Therefore, the embodiments should be considered exemplary and non-limiting in all respects, and the scope of the present application is defined by the appended claims rather than the above description, and it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims be included in the present application. Any reference numeral in a claim should not be considered as limiting the claim to which it relates.
Claims
1. A data analysis method, characterized in that: The method is applied to an analysis system, the analysis system includes at least two analysis nodes, the at least two analysis nodes communicate via a bus, and the method includes: Each of the analysis nodes obtains its own amount of data to be analyzed; Each of the analysis nodes allocates its own amount of data to be analyzed through the cache of the bus according to its own amount of data to be analyzed; The at least two analysis nodes include at least a first analysis node and a second analysis node, and the step of each of the analysis nodes allocating its own amount of data to be analyzed through the cache of the bus according to its own amount of data to be analyzed includes: When the amount of data to be analyzed by the first analysis node is greater than a first threshold, the first analysis node obtains a video stream to be analyzed, and preprocesses the video stream to be analyzed to obtain preprocessed picture information to be analyzed; The first analysis node stores the image information to be analyzed in a local cache; When the amount of the image information to be analyzed in the local cache reaches a first threshold, the first analysis node sends the excess image information to be analyzed to the cache of the bus; When the amount of data to be analyzed by the first analysis node and / or the second analysis node is lower than a second threshold, the first analysis node and / or the second analysis node obtains the data to be analyzed from the cache of the bus and performs analysis.
2. The data analysis method according to claim 1, characterized in that: The cache of the bus includes multiple sets to store different categories of picture information; when the amount of the picture information to be analyzed in the local cache reaches a first threshold, the first analysis node sends the redundant picture information to be analyzed to the cache of the bus, including: A target set is determined according to the category of the image information to be analyzed, and the image information to be analyzed is stored in the target set.
3. The data analysis method according to claim 1, characterized in that: The first threshold and the second threshold satisfy the relationship: LT_high–LT_low ≥ n*m; n*m=x+△; Among them, LT_high represents the first threshold, LT_low represents the second threshold; n represents the time period for calling the image information to be analyzed from the cache of the bus; m represents the amount of image information to be analyzed called from the cache of the bus per unit time, x represents the amount of image information analyzed by the first analysis node per unit time, and △ represents a preset adjustment factor.
4. The data analysis method according to claim 1, characterized in that: The at least two analysis nodes include at least a first analysis node and a second analysis node, and the step of each of the analysis nodes allocating its own amount of data to be analyzed through the cache of the bus according to its own amount of data to be analyzed includes: When the amount of data to be analyzed of the first analysis node is less than a second threshold, the first analysis node obtains the data to be analyzed from the cache of the bus and analyzes the data to be analyzed, wherein the data to be analyzed is data sent by any one of the second analysis nodes when the amount of data to be analyzed is greater than the first threshold.
5. The data analysis method according to claim 1, characterized in that: The analysis system further includes a data access node, the at least two analysis nodes include at least a first analysis node and a second analysis node, the data access node communicates with the first analysis node and the second analysis node respectively through the bus, and the step of each of the analysis nodes allocating its own amount of data to be analyzed through the cache of the bus according to its own amount of data to be analyzed includes: When the amount of data to be analyzed of the first analysis node and / or the second analysis node is less than a second threshold, the first analysis node and / or the second analysis node obtains the data to be analyzed from the cache of the bus and analyzes the data to be analyzed, wherein the data to be analyzed is the data in the cache sent by the data access node to the bus.
6. The data analysis method according to claim 1, characterized in that: The analysis system further includes a data center, and the method further includes: Each of the analysis nodes sends the analyzed data to the data center via a bus.
7. An analysis system, characterized in that Used to perform the data analysis method according to any one of claims 1 to 6, the analysis system comprising at least two analysis nodes, the at least two analysis nodes communicating via a bus; Each of the analysis nodes is used to obtain its own amount of data to be analyzed; Each of the analysis nodes is further configured to allocate its own amount of data to be analyzed through the cache of the bus according to its own amount of data to be analyzed.
8. The analysis system according to claim 7, characterized in that The at least two analysis nodes include a first analysis node and at least one second analysis node; The first analysis node is used to send excess data to be analyzed to the cache of the bus when the amount of data to be analyzed is greater than a first threshold; The first analysis node and / or the second analysis node is configured to obtain the data to be analyzed from the cache of the bus and perform analysis when the amount of the data to be analyzed of the first analysis node and / or the second analysis node is lower than a second threshold.
