Decision analysis method, device, system and storage medium based on real-time analysis
Through real-time analysis of tunnel videos and construction of characteristic objects, the problem of low processing efficiency of high-definition video surveillance data in low lighting environments in tunnels is solved, and early warning and risk management of potential accidents are achieved.
Patent Information
- Application Number
- CN202410864692.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-01
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2044-07-01
AI Technical Summary
High-definition video surveillance in tunnels requires a large amount of data processing and a reduced amount of effective information in low lighting environments, making it difficult to effectively conduct risk warnings. Comprehensive analysis needs to be carried out in conjunction with other technical means.
Through real-time analysis of tunnel videos, video image groups are obtained for grayscale processing, areas associated with the reference image are selected, feature objects are constructed and their changing trends are tracked to identify and warn potential accidents.
In low lighting environments, the video data processing speed and effective amount of information are improved, early warning of potential accidents in the tunnel is achieved, and accidents and losses are reduced.
Smart Images

Figure CN118397522B
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a decision analysis method, device, system and storage medium based on real-time analysis. Background Art
[0002] Tunnel safety is an important part of driving safety. Driving in tunnels has the characteristics of limited vision, easy accumulation of accidents and difficulty in escape. In order to solve this problem, the transportation department controls traffic flow control, lane control, video monitoring and risk warning. Among them, risk warning has begun to become an effective solution with the application of technical means such as high-definition video and artificial intelligence analysis.
[0003] A more important reason is that risk warning has a certain degree of foresight and can put intervention measures in place in advance when an accident is likely to occur, thereby avoiding the occurrence of accidents or reducing the losses caused by accidents.
[0004] However, high-definition video means a large amount of data processing, and when the lighting environment in the tunnel is poor, the amount of effective information provided by the high-definition video will decrease. At this time, it is necessary to combine other technical means for comprehensive analysis. How to choose appropriate technical means and how to combine them requires further research. Summary of the invention
[0005] The present application provides a decision analysis method, device, system and storage medium based on real-time analysis, which discovers the content included in the current image by comparing the current image with the reference image, and then identifies and classifies the content and gives the analysis results.
[0006] The above-mentioned purpose of the present application is achieved through the following technical solutions:
[0007] In a first aspect, the present application provides a decision analysis method based on real-time analysis, comprising:
[0008] Obtain a video of the coverage area and decompose the video into images arranged sequentially in time series. The images obtained from a video and arranged sequentially in time series are called an image group.
[0009] Performing grayscale processing on the images in the image group to obtain a grayscale reference image;
[0010] selecting a reference image associated with a grayscale reference image;
[0011] Compare the grayscale reference image with the corresponding benchmark image and find the distinguishing area and construct the feature object according to the distinguishing area;
[0012] Classify the feature objects to obtain the types of the feature objects;
[0013] Use the obtained feature object to build a feature network;
[0014] Track the changing trends of feature networks.
[0015] In a possible implementation manner of the first aspect, selecting a reference image associated with the grayscale reference image includes:
[0016] Determine the orientation information of the grayscale reference image to obtain the position information of the grayscale reference image;
[0017] Determine the generation time of the grayscale reference image, which is recorded as time information;
[0018] A reference image associated with the grayscale reference image is selected from a reference image database according to the position information and the time information.
[0019] In a possible implementation manner of the first aspect, comparing the grayscale reference image and the corresponding benchmark image and finding the difference area includes:
[0020] Divide the grayscale reference image into regions to obtain a sub-grayscale reference image;
[0021] The reference image associated with the grayscale reference image is divided into regions in the same manner to obtain a sub-reference image;
[0022] comparing the phase difference between the sub-grayscale reference image and the corresponding sub-reference image;
[0023] Screening and obtaining a sub-grayscale reference image whose phase difference meets the requirement and using the area where the sub-grayscale reference image whose phase difference meets the requirement is located as a distinguishing area;
[0024] The difference degree includes overall similarity and drift similarity.
[0025] In a possible implementation manner of the first aspect, constructing a feature object according to the distinguishing area includes:
[0026] The distinguishing regions are grouped using feature ranges, and there are multiple distinguishing regions within each feature range;
[0027] Distance measurement is performed on the distinguished area, and the distance measurement points are located at the edge position and the non-edge position of the distinguished area;
[0028] Constructs a feature object using the distinguished regions within a feature range.
[0029] In a possible implementation manner of the first aspect, classifying the feature objects includes:
[0030] Construct the plane where each distinguishing area is located to obtain multiple planes;
[0031] Obtaining enclosed areas of multiple planes and calculating the volumes of the enclosed areas;
[0032] Feature objects are classified according to the volume of the enclosed area.
[0033] In a possible implementation manner of the first aspect, constructing a feature network using the obtained feature objects includes:
[0034] Determine a usage location point of the feature object;
[0035] Connect adjacent use location points together. Any two use location points belonging to the same feature object are connected by line segments, and there are no line segments inside the feature object.
[0036] For two use position points belonging to different feature objects, the line segment distance between the two use position points is the shortest;
[0037] Among them, the number of edges of each grid in the feature network is the same.
[0038] In a possible implementation manner of the first aspect, tracking a change trend of the feature network includes:
[0039] Calculate the area change of each grid in the feature network. The area change includes overall change, overall unchanged and regional change.
[0040] When an overall change occurs, the area change speed and the duration of the area change speed of all grids are calculated. When both the area change speed and the duration of the area change speed reach the trigger condition, an early warning is issued;
[0041] When regional changes occur, the area change speed, duration of the area change speed, and area change amount of the corresponding grid are calculated. When the area change speed, duration of the area change speed, and area change amount all reach the trigger conditions, an early warning is issued.
[0042] In a second aspect, the present application provides a decision analysis device based on real-time analysis, comprising:
[0043] A data acquisition unit is used to acquire a video of a coverage area and decompose the video into images arranged sequentially in a time series. The images obtained from a video and arranged sequentially in a time series are called an image group.
[0044] A first data processing unit, configured to perform grayscale processing on the images in the image group to obtain a grayscale reference image;
[0045] A data matching unit, for selecting a reference image associated with a grayscale reference image;
[0046] a data comparison unit, for comparing the grayscale reference image with the corresponding benchmark image and finding a distinguishing area and constructing a feature object according to the distinguishing area;
[0047] A data classification unit is used to classify the feature objects to obtain the types of the feature objects;
[0048] A second data processing unit, used to construct a feature network using the obtained feature objects;
[0049] Tracking unit, used to track the changing trend of feature network.
[0050] In a third aspect, the present application provides a decision analysis system based on real-time analysis, the system comprising:
[0051] one or more memories for storing instructions; and
[0052] One or more processors, used to call and run the instructions from the memory to execute the method as described in the first aspect and any possible implementation of the first aspect.
[0053] In a fourth aspect, the present application provides a computer-readable storage medium, the computer-readable storage medium comprising:
[0054] Program, when the program is executed by a processor, the method described in the first aspect and any possible implementation of the first aspect is executed.
[0055] In a fifth aspect, the present application provides a computer program product, comprising program instructions. When the program instructions are executed by a computing device, the method described in the first aspect and any possible implementation of the first aspect is executed.
[0056] In a sixth aspect, the present application provides a chip system, which includes a processor for implementing the functions involved in the above aspects, for example, generating, receiving, sending, or processing the data and / or information involved in the above methods.
[0057] The chip system may be composed of chips, or may include chips and other discrete devices.
[0058] In a possible design, the chip system also includes a memory, which is used to store necessary program instructions and data. The processor and the memory can be decoupled and respectively set on different devices, connected by wired or wireless means, or the processor and the memory can also be coupled on the same device. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] Figure 1 It is a schematic flowchart of the steps of a decision analysis method provided in this application.
[0060] Figure 2 This is a schematic diagram of regional division provided by this application.
[0061] Figure 3 This is a schematic diagram for dividing different areas provided by the present application.
[0062] Figure 4 This is a schematic diagram provided by the present application for constructing a feature network using the obtained feature objects.
[0063] Figure 5 It is a schematic diagram of a characteristic network provided by this application.
[0064] Figure 6 This is a schematic diagram of the change trend of a characteristic network provided by the present application, in which the arrows indicate the direction of change.
[0065] Figure 7 This is a schematic diagram of the change trend of another characteristic network provided by the present application, in which the arrows indicate the direction of change. DETAILED DESCRIPTION
[0066] In order to more clearly understand the technical solution in this application, the relevant technology is first explained.
[0067] Tunnel video surveillance is to use a camera to record the tunnel, and then get the results through video analysis. There are two ways to analyze video, one is manual analysis and the other is automatic analysis.
[0068] The difficulty of manual analysis lies in the fact that there are many monitoring points and the energy and ability of analysts are limited. Currently, manual analysis is only used in a small number of key areas. Automatic analysis is a solution to address the disadvantages of manual analysis. The advantage of this method is that it can perform batch real-time analysis.
[0069] Some newly built and upgraded tunnels have good lighting conditions and the videos obtained are relatively clear. However, there are still a certain number of tunnels that do not have good lighting conditions. In other words, targeted solutions need to be designed for the videos obtained in these tunnels.
[0070] The technical solution in this application is further described in detail below in conjunction with the accompanying drawings.
[0071] This application discloses a decision analysis method based on real-time analysis, please refer to Figure 1 In some examples, the decision analysis method based on real-time analysis disclosed in this application includes the following steps:
[0072] S101, obtaining a video of a coverage area and decomposing the video into images sequentially arranged in a time series. The images sequentially arranged in a time series obtained from one video are called an image group;
[0073] S102, performing grayscale processing on the images in the image group to obtain a grayscale reference image;
[0074] S103, selecting a reference image associated with the grayscale reference image;
[0075] S104, comparing the grayscale reference image and the corresponding benchmark image to find the difference area and construct a feature object according to the difference area;
[0076] S105, classifying the feature objects to obtain the types of the feature objects;
[0077] S106, constructing a feature network using the obtained feature objects;
[0078] S107, tracking the changing trend of the feature network.
[0079] Specifically, in step S101, a video of the coverage area is obtained and the video is decomposed. The decomposition is to decompose the video into images arranged sequentially in a time series. The images arranged sequentially in a time series obtained from a video are called an image group.
[0080] Generally speaking, the time length corresponding to an image group is 5-10 seconds. The reason for using a fixed time length is that, on the one hand, it takes time to transmit data, and on the other hand, it takes a period of time to analyze the feature objects within the coverage area before the results can be obtained.
[0081] In step S102, grayscale processing is performed on the images in the image group to obtain a grayscale reference image. The purpose of obtaining the grayscale reference image is to increase the data processing speed.
[0082] It should be understood that the usage scenarios of the technical solutions in this application should provide faster data processing speeds to obtain results in a shorter time. Grayscale processing of images can reduce the amount of data contained in the images to a certain extent and obtain faster data processing speeds.
[0083] In step S103, a reference image associated with the grayscale reference image is selected. The reference image here refers to an image obtained by photographing the tunnel when there are no vehicles or pedestrians in the tunnel. The purpose of obtaining the reference image is to discover feature objects in the grayscale reference image by comparison.
[0084] In some possible implementations, a specific method of selecting a reference image associated with a grayscale reference image is as follows:
[0085] The determined orientation information obtains the position information of the grayscale reference image;
[0086] Determine the generation time of the grayscale reference image, which is recorded as time information;
[0087] A reference image associated with the grayscale reference image is selected from a reference image grayscale reference image database according to the orientation information and the time information.
[0088] In the above method, it is necessary to simultaneously obtain the position information and time information of the grayscale reference image. The position information is the orientation of the image acquisition device when the grayscale reference image is obtained, and the time information indicates the working time of the image acquisition device when the grayscale reference image is obtained.
[0089] Finally, a reference image associated with the grayscale reference image is selected from the reference image database through the position information and time information. Regarding the reference image database, the specific explanation is that in the early preparation stage, the image acquisition device will obtain reference images at different times at a given position. These reference images constitute the reference image database. There are no feature objects in the reference images.
[0090] In step S104, the grayscale reference image and the corresponding benchmark image are compared to find the difference area and construct the feature object based on the difference area. The comparison method is used because in a tunnel with insufficient lighting conditions, the vehicle display in the grayscale reference image may not be complete, and there are various conditions such as light exposure and light reflection on the vehicle surface.
[0091] In this case, it is difficult to construct feature objects by identification. Therefore, in this application, the problem is solved by finding the difference area and constructing the feature object according to the difference area. The specific method of comparing the grayscale reference image and the corresponding benchmark image and finding the difference area is as follows:
[0092] Divide the grayscale reference image into regions to obtain a sub-grayscale reference image;
[0093] The reference image associated with the grayscale reference image is divided into regions in the same manner to obtain a sub-reference image;
[0094] comparing the phase difference between the sub-grayscale reference image and the corresponding sub-reference image;
[0095] Screening and obtaining a sub-grayscale reference image whose phase difference meets the requirement and using the area where the sub-grayscale reference image whose phase difference meets the requirement is located as a distinguishing area;
[0096] The difference degree includes overall similarity and drift similarity.
[0097] In the above method, see Figure 2First, a sub-grayscale reference image and a sub-reference image are obtained by region division, and then a distinguishing region is obtained by comparing the phase difference between the sub-grayscale reference image and the corresponding sub-reference image. The specific comparison method is to count the cumulative area of the region where the pixel difference between the sub-grayscale reference image and the corresponding sub-reference image is greater than the allowed value. If the ratio of the cumulative area to the area of the sub-grayscale reference image is greater than or equal to the allowed value, the region where the sub-grayscale reference image is located is taken as the distinguishing region.
[0098] The advantage of the above method is that it uses regional comparison instead of overall comparison to determine the difference area. The advantage of this method is that the processing method is simple and fast, and there is no need to set complex rules. Because the grayscale processing process itself causes the sub-grayscale reference image to lose some information, the impact of this lost information should be considered in the process of obtaining the difference area.
[0099] The amount and location of lost information are somewhat uncontrollable, which will have a negative impact on boundary description and comparison during the overall comparison process, mainly manifested in unclear boundaries and boundary drift, making it more difficult to identify feature objects, or even making them unrecognizable.
[0100] The present application directly uses a regional comparison method, which can ignore the influence of the above-mentioned adverse factors to a certain extent, and also has the advantages of low processing difficulty and high processing speed.
[0101] The overall similarity in the phase difference refers to that the grayscale values at corresponding positions of the sub-grayscale reference image and the corresponding sub-reference image are the same or similar; the drift similarity in the phase difference refers to that the grayscale values at corresponding positions of the sub-grayscale reference image and the corresponding sub-reference image are different, but the difference values are the same or similar.
[0102] The size of the area division (length x width) directly determines the degree of refinement of the feature object. The specific size is determined by the staff based on the actual situation on site.
[0103] In some examples, feature objects are constructed based on distinct regions:
[0104] The distinguishing regions are grouped using feature ranges, and there are multiple distinguishing regions within each feature range;
[0105] Distance measurement is performed on the distinguished area, and the distance measurement points are located at the edge position and the non-edge position of the distinguished area;
[0106] Constructs a feature object using the distinguished regions within a feature range.
[0107] In the above method, it is necessary to use laser radar to measure the distance, and then combine the measured distance to supplement the description of the distinguished area. It should be understood that in theory, the distance of the distinguished area can be obtained through binocular vision processing.
[0108] However, in an environment with poor lighting conditions, binocular vision processing will be limited, and even the distance cannot be measured. Therefore, in this application, laser radar is directly used for distance measurement. After using the feature range to group the distinguishing areas and obtain the distance values of the distinguishing areas, the distinguishing areas within a feature range can be used to construct feature objects.
[0109] First of all, it should be noted that there are multiple distinct regions within each feature range. For the division of distinct regions, please refer to Figure 3 , using a fixed length division method, specifically, it is divided according to the vehicle length. The vehicle length has multiple values such as 3.5 meters, 3.7 meters, 4.2 meters, 4.5 meters, 4.75 meters, etc. The vehicle length here is only a limited example and does not limit this application.
[0110] After selecting a vehicle length, the feature range will be created in a step-by-step manner, with each step distance generally controlled at around 0.2-0.5 meters. During the feature range creation process, each vehicle length is used once.
[0111] In each feature range obtained, the distinguishing area within the feature range will be used to construct a feature object. The specific method is to transfer the distinguishing area to the model. If the conformity between the distinguishing area and the model meets the requirements, the model will be used as the feature object.
[0112] In the above manner, feature objects can be obtained, and the number of times the feature objects are constructed can be counted. In order to improve the accuracy of constructing feature objects, the number of times all feature objects are constructed can be sorted, and feature objects with fewer construction times (set manually) can be excluded.
[0113] In step S105, the feature objects are classified to obtain the types of the feature objects.
[0114] For example, the number of difference regions within a feature range is four, and these four difference regions have shapes and distances, that is, these four difference regions can be described in three-dimensional space. Then these four difference regions are compared with the model (created in advance), and the four difference regions are described as the model with the highest degree of consistency.
[0115] As for the method of judging the degree of fit, it is through distance judgment. The distance (or distances) between the moved distinction area and a surface at the corresponding position on the model should be within the allowable range, which is a pre-set value.
[0116] Feature objects are mainly divided into three categories: vehicles, personnel and others. The model has two categories: vehicles and personnel, and other categories are determined using the elimination method.
[0117] In addition, this application also provides a method for classifying feature objects, as follows:
[0118] Construct the plane where each distinguishing area is located to obtain multiple planes;
[0119] Obtaining enclosed areas of multiple planes and calculating the volumes of the enclosed areas;
[0120] Feature objects are classified according to the volume of the enclosed area.
[0121] The above method is to classify by volume determination. Since there is an obvious difference between the volume of vehicles and the volume of people, people and vehicles can be preliminarily classified by volume classification, and then the model can be used for accurate classification.
[0122] This method allows for accurate model selection, because vehicle and personnel models can be directly selected. All models need to be compared only when volume classification is not possible.
[0123] See also Figure 4 and Figure 5 In step S106, the obtained feature objects are used to construct a feature network, specifically in the following manner:
[0124] Determine a usage location point of the feature object;
[0125] Connect adjacent use location points together. Any two use location points belonging to the same feature object are connected by line segments, and there are no line segments inside the feature object.
[0126] For two use position points belonging to different feature objects, the line segment distance between the two use position points is the shortest;
[0127] Among them, the number of edges of each grid in the feature network is the same.
[0128] This method fixes the connection method of the usage location points.
[0129] In some possible implementations, each grid has three sides.
[0130] Generally speaking, the use position point is a point selected on the edge of the difference area, which can be any point on the difference area, or the center point of the difference area; of course, the difference area can also be directly used as a use position point.
[0131] In step S107, the changing trend of the feature network is tracked, and the specific contents include:
[0132] Calculate the area change of each grid in the feature network. The area change includes overall change, overall no change and regional change.
[0133] See also Figure 6 , when an overall change occurs, the area change speed and the duration of the area change speed of all grids are calculated. When both the area change speed and the duration of the area change speed reach the trigger condition, an early warning is issued;
[0134] See also Figure 7 When regional changes occur, the area change speed, duration of the area change speed, and area change amount of the corresponding grid are calculated. When the area change speed, duration of the area change speed, and area change amount all reach the trigger conditions, an early warning is issued.
[0135] It should be noted that both overall changes and regional changes are manifested as a reduction in the grid. A reduction in the grid means that the distance between vehicles in the tunnel is reduced, which is an important cause of accidents. Therefore, in this application, an early warning is issued based on the change in the grid.
[0136] The early warning method is to issue an alarm. After receiving the alarm, the staff will promptly retrieve the video at the location corresponding to the alarm for analysis, and then take targeted measures; alternatively, the alarm can also be sent to other equipment in the tunnel, such as warning lights and prompters, to remind the drivers of vehicles in the tunnel.
[0137] The present application also provides a decision analysis device based on real-time analysis, comprising:
[0138] A data acquisition unit is used to acquire a video of a coverage area and decompose the video into images arranged sequentially in a time series. The images obtained from a video and arranged sequentially in a time series are called an image group.
[0139] A first data processing unit, configured to perform grayscale processing on the images in the image group to obtain a grayscale reference image;
[0140] A data matching unit, for selecting a reference image associated with a grayscale reference image;
[0141] a data comparison unit, for comparing the grayscale reference image with the corresponding benchmark image and finding a distinguishing area and constructing a feature object according to the distinguishing area;
[0142] A data classification unit is used to classify the feature objects to obtain the types of the feature objects;
[0143] A second data processing unit, used to construct a feature network using the obtained feature objects;
[0144] Tracking unit, used to track the changing trend of feature network.
[0145] Furthermore, it also includes:
[0146] A first determining unit, used to determine the orientation information of the grayscale reference image to obtain the position information of the grayscale reference image;
[0147] A second determining unit is used to determine the generation time of the grayscale reference image, which is recorded as time information;
[0148] The selection unit is used to select a reference image associated with the grayscale reference image in the reference image database according to the orientation information and the time information.
[0149] Furthermore, it also includes:
[0150] A first region division unit, used for performing region division on the grayscale reference image to obtain a sub-grayscale reference image;
[0151] A second region division unit is used to divide the reference image associated with the grayscale reference image into regions in the same manner to obtain a sub-reference image;
[0152] A comparison unit, used for comparing the phase difference between the sub-grayscale reference image and the corresponding sub-reference image;
[0153] A screening unit, used for screening to obtain a sub-grayscale reference image whose phase difference meets the requirement and taking the area where the sub-grayscale reference image whose phase difference meets the requirement is located as a distinguishing area;
[0154] The difference degree includes overall similarity and drift similarity.
[0155] Furthermore, it also includes:
[0156] A grouping unit, used to group the distinguishing regions using a feature range, wherein there are multiple distinguishing regions within each feature range;
[0157] A distance measuring unit is used to measure the distance of the distinguished area, and the distance measuring points are located at the edge position and the non-edge position of the distinguished area;
[0158] The feature object construction unit is used to construct a feature object using a distinguishing area within a feature range.
[0159] Furthermore, it also includes:
[0160] A construction unit is used to construct a plane where each distinguishing area is located, and obtain multiple planes;
[0161] A volume calculation unit, used for obtaining enclosed areas of multiple planes and calculating the volumes of the enclosed areas;
[0162] The classification unit is used to classify feature objects according to the volume of the enclosed area.
[0163] Furthermore, it also includes:
[0164] A third determining unit, used to determine a usage location point of the feature object;
[0165] A connection unit is used to connect adjacent use location points together. Any two use location points belonging to the same feature object are connected by a line segment and there is no line segment inside the feature object.
[0166] For two use position points belonging to different feature objects, the line segment distance between the two use position points is the shortest;
[0167] Among them, the number of edges of each grid in the feature network is the same.
[0168] Furthermore, it also includes:
[0169] A calculation unit is used to calculate the area change of each grid in the feature network. The area change includes overall change, overall unchanged and regional change.
[0170] The first warning unit is used to calculate the area change speed and the duration of the area change speed of all grids when an overall change occurs, and issue a warning when the area change speed and the duration of the area change speed both reach the trigger condition;
[0171] The second warning unit is used to calculate the area change speed, duration of the area change speed, and the area change amount of the corresponding grid when an area change occurs. When the area change speed, duration of the area change speed, and the area change amount all reach the trigger conditions, a warning is issued.
[0172] In one example, the unit in any of the above devices can be one or more integrated circuits configured to implement the above methods, such as: one or more application specific integrated circuits (ASICs), or, one or more digital signal processors (DSPs), or, one or more field programmable gate arrays (FPGAs), or a combination of at least two of these integrated circuit forms.
[0173] For another example, when the units in the device can be implemented in the form of a processing element scheduling program, the processing element can be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call a program. For another example, these units can be integrated together and implemented in the form of a system-on-a-chip (SOC).
[0174] Various objects such as various messages / information / equipment / network elements / systems / devices / actions / operations / processes / concepts that may appear in this application are named. It can be understood that these specific names do not constitute a limitation on the relevant objects. The names assigned may change with factors such as scenarios, contexts or usage habits. The understanding of the technical meaning of the technical terms in this application should be mainly determined from the functions and technical effects embodied / executed in the technical scheme.
[0175] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0176] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the 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.
[0177] 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.
[0178] 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.
[0179] It should also be understood that in various embodiments of the present application, the first, second, etc. are only used to indicate that multiple objects are different. For example, the first time window and the second time window are only used to indicate different time windows. They should not have any impact on the time window itself, and the first, second, etc. mentioned above should not impose any limitations on the embodiments of the present application.
[0180] It should also be understood that in the various embodiments of the present application, unless otherwise specified or there is a logical conflict, the terms and / or descriptions between different embodiments are consistent and can be referenced to each other, and the technical features in different embodiments can be combined to form new embodiments according to their internal logical relationships.
[0181] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a computer-readable storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned computer-readable storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0182] The present application also provides a decision analysis system based on real-time analysis, the system comprising:
[0183] one or more memories for storing instructions; and
[0184] One or more processors are used to call and run the instructions from the memory to execute the method as described above.
[0185] The present application also provides a computer program product, which includes instructions. When the instructions are executed, the decision analysis system (terminal device and network device) performs operations of the decision analysis system (terminal device and network device) corresponding to the above method.
[0186] The present application also provides a chip system, which includes a processor for implementing the functions involved in the above content, such as generating, receiving, sending, or processing the data and / or information involved in the above method.
[0187] The chip system may be composed of chips, or may include chips and other discrete devices.
[0188] The processor mentioned in any of the above places can be a CPU, a microprocessor, an ASIC, or one or more integrated circuits for executing programs for controlling the above-mentioned feedback information transmission method.
[0189] In a possible design, the chip system also includes a memory, which is used to store necessary program instructions and data. The processor and the memory can be decoupled and respectively set on different devices, connected by wire or wireless means to support the chip system to implement various functions in the above embodiments. Alternatively, the processor and the memory can also be coupled on the same device.
[0190] Optionally, the computer instructions are stored in a memory.
[0191] Optionally, the memory is a storage unit within the chip, such as a register, a cache, etc. The memory can also be a storage unit within the terminal located outside the chip, such as a ROM or other types of static storage devices that can store static information and instructions, RAM, etc.
[0192] It can be understood that the memory in the present application can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories.
[0193] The non-volatile memory may be a ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), or a flash memory.
[0194] The volatile memory may be a RAM, which is used as an external cache. There are many different types of RAM, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), and direct memory bus RAM.
[0195] The embodiments of this specific implementation method are all preferred embodiments of the present application, and are not intended to limit the protection scope of the present application. Therefore, all equivalent changes made based on the structure, shape, and principle of the present application should be included in the protection scope of the present application.
Claims
1. A decision analysis method based on real-time analysis, characterized in that: include: Obtain a video of the coverage area and decompose the video into images arranged sequentially in time series. The images obtained from a video and arranged sequentially in time series are called an image group. Performing grayscale processing on the images in the image group to obtain a grayscale reference image; Selecting a reference image associated with the grayscale reference image, the reference image being an image obtained by photographing the tunnel when there are no vehicles or pedestrians in the tunnel; Compare the grayscale reference image with the corresponding benchmark image and find the distinguishing area and construct the feature object according to the distinguishing area; Classify the feature objects to obtain the types of the feature objects; Use the obtained feature object to build a feature network; Track the changing trends of feature networks; The base image selected to be associated with the grayscale reference image includes: Determine the orientation information of the grayscale reference image to obtain the position information of the grayscale reference image; Determine the generation time of the grayscale reference image, which is recorded as time information; Selecting a reference image associated with the grayscale reference image in a reference image database according to the orientation information and the time information; Using the obtained feature object to construct a feature network includes: Determine a usage location point of the feature object; Connect adjacent use location points together. Any two use location points belonging to the same feature object are connected by line segments, and there are no line segments inside the feature object. For two use position points belonging to different feature objects, the line segment distance between the two use position points is the shortest; Among them, the number of edges of each grid in the feature network is the same; Tracking the changing trends of feature networks includes: Calculate the area change of each grid in the feature network. The area change includes overall change, overall no change and regional change. When an overall change occurs, the area change speed and the duration of the area change speed of all grids are calculated. When both the area change speed and the duration of the area change speed reach the trigger condition, an early warning is issued; When regional changes occur, the area change speed, duration of the area change speed, and area change amount of the corresponding grid are calculated. When the area change speed, duration of the area change speed, and area change amount all reach the trigger conditions, an early warning is issued.
2. The decision analysis method based on real-time analysis according to claim 1, characterized in that: Compare the grayscale reference image to the corresponding benchmark image and find the following areas of difference: Divide the grayscale reference image into regions to obtain a sub-grayscale reference image; The reference image associated with the grayscale reference image is divided into regions in the same manner to obtain a sub-reference image; comparing the phase difference between the sub-grayscale reference image and the corresponding sub-reference image; Screening and obtaining a sub-grayscale reference image whose phase difference meets the requirement and using the area where the sub-grayscale reference image whose phase difference meets the requirement is located as a distinguishing area; The difference degree includes overall similarity and drift similarity.
3. The decision analysis method based on real-time analysis according to claim 2 is characterized in that: Constructing feature objects based on distinguishing regions includes: The distinguishing regions are grouped using feature ranges, and there are multiple distinguishing regions within each feature range; Distance measurement is performed on the distinguished area, and the distance measurement points are located at the edge position and the non-edge position of the distinguished area; Constructs a feature object using the distinguished regions within a feature range.
4. The decision analysis method based on real-time analysis according to claim 3 is characterized in that: Classification of feature objects includes: Construct the plane where each distinguishing area is located to obtain multiple planes; Obtaining enclosed areas of multiple planes and calculating the volumes of the enclosed areas; Feature objects are classified according to the volume of the enclosed area.
5. A decision analysis device based on real-time analysis, characterized in that: include: A data acquisition unit is used to acquire a video of a coverage area and decompose the video into images arranged sequentially in a time series. The images obtained from a video and arranged sequentially in a time series are called an image group. A first data processing unit, configured to perform grayscale processing on the images in the image group to obtain a grayscale reference image; A data matching unit, used for selecting a reference image associated with the grayscale reference image, wherein the reference image refers to an image obtained by photographing the tunnel when there are no vehicles or pedestrians in the tunnel; a data comparison unit, for comparing the grayscale reference image with the corresponding benchmark image and finding a distinguishing area and constructing a feature object according to the distinguishing area; A data classification unit is used to classify the feature objects to obtain the types of the feature objects; A second data processing unit, used to construct a feature network using the obtained feature objects; A tracking unit, used to track the changing trend of the feature network; A first determining unit, used to determine the orientation information of the grayscale reference image to obtain the position information of the grayscale reference image; A second determining unit is used to determine the generation time of the grayscale reference image, which is recorded as time information; A selection unit, configured to select a reference image associated with the grayscale reference image in a reference image database according to the orientation information and the time information; A first determining unit, used to determine the orientation information of the grayscale reference image to obtain the position information of the grayscale reference image; A second determining unit is used to determine the generation time of the grayscale reference image, which is recorded as time information; A selection unit, configured to select a reference image associated with the grayscale reference image in a reference image database according to the orientation information and the time information; A third determining unit, used to determine a usage location point of the feature object; A connection unit is used to connect adjacent use location points together. Any two use location points belonging to the same feature object are connected by a line segment and there is no line segment inside the feature object. For two use position points belonging to different feature objects, the line segment distance between the two use position points is the shortest; Among them, the number of edges of each grid in the feature network is the same; A calculation unit is used to calculate the area change of each grid in the feature network. The area change includes overall change, overall unchanged and regional change. The first warning unit is used to calculate the area change speed and the duration of the area change speed of all grids when an overall change occurs, and issue a warning when the area change speed and the duration of the area change speed both reach the trigger condition; The second warning unit is used to calculate the area change speed, duration of the area change speed, and the area change amount of the corresponding grid when an area change occurs. When the area change speed, duration of the area change speed, and the area change amount all reach the trigger conditions, a warning is issued.
6. A decision analysis system based on real-time analysis, characterized in that: The system comprises: one or more memories for storing instructions; and One or more processors, configured to call and execute the instructions from the memory to perform the method according to any one of claims 1 to 4.
7. A computer-readable storage medium, characterized in that: The computer readable storage medium comprises: The program, when the program is executed by a processor, the method according to any one of claims 1 to 4 is executed.
