A method, system, device and storage medium for video scene classification

Through the detection and weight analysis of multiple target detection algorithms on the images collected by the image acquisition device, the scene is automatically judged and the corresponding algorithm is selected, which solves the problem of selecting an appropriate target detection algorithm for the camera equipment and achieves efficient and accurate image processing equipment. Scene adaptability.

CN113673391BActive Publication Date: 2024-10-25ZHEJIANG DAHUA TECH CO LTD
View PDF 10 Cites 0 Cited by

Patent Information

Application Number
CN202110909349.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-09
Publication Date
2024-10-25
Estimated Expiration
2041-08-09

AI Technical Summary

Technical Problem

Existing technology makes it difficult to select a target detection algorithm for camera equipment that meets its needs to process images. In particular, how to select an appropriate target detection algorithm when thousands of points are deployed at different locations is an urgent problem that needs to be solved.

Method used

By acquiring the images collected by the image acquisition device, different target detection algorithms are used for target detection, and the weight analysis of the detection results is performed to determine the scene corresponding to the detection result with the largest weight, and an appropriate target detection algorithm is selected to process the image according to the scene, so as to Automatically determine the scene where the image acquisition device is located and select the corresponding target detection algorithm.

Benefits of technology

There is no need to separately train the scene classification model, which lowers the technical threshold, improves the popularity of the technology, reduces the workload of manually judging the scene and selecting the target detection algorithm, and ensures that the image processing equipment can select the appropriate target according to the scene where the image acquisition device is located. Detection algorithm improves the accuracy of image processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113673391B_ABST
    Figure CN113673391B_ABST
Patent Text Reader

Abstract

The present invention provides a method, system, device and storage medium for video scene classification, which are used to solve the problem in the prior art that it is impossible to select a target detection algorithm that meets the needs of a camera device to process an image. The method for video scene classification includes: obtaining a first image captured by an image acquisition device within a cycle, using different target detection algorithms to perform target detection, and counting the detection results of each target detection algorithm; performing weight analysis on the detection results of each target detection algorithm, determining that the scene to which the target detection algorithm corresponding to the detection result with the largest weight belongs is the scene where the current image acquisition device is located; and selecting a corresponding target detection algorithm according to the scene where the image acquisition device is located to process a second image captured by the image acquisition device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of big data image processing technology, and in particular to a method, system, device and storage medium for video scene classification. Background Art

[0002] As urban surveillance continues to mature, more and more cameras are installed, and the number of cameras that users need to analyze and process continues to grow. How to quickly and accurately process the images collected by these cameras is becoming more and more of a concern to practitioners. Big data image processing technology uses different target algorithms to perform target analysis on the collected images, quickly generates image analysis results, and greatly reduces the user's workload, so it is favored by practitioners.

[0003] The advantage of big data image processing technology is that it can realize intelligent analysis and detect and identify different targets in the image through different types of target detection algorithms. However, the problem of big data image processing technology is that it is necessary to select a suitable target detection algorithm to achieve the best analysis effect when there are many target detection algorithms. How to select a reasonable target detection algorithm for different deployment situations of thousands of points has become a hot issue that practitioners are increasingly concerned about.

[0004] In view of this, how to select a target detection algorithm that meets the needs of the camera device to process images has become a technical problem that needs to be solved urgently. Summary of the invention

[0005] The present invention provides a method, system, device and storage medium for classifying video scenes, which are used to solve the problem in the prior art that a target detection algorithm that meets the needs of a camera device cannot be selected to process images.

[0006] A first aspect of the present invention provides a method for video scene classification, which is applied to an image processing device, wherein the image processing device includes an image acquisition device and an image analysis device, and the method includes:

[0007] Acquire the first image acquired by the image acquisition device within a period, use different target detection algorithms to perform target detection respectively, and count the detection results of each target detection algorithm;

[0008] Performing a weight analysis on the detection results of each target detection algorithm to determine that the scene to which the target detection algorithm corresponding to the detection result with the largest weight belongs is the scene where the current image acquisition device is located;

