Video monitoring method and device, electronic equipment, storage medium and program product

Through frame extraction processing and feature extraction of video surveillance videos, the element relationship table is constructed, which solves the problem of poor adaptability in the existing technology, realizes the demand adaptation for different monitoring scenarios and the identification of relationships between elements, and improves the monitoring solution. applicability.

CN118803203APending Publication Date: 2024-10-18CHINA MOBILE COMM LTD RES INST +1
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410825078.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-25
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

Existing video surveillance solutions have poor adaptability and cannot effectively adapt to the needs of different surveillance scenarios, especially the target detection and positioning capabilities of untrained objects.

Method used

By acquiring surveillance videos for frame extraction processing, extracting element features and relationship features, constructing element relationship tables, and outputting surveillance information, we can realize feature vector expression of the relationships between elements in the video content, thereby adapting to the needs of different surveillance scenarios.

Benefits of technology

It improves the adaptability of the video surveillance solution, can more accurately detect and identify composite relationships between elements in surveillance videos, and enhances the ability to monitor different scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118803203A_ABST
    Figure CN118803203A_ABST
Patent Text Reader

Abstract

The invention provides a video monitoring method and device, electronic equipment, a storage medium and a program product, relates to the technical field of information, and aims at solving the problem that an existing video monitoring scheme is poor in adaptability. The method comprises the following steps: acquiring a monitoring video, and performing frame extraction processing on the monitoring video to obtain at least one video frame; performing element feature extraction on the at least one video frame to obtain an element feature set; according to a pre-configured monitoring demand, constructing at least one type of element relation table; performing relation feature extraction on the at least one type of element relation table to obtain a relation feature set; and outputting monitoring information of the monitoring video according to the relation feature set and the element feature set. According to the invention, the adaptability of a video monitoring scheme can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of information technology, and in particular to a video monitoring method, device, electronic device, storage medium and program product. Background Art

[0002] With the in-depth development of artificial intelligence technology, visual deep learning algorithms are playing an increasingly important role in the field of video surveillance. Business production increasingly relies on algorithm analysis to improve the timeliness and accuracy of abnormal monitoring, such as regional object blockage, regional intrusion, personnel behavior monitoring, personnel identity authentication, vehicle behavior analysis, etc.

[0003] The existing video analysis solutions mainly include the following processes: video surveillance demand analysis, that is, a detailed demand description, such as monitoring for area obstruction by objects, and issuing an early warning when a specified object or person is found in a fixed area; algorithm development, which requires first collecting video data, sampling and labeling the specified objects, and then using target detection technology to detect objects or people in the frame images of the video playback, and then using rule analysis to determine whether to issue an early warning; algorithm packaging and deployment, after completing the development of the relevant algorithm, the model is updated and released online.

[0004] However, existing technologies are not universal for different scenarios. Since the monitoring rules of video content corresponding to different video surveillance needs are different, traditional deep learning methods can only develop a set of adaptation algorithms based on the rules of a single scenario, and the algorithm model of existing technologies cannot complete target detection and positioning of untrained objects.

[0005] It can be seen that the adaptability of existing video surveillance solutions is poor. Summary of the invention

[0006] The embodiments of the present application provide a video surveillance method, device, electronic device, storage medium and program product to solve the problem of poor adaptability of existing video surveillance solutions.

[0007] To solve the above technical problems, this application is implemented as follows:

[0008] In a first aspect, an embodiment of the present application provides a video monitoring method, including:

[0009] Acquire a surveillance video, and perform frame extraction processing on the surveillance video to obtain at least one video frame;

[0010] Extracting feature elements from the at least one video frame to obtain a feature element set;

[0011] Construct at least one type of element relationship table according to pre-configured monitoring requirements;

[0012] Extracting relationship features from the at least one type of element relationship table to obtain a relationship feature set;

[0013] The monitoring information of the monitoring video is output according to the relationship feature set and the element feature set.

[0014] Optionally, the element feature set includes element features and corresponding element feature information, and the element feature information includes at least one of element category, location and state;

[0015] After extracting element features from the at least one video frame to obtain an element feature set, and before outputting monitoring information of the monitoring video according to the relationship feature set and the element feature set, the method further includes:

[0016] Establishing a category information library according to the element features and the corresponding element feature information in the element feature set, wherein the element features and the element feature information are correspondingly stored in the category information library;

[0017] Outputting the monitoring information of the monitoring video according to the relationship feature set and the element feature set includes:

[0018] Reconstructing the environmental features at different angles at the same location in the category information library to obtain a panoramic environmental feature map;

[0019] The monitoring information of the monitoring video is output according to the panoramic environment feature map, the element feature set and the relationship feature set.

[0020] Optionally, outputting the monitoring information of the monitoring video according to the relationship feature set and the element feature set includes:

[0021] Performing a structured description of the monitoring requirements to obtain structured description information of the monitoring requirements;

[0022] Performing logical reasoning on the element feature set using the language model and the structured description information to obtain a monitoring result of the monitoring video;

[0023] The monitoring result is outputted.

[0024] Optionally, outputting the monitoring information of the monitoring video according to the relationship feature set and the element feature set includes:

[0025] The monitoring information including the relationship feature set and the element feature set is output for the user to analyze and determine the monitoring result.

[0026] Optionally, the at least one type of element relationship table includes at least one of the following items:

[0027] A region prohibited element relationship table, wherein the region prohibited element relationship table is used to indicate element feature information corresponding to the prohibited appearance of the first target object;

[0028] A state change element relationship table, wherein the state change element relationship table is used to indicate element feature information corresponding to the state change of the second target object;

[0029] An authentication element relationship table, wherein the authentication element relationship table is used to indicate element feature information corresponding to authentication of a third target object.

[0030] Optionally, when the at least one type of element relationship table includes a state change element relationship table, before outputting the monitoring information of the monitoring video according to the relationship feature set and the element feature set, the method further includes:

[0031] Building a corresponding class relationship feature mother library based on each class of relationship features in the relationship feature set, wherein the feature mother library includes normal features and / or abnormal features of the second target object;

[0032] Outputting the monitoring information of the monitoring video according to the relationship feature set and the element feature set includes:

[0033] Matching the element features in the element feature set with the features in the feature mother library to obtain a matching result;

[0034] Based on the matching result, monitoring information of the monitoring video is determined and output.

[0035] Optionally, the step of constructing a corresponding class relationship feature mother library based on each class of relationship features in the relationship feature set includes:

[0036] Acquire multiple images of the second target object in a normal state and / or an abnormal state corresponding to each type of relationship feature in the relationship feature set;

[0037] Performing feature extraction on the multiple images to obtain image features of the multiple images;

[0038] Based on the average features of the image features of the multiple images, the normal features and / or abnormal features of the second target object are determined, wherein the normal features are the average features of the image features of the images in a normal state among the multiple images, and the abnormal features are the average features of the image features of the images in an abnormal state among the multiple images.

[0039] Optionally, outputting the monitoring information of the monitoring video according to the relationship feature set and the element feature set includes:

[0040] Determine a recognition model corresponding to the element feature according to the relationship feature set and the element features in the element feature set;

[0041] Calling the recognition model corresponding to the element feature to authenticate the element feature and obtain an authentication result;

[0042] Based on the authentication result, monitoring information of the monitoring video is determined and output.

[0043] Optionally, matching the element features in the element feature set with the features in the feature mother library to obtain a matching result includes:

[0044] Performing region segmentation on the at least one video frame to obtain a plurality of regions;

[0045] Using a pre-trained category search and matching model to perform category matching on the multiple regions to obtain matching regions;

[0046] Determine the element feature corresponding to the matching area in the element feature set;

[0047] The element features are matched with the features in the feature mother library using a pre-trained similarity judgment model to obtain a matching result.

[0048] In a second aspect, an embodiment of the present application provides a video surveillance device, including:

[0049] An acquisition module is used to acquire a surveillance video and perform frame extraction processing on the surveillance video to obtain at least one video frame;

[0050] A first extraction module, configured to extract element features from the at least one video frame to obtain an element feature set;

[0051] A first construction module is used to construct at least one type of element relationship table according to pre-configured monitoring requirements;

[0052] A second extraction module is used to extract relationship features from the at least one type of element relationship table to obtain a relationship feature set;

[0053] An output module is used to output the monitoring information of the monitoring video according to the relationship feature set and the element feature set.

[0054] Optionally, the element feature set includes element features and corresponding element feature information, and the element feature information includes at least one of element category, location and state;

[0055] The video monitoring device also includes:

[0056] An establishing module, used for establishing a category information library according to the element features and the corresponding element feature information in the element feature set, wherein the element features and the element feature information are correspondingly stored in the category information library;

[0057] The output module comprises:

[0058] A reconstruction unit, used for reconstructing environmental features at different angles at the same position in the category information library to obtain a panoramic environmental feature map;

[0059] The first output unit is used to output the monitoring information of the monitoring video according to the panoramic environment feature map, the element feature set and the relationship feature set.

[0060] Optionally, the output module includes:

[0061] A description unit, used to perform a structured description of the monitoring requirement to obtain structured description information of the monitoring requirement;

[0062] An inference unit, used to perform logical inference on the element feature set using a language model and the structured description information to obtain a monitoring result of the monitoring video;

[0063] The second output unit is used to output the monitoring result.

[0064] Optionally, the output module includes:

[0065] The third output unit is used to output the monitoring information including the relationship feature set and the element feature set, so as to be used for user analysis to determine the monitoring result.

[0066] Optionally, the at least one type of element relationship table includes at least one of the following items:

[0067] A region prohibited element relationship table, wherein the region prohibited element relationship table is used to indicate element feature information corresponding to the prohibited appearance of the first target object;

[0068] A state change element relationship table, wherein the state change element relationship table is used to indicate element feature information corresponding to the state change of the second target object;

[0069] An authentication element relationship table, wherein the authentication element relationship table is used to indicate element feature information corresponding to authentication of a third target object.

[0070] Optionally, when the at least one type of element relationship table includes a state change element relationship table, the video monitoring device further includes:

[0071] A second construction module is used to construct a corresponding class relationship feature mother library based on each type of relationship feature in the relationship feature set, wherein the feature mother library includes normal features and / or abnormal features of the second target object;

[0072] The output module comprises:

[0073] A matching unit, used for matching the element features in the element feature set with the features in the feature mother library to obtain a matching result;

[0074] A fourth output unit is used to determine and output the monitoring information of the monitoring video based on the matching result.

[0075] Optionally, the second building block includes:

[0076] An acquisition unit, configured to acquire a plurality of images of a second target object in a normal state and / or an abnormal state corresponding to each type of relationship feature in the relationship feature set;

[0077] An extraction unit, used to extract features from the multiple images to obtain image features of the multiple images;

[0078] The first determination unit is used to determine the normal features and / or abnormal features of the second target object based on the average features of the image features of the multiple images, wherein the normal features are the average features of the image features of the images in a normal state among the multiple images, and the abnormal features are the average features of the image features of the images in an abnormal state among the multiple images.

[0079] Optionally, the output module includes:

[0080] A second determining unit, configured to determine a recognition model corresponding to the element feature according to the relationship feature set and the element feature in the element feature set;

[0081] An authentication unit, used for calling a recognition model corresponding to the element feature to authenticate the element feature and obtain an authentication result;

[0082] The fifth output unit is used to determine and output the monitoring information of the monitoring video based on the authentication result.

[0083] Optionally, the matching unit is specifically used for:

[0084] Performing region segmentation on the at least one video frame to obtain a plurality of regions;

[0085] Using a pre-trained category search and matching model to perform category matching on the multiple regions to obtain matching regions;

[0086] Determine the element feature corresponding to the matching area in the element feature set;

[0087] The element features are matched with the features in the feature mother library using a pre-trained similarity judgment model to obtain a matching result.

[0088] In a third aspect, an embodiment of the present application provides an electronic device, including a processor, wherein the processor is configured to:

[0089] Acquire a surveillance video, and perform frame extraction processing on the surveillance video to obtain at least one video frame;

[0090] Extracting feature elements from the at least one video frame to obtain a feature element set;

[0091] Construct at least one type of element relationship table according to pre-configured monitoring requirements;

[0092] Extracting relationship features from the at least one type of element relationship table to obtain a relationship feature set;

[0093] The monitoring information of the monitoring video is output according to the relationship feature set and the element feature set.

[0094] Optionally, the element feature set includes element features and corresponding element feature information, and the element feature information includes at least one of element category, location and state;

[0095] The processor is also used to:

[0096] Establishing a category information library according to the element features and the corresponding element feature information in the element feature set, wherein the element features and the element feature information are correspondingly stored in the category information library;

[0097] The processor is specifically used to:

[0098] Reconstructing the environmental features at different angles at the same location in the category information library to obtain a panoramic environmental feature map;

[0099] The monitoring information of the monitoring video is output according to the panoramic environment feature map, the element feature set and the relationship feature set.

[0100] Optionally, the processor is specifically configured to:

[0101] Performing a structured description of the monitoring requirements to obtain structured description information of the monitoring requirements;

[0102] Performing logical reasoning on the element feature set using the language model and the structured description information to obtain a monitoring result of the monitoring video;

[0103] The monitoring result is outputted.

[0104] Optionally, the processor is specifically configured to:

[0105] The monitoring information including the relationship feature set and the element feature set is output for the user to analyze and determine the monitoring result.

[0106] Optionally, the at least one type of element relationship table includes at least one of the following items:

[0107] A region prohibited element relationship table, wherein the region prohibited element relationship table is used to indicate element feature information corresponding to the prohibited appearance of the first target object;

[0108] A state change element relationship table, wherein the state change element relationship table is used to indicate element feature information corresponding to the state change of the second target object;

[0109] An authentication element relationship table, wherein the authentication element relationship table is used to indicate element feature information corresponding to authentication of a third target object.

[0110] Optionally, when the at least one type of element relationship table includes a state change type element relationship table, the processor is further configured to:

[0111] Building a corresponding class relationship feature mother library based on each class of relationship features in the relationship feature set, wherein the feature mother library includes normal features and / or abnormal features of the second target object;

[0112] The processor is specifically used to:

[0113] Matching the element features in the element feature set with the features in the feature mother library to obtain a matching result;

[0114] Based on the matching result, monitoring information of the monitoring video is determined and output.

[0115] Optionally, the processor is specifically configured to:

[0116] Acquire multiple images of the second target object in a normal state and / or an abnormal state corresponding to each type of relationship feature in the relationship feature set;

[0117] Performing feature extraction on the multiple images to obtain image features of the multiple images;

[0118] Based on the average features of the image features of the multiple images, the normal features and / or abnormal features of the second target object are determined, wherein the normal features are the average features of the image features of the images in a normal state among the multiple images, and the abnormal features are the average features of the image features of the images in an abnormal state among the multiple images.

