Method, device and equipment for determining analysis area and intelligent analysis
The monitoring screen image is segmented through the target large model to automatically determine the analysis area, which solves the problems of high false alarms and low efficiency in the existing technology, and achieves efficient analysis area drawing and detection.
Patent Information
- Application Number
- CN202410846691.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-26
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2044-06-26
AI Technical Summary
In the existing technology, when detecting specific events in specific scenes, the full-screen analysis algorithm detects high false alarms and relies on manual drawing of the analysis area, which is inefficient and consumes a lot of manpower.
Segment the surveillance screen image through the target large model, automatically determine the target scene area type and analysis area, reduce manual intervention, and improve efficiency.
It realizes automatic drawing of the analysis area, reduces manual investment, improves the efficiency of drawing the analysis area, reduces false alarms, and improves detection efficiency.
Smart Images

Figure CN118397255B
Abstract
Description
Technical Field
[0001] The present application relates to the field of AI intelligent algorithm technology, and in particular to a method, device and equipment for determining an analysis area and performing intelligent analysis. Background Art
[0002] With the rapid development of AI (Artificial Intelligence) technology and the popularization of monitoring equipment, using AI technology to detect specific events in specific scenarios has gradually become a popular application direction.
[0003] At present, when detecting specific events in specific scenes, full-screen analysis algorithm detection has many interference factors and high false alarms. Therefore, it is usually required to manually draw the analysis area, so as to detect specific events in the analysis area based on the image data collected by the monitoring points deployed in the specific scene.
[0004] However, the above method of manually drawing the analysis area is highly dependent on manual labor, requires a lot of manpower, and has low efficiency. Summary of the invention
[0005] In view of this, the present application provides a method, device and equipment for determining an analysis area and performing intelligent analysis.
[0006] According to a first aspect of an embodiment of the present application, a method for determining an analysis area is provided, comprising:
[0007] Determine the target scene area type for the target monitoring point;
[0008] Taking the target scene area type and the acquired monitoring screen image of the target monitoring point as inputs of the target large model, performing image segmentation on the monitoring screen image of the target monitoring point using the target large model, and determining the position information of the area of the target scene area type in the monitoring screen image;
[0009] According to the position information of the area of the target scene area type in the monitoring screen image, the analysis area of the target monitoring point for the target scene area type is determined.
[0010] According to a second aspect of an embodiment of the present application, there is provided an intelligent analysis method, including:
[0011] For any analysis algorithm running on the monitoring point to be analyzed, determine the scene area type corresponding to the analysis algorithm;
[0012] Determine an analysis area of the monitoring point to be analyzed for the scene area type; wherein the analysis area is determined using the method provided in the first aspect;
[0013] According to the analysis parameters of the analysis algorithm and the analysis area of the monitoring point to be analyzed for the scene area type, intelligent analysis processing is performed.
[0014] According to a third aspect of an embodiment of the present application, there is provided an analysis region determination device, including:
[0015] A first determining unit is configured to determine a target scene area type for a target monitoring point;
[0016] a segmentation unit configured to use the target scene area type and the acquired monitoring screen image of the target monitoring point as inputs of the target large model, perform image segmentation on the monitoring screen image of the target monitoring point using the target large model, and determine the position information of the area of the target scene area type in the monitoring screen image;
[0017] The second determination unit is configured to determine the analysis area of the target monitoring point for the target scene area type according to the position information of the area of the target scene area type in the monitoring screen image.
[0018] According to a fourth aspect of an embodiment of the present application, there is provided an intelligent analysis device, including:
[0019] A first determination unit is configured to determine, for any analysis algorithm running on the monitoring point to be analyzed, a scene area type corresponding to the analysis algorithm;
[0020] A second determination unit is configured to determine an analysis area of the monitoring point to be analyzed for the scene area type; wherein the analysis area is determined using the method provided in the first aspect;
[0021] The analysis unit is configured to perform intelligent analysis and processing based on the analysis parameters of the analysis algorithm and the analysis area of the monitoring point to be analyzed for the scene area type.
[0022] According to a fifth aspect of an embodiment of the present application, there is provided an electronic device, including a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;
[0023] Memory, used to store computer programs;
[0024] The processor is used to implement the method provided by the first aspect or the second aspect when executing the program stored in the memory.
[0025] According to the sixth aspect of the embodiments of the present application, a non-temporary computer-readable storage medium is provided, in which a computer program is stored. When the computer program is executed by a processor, the method provided in the first aspect or the second aspect is implemented.
[0026] The analysis area determination method of the embodiment of the present application uses a large target model to perform image segmentation on the monitoring screen image of the target monitoring point, determines the position information of the area of the target scene area type in the monitoring screen image, and determines the analysis area of the target monitoring point for the target scene area type based on the position information of the area of the target scene area type in the monitoring screen image, thereby realizing automatic drawing of the analysis area, reducing manual input, and improving the efficiency of drawing the analysis area. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 It is a flowchart of a method for determining an analysis area provided in an embodiment of the present application;
[0028] Figure 2 It is a flowchart of an intelligent analysis method provided in an embodiment of the present application;
[0029] Figure 3A and Figure 3B is a schematic diagram of the analysis area before and after the processing provided in the embodiment of the present application;
[0030] Figure 4 It is a schematic diagram of a processing flow of a capture task and a segmentation task provided in an embodiment of the present application;
[0031] Figure 5 This is a schematic diagram of a processing flow of batch scene management provided by an embodiment of the present application;
[0032] Figure 6 This is a schematic diagram of a processing flow of a single point scene management provided by an embodiment of the present application;
[0033] Figure 7 is a structural schematic diagram of an analysis area determination device provided in an embodiment of the present application;
[0034] Figure 8 It is a structural schematic diagram of an intelligent analysis device provided in an embodiment of the present application;
[0035] Fig. 9 It is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0036] In order to enable those skilled in the art to better understand the technical solutions provided by the embodiments of the present application and to make the above-mentioned purposes, features and advantages of the embodiments of the present application more obvious and understandable, the technical solutions in the embodiments of the present application are further described in detail below in conjunction with the accompanying drawings.
[0037] It should be noted that the serial numbers of the steps in the embodiments of the present application do not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0038] See also Figure 1 , is a flow chart of a method for determining an analysis area provided in an embodiment of the present application, such as Figure 1 As shown, the analysis area determination method may include the following steps:
[0039] Step S100: Determine the target scene area type for the target monitoring point.
[0040] For example, the target monitoring point does not specifically refer to a fixed monitoring point, but may refer to any monitoring point that supports the analysis area configuration using the technical solution provided in the embodiment of the present application.
[0041] For example, in the process of performing intelligent analysis based on image data of monitoring points, it is necessary to determine the analysis area in the image.
[0042] In order to determine the analysis area, a scene area type for a target monitoring point (which may be referred to as a target scene area type) may be determined.
[0043] Exemplarily, scene area types (also referred to as scene area labels) may include, but are not limited to, roads, sidewalks, water surfaces, skies, grass, or trash cans, etc.
[0044] Exemplarily, for the same monitoring point, the scene area type may include multiple different types.
[0045] Exemplarily, when the target scene area type includes multiple different types, the analysis area can be determined in the manner described in steps S110 to S120 for any scene area type.
[0046] It should be noted that, when the monitoring point supports pan-tilt control, the technical solutions provided in the embodiments of the present application can be used to determine the analysis areas for different preset points of the monitoring point.
[0047] Step S110, using the target scene area type and the acquired monitoring screen image of the target monitoring point as input of the target large model, using the target large model to segment the monitoring screen image of the target monitoring point, and determining the location information of the area of the target scene area type in the monitoring screen image.
[0048] In the embodiments of the present application, a large model refers to a machine learning model with a large number of parameters and a complex structure. These models usually have more powerful expression capabilities and can handle more complex tasks and data.
[0049] Exemplarily, the target large model does not specifically refer to a fixed large model, but can refer to any large model with image segmentation function.
[0050] In an embodiment of the present application, when the target scene area type for the target monitoring point is determined, the target scene area type and the acquired monitoring screen image of the target monitoring point can be used as input of the target large model, and the monitoring screen image of the target monitoring point can be segmented using the target large model to determine the location information of the area of the target scene area type in the monitoring screen image.
[0051] Exemplarily, the monitoring screen image of the target monitoring point can be obtained by capturing the monitoring screen of the target monitoring point.
[0052] Exemplarily, the position information of the area of the target scene area type in the monitoring screen image may include the position information of the pixels of the target scene area type in the monitoring screen image.
[0053] Step S120: Determine the analysis area of the target monitoring point for the target scene area type according to the position information of the area of the target scene area type in the monitoring screen image.
[0054] In an embodiment of the present application, when the position information of the area of the target scene area type in the monitoring screen image is determined, the analysis area of the target monitoring point for the target scene area type can be determined based on the position information of the area of the target scene area type in the monitoring screen image.
[0055] It can be seen that in Figure 1 In the method flow shown, the monitoring screen image of the target monitoring point is segmented by using the target large model to determine the position information of the area of the target scene area type in the monitoring screen image, and based on the position information of the area of the target scene area type in the monitoring screen image, the analysis area of the target monitoring point for the target scene area type is determined, thereby realizing automatic drawing of the analysis area, reducing manual input, and improving the efficiency of drawing the analysis area.
[0056] In some embodiments, the above-mentioned determination of the target scene area type for the target monitoring point may include:
[0057] Obtain analysis algorithms configured for target monitoring points;
[0058] The algorithm description file of the obtained analysis algorithm is parsed to determine the scene area type corresponding to the analysis algorithm, and based on the scene area type corresponding to the analysis algorithm, the target scene area type for the target monitoring point is determined.
[0059] Exemplarily, the scene area type of the monitoring point can be determined according to an intelligent analysis algorithm (referred to as analysis algorithm) configured for the monitoring point.
[0060] Exemplarily, the analysis algorithm configured for the target monitoring point may include one or more.
[0061] Exemplarily, an analysis algorithm generally corresponds to one or more types of scene area types.
[0062] For example, for a fishing detection algorithm, the corresponding scene area types may include water surface and shore.
[0063] Exemplarily, the algorithm description file of the analysis algorithm may include the scene area type corresponding to the analysis algorithm.
[0064] For any analysis algorithm configured for a target monitoring point, the algorithm description file of the analysis algorithm can be parsed to determine the scene area type corresponding to the analysis algorithm, and based on the scene area type corresponding to the analysis algorithm, the target scene area type for the target monitoring point can be determined.
[0065] In some embodiments, the above-mentioned determination of the target scene area type for the target monitoring point may include:
[0066] According to the detected scene area type configuration instruction for the target monitoring point, the target scene area type for the target monitoring point is determined.
[0067] Exemplarily, the scene area type of the monitoring point can be determined by configuration.
[0068] For example, for any monitoring point, the user can configure the scene area type for the monitoring point according to the scene area existing in the monitoring screen of the monitoring point and according to actual application requirements.
[0069] For example, a monitoring point deployed at the edge of a river and facing the river surface may be used for detecting floating objects on the water surface. Therefore, the water surface can be configured as the scene area type for the monitoring point, and the analysis area of the monitoring point for the water surface can be determined according to the solution provided in the embodiment of the present application. Subsequently, when floating object detection on the water surface is required, there is no need to perform additional analysis area determination, thereby improving the efficiency of the algorithm application.
[0070] Accordingly, the target scene area type for the target monitoring point may be determined based on the detected scene area type configuration instruction for the target monitoring point.
[0071] In some embodiments, the above-mentioned determination of the analysis area of the target monitoring point for the target scene area type based on the position information of the area of the target scene area type in the monitoring screen image may include:
[0072] According to the position information of the area of the target scene area type in the monitoring screen image, the area of the target scene area type in the monitoring screen image is integrated to obtain a polygonal area whose number of sides does not exceed a preset edge number threshold, and the polygonal area is determined as the analysis area of the target monitoring point for the target scene area type.
[0073] For example, considering that in actual applications, when the target large model performs regional segmentation of a specified scene area type, the segmentation result will be relatively fine, and all location information belonging to the specified scene area type will be segmented out. The segmented area may not be suitable for the analysis algorithm.
[0074] Based on this, in order to reduce the computational cost of the analysis algorithm, the target scene area type area obtained by image segmentation of the large model can be integrated into a relatively regular polygon to make it more compatible with the analysis algorithm.
[0075] Accordingly, when the position information of the area of the target scene area type in the monitoring screen image is determined, the area of the target scene area type in the monitoring screen image can be integrated according to the position information of the area of the target scene area type in the monitoring screen image to obtain a polygonal area whose number of sides does not exceed a preset edge number threshold (the specific value can be set according to needs, such as 10), and the polygonal area is determined as the analysis area of the target monitoring point for the target scene area type.
[0076] In one example, when the target scene area type includes multiple scene area types corresponding to the same analysis algorithm, integrating the target scene area type areas in the monitoring screen image according to the position information of the target scene area type areas in the monitoring screen image may include:
[0077] When the regional integration strategy is unified integration, the regions of the target scene region types corresponding to the same analysis algorithm are integrated in the monitoring screen image according to the position information of the regions of different types of target scene region types corresponding to the same analysis algorithm in the monitoring screen image.
[0078] For example, in actual scenes, there may be some analysis algorithms corresponding to multiple types of scene area types, and the same strategy is used to perform detection and analysis on the areas of the multiple scene area types.
[0079] For example, for a fishing detection algorithm, the corresponding scene area types may include shore and water surface, and when performing fishing detection, the same strategy will be used for detection and analysis for the shore and water surface.
[0080] For these analysis algorithms, their regional integration strategy can be set to unified integration.
[0081] Exemplarily, the regional integration strategy may be recorded in an algorithm description file.
[0082] Exemplarily, when the regional integration strategy is unified integration, the regions of the target scene area types corresponding to the same analysis algorithm in the monitoring screen image can be integrated based on the position information of the regions of different types of target scene area types corresponding to the same analysis algorithm in the monitoring screen image, that is, the regions of different types of target scene area types corresponding to the same analysis algorithm in the monitoring screen image are integrated together.
[0083] In one example, when the target scene area type includes multiple scene area types corresponding to the same analysis algorithm, integrating the target scene area type areas in the monitoring screen image according to the position information of the target scene area type areas in the monitoring screen image may include:
[0084] When the regional integration strategy is classified integration, for any type of target scene region type region, the region of the target scene region type in the monitoring screen image is integrated according to the position information of the region of the target scene region type in the monitoring screen image;
[0085] When polygonal areas corresponding to various types of target scene area types are obtained, for the polygonal area corresponding to any type of target scene area type, if the polygonal area includes areas of other types of target scene area types corresponding to the same analysis algorithm, the areas of other types of target scene area types corresponding to the same analysis algorithm included in the polygonal area are shielded.
[0086] For example, in actual scenarios, there may be some analysis algorithms corresponding to multiple types of scene area types, and different strategies are used to perform detection and analysis on the areas of the multiple scene area types.
[0087] For example, for a pedestrian crossing detection algorithm, the corresponding scene area types may include sidewalks and non-sidewalks, and when performing pedestrian crossing detection, different strategies will be used for detection and analysis for sidewalks and non-sidewalks.
[0088] For example, for the sidewalk area, a pedestrian crossing the road when the corresponding traffic light is red will trigger an alarm event, and for the non-sidewalk area, the presence of pedestrians crossing the road will trigger an alarm event. That is, the detection and analysis strategies for the sidewalk area and the non-sidewalk area are different.
[0089] For these analysis algorithms, their regional integration strategy can be set to classification integration.
[0090] Exemplarily, the regional integration strategy may be recorded in an algorithm description file.
[0091] When the regional integration strategy is classification integration, for regions of any type of target scene region type, the regions of this type of target scene region type in the monitoring screen image are integrated according to the position information of the regions of this type of target scene region type in the monitoring screen image.
[0092] When the regions of various target scene area types are integrated in the above manner to obtain polygonal regions corresponding to the regions of various target scene area types, for the polygonal region corresponding to the region of any target scene area type, if the polygonal region includes regions of other target scene area types corresponding to the same analysis algorithm, the regions of other target scene area types corresponding to the same analysis algorithm included in the polygonal region are shielded.
[0093] Exemplarily, for an area of any type of target scene area type, when the area is used as the analysis area for detection and analysis, the shielded area in the area is not detected.
[0094] Still taking the pedestrian crossing detection algorithm as an example, considering that in actual scenarios, the non-pedestrian area usually surrounds the sidewalk, therefore, the integrated non-pedestrian area may include the sidewalk area. In order to avoid covering the sidewalk area when detecting the non-pedestrian area, the sidewalk area in the non-pedestrian area can be shielded. When performing detection and analysis on the non-pedestrian area, the shielded area (i.e. the sidewalk area) in the non-pedestrian area is not detected, thereby reducing the occurrence of false alarm events.
[0095] In one example, the integration of the target scene area type areas in the monitoring screen image according to the position information of the target scene area type areas in the monitoring screen image may include:
[0096] According to the position information of the area participating in the integration in the monitoring screen image, the outermost edge pixel point of the area participating in the integration is determined, and the area participating in the integration in the monitoring screen image is integrated according to the outermost edge pixel point.
[0097] Exemplarily, the regions involved in the integration may include regions of the same target scene region type, or regions of different target scene region types that need to be uniformly integrated.
[0098] In the process of integrating the areas participating in the integration, the outermost edge pixel points of the areas participating in the integration can be determined based on the position information of the areas participating in the integration in the monitoring screen image, and the areas participating in the integration in the monitoring screen image can be integrated based on the determined outermost edge pixel points to obtain a polygonal area whose number of sides does not exceed the preset edge number threshold.
[0099] For example, the polar angles of all outermost edge pixel points can be calculated and sorted based on the starting point (the starting point can be selected according to preset rules, such as selecting the outermost edge pixel point closest to the lower left corner of the image as the starting point) to obtain a clockwise polygon. Secondly, the Graham scanning algorithm is used to convert the polygon into a convex deformation. Subsequently, the polygon is finely trimmed on this basis, and the points with the inner angles closest to 180 degrees are cyclically removed to finally obtain a polygon with no more than ten sides.
[0100] It should be noted that in the embodiment of the present application, in order to improve the efficiency of regional integration, during the process of regional integration, the areas where the number of pixels included is less than a preset threshold (which can be set according to the actual scenario) can be deleted first, and then the remaining areas can be integrated.
[0101] See also Figure 2 , is a flow chart of an intelligent analysis method provided in an embodiment of the present application, such as Figure 2 As shown, the intelligent analysis method may include the following steps:
[0102] Step S200: for any analysis algorithm executed on the monitoring point to be analyzed, determine the scene area type corresponding to the analysis algorithm.
[0103] In an embodiment of the present application, for any monitoring point deployed in a specific scene (which may be referred to as a monitoring point to be analyzed), an analysis algorithm can be run for the monitoring point, and the analysis algorithm can be used to perform intelligent analysis based on the image data collected by the monitoring point, such as scene event detection.
[0104] Exemplarily, the scene event detection may include, but is not limited to, water surface floating object detection, road spilled object detection, road construction detection, or green space dirtiness detection, etc.
[0105] Exemplarily, for any analysis algorithm executed on the monitoring point to be analyzed, the scene area type corresponding to the analysis algorithm is determined.
[0106] For example, for an analysis algorithm used to detect floating objects on the water surface, the scene area type may be the water surface; for an analysis algorithm used to detect spilled objects on the road, the scene area type may be the road; for an analysis algorithm used to detect dirtiness in green spaces, the scene area type may be the grass.
[0107] In one example, the scene area type corresponding to the analysis algorithm can be determined by parsing the algorithm description file of the analysis algorithm.
[0108] Step S210: Determine the analysis area of the monitoring point to be analyzed for the scene area type.
[0109] In the embodiment of the present application, when the scene area type corresponding to the analysis algorithm running on the monitoring point to be analyzed is determined, the analysis area of the monitoring point to be analyzed for the scene area type can be determined.
[0110] For example, the above monitoring points to be analyzed can be analyzed according to the analysis area of the scene area type. Figure 1 The method flow shown is confirmed.
[0111] It should be noted that, for any monitoring point to be analyzed, when the scene area type corresponding to the analysis algorithm running on the monitoring point to be analyzed is determined, it can be queried whether the analysis area for the scene area type of the monitoring point has been determined (the implementation method can refer to the relevant instructions in the above process); if the analysis area for the scene area type of the monitoring point has been determined, there is no need to determine the analysis area in real time; if the analysis area for the scene area type of the monitoring point has not been determined, it can be determined according to Figure 1 The method flow shown determines in real time the analysis area of the monitoring point for the scene area type.
[0112] Step S220: Perform intelligent analysis and processing based on the analysis parameters of the analysis algorithm and the analysis area of the monitoring point to be analyzed for the scene area type.
[0113] In an embodiment of the present application, for any analysis algorithm running on the monitoring point to be analyzed, when the analysis area of the monitoring point to be analyzed for the scene area type corresponding to the analysis algorithm is determined, intelligent analysis and processing can be performed based on the analysis parameters of the analysis algorithm and the analysis area of the monitoring point to be analyzed for the scene area type.
[0114] Exemplarily, the analysis parameters of the analysis algorithm may include, but are not limited to, one or more of parameters such as sensitivity, confidence, and analysis interval.
[0115] Exemplarily, the analysis parameters of the analysis algorithm may be obtained by parsing an algorithm description file of the analysis algorithm.
[0116] In order to enable those skilled in the art to better understand the technical solutions provided in the embodiments of the present application, the technical solutions provided in the embodiments of the present application are described below with reference to specific examples.
[0117] In this embodiment, based on the recognition capability of the CV (Computer Vision) large model, a general physical segmentation algorithm and an algorithm area description are used to segment all pixels belonging to this type of target. After obtaining one or more pixel areas, the results are denoised, merged, straightened, etc. to form a regional range of a specified target. According to the single detection area of the conventional algorithm, the analyzed pixel areas are merged and simplified, and the final regional range can be used as the analysis area for algorithm detection. Combined with the built-in recommended parameters of the algorithm, automatic scene management is formed, which reduces the cost of manual participation and automatically completes the pre-work of algorithm analysis.
[0118] The following is an explanation of the implementation process of the automatic scenario management solution based on the big model.
[0119] 1. Preset algorithm area description and recommended input parameters.
[0120] For example, when the algorithm development is completed, the algorithm input and output and basic information can be described, and the description of the algorithm analysis adaptation area can be added, that is, the description of the scene area type that the algorithm analysis is adapted to can be added. For example, for floating object detection, the adapted scene area type is the water surface (including river and lake water surface, stream landscape water area, etc.), and the input parameters of the algorithm are described as recommended input parameters, such as confidence, sensitivity, and one or more of the parameters to be configured during the algorithm analysis, such as analysis interval, etc., and the whole is encapsulated into a complete algorithm package. Upload to the algorithm warehouse for algorithm management.
[0121] 2. Parse the preset algorithm area description and recommended input parameters.
[0122] For example, when using an algorithm, the algorithm can be synchronized from the algorithm platform, and the algorithm description file can be parsed to obtain the algorithm's adaptive region information tag (i.e., scene region type) and recommended input parameters. The algorithm's applicable region information tag and recommended parameters are saved according to the algorithm identifier to prepare data for subsequent segmentation.
[0123] For example, for an algorithm for detecting road spills, an algorithm for detecting road construction, an algorithm for detecting roadblocks, an algorithm for detecting road damage, or an algorithm for detecting road sewage, the adapted area information tag may be a road;
[0124] For algorithms for detecting unclean waters, algorithms for detecting floating objects on the water surface, algorithms for recognizing water body colors, or algorithms for detecting fishing cages, the applicable area information tag may be the water surface.
[0125] 3. Screen segmentation and area processing.
[0126] For example, taking the algorithm for detecting floating objects on the water surface as an example, by parsing the algorithm description file, it is determined that the algorithm's adaptation area information tag is the water surface, and the large model analysis is called. The type of scene area to be segmented is passed in as the water surface. The target coordinate information returned by the large model that conforms to the water surface is obtained, and all pixels belonging to this type of target are segmented to obtain one or more pixel areas.
[0127] The obtained pixel area can be further processed to obtain a detection area that meets the algorithm rules.
[0128] Exemplarily, since the general algorithm detection area rule requires a single detection area and no more than a decagon, the obtained pixel areas can be merged and simplified.
[0129] For example, you can first calculate the polar angles of all points based on the starting point (the starting point can be selected according to preset rules, such as selecting the pixel closest to the lower left corner of the image as the starting point) and sort them to obtain a clockwise polygon. Then use the Graham scanning algorithm to convert the polygon into a convex deformation. Subsequently, the polygon is fine-cut on this basis, and the points with the inner angles closest to 180 degrees are cyclically removed to finally obtain a polygon with no more than ten sides.
[0130] In one example, the analysis area before and after processing can be as follows Figure 3A and Figure 3B shown.
[0131] For example, when creating a scenario management task, the analysis algorithm required for the scenario management task and the related monitoring points can be determined.
[0132] In the case where a large model for image segmentation exists, it can be determined whether there is an analysis algorithm that supports automatic determination of the analysis region among the required analysis algorithms.
[0133] For any analysis algorithm that supports automatic determination of the analysis area, you can select the monitoring points configured with the analysis algorithm, select them in batches or select all with one click, and start the task.
[0134] For example, in order to realize automatic determination of the analysis area, it is necessary to first capture a picture of the selected monitoring point.
[0135] Exemplarily, during the screenshot processing, the information of the selected monitoring point can be saved in the cache. For any monitoring point in the cache, the monitoring point can be triggered to take a screenshot, and the screenshot data of the monitoring point can be saved in the database, the corresponding analysis identifier can be set, and the information of the monitoring point can be deleted from the cache.
[0136] Exemplarily, for any screenshot data in the database, its analysis identification may include to be segmented, segmented, segmentation failed, or unrecognized.
[0137] Among them, unidentified means that the screenshot data is successfully segmented according to the solution provided in the embodiment of the present application, but the required target (such as an area of the target scene area type) does not exist in the screenshot data.
[0138] Exemplarily, the initial value of the analysis identifier of each screenshot data in the database is to be segmented.
[0139] In the automatic determination task of the analysis area (also referred to as the segmentation task), the snapshot data of each monitoring point that is analyzed and marked as to be segmented or failed to be segmented may be saved in the cache.
[0140] For the snapshot data of any monitoring point saved in the cache, the large model can be used to segment the targets of the corresponding scene area type and automatically determine the analysis area. If the segmentation is successful, the analysis flag of the snapshot data where the required target exists will be updated to segmented; the analysis flag of the snapshot data where the required target does not exist will be updated to unidentified.
[0141] For the captured image data that failed segmentation, the analysis flag is set to segmentation failure.
[0142] For example, the processing flow diagram of the image capture task and the segmentation task can be as follows: Figure 4 shown.
[0143] It should be noted that for the captured image data that fails to be segmented, the number of segmentation failures can also be recorded. When the number of segmentation failures reaches a preset maximum number, it will no longer be segmented, but other strategies can be used for processing, such as processing by manual intervention.
[0144] For example, in actual applications, screenshots can be processed during the day and the screenshot data can be saved in a database. An analysis flag can be set, and at a specified time (the default is to start immediately, and the analysis time can also be set according to actual needs, such as night analysis), the screenshot data to be segmented and the screenshot data that failed segmentation can be pulled for segmentation processing, and the records can be updated after the segmentation is successful.
[0145] 4. Assemble rules for intelligent analysis.
[0146] Exemplarily, when the analysis area of a monitoring point for a specific scene area type is determined in the above manner, for any analysis algorithm running on the monitoring point, the algorithm description file of the analysis algorithm can be parsed to determine the adaptation area information tag and recommended input parameters. Based on the adaptation area information tag, the analysis area corresponding to the monitoring point is determined, and the recommended input parameters are used to intelligently analyze the image information of the analysis area to achieve automatic scene management.
[0147] It should be noted that the monitoring points determined in the above manner for the analysis area of a specific scenario area type can also be used as regional parameter options for manual governance scenarios.
[0148] For example, in a manual management scenario, for any analysis algorithm running on a monitoring point to be analyzed, the user can choose to manually draw a detection area, or choose intelligent scene segmentation.
[0149] When the user selects intelligent scene segmentation, the analysis area can be automatically determined according to the technical solution provided in the embodiment of the present application.
[0150] For example, when creating a scenario management task, you need to select monitoring points and configure analysis algorithms for the monitoring points.
[0151] For any analysis algorithm, if the adaptation area information tag and recommended input parameters are configured, there is no need to manually draw the analysis area and configure the parameters.
[0152] Exemplarily, in order to improve flexibility, the analysis algorithm configured with the adaptation area information tag and recommended input parameters can prompt the user whether to use the configured adaptation area information tag and recommended input parameters; if the user chooses not to use it, the user can also manually draw the area and configure the parameters.
[0153] For example, in order to improve the efficiency of scene management, batch scene management can be performed for the monitoring points in the analysis area that have been determined according to the technical solution provided in the embodiment of the present application.
[0154] Exemplarily, during batch scene management, for the selected monitoring points and the analysis algorithms configured for each monitoring point, it can be determined whether the corresponding analysis area (the analysis area required by the configured analysis algorithm) has been determined for the selected monitoring points; if so, an intelligent scene segmentation option can be provided, and if the user selects intelligent scene segmentation, the determined analysis area can be used for scene management.
[0155] For example, for batch scene management, if there are monitoring points in the selected monitoring points where the corresponding analysis area is not determined, it can be prompted that batch management is not supported. The schematic diagram can be as follows: Figure 5 shown.
[0156] For single-point scenario management, if the analysis area of the monitoring point has been determined for the configured analysis algorithm, the determined analysis area can be used; if the analysis area of the monitoring point has not been determined for the configured analysis algorithm, it can be determined whether the analysis algorithm currently configured for the monitoring point supports automatic determination of the analysis area.
[0157] If it is not supported, a prompt message may be output to prompt the user whether automatic determination of the analysis area is supported.
[0158] If supported, the analysis area can be automatically determined, and scene management can be performed based on the automatically determined analysis area. The schematic diagram can be as follows: Figure 6 shown.
[0159] The method provided by the present application is described above. The device provided by the present application is described below:
[0160] See also Figure 7 , is a schematic diagram of the structure of an analysis area determination device provided in an embodiment of the present application, such as Figure 7 As shown, the analysis area determination device may include:
[0161] The first determining unit 710 is configured to determine a target scene area type for a target monitoring point;
[0162] The segmentation unit 720 is configured to use the target scene area type and the acquired monitoring screen image of the target monitoring point as inputs of the target large model, perform image segmentation on the monitoring screen image of the target monitoring point using the target large model, and determine the position information of the area of the target scene area type in the monitoring screen image;
[0163] The second determination unit 730 is configured to determine the analysis area of the target monitoring point for the target scene area type according to the position information of the area of the target scene area type in the monitoring screen image.
[0164] In some embodiments, the first determination unit 710 is specifically configured to obtain an analysis algorithm configured for a target monitoring point; parse an algorithm description file of the analysis algorithm to determine the scene area type corresponding to the analysis algorithm, and determine the target scene area type for the target monitoring point based on the scene area type corresponding to the analysis algorithm; or, determine the target scene area type for the target monitoring point based on a detected scene area type configuration instruction for the target monitoring point.
[0165] In some embodiments, for an analysis algorithm, the corresponding scene area type includes one or more types.
[0166] In some embodiments, the second determination unit 730 is specifically configured to integrate the areas of the target scene area type in the monitoring screen image based on the position information of the areas of the target scene area type in the monitoring screen image, obtain a polygonal area whose number of sides does not exceed a preset edge number threshold, and determine the polygonal area as the analysis area for the target monitoring point for the target scene area type.
[0167] In some embodiments, the second determination unit 730 is specifically configured to integrate the areas of the target scene area type corresponding to the analysis algorithm in the monitoring screen image based on the position information of the areas of different types of target scene area types corresponding to the same analysis algorithm in the monitoring screen image when the target scene area type includes multiple scene area types corresponding to the same analysis algorithm and the area integration strategy is unified integration.
[0168] In some embodiments, the second determination unit 730 is specifically configured to, when the target scene area type includes multiple scene area types corresponding to the same analysis algorithm and the area integration strategy is classification integration, integrate the areas of any type of target scene area type in the monitoring screen image based on the position information of the areas of the type of target scene area type in the monitoring screen image; when polygonal areas corresponding to areas of various types of target scene area types are obtained, for the polygonal area corresponding to any type of target scene area type, when the polygonal area includes areas of other types of target scene area types corresponding to the same analysis algorithm, the areas of other types of target scene area types corresponding to the same analysis algorithm included in the polygonal area are shielded.
[0169] In some embodiments, the second determination unit 730 is specifically configured to determine the outermost edge pixel points of the area participating in the integration based on the position information of the area participating in the integration in the monitoring screen image, and integrate the area participating in the integration in the monitoring screen image based on the determined outermost edge pixel points.
[0170] See also Figure 8 , is a schematic diagram of the structure of an intelligent analysis device provided in an embodiment of the present application, such as Figure 8 As shown, the intelligent analysis device may include:
[0171] The first determination unit 810 is configured to determine, for any analysis algorithm executed on the monitoring point to be analyzed, a scene area type corresponding to the analysis algorithm;
[0172] The second determining unit 820 is configured to determine the analysis area of the monitoring point to be analyzed for the scene area type;
[0173] Exemplarily, the analysis area may be determined using the method described in the above embodiments.
[0174] The analysis unit 830 is configured to perform intelligent analysis and processing according to the analysis parameters of the analysis algorithm and the analysis area of the monitoring point to be analyzed for the scene area type.
[0175] In some embodiments, the scene region type corresponding to the analysis algorithm is determined by parsing an algorithm description file of the analysis algorithm;
[0176] and / or,
[0177] The analysis parameters of the analysis algorithm are obtained by parsing the algorithm description file of the analysis algorithm.
[0178] See also Fig. 9 , is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. The electronic device may include a processor 901, a communication interface 902, a memory 909 and a communication bus 904. The processor 901, the communication interface 902 and the memory 909 communicate with each other through the communication bus 904. Among them, the memory 909 stores a computer program; the processor 901 can execute the analysis area determination method or the intelligent analysis method described above by executing the program stored in the memory 909.
[0179] The memory 909 mentioned herein may be any electronic, magnetic, optical or other physical storage device that may contain or store information, such as executable instructions, data, etc. For example, the memory 909 may be: RAM (Radom Access Memory), volatile memory, non-volatile memory, flash memory, storage drive (such as hard disk drive), solid state drive, any type of storage disk (such as optical disk, DVD, etc.), or similar storage medium, or a combination thereof.
[0180] The present application also provides a non-transitory machine-readable storage medium storing a computer program, such as Fig. 9 The computer program may be stored in the memory 909. Fig. 9 The processor 901 in the electronic device is executed to implement the analysis area determination method or intelligent analysis method described above.
[0181] The present application also provides a computer program stored in a non-transitory machine-readable storage medium, such as Fig. 9 The memory 909 in the memory 909, and when the processor executes the computer program, it prompts the processor 901 to execute the analysis area determination method or the intelligent analysis method described above.
Claims
1. A method for determining an analysis area, It is characterized in that include: Determine the target scene area type for the target monitoring point; The target scene area type and the acquired monitoring screen image of the target monitoring point are used as inputs of the target large model, and the monitoring screen image of the target monitoring point is segmented using the target large model to determine the position information of the area of the target scene area type in the monitoring screen image; wherein the position information of the area of the target scene area type in the monitoring screen image includes the position information of the pixels of the target scene area type in the monitoring screen image; Determine the analysis area of the target monitoring point for the target scene area type according to the position information of the area of the target scene area type in the monitoring screen image; Wherein, determining the analysis area of the target monitoring point for the target scene area type according to the position information of the area of the target scene area type in the monitoring screen image includes: According to the position information of the area of the target scene area type in the monitoring screen image, the area of the target scene area type in the monitoring screen image is integrated to obtain a polygonal area whose number of sides does not exceed a preset edge number threshold, and the polygonal area is determined as the analysis area of the target monitoring point for the target scene area type.
2. The method according to claim 1, It is characterized in that Determining the target scene area type for the target monitoring point includes: Obtaining an analysis algorithm configured for the target monitoring point; Parsing the algorithm description file of the analysis algorithm to determine the scene area type corresponding to the analysis algorithm, and determining the target scene area type for the target monitoring point according to the scene area type corresponding to the analysis algorithm; or, According to the detected scene area type configuration instruction for the target monitoring point, a target scene area type for the target monitoring point is determined.
3. The method according to claim 1, It is characterized in that In the case where the target scene area type includes a plurality of scene area types corresponding to the same analysis algorithm, integrating the target scene area type areas in the monitoring screen image according to the position information of the areas of the target scene area type in the monitoring screen image includes: In the case where the regional integration strategy is unified integration, based on the position information of the regions of the target scene region types of different types corresponding to the same analysis algorithm in the monitoring screen image, the regions of the target scene region types in the monitoring screen image corresponding to the analysis algorithm are integrated; or, When the regional integration strategy is classification integration, for any type of target scene region type region, according to the position information of the target scene region type region in the monitoring screen image, the target scene region type region of the type in the monitoring screen image is integrated; When polygonal areas corresponding to various types of target scene area types are obtained, for the polygonal area corresponding to any type of target scene area type, if the polygonal area includes areas of other types of target scene area types corresponding to the same analysis algorithm, the areas of other types of target scene area types corresponding to the same analysis algorithm included in the polygonal area are shielded.
4. The method according to claim 1, It is characterized in that The integrating the target scene area type areas in the monitoring screen image according to the position information of the target scene area type areas in the monitoring screen image comprises: The outermost edge pixel point of the area participating in the integration is determined according to the position information of the area participating in the integration in the monitoring screen image, and the area participating in the integration in the monitoring screen image is integrated according to the outermost edge pixel point.
5. An intelligent analysis method, It is characterized in that include: For any analysis algorithm running on the monitoring point to be analyzed, determine the scene area type corresponding to the analysis algorithm; Determine the analysis area of the monitoring point to be analyzed for the scene area type; wherein the analysis area is determined using the method described in any one of claims 1 to 4; According to the analysis parameters of the analysis algorithm and the analysis area of the monitoring point to be analyzed for the scene area type, intelligent analysis processing is performed.
6. The method according to claim 5, It is characterized in that The scene area type corresponding to the analysis algorithm is determined by parsing the algorithm description file of the analysis algorithm; and / or, The analysis parameters of the analysis algorithm are obtained by parsing the algorithm description file of the analysis algorithm.
7. An analysis area determination device, It is characterized in that include: A first determining unit is configured to determine a target scene area type for a target monitoring point; The segmentation unit is configured to use the target scene area type and the acquired monitoring screen image of the target monitoring point as inputs of the target large model, perform image segmentation on the monitoring screen image of the target monitoring point using the target large model, and determine the position information of the area of the target scene area type in the monitoring screen image; wherein the position information of the area of the target scene area type in the monitoring screen image includes the position information of the pixels of the target scene area type in the monitoring screen image; A second determining unit is configured to determine the analysis area of the target monitoring point for the target scene area type according to the position information of the area of the target scene area type in the monitoring screen image; Among them, the second determination unit is specifically configured to integrate the areas of the target scene area type in the monitoring screen image according to the position information of the areas of the target scene area type in the monitoring screen image, to obtain a polygonal area whose number of sides does not exceed a preset edge number threshold, and determine the polygonal area as the analysis area of the target monitoring point for the target scene area type.
8. An intelligent analysis device, It is characterized in that include: A first determination unit is configured to determine, for any analysis algorithm running on the monitoring point to be analyzed, a scene area type corresponding to the analysis algorithm; A second determination unit is configured to determine an analysis area of the monitoring point to be analyzed for the scene area type; wherein the analysis area is determined using the method according to any one of claims 1 to 4; The analysis unit is configured to perform intelligent analysis and processing based on the analysis parameters of the analysis algorithm and the analysis area of the monitoring point to be analyzed for the scene area type.
9. An electronic device, It is characterized in that include: A processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; Memory, used to store computer programs; A processor, for implementing the method according to any one of claims 1-4 or 5-6 when executing a program stored in a memory.
Citation Information
Patent Citations
Large-scene multi-target cooperative tracking method, intelligent monitoring system, and transportation system
CN108521554A
Image processing method and device, mobile terminal, and storage medium
CN108986110A
Monitoring method and device, server and storage medium
CN110543803A
Target area segmentation method and device in ground image
CN111582004A
Vehicle control method and device, computer equipment and computer readable storage medium
CN111666921A