[0009] According to the scene where the image acquisition device is located, a corresponding target detection algorithm is selected to process the second image subsequently acquired by the image acquisition device.

[0010] Optionally, performing weight analysis on the detection results of each of the target detection algorithms includes:

[0011] Counting the number of targets of the corresponding detection targets detected by each target detection algorithm in a cycle respectively;

[0012] Performing a sum operation on the number of detected targets obtained by each of the target detection algorithms to obtain a total number of targets;

[0013] The proportion of the number of targets detected by each target detection algorithm in the total number of targets is calculated respectively, and the proportion of the number of targets corresponding to each target number is obtained.

[0014] Optionally, determining that the scene to which the target detection algorithm corresponding to the detection result with the largest weight belongs is the scene where the current image acquisition device is located includes:

[0015] The maximum value among the target quantity proportions is taken as the maximum proportion result;

[0016] According to the measured target corresponding to the maximum proportion result, determining that the current scene is a dense scene of the measured target;

[0017] The dense scene is determined as the scene where the image acquisition device is currently located.

[0018] Optionally, after selecting a corresponding target detection algorithm to process the second image acquired by the image acquisition device according to the scene where the image acquisition device is located, the method includes:

[0019] When the target detection algorithm fails to achieve a preset image processing effect in the scene where the image acquisition device is located, it is re-determined whether the scene where the image acquisition device is located is correct, and the corresponding target detection algorithm is re-selected.

[0020] Optionally, the target detection algorithm includes:

[0021] A combination of at least any two of the face target detection algorithm, vehicle target detection algorithm, and structured target detection algorithm.

[0022] In a second aspect, an embodiment of the present application provides an image processing system, including:

[0023] at least one image acquisition device, used to acquire an image of the target area;

[0024] At least one image analysis device determines the scene classification of the target area based on the image captured by the image acquisition device, and performs image analysis using a target detection algorithm corresponding to the scene classification.

[0025] Optionally, determine the scene classification of the target area and use the corresponding algorithm to perform image analysis, including:

[0026] If there is only one image acquisition device in the image processing device, the scene of the target area is directly determined and the corresponding algorithm is used to perform image analysis;

[0027] If the image processing device includes multiple image acquisition devices, the scenes corresponding to the multiple image acquisition devices are determined respectively, and the corresponding target detection algorithm is used to perform target detection on the captured images according to the scenes corresponding to the image acquisition devices.

[0028] Optionally, the image processing system further includes:

[0029] If the image processing device includes multiple image analysis devices, the target detection algorithms used by each of the multiple image analysis devices can be determined respectively;

[0030] According to the scene classification of the area where the image acquisition device is located, an image analysis device using a corresponding target detection algorithm is selected to perform image analysis.

[0031] In a third aspect, an embodiment of the present application provides an image processing device, the image processing device comprising:

[0032] at least one processor, and

[0033] a memory coupled to the at least one processor;

[0034] The memory stores instructions that can be executed by the at least one processor, and the at least one processor executes the method as described in the first aspect by executing the instructions stored in the memory.

[0035] According to a fourth aspect, a computer storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the method according to the first aspect is implemented.

[0036] The technical solution in the embodiment of the present invention has the following beneficial effects: the image processing device obtains the first image acquired by the image acquisition device within a cycle, uses different target detection algorithms to perform target detection, and counts the detection results of each target detection algorithm; performs weight analysis on the detection results of each target detection algorithm, and determines that the scene to which the target detection algorithm corresponding to the detection result with the largest weight belongs is the scene where the current image acquisition device is located; according to the scene where the image acquisition device is located, selects the corresponding target detection algorithm to process the second image acquired by the image acquisition device, so that the image processing device can select the corresponding target detection algorithm to process the image according to the scene where the image acquisition device is located, thereby solving the problem in the prior art that it is impossible to select a target detection algorithm that meets its needs for the camera device to process the image.

[0037] Since the image processing equipment uses the existing target detection algorithm to determine the scene where the image acquisition device is located, there is no need to train a separate scene classification model, which lowers the technical threshold and improves the universality of the technology.