[0119] Optionally, the processor is specifically configured to:

[0120] Determine a recognition model corresponding to the element feature according to the relationship feature set and the element features in the element feature set;

[0121] Calling the recognition model corresponding to the element feature to authenticate the element feature and obtain an authentication result;

[0122] Based on the authentication result, monitoring information of the monitoring video is determined and output.

[0123] Optionally, the processor is specifically configured to:

[0124] Performing region segmentation on the at least one video frame to obtain a plurality of regions;

[0125] Using a pre-trained category search and matching model to perform category matching on the multiple regions to obtain matching regions;

[0126] Determine the element feature corresponding to the matching area in the element feature set;

[0127] The element features are matched with the features in the feature mother library using a pre-trained similarity judgment model to obtain a matching result.

[0128] In a fourth aspect, an embodiment of the present application provides an electronic device, comprising: a processor, a memory, and a program stored in the memory and executable on the processor, wherein the program, when executed by the processor, implements the steps of the video surveillance method described in the first aspect above.

[0129] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the video surveillance method described in the first aspect above are implemented.

[0130] In a sixth aspect, an embodiment of the present application provides a computer program product, comprising computer instructions, which, when executed by a processor, implement the steps of the video surveillance method as described in the first aspect above.

[0131] In an embodiment of the present application, the above-mentioned video surveillance method can obtain a surveillance video, perform frame extraction processing on the surveillance video to obtain at least one video frame, perform element feature extraction on the at least one video frame to obtain an element feature set, and construct at least one type of element relationship table according to pre-configured monitoring requirements, extract relationship features from the at least one type of element relationship table to obtain a relationship feature set, and output monitoring information of the surveillance video according to the relationship feature set and the element feature set. In this way, the dependency relationship between different elements in the video content and between the elements and the environment to which they belong can be constructed through the element relationship table, and this relationship can be expressed by a feature vector, so that the monitoring perception technology is transformed from a simple target detection technology to an understanding of the complex relationship between elements in the monitoring scene, and from object detection to the meaning of the mutual existence and change of perception elements, so as to achieve adaptation to the needs of different monitoring scenes, thereby improving the adaptability of the video surveillance solution. BRIEF DESCRIPTION OF THE DRAWINGS

[0132] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments of the present application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0133] Figure 1 is a flow chart of a video monitoring method provided by an embodiment of the present application;

[0134] Figure 2 is a schematic diagram of a video frame provided in an embodiment of the present application;

[0135] Figure 3 It is one of the segmentation feature maps provided in the embodiment of the present application;

[0136] Figure 4 This is the second segmentation feature map provided in the embodiment of the present application;

[0137] Figure 5 This is one of the schematic diagrams of a category information library provided in an embodiment of the present application;

[0138] Figure 6 This is a second schematic diagram of a category information library provided in an embodiment of the present application;

[0139] Figure 7 This is a third schematic diagram of a category information library provided in an embodiment of the present application;

[0140] Figure 8 It is a schematic diagram of aligning a monitoring environment feature trajectory provided by an embodiment of the present application;

[0141] Fig. 9 It is a panoramic environment feature map provided by an embodiment of the present application;

[0142] Fig.10 This is a panoramic environment and character intrusion comparison diagram provided by an embodiment of the present application;

[0143] Fig.11 It is a schematic diagram of a regional prohibited element relationship table provided in an embodiment of the present application;

[0144] Fig.12 It is a schematic diagram of a state change element relationship table provided in an embodiment of the present application;

[0145] Fig.13 It is a schematic diagram of an authentication element relationship table provided in an embodiment of the present application;

[0146] Fig.14 It is a schematic diagram of a normal feature mother library provided in an embodiment of the present application;

[0147] Fig.15 is a schematic diagram of an abnormal feature mother library provided in an embodiment of the present application;

[0148] Fig.16 This is one of the comparison diagrams of a normal state and an abnormal state provided in an embodiment of the present application;

[0149] Fig.17 This is the second schematic diagram of comparison between a normal state and an abnormal state provided in an embodiment of the present application;

[0150] Fig.18 This is an authentication schematic diagram provided in an embodiment of the present application;

[0151] Fig.19 This is one of the application flow charts of a video monitoring method provided in an embodiment of the present application;

[0152] Fig. 20 This is the second application flow chart of a video monitoring method provided in an embodiment of the present application;

[0153] Fig.21 This is a third application flow chart of a video monitoring method provided in an embodiment of the present application;

[0154] Fig. 22 is a structural schematic diagram of a video monitoring device provided in an embodiment of the present application;

[0155] Fig.23 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0156] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0157] In the embodiments of the present application, a video surveillance method, device, electronic device, storage medium and program product are proposed to solve the problem of poor adaptability of existing video surveillance solutions.

[0158] See also Figure 1 , Figure 1 is a flow chart of a video monitoring method provided by an embodiment of the present application, such as Figure 1 As shown, the method comprises the following steps:

[0159] Step 101: Acquire a surveillance video, and perform frame extraction processing on the surveillance video to obtain at least one video frame.

[0160] Specifically, the monitoring video may be a video shot by an authorized camera, and the frame extraction process may be to extract frames of the monitoring video according to a preset configuration time length, for example, it may be set to 1 frame per second.

[0161] Step 102: extract element features from the at least one video frame to obtain an element feature set.

[0162] Specifically, the above-mentioned element feature extraction may be to input the video frame into a basic perception model to perform region segmentation to obtain elements in the video frame, and extract feature vectors of the elements to obtain the element feature set.

[0163] The above basic perception model can specifically be a visual segmentation basic model (Segment Anything Model, SAM), which has strong zero-shot and few-shot generalization capabilities.

[0164] For example, Figure 2 is a schematic diagram of a video frame provided in an embodiment of the present application, Figure 3 and Figure 4 is a segmentation feature map provided in an embodiment of the present application. Figure 2 Input the basic perception model and get Figure 3 The fine-grained instance segmentation feature map shown in FIG. can obtain the segmentation area of ​​known or unknown people, objects, and environments through the segmented graph, and can perform clustering operations on different segmentation areas, that is, determine which fine-grained segmentation areas belong to the same person or object, such as Figure 4As shown in the figure, hair, limbs, and clothes all belong to people, and windows and rearview mirrors all belong to cars. This also provides the basic dependency relationship for the next step of building fine-grained relationship features, and also provides the content basis for subsequent judgment of monitoring information according to monitoring needs, such as whether the vehicle spontaneously combusts, whether a person appears in a prohibited area, etc.

[0165] Figures 5 to 7 is a schematic diagram of a category information library provided in an embodiment of the present application, such as Figure 5 and Figure 6 As shown, the relevant information of the segmented area is stored, which may include at least one of the following: index information, monitoring time, category number, area category, area subcategory, cut address, location information and status. Unknown categories are stored anonymously according to the category number. For the same scene, a category information library can be built on a daily basis, for example, Figure 5 and Figure 6 for Figure 2 Category information library corresponding to the scenes on different dates.