[0038] At the same time, the image processing equipment automatically determines the scene where the image acquisition device is located based on the statistical results, and selects the corresponding target detection algorithm according to the scene, which greatly reduces the workload of manual scene judgment and target detection algorithm selection. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 is a flow chart of a method for video scene provided by an embodiment of the present application;

[0040] Figure 2 is a schematic diagram of the structure of an image processing device provided by an embodiment of the present invention;

[0041] Figure 3 is a schematic diagram of detection results of various target detection algorithms in a scene provided by an embodiment of the invention;

[0042] Figure 4 is a schematic diagram of detection results of various target detection algorithms in another scenario provided by an embodiment of the present invention;

[0043] Figure 5 A schematic diagram of detection results of various target detection algorithms in another scenario provided by an embodiment of the present invention;

[0044] Figure 6 A schematic diagram of detection results of various target detection algorithms in another scenario provided by an embodiment of the present invention;

[0045] Figure 7 is a schematic diagram of detection results of a combination of two target detection algorithms in a scenario provided by an embodiment of the present invention;

[0046] Figure 8 A schematic diagram of detection results of various target detection algorithms in another scenario provided by an embodiment of the present invention;

[0047] Fig. 9 A schematic diagram of an image processing system provided by an embodiment of the present invention;

[0048] Fig.10 is a schematic diagram of another image processing system provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0049] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0050] In the prior art, big data image processing technology includes a variety of target detection algorithms. In order to ensure the accuracy of image detection, it is necessary to select a target detection algorithm corresponding to the scene where the image acquisition device is located for image analysis. To address this problem, the main solution at present is the scene classification model solution. This solution requires the scene classification model to be trained in advance, and after the video is input and the features are extracted, the classifier is processed to obtain the corresponding scene category. This solution requires the scene classification model to be trained in advance, and the technical threshold is relatively high. It cannot completely solve the problem of selecting the corresponding target detection algorithm to process the image according to different video scenes;

[0051] To this end, the present invention provides a method, system, device and storage medium for video scene classification, so as to solve the technical problem in the prior art that it is impossible to select a target detection algorithm that meets the needs of a camera device to process an image.

[0052] The technical solution provided by the embodiments of the present application is introduced below in conjunction with the drawings in the specification.

[0053] See also Figure 1 The present invention provides a method for video scene classification, which is applied to an image processing device. The image processing device includes an image acquisition device and an image analysis device. The specific process of the method is described as follows:

[0054] Step 101: Acquire a first image acquired by an image acquisition device within a cycle, use different target detection algorithms to perform target detection, and count the detection results of each target detection algorithm.

[0055] Step 102: Perform a weight analysis on the detection results of each target detection algorithm to determine that the scene to which the target detection algorithm corresponding to the detection result with the largest weight belongs is the scene where the current image acquisition device is located.

[0056] Step 103: According to the scene where the image acquisition device is located, a corresponding target detection algorithm is selected to process the second image subsequently acquired by the image acquisition device.

[0057] For example, see Figure 2 , Figure 2 A schematic diagram of an image processing device structure provided by an embodiment of the present invention. Assuming that a cycle is 5s, the image acquisition device acquires multiple frames of images within 5s, each frame of the image is recorded as the first image, and the image analysis device uses the face target detection algorithm, the vehicle target detection algorithm and the structured target detection algorithm to perform target detection on all the first images, and obtains the detection results that the face target detection algorithm detects that all the first images contain 7 face targets, the vehicle target detection algorithm detects that all the first images contain 1 vehicle target, and the structured target detection algorithm detects that all the first images contain 2 non-motor vehicles and human targets. Then, the three detection results are weighted and analyzed to determine that the face target is the detection result with the largest weight, and the current scene is determined to be the scene to which the face target detection algorithm belongs. According to the determined scene to which the face target detection algorithm belongs, the second images subsequently acquired by the image acquisition device are analyzed using the face target detection algorithm.

[0058] In the embodiment provided by the present invention, the image processing device obtains the first image collected by the image acquisition device within a cycle, uses different target detection algorithms to perform target detection, and counts the detection results of each target detection algorithm; performs weight analysis on the detection results of each target detection algorithm, and determines that the scene to which the target detection algorithm corresponding to the detection result with the largest weight belongs is the scene where the current image acquisition device is located; according to the scene where the image acquisition device is located, selects the corresponding target detection algorithm to process the second image collected by the image acquisition device, so that the image processing device can select the corresponding target detection algorithm according to the scene where the image acquisition device is located, thereby solving the problem in the prior art that the camera device cannot select a target detection algorithm that meets its needs to process the image. At the same time, the image processing device automatically determines the scene where the image acquisition device is located according to the statistical results, and selects the corresponding target detection algorithm according to the scene, which greatly reduces the workload of manually judging the scene and selecting the target detection algorithm.

[0059] A possible implementation method is to perform weight analysis on the detection results of each target detection algorithm, which can be achieved in the following way:

[0060] The number of targets corresponding to the detection targets detected by each target detection algorithm in a cycle is counted separately; the number of targets detected by each target detection algorithm is summed to obtain the total number of targets; the proportion of the number of targets corresponding to each target detection algorithm in the total number of targets is calculated separately to obtain the target number proportion corresponding to each target number.

[0061] For example, Figure 2 For example, assuming that a cycle is 5s, the image acquisition device acquires multiple frames of images within 5s, and each frame of image is recorded as the first image. Then the image analysis device uses the face target detection algorithm, the vehicle target detection algorithm and the structured target detection algorithm to analyze all the first images. The statistical results are as follows: Figure 3 As shown, Figure 3 A schematic diagram of the detection results of various target detection algorithms in a scene provided in an embodiment of the present invention, wherein the obtained results are that all the first images detected by the face target detection algorithm contain 7 face targets, all the first images detected by the vehicle detection algorithm contain 1 vehicle target, and all the first images detected by the structured target detection algorithm contain 2 human and non-motor vehicle targets. The total number of targets is 10, and the corresponding proportions are 0.7 for face targets, 0.1 for vehicle targets, and 0.2 for non-motor vehicle and human targets.

[0062] With the advancement of technology, target detection algorithms for other targets or different algorithms for detecting the same target may appear. Therefore, the target detection algorithm in the present invention is not limited to the face target detection algorithm, the vehicle target detection algorithm, and the structured target detection algorithm. For example, it may also include a license plate target detection algorithm, an animal target detection algorithm, etc. Moreover, in practical applications, the target detection algorithm actually used by the image processing device may be at least any two or more of the existing target detection algorithms.

[0063] In the embodiment provided by the present invention, the image analysis device detects targets by using different target detection algorithms on images captured by the image acquisition device within a cycle, and obtains the percentage of different targets in the scene where the current image acquisition device is located. There is no need to train a scene model separately, which lowers the technical threshold and improves the universality of the technology.

[0064] In a possible implementation manner, determining that the scene to which the target detection algorithm corresponding to the detection result with the largest weight belongs is the scene where the current image acquisition device is located can be implemented in the following manner:

[0065] The maximum value of the target quantity ratio is taken as the maximum ratio result; according to the measured target corresponding to the maximum ratio result, the current scene is determined to be a dense scene of the measured target; and the dense scene is determined as the scene where the current image acquisition device is located.

[0066] For example, Figure 3Taking the example in as an example, at this time, the proportion of facial targets is 0.7, the proportion of vehicle targets is 0.1, and the proportion of human bodies and non-motor vehicle targets is 0.2. The maximum proportion result is that the proportion of facial targets is 0.7, corresponding to the current scene being a dense scene of facial targets. Therefore, it is determined that the scene where the image acquisition device is located is a dense scene of facial targets.

[0067] In the embodiment provided by the present invention, the image analysis device performs weight analysis on various targets identified in a cycle, and determines the scene where the current image acquisition device is located based on the weights, without using any scene classification model, thereby lowering the technical threshold and improving the universality of the technology.

[0068] A possible implementation method is to select a corresponding target detection algorithm to process the second image acquired by the image acquisition device according to the scene where the image acquisition device is located, which can be implemented in the following manner:

[0069] When the target detection algorithm fails to achieve the preset image processing effect in the scene where the image acquisition device is located, it is re-determined whether the scene where the image acquisition device is located is correct, and the corresponding target detection algorithm is re-selected.

[0070] For example, Figure 3 Taking the example in as an example, according to the detection result with the largest weight, it is judged that the scene where the current image acquisition device is located is a dense scene of facial targets, and the facial target detection algorithm is selected to detect the image acquired by the image acquisition device. Suppose at this time the user finds that after the image acquired by the current image acquisition device is detected by the facial target detection algorithm, the number of targets detected continues to be low, the scene has changed, and the preset image processing effect of detecting the target with the largest target number weight in the current scene cannot be achieved. At this time, the scene judgment function of the image analysis device is restarted, and the image analysis device re-detects the images acquired by the image acquisition device within a cycle using different target detection algorithms, and obtains the maximum proportion result and the corresponding scene based on the detection results, such as Figure 4 As shown, Figure 4It is a schematic diagram of the detection results of various target detection algorithms in another scene provided by an embodiment of the present invention. The detection results obtained are that the face target detection algorithm detects that all images contain 1 face target, the vehicle target detection algorithm detects that all images contain 1 vehicle target, and the structured target detection algorithm detects that all images contain 8 non-motor vehicles and human targets. The corresponding target quantity ratios are 0.1 for face targets, 0.1 for vehicle targets, and 0.8 for non-motor vehicles and human targets. The corresponding weights are the largest for non-motor vehicles and human targets, and the identified scene is a dense scene of non-motor vehicles and human targets. At this time, the dense scene of face targets is compared with the dense scene of non-motor vehicles and human targets, and the original scene classification error is obtained. The scene where the image acquisition device is located is corrected to a dense scene of non-motor vehicles and human targets, and the structured target detection algorithm is used for image analysis.

[0071] In the embodiment provided by the present invention, when the image analysis device finds that the preset image processing effect cannot be obtained by using the corresponding target detection algorithm in the current scene, the image analysis device re-judges the scene where the image acquisition device is located and reselects the target detection algorithm. This ensures that when the scene changes, the image analysis device can automatically correct the judgment of the current scene and reselect the target detection algorithm to ensure that the preset image processing effect is obtained.

[0072] One possible implementation method, the target detection algorithm, can be implemented in the following way:

[0073] A combination of at least two or more of the following algorithms: face target detection algorithm, vehicle target detection algorithm, and structured target detection algorithm.

[0074] For example, Figure 2 As an example, assume that the image acquisition device acquires multiple frames of first images with a period of 5 seconds, and the image analysis device uses the face target detection algorithm, the vehicle target detection algorithm, and the structured target detection algorithm to perform target detection on all the first images, and the results are as follows Figure 5 As shown, Figure 5 It is a schematic diagram of the detection results of various target detection algorithms in another scenario provided by an embodiment of the present invention, wherein 4 human face targets, 2 vehicle targets, 4 non-motor vehicle targets and 4 human body targets are detected, and the corresponding target quantity ratios are 0.4 for human face targets, 0.2 for vehicle targets, and 0.4 for non-motor vehicle targets and human body targets. At this time, it is judged that the current scene is a dense scene of human face targets, non-motor vehicle targets and human body targets, and the corresponding target detection algorithms are selected to perform image processing on the second image captured by the image acquisition device in the current scene later, namely, the human face target detection algorithm and the structured target detection algorithm.

[0075] For another example, suppose the current image acquisition device is installed in a new position, and multiple frames of first images with a period of 5 seconds are re-acquired. The face target detection algorithm, vehicle target detection algorithm, and structured target detection algorithm are used to perform target detection on all the first images. The results are as follows: Figure 6 As shown, Figure 6 It is a schematic diagram of the detection results of various target detection algorithms in another scene provided by an embodiment of the present invention, in which 3 human face targets, 3 vehicle targets, 3 non-motor vehicle targets and 3 human targets are detected, and the corresponding target quantity ratio is 0.3. At this time, the three target quantity ratios are the same and the weights are consistent. The image analysis device determines that the scene where the image acquisition device is located at this time is a dense scene of human face targets, vehicle targets, non-motor vehicle targets and human targets, and correspondingly uses the human face target detection algorithm, the vehicle target detection algorithm and the structured target detection algorithm to perform image processing on the second image acquired by the image acquisition device in the current scene.