[0166] The existing model can be expanded through the EfficientNet scaling method. The expanded feature extraction engine extracts feature features from each element in the category information library, and then updates the category information library after indexing and signing each feature. Figure 7 As shown, each feature vector is stored in a file for subsequent feature matching and feature retrieval operations. The EfficientNet scaling method uses a simple and efficient compound coefficient to enlarge CNN in a more structured way. Unlike traditional methods that arbitrarily scale network dimensions such as width, depth, and resolution, this method uses a series of fixed scale scaling factors to uniformly scale network dimensions. Compared with traditional scaling methods, it has an efficiency of up to 10 times, which can continuously improve the accuracy and efficiency of the model and can be used to expand existing models such as mobileet (which can improve image set accuracy by 1.4%) and ResNet (which can improve image set accuracy by 0.7%).

[0167] Step 103: Construct at least one type of element relationship table according to pre-configured monitoring requirements.

[0168] Specifically, the above-mentioned pre-configured monitoring requirements can be used to determine whether the monitoring area corresponding to the monitoring video is abnormal. For example, it can be crowd number monitoring (crowd monitoring in popular places and personnel monitoring in popular attractions in scenic spots), fall warning, fights and brawls (used for riot control monitoring, stations, squares, bars, etc.), and personnel area intrusion (used for park and home security monitoring).

[0169] The above-mentioned element relationship table can be a relationship table obtained by analyzing the above-mentioned monitoring requirements, which is used to indicate the relationship between element information such as people, animals, objects, environment, time, weather, space, etc.

[0170] It should be noted that the element relationship table can be obtained by fitting the above monitoring requirements into a preset element relationship template.

[0171] Step 104: extract relationship features from the at least one type of element relationship table to obtain a relationship feature set.

[0172] Specifically, the above relationship feature set may include relationship information between elements, which is used to indicate information such as correlation and dependency between elements.

[0173] Step 105: output monitoring information of the monitoring video according to the relationship feature set and the element feature set.

[0174] Specifically, the monitoring information can be used to indicate whether the monitoring video is abnormal, that is, whether there is alarm information. For example, when the monitoring requirement is to warn people of falling, the monitoring information can indicate that someone has fallen and issue an alarm.

[0175] In an embodiment of the present application, the above-mentioned video surveillance method can obtain a surveillance video, perform frame extraction processing on the surveillance video to obtain at least one video frame, perform element feature extraction on the at least one video frame to obtain an element feature set, and construct at least one type of element relationship table according to pre-configured monitoring requirements, extract relationship features from the at least one type of element relationship table to obtain a relationship feature set, and output monitoring information of the surveillance video according to the relationship feature set and the element feature set. In this way, the dependency relationship between different elements in the video content and between the elements and the environment to which they belong can be constructed through the element relationship table, and this relationship can be expressed by a feature vector, so that the monitoring perception technology is transformed from a simple target detection technology to an understanding of the complex relationship between elements in the monitoring scene, and from object detection to the meaning of the mutual existence and change of perception elements, so as to achieve adaptation to the needs of different monitoring scenes, thereby improving the adaptability of the video surveillance solution.

[0176] Optionally, the element feature set includes element features and corresponding element feature information, and the element feature information includes at least one of element category, location and state;

[0177] After extracting element features from the at least one video frame to obtain an element feature set, and before outputting monitoring information of the monitoring video according to the relationship feature set and the element feature set, the method further includes:

[0178] Establishing a category information library according to the element features and the corresponding element feature information in the element feature set, wherein the element features and the element feature information are correspondingly stored in the category information library;

[0179] Outputting the monitoring information of the monitoring video according to the relationship feature set and the element feature set includes:

[0180] Reconstructing the environmental features at different angles at the same location in the category information library to obtain a panoramic environmental feature map;

[0181] The monitoring information of the monitoring video is output according to the panoramic environment feature map, the element feature set and the relationship feature set.

[0182] Specifically, the above-mentioned element categories may include regional categories and regional subcategories of elements. One regional category may correspond to multiple regional subcategories. For example, the regional category may be divided into people and vehicles, etc. The regional subcategories corresponding to people as the regional category may include clothes, shoes, etc., and the regional subcategories corresponding to vehicles as the regional category may include license plates, tires, etc. The above-mentioned positions may be the corresponding position information of the element features in the video frame, and the above-mentioned states may be the relevant states of the objects. For example, the state of a vehicle may include spontaneous combustion and non-spontaneous combustion.

[0183] like Figure 7 As shown, the above-mentioned category information library can store the above-mentioned element features and element feature information, and establish a corresponding relationship. It should be noted that the above-mentioned category information library can be stored separately according to the monitoring date, and for unknown categories, it can be stored anonymously according to the category serial number.

[0184] The above panoramic environment feature map can be used to represent the viewing angles and features of all visible areas in the environment.

[0185] Exemplarily, the category information library is reconstructed offline at a preset time period, such as 7 days, and fixed scenes and movable scenes are classified based on whether the relative positions of the segmented areas are displaced or whether the displacements are of equal size, so as to extract environmental features. Figure 8 is a schematic diagram of aligning a monitoring environment feature trajectory provided by an embodiment of the present application, such as Figure 8 As shown, the segmented region relative position matching technology can specifically adopt a Scale-Invariant Feature Transform (SIFT) algorithm. When sorting out environmental features, the environmental features at different angles at the same position in the category information library can be used to reconstruct features.

[0186] It should be noted that when reconstructing features, if there are blind spots in the monitoring area or when the real-time monitoring angle fails to cover the area of ​​concern, the category information library corresponding to the monitoring videos of other monitoring areas can be called to establish a wide-angle panoramic environment feature map.

[0187] When there are blind spots in the monitoring area or when the real-time monitoring angle fails to cover the area of ​​concern, and there happen to be specific abnormal conditions in this area or the judgment basis needs to rely on the environment farther away, this engine can still issue abnormal warnings.

[0188] For example, Fig. 9 is a panoramic environment feature map provided by an embodiment of the present application, such as Fig. 9 As shown, when Fig. 9 There are temporary management signs for the panoramic street in the far right part, such as speed limit, vehicle prohibition or no trespassing signs. However, since the non-wide-angle camera or the camera's shooting area cannot cover the whole scene at this time, the panoramic environment feature map can be used to construct a full-factor analysis as a basis for judgment, match monitoring needs, and obtain monitoring information.

[0189] For example, Fig.10 This is a panoramic environment and character intrusion comparison diagram provided by an embodiment of the present application, such as Fig.10 As shown, after the preset time period of monitoring deployment, a panoramic feature map corresponding to the monitoring area can be generated. Fig.10 The left side is the environment map after removing all movable objects. Fig.10 The right side of the image is an area intrusion map of people, vehicles, and people getting off the car. This monitoring scenario is suitable for scenes such as prohibited parking and pedestrians stopping at bends in mountainous areas. That is, the prohibited people and objects defined by the user can be compared with the panoramic environment feature map to determine the prohibited area.

[0190] In this embodiment, the above-mentioned video surveillance method can establish a category information library based on the element features in the element feature set and the corresponding element feature information, and the category information library stores the element features and the element feature information correspondingly, and reconstructs the environmental features of the same position at different angles in the category information library to obtain a panoramic environmental feature map. According to the panoramic environmental feature map, the element feature set and the relationship feature set, the monitoring information of the monitoring video is output, thereby effectively hiding the fixed and immovable background, paying more attention to the feature matching of the intruding objects, thereby improving the detection rate of the intruding objects.

[0191] Optionally, outputting the monitoring information of the monitoring video according to the relationship feature set and the element feature set includes:

[0192] Performing a structured description of the monitoring requirements to obtain structured description information of the monitoring requirements;