[0076] For another example, suppose that the target detection algorithm used by the current image analysis device is a combination of two algorithms, and the image acquisition device acquires multiple frames of images with a period of 5 seconds, which are recorded as the first image. The image analysis device uses the face and vehicle target detection algorithm, the vehicle and structured target detection algorithm, and the face and structured target detection algorithm to perform target detection on all the first images. The results are as follows: Figure 7 As shown, Figure 7 It is a schematic diagram of the detection results of the combination of two target detection algorithms in a scenario provided by an embodiment of the present invention, wherein the face and vehicle target detection algorithm detects 7 targets, the vehicle and structured target detection algorithm detects 5 targets, and the face and structured target detection algorithm detects 8 targets, and the corresponding target quantity proportions are 0.35 for face and vehicle targets, 0.25 for vehicle and structured targets, and 0.4 for face and structured targets. In the scene where the current image acquisition device is located, the weights of face and structured targets are the largest. At this time, the scene is a dense scene of face targets, non-motor vehicles and human targets. Accordingly, the face and structured target detection algorithm is used to perform image processing on the second image acquired by the image acquisition device after the scene.

[0077] In the embodiment provided by the present invention, when the detection results of multiple target detection algorithms have the largest weights, the image analysis device selects to simultaneously use the corresponding multiple target detection algorithms to analyze the image captured by the current scene, thereby ensuring the accuracy of the image analysis results.

[0078] In order to enable those skilled in the art to more fully understand the above technical solution of the present invention, a complete example is now given for illustration:

[0079] For example, Figure 8 For example, Figure 8 It is a schematic diagram of the detection results of various target detection algorithms in another scenario provided by an embodiment of the present invention. The image acquisition device acquires an image with a period of 10s, which is recorded as the first image; the image analysis device uses the face target detection algorithm, the vehicle target detection algorithm, and the structured target detection algorithm to perform target detection on the first image. The detection results obtained at this time are 6 face targets, 1 vehicle target, and 3 non-motor vehicle and human targets. The target quantity accounts for 0.6 for face targets, 0.1 for vehicle targets, and 0.3 for non-motor vehicle and human targets. The face target has the largest weight, and the corresponding scene is judged to be a face target-intensive scene. The face target detection algorithm is used to detect the second image of the current scene acquired by the image acquisition device.

[0080] After a period of time, the user finds that the number of targets detected in the image results processed by the image processing device is small, and the image processing effect of detecting the target with the largest weight in the current scene is not achieved, so the image processing device is operated to re-judge the scene and target detection algorithm. The image acquisition device re-collects an image with a cycle of 10s, which is recorded as the first image; the image analysis device re-uses the three target detection algorithms to detect targets in the first image, and the results obtained are 9 face targets, 9 vehicle targets, and 2 non-motor vehicle and human targets, and the corresponding number ratios are 0.45 for face targets, 0.45 for vehicle targets, and 0.1 for non-motor vehicle and human targets. It is judged that the targets with the largest weights are face targets and vehicle targets, that is, the current scene of the image acquisition device is a scene with dense face targets and vehicle targets, which is different from the dense face target scene determined before. The face target detection algorithm and the vehicle target detection algorithm are re-selected to detect the second image of the current scene collected by the image acquisition device.

[0081] When the image acquisition device changes its installation position, it re-acquires a first image with a cycle of 10s; the image analysis device uses three target detection algorithms to perform target detection on the first image, and the results are that the number of face targets, the number of vehicle targets, the number of non-motor vehicles and the number of human targets are all 10, and the target number ratio is the same, which is 0.3. At this time, the weights of the three target numbers are the same. The image analysis device determines that the current scene is a scene with dense face targets, vehicle targets, non-motor vehicles and human targets, and chooses to use the face target detection algorithm, the vehicle target detection algorithm, and the structured target detection algorithm at the same time to perform image analysis on the second image captured by the image acquisition device in the current scene.