[0193] Performing logical reasoning on the element feature set using the language model and the structured description information to obtain a monitoring result of the monitoring video;

[0194] The monitoring result is outputted.

[0195] Specifically, the above-mentioned language model can be a relatively mature natural language processing (NLP) language model, or other language models with logical reasoning and judgment.

[0196] In this embodiment, the above-mentioned video monitoring method includes performing a structured description of the monitoring requirements, obtaining structured description information of the monitoring requirements, performing logical reasoning on the element feature set using a language model and the structured description information, obtaining monitoring results of the monitoring video, and outputting the monitoring results. Compared with a large model of mixed graphics and text, this method can better utilize the logical reasoning ability in the direction of natural language understanding, rather than relying on graphic and text related information, thereby getting rid of the requirements of large graphic and text models for data real-timeness and improving flexibility.

[0197] Optionally, outputting the monitoring information of the monitoring video according to the relationship feature set and the element feature set includes:

[0198] The monitoring information including the relationship feature set and the element feature set is output for the user to analyze and determine the monitoring result.

[0199] In this embodiment, the above-mentioned video monitoring method can output monitoring information including the relationship feature set and the element feature set for the user to analyze and determine the monitoring result, so that the user can directly determine the final monitoring result according to the preset rule definition.

[0200] Optionally, the at least one type of element relationship table includes at least one of the following items:

[0201] A region prohibited element relationship table, wherein the region prohibited element relationship table is used to indicate element feature information corresponding to the prohibited appearance of the first target object;

[0202] A state change element relationship table, wherein the state change element relationship table is used to indicate element feature information corresponding to the state change of the second target object;

[0203] An authentication element relationship table, wherein the authentication element relationship table is used to indicate element feature information corresponding to authentication of a third target object.

[0204] Specifically, the above-mentioned regional prohibited element relationship table may be used to indicate the element feature information corresponding to the prohibited appearance of the first target object. For example, Fig.11 is a schematic diagram of a regional prohibited element relationship table provided in an embodiment of the present application, such as Fig.11 As shown, mice are not allowed to appear in the panoramic monitoring area, that is, the element feature information corresponding to mice is prohibited from appearing, people cannot walk dogs in the monitoring area, that is, the element features corresponding to people walking dogs are prohibited from appearing, and people cannot appear in the monitoring area, that is, the element features corresponding to people are prohibited from appearing.

[0205] The above-mentioned state change element relationship table can be used to indicate the element feature information corresponding to the state change of the second target object. For example, Fig.12 is a schematic diagram of a state change element relationship table provided in an embodiment of the present application, such as Fig.12 As shown, the person's shoes are separated from the human body and fall to the ground, and the trash can changes from a closed state to an open state.

[0206] The above authentication element relationship table can be used to indicate the element feature information corresponding to the authentication of the third target object. The above third target object can be a face, a human body, a certificate or a text, etc. For example, Fig.13 is a schematic diagram of an authentication element relationship table provided in an embodiment of the present application, such as Fig.13 As shown, when a specific object is detected, it needs to be authenticated and identified using a corresponding recognition model.

[0207] In this implementation, the at least one type of element relationship table includes at least one of the following: an area prohibition element relationship table, the area prohibition element relationship table is used to indicate the element feature information corresponding to the prohibition of the first target object; a state change element relationship table, the state change element relationship table is used to indicate the element feature information corresponding to the state change of the second target object; an authentication element relationship table, the authentication element relationship table is used to indicate the element feature information corresponding to the authentication of the third target object. Since monitoring needs are usually achieved by analyzing element information such as people, animals, objects, environment, time, weather, and space, the user's monitoring needs can be expressed by constructing the above-mentioned element relationship table.

[0208] Optionally, when the at least one type of element relationship table includes a state change element relationship table, before outputting the monitoring information of the monitoring video according to the relationship feature set and the element feature set, the method further includes:

[0209] Building a corresponding class relationship feature mother library based on each class of relationship features in the relationship feature set, wherein the feature mother library includes normal features and / or abnormal features of the second target object;

[0210] Outputting the monitoring information of the monitoring video according to the relationship feature set and the element feature set includes:

[0211] Matching the element features in the element feature set with the features in the feature mother library to obtain a matching result;

[0212] Based on the matching result, monitoring information of the monitoring video is determined and output.

[0213] Specifically, the normal features and abnormal features can be distinguished and classified according to the relationship features, that is, the monitoring requirements. For example, if the monitoring requirement is to monitor whether the vehicle spontaneously ignites, the feature that the vehicle does not spontaneously ignite is a normal feature, and the feature that the vehicle spontaneously ignites is an abnormal feature. The above matching results can be used to indicate the similarity between the element features and the features in the feature mother library.

[0214] In this embodiment, the above-mentioned video surveillance method can construct a corresponding class relationship feature mother library based on various types of relationship features in the relationship feature set, and the feature mother library includes normal features and / or abnormal features of the second target object, and matches the element features in the element feature set with the features in the feature mother library to obtain a matching result. Based on the matching result, the monitoring information of the monitoring video is determined and output, thereby realizing the transfer of the supervised training target detection problem to an image feature matching problem, more flexibly adapting to different demand scenarios and newly added demand scenarios, and completely changing the previous development steps of new demands. Through feature retrieval and matching technology, when there are new functions, users only need to enter the image samples corresponding to the normal features and abnormal features, thereby further improving the technical versatility of the video surveillance solution.

[0215] Optionally, the step of constructing a corresponding class relationship feature mother library based on each class of relationship features in the relationship feature set includes:

[0216] Acquire multiple images of the second target object in a normal state and / or an abnormal state corresponding to each type of relationship feature in the relationship feature set;

[0217] Performing feature extraction on the multiple images to obtain image features of the multiple images;

[0218] Based on the average features of the image features of the multiple images, the normal features and / or abnormal features of the second target object are determined, wherein the normal features are the average features of the image features of the images in a normal state among the multiple images, and the abnormal features are the average features of the image features of the images in an abnormal state among the multiple images.

[0219] Specifically, the above normal state and abnormal state can be defined according to the monitoring requirements of the user.

[0220] For example, Fig.14 is a schematic diagram of a normal feature mother library provided in an embodiment of the present application, Fig.15 is a schematic diagram of an abnormal feature mother library provided in an embodiment of the present application, such as Fig.14 and Fig.15 As shown, the second target object can be a vehicle. The normal state is when the vehicle does not spontaneously ignite, and the abnormal state is when the vehicle spontaneously ignites. Multiple images corresponding to the spontaneous combustion of the vehicle and the spontaneous combustion of the vehicle are obtained respectively, and features are extracted from these images, and the average feature is taken for comparison with the feature to be compared.

[0221] Fig.16 and Fig.17 is a schematic diagram comparing a normal state and an abnormal state provided in an embodiment of the present application, such as Fig.16 As shown, the second target object may be a shoe, the normal state is that the shoe is on the human body, and the abnormal state is that the shoe is off the human body. The second target object may be a trash can, the normal state is that the trash can is closed, and the abnormal state is that the trash overflows from the trash can. Fig.17 As shown, the second target object may be a chef, the normal state is that the chef wears a chef hat, and the abnormal state is that the chef does not wear a chef hat.

[0222] It should be noted that in the initial matching process, it is necessary to first define the normal state and abnormal state of the object according to the user's demand description. A preset number of images must be provided for each type as the basic data for system initialization. As data accumulates, more images can be added gradually until the feature indicators meet user expectations. This is also the basis for engine self-learning.