[0082] Based on the same inventive concept, the present application provides an image processing system, see Fig. 9 , the image processing system comprises:

[0083] At least one image acquisition device 901 is used to acquire images of the target area; at least one image analysis device 902 determines the scene classification of the target area based on the images acquired by the image acquisition device 901, and uses the target detection algorithm corresponding to the scene classification to perform image analysis; the image processing system executes the above video scene classification method to select the corresponding target detection algorithm to process the image according to different video scenes.

[0084] In a possible implementation, the image processing system further includes: if the image processing device includes multiple image analysis devices 902, the target detection algorithms used by each of the multiple image analysis devices 902 can be determined respectively; according to the scene classification of the area where the image acquisition device 901 is located, the image analysis device 902 using the corresponding target detection algorithm is selected to perform image analysis.

[0085] For example, see Fig.10 , Fig.10 A schematic diagram of another image processing system provided in an embodiment of the present invention, wherein the image processing system includes multiple image analysis devices and multiple image acquisition devices, wherein the image analysis devices are image analysis device 902-1, image analysis device 902-2 and image analysis device 902-3, and image acquisition devices 901-1, image acquisition device 901-2 and image acquisition device 901-3. Assume that image analysis device 902-1 is determined to use a face target detection algorithm, image analysis device 902-2 is determined to use a vehicle target detection algorithm, and image analysis device 902-3 is determined to use a structured target detection algorithm; if at this time the scene where image acquisition device 901-1 is located is a face target-intensive scene, the scene where image acquisition device 901-2 is located is a non-motor vehicle and human target-intensive scene, and the scene where image acquisition device 901-3 is located is a vehicle target-intensive scene, then the image acquired by image acquisition device 901-1 in the current scene is processed by image analysis device 902-1, the image acquired by image acquisition device 901-2 in the current scene is processed by image analysis device 902-3, and the image acquired by image acquisition device 901-3 in the current scene is processed by image analysis device 902-2.

[0086] After a period of time, the image acquisition device 901-2 changes its installation position. After the change, the scene where the image acquisition device 901-2 is located is a vehicle target-intensive scene. At this time, the image processing system determines that the images subsequently acquired by the image acquisition device 901-2 in this scene will be processed by the image analysis device 902-2.

[0087] In the embodiment provided by the present invention, when the image processing system includes multiple image analysis devices, the target detection algorithm used by each image analysis device is determined in advance, and then the corresponding image analysis device is selected to perform image processing according to the scene where the image acquisition device is located, thereby reducing the need to change the target detection algorithm of the image analysis device, reducing the performance requirements for the image analysis device, and improving the reliability of the image processing system.

[0088] Based on the same inventive concept, an embodiment of the present invention provides an image processing device, which may be an electronic device such as a personal computer. The image processing device may include: at least one processor, which is used to implement the steps of the above video scene classification method provided in the embodiment of the present application when executing a computer program stored in a memory.

[0089] Optionally, the device node positioning display device further includes a memory connected to at least one processor, and the memory may include a read-only memory (ROM), a random access memory (RAM) and a disk memory. The memory is used to store data required by the processor when it is running, that is, it stores instructions that can be executed by at least one processor. At least one processor executes the instructions stored in the memory to execute the following steps: Figure 1 The method shown in the figure. Wherein, the number of memories is one or more.

[0090] The embodiment of the present application also provides a computer storage medium, wherein the computer storage medium stores computer instructions, and when the computer instructions are executed on a computer, the computer executes the steps of the above-mentioned method for classifying video scenes.