[0223] Through feature matching and feature similarity judgment methods, work can be carried out with a small amount of data. Assuming that the accumulated positive sample data is 1000 (N), and the number of negative samples is relatively limited, perhaps only 100 (F), then by designing a feature similarity judgment network, the data input into the network in the form of image pairs is (N, N), (N, F), (F, F). In this way, a large amount of data can be obtained to train the similarity judgment network. After the network converges, the feature layer can also be migrated. The trained feature layer can be used to extract features from the positive and negative samples in the sample data respectively, and then average the features. After the average features of the positive and negative samples are stored, they can be used to calculate the feature similarity of the input images in subsequent production tasks.

[0224] Specifically, we can learn from the twin network idea and design a feature similarity judgment network based on the feature extraction network to distinguish the differences between similar features. When the initial version of the similarity judgment model is launched, the operation interface allows users to visually adjust the positive and negative samples. As new positive and negative samples are added, the design system will periodically or quantitatively start the incremental model learning function for the similarity judgment model, so that as time goes by and the richness of the samples increases, the model will automatically update the learned new features. For scenarios where the distribution of positive and negative samples is severely unbalanced, the iterative update plan of the model can be started for every 100 negative samples. While loading the current model parameters through transfer learning, 500 positive samples and 100 negative samples are extracted from the positive samples to establish a sample combination for the model input. At the same time, the twin network is used to force the similarity of the features to be distinguished and clearly defined.

[0225] In this embodiment, the above-mentioned video surveillance method can obtain multiple images of the normal state and / or abnormal state of the second target object corresponding to each type of relationship features in the relationship feature set, perform feature extraction on the multiple images to obtain image features of the multiple images, and determine the normal features and / or abnormal features of the second target object based on the average features of the image features of the multiple images, wherein the normal features are the average features of the image features of the images in the normal state among the multiple images, and the abnormal features are the average features of the image features of the images in the abnormal state among the multiple images. Then, the corresponding images can be uploaded according to the user's monitoring needs, thereby further improving the adaptability of video surveillance.

[0226] Optionally, outputting the monitoring information of the monitoring video according to the relationship feature set and the element feature set includes:

[0227] Determine a recognition model corresponding to the element feature according to the relationship feature set and the element features in the element feature set;

[0228] Calling the recognition model corresponding to the element feature to authenticate the element feature and obtain an authentication result;

[0229] Based on the authentication result, monitoring information of the monitoring video is determined and output.

[0230] Specifically, the relationship feature set can be used to indicate that when an element feature is detected, a recognition model corresponding to the element feature is called. The above recognition model can be a face recognition model, a liveness detection model, a card OCR model or a general OCR model, etc. The above authentication result can be authentication information for confirming the element feature. For example, the face recognition model is called to authenticate the element feature, and the authentication result can be whether the face has passed the authentication.

[0231] For example, Fig.18 This is a schematic diagram of authentication provided by an embodiment of the present application, such as Fig.18 As shown, personnel authentication can be performed at the gate entrance or security entrance. Face authentication, body authentication or OCR card authentication can be selected according to actual needs, and a standardized authentication flow can be performed. Relevant information can be returned through the proprietary recognition model built into the engine.

[0232] In this embodiment, the above-mentioned video surveillance method can determine the recognition model corresponding to the element feature based on the relationship feature set and the element feature in the element feature set, call the recognition model corresponding to the element feature to authenticate the element feature to obtain an authentication result, and based on the authentication result, determine and output the monitoring information of the monitoring video, thereby realizing the collaborative scheduling operation of the model of the general scene, thereby meeting the diverse needs of users for video surveillance.

[0233] Optionally, matching the element features in the element feature set with the features in the feature mother library to obtain a matching result includes:

[0234] Performing region segmentation on the at least one video frame to obtain a plurality of regions;

[0235] Using a pre-trained category search and matching model to perform category matching on the multiple regions to obtain matching regions;

[0236] Determine the element feature corresponding to the matching area in the element feature set;

[0237] The element features are matched with the features in the feature mother library using a pre-trained similarity judgment model to obtain a matching result.

[0238] Specifically, the above-mentioned category search matching model can be used to identify the object or scene category that the input image or query image may contain, and find the corresponding matching area, which can be specifically collected by using labeled image data for training and verification. The training method of the above-mentioned similarity judgment model is the same as the above-mentioned similarity judgment model.

[0239] Exemplarily, similar targets are segmented into regions to obtain feature features, and then the segmented object state is compared with the object standard state through logistic regression at the model level, Feture1-Feture2-->0 (similar), Feture1-Feture2-->1 (dissimilar).

[0240] As a specific embodiment, the video monitoring method can be applied to a monitoring system, which includes an access standardization module, a content perception module, a relationship construction module, a relationship characterization module and a logical reasoning module.

[0241] Figures 19 to 21 is an application flow chart of a video monitoring method provided by an embodiment of the present application, such as Figures 19 to 21 As shown:

[0242] First, input the video. In order to adapt to various forms of video surveillance needs, standardize access and perform subsequent standard image model processing, the access standardization module integrates the decoding formats of major mainstream video formats such as AVI, FLV, RMVB, MP4, MKV, 3GP, MPEG-2, MPEG-4, H.264, DPX, AVCHD, MXF, etc., and then uses the video frame extraction modules of different formats to perform frame extraction. The frame extraction duration needs to be configured according to the system configuration items, and the default setting is 1 frame per second.

[0243] Then, the video frame is processed by the content perception module for element perception, and the input video frame image is processed based on the unsupervised video segmentation model and the SAM large model to obtain a segmentation feature map. According to the segmentation feature map, the segmentation areas of known or unknown people, objects, and environments can be determined, clustering operations are performed on different segmentation areas, and the element features corresponding to all elements are extracted and stored.

[0244] Then, the element relationship table is constructed through the relationship construction module. The relationship construction module is the core component of the system for general monitoring. Each local deployed engine can automatically build the engine relationship module based on the business relationship set by the user in advance. For example, the user wants to complete the following rule monitoring on one of the cameras:

[0245] a) Crowd size monitoring, such as crowd flow monitoring in popular places and personnel monitoring in popular scenic spots.

[0246] b) Warning of personnel falls.

[0247] c) Fighting and brawling, such as used for riot control monitoring, stations, squares, bars, etc.

[0248] d) Personnel area intrusion, such as for park and home security monitoring, etc.

[0249] It should be noted that, in actual projects, the above rules can be configured by loading a requirement configuration file or a configuration interface.

[0250] Then, the relationship table is characterized through the relationship characterization module, and the above relationship characteristics and element characteristics are analyzed through the logical reasoning module, and the relevant small models are called to perform collaborative work to adapt the business rules, that is, the user's monitoring needs, and obtain the output result, that is, the monitoring information.

[0251] See also Fig. 22 , Fig. 22 is a schematic diagram of the structure of a video monitoring device provided in an embodiment of the present application, such as Fig. 22 As shown, the video monitoring device 200 includes:

[0252] The acquisition module 201 is used to acquire a surveillance video and perform frame extraction processing on the surveillance video to obtain at least one video frame;

[0253] A first extraction module 202, configured to extract element features from the at least one video frame to obtain an element feature set;

[0254] The first construction module 203 is used to construct at least one type of element relationship table according to pre-configured monitoring requirements;

[0255] The second extraction module 204 is used to extract relationship features from the at least one type of element relationship table to obtain a relationship feature set;