[0091] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0092] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0093] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0094] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0095] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A method for video scene classification, applied to an image processing device, wherein the image processing device comprises an image acquisition device and an image analysis device, characterized in that: include: Acquire the first image acquired by the image acquisition device within a period, use different target detection algorithms to perform target detection respectively, and count the detection results of each target detection algorithm; Performing a weight analysis on the detection results of each target detection algorithm to determine that the scene to which the target detection algorithm corresponding to the detection result with the largest weight belongs is the scene where the current image acquisition device is located; According to the scene where the image acquisition device is located, selecting a corresponding target detection algorithm to process a second image acquired by the image acquisition device; The weight analysis of the detection results of each target detection algorithm includes: Counting the number of targets of the corresponding detection targets detected by each target detection algorithm in a cycle respectively; Performing a sum operation on the number of detected targets obtained by each of the target detection algorithms to obtain a total number of targets; The proportion of the number of targets detected by each target detection algorithm in the total number of targets is calculated respectively, and the proportion of the number of targets corresponding to each target number is obtained.

2. The method according to claim 1, characterized in that Determining that the scene to which the target detection algorithm corresponding to the detection result with the largest weight belongs is the scene where the current image acquisition device is located includes: The maximum value among the target quantity proportions is taken as the maximum proportion result; According to the measured target corresponding to the maximum proportion result, determining that the current scene is a dense scene of the measured target; The dense scene is determined as the scene where the image acquisition device is currently located.

3. The method according to claim 2, characterized in that After selecting a corresponding target detection algorithm to process the second image acquired by the image acquisition device according to the scene where the image acquisition device is located, the method further includes: When the target detection algorithm fails to achieve a preset image processing effect in the scene where the image acquisition device is located, it is re-determined whether the scene where the image acquisition device is located is correct, and the corresponding target detection algorithm is re-selected.

4. The method according to any one of claims 1 to 3, characterized in that: The target detection algorithm comprises: A combination of at least any two of the face target detection algorithm, vehicle target detection algorithm, and structured target detection algorithm.

5. An image processing system, characterized in that: include: at least one image acquisition device, used to acquire an image of the target area; at least one image analysis device, which determines a scene classification of a target area based on the image captured by the image acquisition device, and performs image analysis using a target detection algorithm corresponding to the scene classification; When determining the scene classification of the target area based on the image captured by the image capture device, the at least one image analysis device is specifically used to: use different target detection algorithms to perform target detection respectively, and count the number of targets corresponding to the detection targets detected by each of the target detection algorithms; and perform a sum operation on the number of targets obtained by each of the target detection algorithms to obtain a total number of targets; Calculate the proportion of the number of targets corresponding to each target detection algorithm in the total number of targets, obtain the target number proportion corresponding to each target number, and determine that the scene to which the target detection algorithm corresponding to the target number with the largest proportion belongs is the scene classification of the target area.

6. The system according to claim 5, characterized in that Determine the scene classification of the target area and use the corresponding algorithm for image analysis, including: If there is only one image acquisition device in the image processing system, the scene of the target area is directly determined and the corresponding algorithm is used to perform image analysis; If the image processing system includes multiple image acquisition devices, the scenes corresponding to the multiple image acquisition devices are determined respectively, and the corresponding target detection algorithm is used to perform target detection on the captured images according to the scenes corresponding to the image acquisition devices.

7. The system according to claim 6, characterized in that Also includes: If the image processing system includes multiple image analysis devices, the target detection algorithms used by each of the multiple image analysis devices can be determined respectively; According to the scene classification of the area where the image acquisition device is located, an image analysis device using a corresponding target detection algorithm is selected to perform image analysis.

8. An image processing device, characterized in that: include: at least one processor, and a memory coupled to the at least one processor; The memory stores instructions executable by the at least one processor, and the at least one processor executes the method according to any one of claims 1 to 4 by executing the instructions stored in the memory.

9. A computer storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and when the computer instructions are executed on a computer, the computer is caused to execute the method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • Method for detecting regulation-violating motor vehicles in monitoring scene

    CN103021183A

  • Image scene type discrimination method based on covariance features

    CN103679192A

  • Target tracking method and device, computer equipment and storage medium

    CN109727268A

  • Target detection method and system

    CN110598586A

  • Target detection tracking method, device and apparatus

    CN110717414A