[0256] The output module 205 is used to output the monitoring information of the monitoring video according to the relationship feature set and the element feature set.

[0257] Optionally, the element feature set includes element features and corresponding element feature information, and the element feature information includes at least one of element category, location and state;

[0258] The video monitoring device also includes:

[0259] An establishing module, used for establishing a category information library according to the element features and the corresponding element feature information in the element feature set, wherein the element features and the element feature information are correspondingly stored in the category information library;

[0260] The output module comprises:

[0261] A reconstruction unit, used for reconstructing environmental features at different angles at the same position in the category information library to obtain a panoramic environmental feature map;

[0262] The first output unit is used to output the monitoring information of the monitoring video according to the panoramic environment feature map, the element feature set and the relationship feature set.

[0263] Optionally, the output module includes:

[0264] A description unit, used to perform a structured description of the monitoring requirement to obtain structured description information of the monitoring requirement;

[0265] An inference unit, used to perform logical inference on the element feature set using a language model and the structured description information to obtain a monitoring result of the monitoring video;

[0266] The second output unit is used to output the monitoring result.

[0267] Optionally, the output module includes:

[0268] The third output unit is used to output the monitoring information including the relationship feature set and the element feature set, so as to be used for user analysis to determine the monitoring result.

[0269] Optionally, the at least one type of element relationship table includes at least one of the following items:

[0270] A region prohibited element relationship table, wherein the region prohibited element relationship table is used to indicate element feature information corresponding to the prohibited appearance of the first target object;

[0271] A state change element relationship table, wherein the state change element relationship table is used to indicate element feature information corresponding to the state change of the second target object;

[0272] An authentication element relationship table, wherein the authentication element relationship table is used to indicate element feature information corresponding to authentication of a third target object.

[0273] Optionally, when the at least one type of element relationship table includes a state change element relationship table, the video monitoring device further includes:

[0274] A second construction module is used to construct a corresponding class relationship feature mother library based on each type of relationship feature in the relationship feature set, wherein the feature mother library includes normal features and / or abnormal features of the second target object;

[0275] The output module comprises:

[0276] A matching unit, used for matching the element features in the element feature set with the features in the feature mother library to obtain a matching result;

[0277] A fourth output unit is used to determine and output the monitoring information of the monitoring video based on the matching result.

[0278] Optionally, the second building block includes:

[0279] An acquisition unit, configured to acquire a plurality of images of a second target object in a normal state and / or an abnormal state corresponding to each type of relationship feature in the relationship feature set;

[0280] An extraction unit, used to extract features from the multiple images to obtain image features of the multiple images;

[0281] The first determination unit is used to determine the normal features and / or abnormal features of the second target object based on the average features of the image features of the multiple images, wherein the normal features are the average features of the image features of the images in a normal state among the multiple images, and the abnormal features are the average features of the image features of the images in an abnormal state among the multiple images.

[0282] Optionally, the output module includes:

[0283] A second determining unit, configured to determine a recognition model corresponding to the element feature according to the relationship feature set and the element feature in the element feature set;

[0284] An authentication unit, used for calling a recognition model corresponding to the element feature to authenticate the element feature and obtain an authentication result;

[0285] The fifth output unit is used to determine and output the monitoring information of the monitoring video based on the authentication result.

[0286] Optionally, the matching unit is specifically used for:

[0287] Performing region segmentation on the at least one video frame to obtain a plurality of regions;

[0288] Using a pre-trained category search and matching model to perform category matching on the multiple regions to obtain matching regions;

[0289] Determine the element feature corresponding to the matching area in the element feature set;

[0290] The element features are matched with the features in the feature mother library using a pre-trained similarity judgment model to obtain a matching result.

[0291] For details, see Fig.23 As shown, an embodiment of the present application further provides an electronic device, including a bus 301 , a transceiver 302 , an antenna 303 , a bus interface 304 , a processor 305 and a memory 306 .

[0292] The processor 305 is used to:

[0293] Acquire a surveillance video, and perform frame extraction processing on the surveillance video to obtain at least one video frame;

[0294] Extracting feature elements from the at least one video frame to obtain a feature element set;

[0295] Construct at least one type of element relationship table according to pre-configured monitoring requirements;

[0296] Extracting relationship features from the at least one type of element relationship table to obtain a relationship feature set;

[0297] The monitoring information of the monitoring video is output according to the relationship feature set and the element feature set.

[0298] exist Fig.23 In the embodiment, the bus architecture (represented by bus 301) is shown, and bus 301 may include any number of interconnected buses and bridges, and bus 301 links various circuits including one or more processors represented by processor 305 and memory represented by memory 306. Bus 301 may also link various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. Bus interface 304 provides an interface between bus 301 and transceiver 302. Transceiver 302 may be one element or multiple elements, such as multiple receivers and transmitters, providing a unit for communicating with various other devices on a transmission medium. Data processed by processor 305 is transmitted on a wireless medium via antenna 303, and further, antenna 303 also receives data and transmits the data to processor 305.

[0299] The processor 305 is responsible for managing the bus 301 and general processing, and can also provide various functions, including timing, peripheral interfaces, voltage regulation, power management and other control functions. The memory 306 can be used to store data used by the processor 305 when performing operations.

[0300] Optionally, the processor 305 may be a central processing unit (CPU), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or a complex programmable logic device (CPLD).

[0301] Optionally, the element feature set includes element features and corresponding element feature information, and the element feature information includes at least one of element category, location and state;

[0302] The processor 305 is further configured to:

[0303] Establishing a category information library according to the element features and the corresponding element feature information in the element feature set, wherein the element features and the element feature information are correspondingly stored in the category information library;

[0304] The processor 305 is specifically used for:

[0305] Reconstructing the environmental features at different angles at the same location in the category information library to obtain a panoramic environmental feature map;

[0306] The monitoring information of the monitoring video is output according to the panoramic environment feature map, the element feature set and the relationship feature set.

[0307] Optionally, the processor 305 is specifically configured to:

[0308] Performing a structured description of the monitoring requirements to obtain structured description information of the monitoring requirements;

[0309] Performing logical reasoning on the element feature set using the language model and the structured description information to obtain a monitoring result of the monitoring video;

[0310] The monitoring result is outputted.

[0311] Optionally, the processor 305 is specifically configured to:

[0312] The monitoring information including the relationship feature set and the element feature set is output for the user to analyze and determine the monitoring result.

[0313] Optionally, the at least one type of element relationship table includes at least one of the following items:

[0314] A region prohibited element relationship table, wherein the region prohibited element relationship table is used to indicate element feature information corresponding to the prohibited appearance of the first target object;

[0315] A state change element relationship table, wherein the state change element relationship table is used to indicate element feature information corresponding to the state change of the second target object;

[0316] An authentication element relationship table, wherein the authentication element relationship table is used to indicate element feature information corresponding to authentication of a third target object.

[0317] Optionally, when the at least one type of element relationship table includes a state change element relationship table, the processor 305 is further configured to:

[0318] Building a corresponding class relationship feature mother library based on each class of relationship features in the relationship feature set, wherein the feature mother library includes normal features and / or abnormal features of the second target object;

[0319] The processor 305 is specifically used for:

[0320] Matching the element features in the element feature set with the features in the feature mother library to obtain a matching result;

[0321] Based on the matching result, monitoring information of the monitoring video is determined and output.

[0322] Optionally, the processor 305 is specifically configured to:

[0323] Acquire multiple images of the second target object in a normal state and / or an abnormal state corresponding to each type of relationship feature in the relationship feature set;

[0324] Performing feature extraction on the multiple images to obtain image features of the multiple images;

[0325] Based on the average features of the image features of the multiple images, the normal features and / or abnormal features of the second target object are determined, wherein the normal features are the average features of the image features of the images in a normal state among the multiple images, and the abnormal features are the average features of the image features of the images in an abnormal state among the multiple images.

[0326] Optionally, the processor 305 is specifically configured to:

[0327] Determine a recognition model corresponding to the element feature according to the relationship feature set and the element features in the element feature set;

[0328] Calling the recognition model corresponding to the element feature to authenticate the element feature and obtain an authentication result;

[0329] Based on the authentication result, monitoring information of the monitoring video is determined and output.

[0330] Optionally, the processor 305 is specifically configured to:

[0331] Performing region segmentation on the at least one video frame to obtain a plurality of regions;

[0332] Using a pre-trained category search and matching model to perform category matching on the multiple regions to obtain matching regions;

[0333] Determine the element feature corresponding to the matching area in the element feature set;

[0334] The element features are matched with the features in the feature mother library using a pre-trained similarity judgment model to obtain a matching result.

[0335] An embodiment of the present application also provides an electronic device, including: a processor, a memory, and a program stored in the memory and executable on the processor. When the program is executed by the processor, the various processes of the above-mentioned video surveillance method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0336] The embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, each process of the above-mentioned video surveillance method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. The computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0337] The embodiment of the present application also provides a computer program product, including computer instructions. When the computer instructions are executed by a processor, the various processes of the above-mentioned video surveillance method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, they are not repeated here.

[0338] It should be noted that, in this article, the terms "include", "comprises" or any other variations 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, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0339] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0340] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A video monitoring method, characterized in that: include: Acquire a surveillance video, and perform frame extraction processing on the surveillance video to obtain at least one video frame; Extracting feature elements from the at least one video frame to obtain a feature element set; Construct at least one type of element relationship table according to pre-configured monitoring requirements; Extracting relationship features from the at least one type of element relationship table to obtain a relationship feature set; The monitoring information of the monitoring video is output according to the relationship feature set and the element feature set.

2. The method according to claim 1, characterized in that The element feature set includes element features and corresponding element feature information, and the element feature information includes at least one of element category, location and state; After extracting element features from the at least one video frame to obtain an element feature set, and before outputting monitoring information of the monitoring video according to the relationship feature set and the element feature set, the method further includes: Establishing a category information library according to the element features and the corresponding element feature information in the element feature set, wherein the element features and the element feature information are correspondingly stored in the category information library; Outputting the monitoring information of the monitoring video according to the relationship feature set and the element feature set includes: Reconstructing the environmental features at different angles at the same location in the category information library to obtain a panoramic environmental feature map; The monitoring information of the monitoring video is output according to the panoramic environment feature map, the element feature set and the relationship feature set.

3. The method according to claim 1, characterized in that Outputting the monitoring information of the monitoring video according to the relationship feature set and the element feature set includes: Performing a structured description of the monitoring requirements to obtain structured description information of the monitoring requirements; Performing logical reasoning on the element feature set using the language model and the structured description information to obtain a monitoring result of the monitoring video; The monitoring result is outputted.

4. The method according to claim 1, characterized in that: Outputting the monitoring information of the monitoring video according to the relationship feature set and the element feature set includes: The monitoring information including the relationship feature set and the element feature set is output for the user to analyze and determine the monitoring result.

5. The method according to claim 1, characterized in that The at least one type of element relationship table includes at least one of the following items: A region prohibited element relationship table, wherein the region prohibited element relationship table is used to indicate element feature information corresponding to the prohibited appearance of the first target object; A state change element relationship table, wherein the state change element relationship table is used to indicate element feature information corresponding to the state change of the second target object; An authentication element relationship table, wherein the authentication element relationship table is used to indicate element feature information corresponding to authentication of a third target object.

6. The method according to claim 5, characterized in that In the case where the at least one type of element relationship table includes a state change element relationship table, before outputting the monitoring information of the monitoring video according to the relationship feature set and the element feature set, the method further includes: Building a corresponding class relationship feature mother library based on each class of relationship features in the relationship feature set, wherein the feature mother library includes normal features and / or abnormal features of the second target object; Outputting the monitoring information of the monitoring video according to the relationship feature set and the element feature set includes: Matching the element features in the element feature set with the features in the feature mother library to obtain a matching result; Based on the matching result, monitoring information of the monitoring video is determined and output.

7. The method according to claim 6, characterized in that The constructing of a corresponding class relationship feature mother library based on various types of relationship features in the relationship feature set includes: Acquire multiple images of the second target object in a normal state and / or an abnormal state corresponding to each type of relationship feature in the relationship feature set; Performing feature extraction on the multiple images to obtain image features of the multiple images; Based on the average features of the image features of the multiple images, the normal features and / or abnormal features of the second target object are determined, wherein the normal features are the average features of the image features of the images in a normal state among the multiple images, and the abnormal features are the average features of the image features of the images in an abnormal state among the multiple images.

8. The method according to claim 3, characterized in that Outputting the monitoring information of the monitoring video according to the relationship feature set and the element feature set includes: Determine a recognition model corresponding to the element feature according to the relationship feature set and the element features in the element feature set; Calling the recognition model corresponding to the element feature to authenticate the element feature and obtain an authentication result; Based on the authentication result, monitoring information of the monitoring video is determined and output.

9. The method according to claim 6, characterized in that The matching of the element features in the element feature set with the features in the feature mother library to obtain a matching result includes: Performing region segmentation on the at least one video frame to obtain a plurality of regions; Using a pre-trained category search and matching model to perform category matching on the multiple regions to obtain matching regions; Determine the element feature corresponding to the matching area in the element feature set; The element features are matched with the features in the feature mother library using a pre-trained similarity judgment model to obtain a matching result.

10. A video monitoring device, characterized in that: include: An acquisition module is used to acquire a surveillance video and perform frame extraction processing on the surveillance video to obtain at least one video frame; A first extraction module, configured to extract element features from the at least one video frame to obtain an element feature set; A first construction module is used to construct at least one type of element relationship table according to pre-configured monitoring requirements; A second extraction module is used to extract relationship features from the at least one type of element relationship table to obtain a relationship feature set; An output module is used to output the monitoring information of the monitoring video according to the relationship feature set and the element feature set.

11. An electronic device, characterized in that: comprising a processor configured to: Acquire a surveillance video, and perform frame extraction processing on the surveillance video to obtain at least one video frame; Extracting feature elements from the at least one video frame to obtain a feature element set; Construct at least one type of element relationship table according to pre-configured monitoring requirements; Extracting relationship features from the at least one type of element relationship table to obtain a relationship feature set; The monitoring information of the monitoring video is output according to the relationship feature set and the element feature set.

12. An electronic device, characterized in that: include: A processor, a memory, and a program stored in the memory and executable on the processor, wherein the program, when executed by the processor, implements the steps of the video surveillance method according to any one of claims 1 to 9.

13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the video monitoring method according to any one of claims 1 to 9 are implemented.

14. A computer program product, characterized in that The method comprises computer instructions, which, when executed by a processor, implement the steps of the video monitoring method according to any one of claims 1 to 9.

Citation Information

Cited By

  • Digital intelligence virtual park power grid management method and platform

    CN119338076A