Video processing method, device and intelligent analysis system based on scene understanding
By obtaining the text description information of the image to be detected at the shooting point, the image-to-text conversion model and the scene understanding model are used to automatically obtain the algorithm adaptation information, which solves the problem of low efficiency of artificial configuration of intelligent algorithms and improves the efficiency and intelligence of the layout of the shooting subject. Analysis quality.
Patent Information
- Application Number
- CN202410924492.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-11
- Publication Date
- 2024-10-08
- Estimated Expiration
- 2044-07-11
AI Technical Summary
In the existing technology, the manual configuration of intelligent algorithms is inefficient and error-prone. Especially in large-scale projects, thousands or even tens of thousands of camera shooting points are required, making it difficult to guarantee configuration efficiency and intelligent analysis quality.
By obtaining the text description information of the image to be detected at the shooting point, and using the pre-trained image-to-text conversion model and scene understanding model, the algorithm adaptation information is automatically obtained, the target intelligent algorithm is loaded, and manual configuration is reduced.
It improves the layout efficiency, configuration efficiency and intelligent analysis quality of shooting subjects, reduces manual errors, and improves the overall efficiency of large-scale projects.
Smart Images

Figure CN118470614B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a video processing method, device and intelligent analysis system based on scene understanding. Background Art
[0002] Currently, in many scenes, a camera or other shooting subject is needed to shoot the scene.
[0003] In the relevant scheme, after placing the camera and other shooting subjects at the shooting point, it is necessary to manually select the appropriate intelligent algorithm for the shooting point and manually configure and adjust it.
[0004] However, the above-mentioned method of manually configuring intelligent algorithms will affect the effect of the intelligent algorithms if the configuration personnel have low professionalism, and the workload is large and prone to errors. Especially for some large projects, which may be equipped with thousands or even tens of thousands of cameras, the method of manually configuring intelligent algorithms is inefficient. Summary of the invention
[0005] In response to at least one aspect of the above technical problems, the embodiments of the present application provide a video processing method, device and intelligent analysis system based on scene understanding. The video processing method first obtains the text description information of the image to be detected at the shooting point, and then obtains the algorithm adaptation information of the corresponding shooting point through the scene understanding model based on the text description information. In this way, the target intelligent algorithm can be loaded on the shooting subject of the shooting point according to the algorithm adaptation information, without the need to manually configure the intelligent algorithm, thereby improving the layout efficiency, configuration efficiency and intelligent analysis quality of the shooting subject.
[0006] In a first aspect, an embodiment of the present application provides a video processing method based on scene understanding, the video processing method comprising:
[0007] Acquire an image to be detected at a shooting point, where the image to be detected is captured by a shooting subject arranged at the shooting point;
[0008] Using a pre-trained image-text conversion model to obtain text description information of the image to be detected; wherein the text description information describes the image to be detected in terms of image quality, image content and image elements of the image to be detected;
[0009] Inputting the text description information into a pre-trained scene understanding model, and obtaining algorithm adaptation information corresponding to the shooting point output by the scene understanding model; wherein the algorithm adaptation information at least includes an algorithm type;
[0010] The target intelligent algorithm is loaded into the video to be detected shot by the shooting subject at the shooting point according to the algorithm adaptation information.
[0011] In one embodiment, preferably, the image-text conversion model includes a pre-trained image quality assessment sub-model, an image content extraction sub-model and an image element analysis sub-model;
[0012] The step of obtaining the text description information of the image to be detected by using the pre-trained image-text conversion model includes:
[0013] The image to be detected is respectively input into the image quality assessment sub-model, the image content extraction sub-model, and the image element parsing sub-model, and the first text information output by the image quality assessment sub-model, the second text information output by the image content extraction sub-model, and the third text information output by the image element parsing sub-model are respectively obtained; wherein the first text information reflects a text description of the image quality, the second text information reflects a text description of the image content, and the third text information reflects a text description of the image elements.
[0014] In one embodiment, preferably, the first text information describes the image quality of the image to be detected from multiple dimensions, and the multiple dimensions at least include clarity, brightness, chroma and occlusion degree;
[0015] The second text information describes the objects in the image to be detected, their attributes, and the positional relationship between the objects;
[0016] The third text information describes the object category in the image to be detected, the regional position of each category of objects in the image, and the proportion of each category of objects in the image to be detected.
[0017] In one embodiment, preferably, the step of inputting the text description information into a pre-trained scene understanding model and obtaining the algorithm adaptation information corresponding to the shooting point output by the scene understanding model includes:
[0018] Inputting the first text information, the second text information and the third text information into the scene understanding model simultaneously;
[0019] The algorithm adaptation information output by the scene understanding model is obtained, wherein the algorithm adaptation information includes the algorithm type corresponding to the shooting point, the loading area of the algorithm type, and the original parameters of the algorithm rules of the algorithm type.
[0020] In one embodiment, preferably, before the step of obtaining the algorithm adaptation information output by the scene understanding model, the method further includes:
[0021] Obtaining a quality level of the shooting point output by the scene understanding model based on the first text information;
[0022] When the quality level is lower than the quality level threshold, the shooting point is reported for maintenance.
[0023] In one embodiment, preferably, after the step of loading the target intelligent algorithm into the video to be detected shot by the shooting subject at the shooting point according to the algorithm adaptation information, the video processing method further includes:
[0024] Obtaining intelligent analysis results of the target intelligent algorithm on the video to be detected; wherein the intelligent analysis results include statistical information of the target object or target event identified by the target intelligent algorithm in different dimensions;
[0025] Inputting fourth text information corresponding to the intelligent analysis result into the scene understanding model, and obtaining an algorithm rule adjustment parameter corresponding to the algorithm type output by the scene understanding model;
[0026] The step of loading the target intelligent algorithm into the video to be detected shot by the subject of the shooting point according to the algorithm adaptation information comprises:
[0027] The target intelligent algorithm is loaded into the video to be detected according to the algorithm type, the loading area of the algorithm type and the algorithm rule adjustment parameters of the algorithm type.
[0028] In one embodiment, preferably, after the step of obtaining the intelligent analysis result of the target intelligent algorithm on the video to be detected, the video processing method further includes:
[0029] Camera parameter adjustment information is generated based on comparisons between the text description information and the statistical information in the intelligent analysis result and preset information, and parameters of the photographed subject are adjusted based on the camera parameter adjustment information.
[0030] In a second aspect, an embodiment of the present application provides a video processing device based on scene understanding, the video processing device comprising:
[0031] A video shooting module is used to obtain an image to be detected at a shooting point, where the image to be detected is shot by a shooting subject arranged at the shooting point;
[0032] An image-text conversion module, used to obtain text description information of the image to be detected by using a pre-trained image-text conversion model; wherein the text description information describes the image to be detected in terms of image quality, image content and image elements of the image to be detected;
[0033] A scene understanding module, used to input the text description information into a pre-trained scene understanding model, and obtain the algorithm adaptation information corresponding to the shooting point output by the scene understanding model; wherein the algorithm adaptation information at least includes an algorithm type;
[0034] The algorithm loading module is used to load the target intelligent algorithm into the video to be detected shot by the shooting subject at the shooting point according to the algorithm adaptation information.
[0035] In one embodiment, preferably, the image-text conversion model includes a pre-trained image quality assessment sub-model, an image content extraction sub-model and an image element analysis sub-model;
[0036] The image-text conversion module is specifically used for:
[0037] The image to be detected is respectively input into the image quality assessment sub-model, the image content extraction sub-model, and the image element parsing sub-model, and the first text information output by the image quality assessment sub-model, the second text information output by the image content extraction sub-model, and the third text information output by the image element parsing sub-model are respectively obtained; wherein the first text information reflects a text description of the image quality, the second text information reflects a text description of the image content, and the third text information reflects a text description of the image elements.
[0038] In one embodiment, preferably, the first text information describes the image quality of the image to be detected from multiple dimensions, and the multiple dimensions at least include clarity, brightness, chroma and occlusion degree;
[0039] The second text information describes the objects in the image to be detected, their attributes, and the positional relationship between the objects;
[0040] The third text information describes the object category in the image to be detected, the regional position of each category of objects in the image, and the proportion of each category of objects in the image to be detected.
[0041] In one embodiment, preferably, the scene understanding module includes:
[0042] a text input submodule, configured to simultaneously input the first text information, the second text information, and the third text information into the scene understanding model;
[0043] The algorithm acquisition submodule is used to obtain the algorithm adaptation information output by the scene understanding model, wherein the algorithm adaptation information includes the algorithm type corresponding to the shooting point, the loading area of the algorithm type, and the original parameters of the algorithm rules of the algorithm type.
[0044] In one embodiment, preferably, the scene understanding module further includes:
[0045] A quality level acquisition submodule, used to acquire the quality level of the shooting point output by the scene understanding model based on the first text information;
[0046] The reporting and maintenance submodule is used to report the shooting point for maintenance when the quality level is lower than the quality level threshold.
[0047] In one embodiment, preferably, the video processing device further includes:
[0048] An intelligent analysis module, used to obtain the intelligent analysis result of the target intelligent algorithm on the video to be detected; wherein the intelligent analysis result includes statistical information of the target object or target event identified by the target intelligent algorithm in different dimensions;
[0049] An intelligent analysis feedback module, used for inputting fourth text information corresponding to the intelligent analysis result into the scene understanding model, and obtaining an algorithm rule adjustment parameter corresponding to the algorithm type output by the scene understanding model;
[0050] The algorithm loading module is specifically used for:
[0051] The target intelligent algorithm is loaded into the video to be detected according to the algorithm type, the loading area of the algorithm type and the algorithm rule adjustment parameters of the algorithm type.
[0052] In one embodiment, preferably, the video processing device further includes:
[0053] The camera control module is used to generate camera parameter adjustment information based on the comparison between the text description information and the statistical information in the intelligent analysis result and the preset information, and adjust the parameters of the photographed subject based on the camera parameter adjustment information.
[0054] In a third aspect, an embodiment of the present application provides an intelligent analysis system based on scene understanding, the intelligent analysis system comprising:
[0055] A video acquisition unit, including a plurality of shooting subjects arranged at different shooting points;
[0056] Scene understanding unit, including pre-trained image-text conversion model and scene understanding model;
[0057] The image-text conversion model is used to receive the image to be detected photographed by the photographing subject and output text description information of the image to be detected; wherein the text description information describes the image to be detected in terms of image quality, image content and image elements of the image to be detected;
[0058] The scene understanding model is used to receive the text description information and output algorithm adaptation information corresponding to the shooting point; wherein the algorithm adaptation information at least includes an algorithm type;
[0059] Intelligent analysis unit, including algorithm loading subunit, intelligent analysis feedback subunit and camera control subunit;
[0060] The algorithm loading subunit is used to load the target intelligent algorithm to the video to be detected shot by the shooting subject at the shooting point according to the algorithm adaptation information, and obtain the intelligent analysis result of the target intelligent algorithm on the video to be detected; wherein the intelligent analysis result includes the statistical information of the target object or target event identified by the target intelligent algorithm in different dimensions;
[0061] The intelligent analysis feedback subunit is used to input the fourth text information corresponding to the intelligent analysis result into the scene understanding model;
[0062] The camera control subunit is used to generate camera parameter adjustment information based on the comparison between the text description information and the statistical information in the intelligent analysis result and preset information, and adjust the parameters of the photographing subject based on the camera parameter adjustment information.
[0063] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above-mentioned video processing method are implemented.
[0064] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which implements the steps of the above-mentioned video processing method when executed by a processor.
[0065] One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:
[0066] The embodiments of the present application provide a video processing method, device and intelligent analysis system based on scene understanding. The video processing method first obtains an image to be detected at a shooting point, and then uses a pre-trained image-text conversion model to obtain text description information of the image to be detected, and the text description information describes the image to be detected in terms of image quality, image content and image elements; the text description information is then input into a pre-trained scene understanding model, and the scene understanding model can output algorithm adaptation information corresponding to the shooting point, so that the target intelligent algorithm can be loaded on the shooting subject (such as a camera) deployed at the shooting point according to the obtained algorithm adaptation information, thereby realizing automatic loading of the target intelligent algorithm without manual configuration of the intelligent algorithm, thereby improving the deployment efficiency, configuration efficiency and intelligent analysis quality of the shooting subject.
[0067] That is to say, for different shooting points, the embodiment of the present application can obtain different algorithm adaptation information corresponding to each shooting point from different images to be detected at each shooting point through the image-text conversion model and the scene understanding model in sequence. Then, the target intelligent algorithm can be loaded on the shooting subject at each shooting point according to the algorithm adaptation information. There is no need to manually configure the intelligent algorithm, which improves the layout efficiency, configuration efficiency and intelligent analysis quality of the shooting subject. BRIEF DESCRIPTION OF THE DRAWINGS
[0068] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.
[0069] Figure 1 Schematic diagram of the process of video processing based on scene understanding described in the embodiment of the present application.
[0070] Figure 2 Schematic diagram of the flow structure of the video processing method based on scene understanding described in one embodiment of the present application.
[0071] Figure 3 This is a flow chart of the structure of a video processing method based on scene understanding described in another embodiment of the present application.
[0072] Figure 4 This is a flow chart of the structure of a video processing method based on scene understanding described in another embodiment of the present application.
[0073] Figure 5 This is a flow chart of the structure of a video processing method based on scene understanding described in yet another embodiment of the present application.
[0074] Figure 6 Schematic diagram of the structure of the video processing device based on scene understanding described in an embodiment of the present application.
[0075] Wherein, the reference numerals are:
[0076] 100- video acquisition unit, 101- shooting subject, 102- image to be detected, 103- video to be detected,
[0077] 200-scene understanding unit, 201-image-text conversion model, 202-scene understanding model, 203-text description information, 204-algorithm adaptation information,
[0078] 2011-Image quality assessment sub-model, 2012-Image content extraction sub-model, 2013-Image element analysis sub-model,
[0079] 2031-first text message, 2032-second text message, 2033-third text message,
[0080] 2041-Algorithm rule adjustment parameters,
[0081] 300-intelligent analysis unit, 301-algorithm loading subunit, 302-intelligent analysis feedback subunit, 303-camera control subunit,
[0082] 3011-Intelligent analysis results,
[0083] 3021-4th text message,
[0084] 3031-Camera parameter adjustment information,
[0085] 901- video shooting module, 902- image-text conversion module, 903- scene understanding module, 904- algorithm loading module. DETAILED DESCRIPTION
[0086] In order to better understand the above technical solution, the example embodiments of the present application will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application. It should be understood that the present application is not limited to the exemplary embodiments described here.
[0087] First, the professional terms in the embodiments of the present application are explained:
[0088] Intelligent analysis system: It consists of cameras and intelligent analysis algorithms. It performs intelligent analysis on the video streams collected by the cameras, extracts structured information, and issues preventive alarms for specific behavioral events.
[0089] Scene understanding: Understand high-level semantic information of video images to assist in the deployment of intelligent analysis algorithms.
[0090] Shooting point: The location where cameras and other shooting subjects are placed.
[0091] Image-text conversion model: It is trained by the text description of each image, which describes the image from one or more perspectives.
[0092] Scene understanding model: It is trained by the usage documents of each intelligent algorithm. The usage documents provide detailed descriptions of the business logic, application scenarios, application examples, point installation requirements, point selection specifications, rule area division, rule parameter settings, etc. of the intelligent algorithms. The scene understanding model is trained using the usage documents of each intelligent algorithm. The knowledge of the usage specifications of each intelligent algorithm can be injected into the scene understanding model, thereby enabling it to serve the intelligent analysis of video points.
[0093] For each shooting point, the applicable intelligent algorithm is different due to its different location and shooting scene.
[0094] At present, it is necessary to manually configure intelligent algorithms for each shooting point and manually adjust the parameters. However, manual selection of intelligent algorithms requires a large amount of manual work, and it is often difficult for construction workers to reach a professional level, resulting in difficulty in ensuring the shooting effects of a large number of shooting points.
[0095] In response to the above situation, the present application provides a video processing method, device and intelligent analysis system based on scene understanding. The video processing method or intelligent analysis system first obtains the text description information of the image to be detected at the shooting point, and then obtains the algorithm adaptation information of the corresponding shooting point through the scene understanding model based on the text description information. In this way, the target intelligent algorithm can be loaded on the shooting subject of the shooting point according to the algorithm adaptation information, without the need to manually configure the intelligent algorithm, thereby improving the layout efficiency, configuration efficiency and intelligent analysis quality of the shooting subject.
[0096] Figure 1 It is a flowchart of a video processing method based on scene understanding. Figure 2 This is a flow chart of the video processing method based on scene understanding. Figure 1 and Figure 2 , a video processing method based on scene understanding, the video processing method comprising:
[0097] S100, obtaining an image 102 to be detected at a shooting point, where the image 102 to be detected is obtained by shooting a shooting subject 101 arranged at the shooting point;
[0098] S200, using the pre-trained image-text conversion model 201 to obtain text description information 203 of the image to be detected 102; wherein the text description information 203 describes the image to be detected 102 in terms of image quality, image content and image elements of the image to be detected 102;
[0099] S300, inputting the text description information 203 into the pre-trained scene understanding model 202, and obtaining the algorithm adaptation information 204 of the corresponding shooting point output by the scene understanding model 202; wherein the algorithm adaptation information 204 at least includes the algorithm type;
[0100] S400 , loading a target intelligent algorithm into the to-be-detected video 103 shot by the shooting subject 101 at the shooting point according to the algorithm adaptation information 204 .
[0101] In general, for the image to be detected at the shooting point, the embodiment of the present application first obtains the text description information corresponding to the image to be detected through the image-text conversion model, and then obtains the algorithm adaptation information corresponding to the text description information through the scene understanding model. Thus, the target intelligent algorithm can be loaded for the shooting point based on the algorithm adaptation information.
[0102] In step S100, firstly, the image to be detected of the shooting point is obtained.
[0103] A shooting subject such as a camera may be arranged at the shooting point, and then the image to be detected of the shooting point is obtained through the shooting subject; the image to be detected may be a frame image in the video to be detected shot by the shooting subject.
[0104] Among them, in step S200, after obtaining the image to be detected at the shooting point, the pre-trained image-text conversion model can be used to obtain the text description information corresponding to the image to be detected; or, the obtained image to be detected is input into the pre-trained image-text conversion model, and the text description information corresponding to the image to be detected output by the image-text conversion model is obtained.
[0105] It can be understood that the image-text conversion model of this embodiment is obtained through pre-training as described above, and its input is an image and its output is a text description corresponding to the image.
[0106] In particular, the text description information should describe the image to be detected from three aspects: image quality, image content and image elements of the image to be detected.
[0107] For example, the text description information corresponding to a certain image to be detected may be as follows:
[0108] Image quality: The image to be detected has moderate brightness, moderate chromaticity, no obstruction, and good clarity;
[0109] Image content: The image to be detected is a picture of a traffic intersection. The image includes a crossroad with vehicles on the road.
[0110] In terms of image elements: the upper middle area of the image to be detected is the sky, accounting for 20% of the image; the middle area is the road, accounting for 50% of the image; the areas on both sides are buildings, accounting for 30% of the image.
[0111] Among them, in step S300, after obtaining the text description information corresponding to the image to be detected, continue to use the pre-trained scene understanding model to obtain the algorithm adaptation information corresponding to the shooting point; or, input the obtained text description information into the pre-trained scene understanding model, and obtain the algorithm adaptation information corresponding to the image to be detected (that is, corresponding to the shooting point) output by the scene understanding model.
[0112] It can be understood that the scene understanding model of this embodiment is pre-trained as mentioned above, and its input is a text description, and its output is the algorithm adaptation information corresponding to the text description; wherein, the algorithm adaptation information should at least include the algorithm type.
[0113] Continuing with the above example, after the above text description information is input into the scene understanding model, the scene understanding model can output the algorithm adaptation information corresponding to the traffic intersection, such as the red light running capture algorithm.
[0114] Among them, in step S400, after the algorithm adaptation information is obtained, the target intelligent algorithm can be loaded into the video to be detected shot by the shooting subject at the shooting point according to the algorithm adaptation information.
[0115] That is, continuing with the above example, the target intelligent algorithm at this time is the red light running capture algorithm, that is, the red light running capture algorithm can be loaded on the video to be detected taken by the camera at the shooting point located at the traffic intersection.
[0116] Of course, it can be understood that, for example, when the shooting point is located in a public place such as a waiting room, by inputting the image to be detected taken in the waiting room into the image-text conversion model, and then inputting the text description information output by the image-text conversion model into the scene understanding model, the scene understanding model can output pedestrian flow monitoring algorithms and / or crowd gathering monitoring algorithms that are suitable for the waiting room scene.
[0117] It should be noted that the above-mentioned target intelligent algorithm may be one or more.
[0118] It can be seen that the embodiment of the present application first needs to obtain the text description information of the image to be detected, and then input the scene understanding model based on the text description information, so as to obtain the target intelligent algorithm applicable to the shooting point; in this way, it can be understood that by extracting the high-level semantic information description of the image scene and utilizing the generalization, keywords and other characteristics of the text description, the scene understanding model can easily locate or output the target intelligent algorithm, thereby improving the matching effect of the intelligent algorithm.
[0119] The embodiments of the present application provide a video processing method, device and intelligent analysis system based on scene understanding. The video processing method first obtains an image to be detected at a shooting point, and then uses a pre-trained image-text conversion model to obtain text description information of the image to be detected, and the text description information describes the image to be detected in terms of image quality, image content and image elements; then the text description information is input into a pre-trained scene understanding model, and the scene understanding model can output algorithm adaptation information corresponding to the shooting point, so that the target intelligent algorithm can be loaded on the shooting subject (such as a camera) arranged at the shooting point according to the obtained algorithm adaptation information, thereby realizing automatic loading of the target intelligent algorithm without manual configuration of the intelligent algorithm, thereby improving the layout efficiency of the shooting subject, configuration efficiency and intelligent analysis quality.
[0120] That is to say, for different shooting points, the embodiment of the present application can obtain different algorithm adaptation information corresponding to each shooting point from different images to be detected at each shooting point through the image-text conversion model and the scene understanding model in sequence. Then, the target intelligent algorithm can be loaded on the shooting subject at each shooting point according to the algorithm adaptation information. There is no need to manually configure the intelligent algorithm, which improves the layout efficiency, configuration efficiency and intelligent analysis quality of the shooting subject.
[0121] Regarding the image-text conversion model 201, in a possible implementation manner, the image-text conversion model 201 may be an integral model.
[0122] Of course, see Figure 3 In other possible implementations, the image-text conversion model 201 may include three specific sub-models, namely, the image-text conversion model 201 includes a pre-trained image quality assessment sub-model 2011, an image content extraction sub-model 2012, and an image element analysis sub-model 2013; step S200 includes:
[0123] S201, input the image to be detected 102 into the image quality assessment sub-model 2011, the image content extraction sub-model 2012, and the image element analysis sub-model 2013 respectively, and obtain the first text information 2031 output by the image quality assessment sub-model 2011, the second text information 2032 output by the image content extraction sub-model 2012, and the third text information 2033 output by the image element analysis sub-model 2013 respectively; wherein the first text information 2031 reflects the text description of the image quality, the second text information 2032 reflects the text description of the image content, and the third text information 2033 reflects the text description of the image elements.
[0124] That is, with respect to the above-mentioned descriptions of the three aspects of image quality, image content and image elements of the image to be detected, this embodiment can be implemented using three specific sub-models respectively.
[0125] Specifically, the image to be detected is input into the image quality assessment submodel, and the image quality assessment submodel can output a first text information, which is a text description about the image quality of the image to be detected; similarly, the image to be detected is input into the image content extraction submodel, and the image content extraction submodel can output a second text information, which is a text description about the image content of the image to be detected; the image to be detected is input into the image element parsing submodel, and the image element parsing submodel can output a third text information, which is a text description about the image elements of the image to be detected.
[0126] Continuing with the above example, the first text information includes, for example, the following text description: the image to be detected has moderate brightness, moderate chroma, no obstruction, and good clarity.
[0127] The second text information includes, for example, the following text description: the image to be detected captures the situation at a traffic intersection, the image includes an intersection, and vehicles are traveling on the road.
[0128] The third text information, for example, includes the following text description: the upper area of the image to be detected is the sky, which occupies 20% of the image, the middle area is the road, which occupies 50% of the image, and the areas on both sides are buildings, which occupy 30% of the image.
[0129] That is to say, for the image to be detected, this embodiment can specifically use three sub-models (image quality evaluation sub-model, image content extraction sub-model and image element analysis sub-model) to obtain three text information (first text information, second text information and third text information) from three aspects (image quality, image content and image elements) respectively. In this way, the three sub-models are trained separately, thereby improving the accuracy of the text description.
[0130] Among them, the first text information 2031 describes the image to be detected from the aspects of clarity, brightness, chromaticity and occlusion degree; of course, according to actual needs, the first text information can also describe the image to be detected from the aspect of the noise interference degree of the image to be detected; in other words, the first text information can describe the image quality of the image to be detected from multiple dimensions, including but not limited to clarity, brightness, chromaticity, noise interference degree and occlusion degree, etc., and this embodiment does not limit this.
[0131] The second text information 2032 describes the objects in the image to be detected, the attributes of the objects, and the positional relationship between the objects; the third text information 2033 describes the objects in the image to be detected from the aspects of the object categories in the image to be detected, the regional positions of the objects of each category in the image, and the proportion of the objects of each category in the image to be detected.
[0132] In one possible implementation, continue to refer to Figure 3 , step S300 includes:
[0133] S301, inputting the first text information 2031, the second text information 2032 and the third text information 2033 into the scene understanding model 202 at the same time;
[0134] S304, obtaining the algorithm adaptation information 204 output by the scene understanding model 202, wherein the algorithm adaptation information 204 includes the algorithm type corresponding to the shooting point, the loading area of the algorithm type, and the original parameters of the algorithm rules of the algorithm type.
[0135] That is, after obtaining the three text information of the image to be detected through the three sub-models respectively, the three text information can be input into the scene understanding model at the same time, so that the scene understanding model can output algorithm adaptation information based on the text description of the three text information; wherein, the algorithm adaptation information should include the algorithm type, the loading area of the algorithm type and the original parameters of the algorithm rules of the algorithm type.
[0136] Still combining with the above example, in the algorithm adaptation information output by the scene understanding model based on the text description of the above example, the algorithm type is determined to be the red light running capture algorithm, and the loading area of the algorithm type is determined to be the road area in the image to be detected. As for the original parameters of the algorithm rules of the algorithm type, they should be understood as a general adaptation parameter or original parameter of the red light running capture algorithm.
[0137] In a specific implementation, step S300 further includes:
[0138] S302, obtaining a quality level reflecting the shooting point output by the scene understanding model 202 based on the first text information 2031;
[0139] S303: When the quality level is lower than the quality level threshold, the shooting point is reported for maintenance.
[0140] That is, before outputting the algorithm adaptation information, the scene understanding model can also output a quality level based on the first text information. The quality level is used to reflect the shooting point corresponding to the image to be detected. When the quality level is greater than the preset quality level threshold, it indicates that the image quality of the image to be detected acquired at the shooting point is poor and needs to be reported for maintenance.
[0141] For example, when the first text information of the image to be detected contains text descriptions such as "severe occlusion", the scene understanding model can classify the shooting point corresponding to the image to be detected as a low quality level based on the keyword "severe occlusion" and report the shooting point for maintenance.
[0142] In one possible implementation, see Figure 4 , the video processing method further includes:
[0143] S500, obtaining intelligent analysis results 3011 of the target intelligent algorithm on the video to be detected 103; wherein the intelligent analysis results 3011 include statistical information of the target object or target event identified by the target intelligent algorithm in different dimensions;
[0144] S600. Input the fourth text information 3021 corresponding to the intelligent analysis result 3011 into the scene understanding model 202, and obtain the algorithm rule adjustment parameter 2041 of the corresponding algorithm type output by the scene understanding model 202.
[0145] In general, this embodiment can adjust the algorithm rule parameters of the target intelligent algorithm according to the intelligent analysis results of the target intelligent algorithm on the video to be detected, thereby improving the intelligent analysis quality of the target intelligent algorithm.
[0146] Specifically, it is first necessary to use the determined target intelligent algorithm to perform intelligent analysis on the video to be detected shot by the subject at the shooting point to obtain the intelligent analysis result.
[0147] Among them, the intelligent analysis result is the statistical information of the target object or target event identified by the target intelligent algorithm from the video to be detected in different dimensions within a predetermined time period.
[0148] For example, when the target intelligent algorithm is a red light running capture algorithm, the target object is the vehicle running the red light. At this time, the intelligent analysis result is the statistical information in different dimensions of the red light running vehicles locked by the red light running capture algorithm within a predetermined time period; different dimensions include, for example, the size dimension, mass dimension, orientation dimension, positive alarm rate dimension, recall rate dimension, etc. of the red light running vehicles.
[0149] For example, when the target intelligent algorithm is a crowd gathering monitoring algorithm, the target event is a crowd gathering event. At this time, the intelligent analysis result is the statistical information of the crowd gathering event locked by the crowd gathering monitoring algorithm within a predetermined time period in different dimensions; different dimensions include, for example, the size dimension, quality dimension, orientation dimension, positive alarm rate dimension, recall rate dimension, etc. of the crowd.
[0150] Secondly, after obtaining the above intelligent analysis results, convert them into text descriptions, that is, obtain fourth text information; then, input the fourth text information into the scene understanding model to obtain the algorithm rule adjustment parameters of the corresponding algorithm type output by the scene understanding model.
[0151] Thus, step S400 may include:
[0152] S401 , adjusting parameters 2041 according to the algorithm type, the loading area of the algorithm type, and the algorithm rule of the algorithm type, loads the target intelligent algorithm into the video to be detected 103 .
[0153] That is to say, after the scene understanding model adjusts the parameters according to the fourth text information output algorithm rules of the intelligent analysis results, this embodiment can adjust the parameters according to the algorithm rules to load the target intelligent algorithm, optimize the parameters of the target intelligent algorithm, and thus improve the quality of intelligent analysis.
[0154] In one possible implementation, see Figure 5 , the video processing method further includes:
[0155] S700 , generating camera parameter adjustment information 3031 based on the comparison between the text description information 203 and the statistical information in the intelligent analysis result 3011 and the preset information, and adjusting the parameters of the photographing subject 101 based on the camera parameter adjustment information 3031 .
[0156] That is, after obtaining the above-mentioned intelligent analysis results, in addition to optimizing the parameters of the target intelligent algorithm, the present embodiment can also adjust the parameters of the shooting subject (ie, the camera) based on the comparison of the previously obtained text description information and the statistical information in the intelligent analysis results with the preset information, thereby improving the shooting quality.
[0157] For example, taking the size dimension in the intelligent analysis results as an example, when the target intelligent algorithm is the red light running capture algorithm, the target object is the red light running vehicle, and the intelligent analysis results include statistical information on the size dimension of the red light running vehicles locked by the red light running capture algorithm within a predetermined time period, where, for example, the proportion of small-sized red light running vehicles is 65%, the proportion of medium-sized red light running vehicles is 20%, and the proportion of large-sized red light running vehicles is 15%; and in the preset information, for example, the proportion of medium-sized red light running vehicles should be greater than 30%, and the proportion of large-sized red light running vehicles should be greater than 50%;
[0158] Obviously, according to the comparison between the statistical information in the intelligent analysis results and the preset information, the video shot by the current subject does not meet the preset requirements; in addition, this embodiment can also comprehensively consider the comparison between the previously obtained text description information and the preset information to comprehensively consider whether the preset requirements are met.
[0159] Therefore, this embodiment can generate camera parameter adjustment information based on the comparison of the statistical information about the size dimension in the text description information and the intelligent analysis results with the preset information. The camera parameter adjustment information can be, for example, specific parameters of the camera magnification, and the parameters of the photographed subject can be adjusted according to the parameters of the camera magnification until the captured video meets the preset requirements.
[0160] Of course, the quality dimension and orientation dimension of the intelligent analysis results are similar to the size dimension mentioned above and will not be elaborated on here.
[0161] Based on the above video processing method, the present application also discloses a video processing device based on scene understanding, see Figure 6 , the video processing device comprises:
[0162] The video shooting module 901 is used to obtain the image to be detected at the shooting point, where the image to be detected is shot by a shooting subject arranged at the shooting point;
[0163] The image-text conversion module 902 is used to obtain text description information of the image to be detected by using a pre-trained image-text conversion model; wherein the text description information describes the image to be detected in terms of image quality, image content and image elements of the image to be detected;
[0164] The scene understanding module 903 is used to input the text description information into the pre-trained scene understanding model, and obtain the algorithm adaptation information of the corresponding shooting point output by the scene understanding model; wherein the algorithm adaptation information at least includes the algorithm type;
[0165] The algorithm loading module 904 is used to load the target intelligent algorithm into the video to be detected shot by the shooting subject at the shooting point according to the algorithm adaptation information.
[0166] In a possible implementation, the image-text conversion model includes a pre-trained image quality assessment sub-model, an image content extraction sub-model, and an image element analysis sub-model;
[0167] The image-text conversion module is specifically used for:
[0168] The image to be detected is respectively input into the image quality assessment sub-model, the image content extraction sub-model, and the image element analysis sub-model, and the first text information output by the image quality assessment sub-model, the second text information output by the image content extraction sub-model, and the third text information output by the image element analysis sub-model are respectively obtained; wherein the first text information reflects the text description of the image quality, the second text information reflects the text description of the image content, and the third text information reflects the text description of the image elements.
[0169] In one possible implementation, the first text information describes the image quality of the image to be detected from multiple dimensions, and the multiple dimensions include at least clarity, brightness, chromaticity and degree of occlusion; the second text information describes the image to be detected from the aspects of objects in the image to be detected, the attributes of the objects and the positional relationship between the objects; the third text information describes the image to be detected from the aspects of the object categories in the image to be detected, the regional positions of objects of each category in the image, and the proportion of objects of each category in the image to be detected.
[0170] In one possible implementation, the scene understanding module includes:
[0171] A text input submodule, used to input the first text information, the second text information and the third text information into the scene understanding model at the same time;
[0172] The algorithm acquisition submodule is used to obtain the algorithm adaptation information output by the scene understanding model, wherein the algorithm adaptation information includes the algorithm type corresponding to the shooting point, the loading area of the algorithm type, and the original parameters of the algorithm rules of the algorithm type.
[0173] In one possible implementation, the scene understanding module further includes:
[0174] A quality level acquisition submodule, used to acquire a quality level reflecting a shooting point output by a scene understanding model based on the first text information;
[0175] The reporting maintenance submodule is used to report the shooting point for maintenance when the quality level is lower than the quality level threshold.
[0176] In a possible implementation manner, the video processing device further includes:
[0177] An intelligent analysis module is used to obtain the intelligent analysis results of the target intelligent algorithm on the video to be detected; wherein the intelligent analysis results include statistical information of the target object or target event identified by the target intelligent algorithm in different dimensions;
[0178] An intelligent analysis feedback module, used to input the fourth text information corresponding to the intelligent analysis result into the scene understanding model, and obtain the algorithm rule adjustment parameter of the corresponding algorithm type output by the scene understanding model;
[0179] The algorithm loading module is specifically used for:
[0180] Adjust the parameters of the target intelligent algorithm for the video to be detected according to the algorithm type, the loading area of the algorithm type and the algorithm rule of the algorithm type.
[0181] In a possible implementation manner, the video processing device further includes:
[0182] The camera control module is used to generate camera parameter adjustment information based on the comparison between the text description information and the statistical information in the intelligent analysis results and the preset information, and adjust the parameters of the photographed subject based on the camera parameter adjustment information.
[0183] Based on the above video processing method, the present application also discloses an intelligent analysis system based on scene understanding, which can be combined with Figure 5 , the intelligent analysis system includes:
[0184] The video acquisition unit 100 includes a plurality of shooting subjects 101 arranged at different shooting points;
[0185] A scene understanding unit 200, including a pre-trained image-text conversion model 201 and a scene understanding model 202;
[0186] The image-text conversion model 201 is used to receive the image to be detected 102 photographed by the photographing subject 101 and output text description information 203 of the image to be detected 102; wherein the text description information 203 describes the image to be detected 102 in terms of image quality, image content and image elements of the image to be detected 102;
[0187] The scene understanding model 202 is used to receive the text description information 203 and output the algorithm adaptation information 204 corresponding to the shooting point; wherein the algorithm adaptation information 204 at least includes the algorithm type;
[0188] The intelligent analysis unit 300 includes an algorithm loading subunit 301, an intelligent analysis feedback subunit 302 and a camera control subunit 303;
[0189] The algorithm loading subunit 301 is used to load the target intelligent algorithm to the video to be detected 103 shot by the shooting subject 101 at the shooting point according to the algorithm adaptation information 204, and obtain the intelligent analysis result 3011 of the target intelligent algorithm on the video to be detected 103; wherein the intelligent analysis result 3011 includes the statistical information of the target object or target event recognized by the target intelligent algorithm in different dimensions;
[0190] The intelligent analysis feedback subunit 302 is used to input the fourth text information 3021 corresponding to the intelligent analysis result 3011 into the scene understanding model 202;
[0191] The camera control subunit 303 is used to generate camera parameter adjustment information 3031 according to the comparison between the statistical information in the intelligent analysis result 3011 and the preset information, and adjust the parameters of the shooting subject 101 according to the camera parameter adjustment information 3031.
[0192] Based on the above-mentioned video processing method, the present application further discloses a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned video processing method are implemented.
[0193] Based on the above video processing method, the present application also discloses a computer program product, including a computer program, which implements the steps of the above video processing method when executed by a processor.
[0194] The basic principles of the present application are described above in conjunction with specific embodiments. However, it should be noted that the advantages, strengths, effects, etc. mentioned in the present application are only examples and not limitations, and it cannot be considered that these advantages, strengths, effects, etc. are required by each embodiment of the present application. In addition, the specific details disclosed above are only for the purpose of illustration and ease of understanding, not for limitation, and the above details do not limit the present application to being implemented by adopting the above specific details.
[0195] The block diagrams of the devices, apparatuses, equipment, and systems involved in this application are only illustrative examples and are not intended to require or imply that they must be connected, arranged, and configured in the manner shown in the block diagram. As will be appreciated by those skilled in the art, these devices, apparatuses, equipment, and systems can be connected, arranged, and configured in any manner. Words such as "including", "comprising", "having", etc. are open words, referring to "including but not limited to", and can be used interchangeably with them. The words "or" and "and" used here refer to the words "and / or" and can be used interchangeably with them, unless the context clearly indicates otherwise. The words "such as" used here refer to the phrase "such as but not limited to", and can be used interchangeably with them.
[0196] It should also be noted that in the apparatus, device and method of the present application, each component or each step can be decomposed and / or recombined. Such decomposition and / or recombination should be regarded as equivalent solutions of the present application.
[0197] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present application. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects without departing from the scope of the present application. Therefore, the present application is not intended to be limited to the aspects shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
[0198] The above description has been given for the purpose of illustration and description. In addition, this description is not intended to limit the embodiments of the present application to the forms disclosed herein. Although multiple example aspects and embodiments have been discussed above, those skilled in the art will recognize that some variations, modifications, changes, additions and sub-combinations thereof should be included within the scope of protection of the present invention.
Claims
1. A video processing method based on scene understanding, characterized in that: The video processing method comprises: Acquire an image to be detected at a shooting point, where the image to be detected is captured by a shooting subject arranged at the shooting point; Using a pre-trained image-text conversion model to obtain text description information of the image to be detected; wherein the text description information describes the image to be detected in terms of image quality, image content and image elements of the image to be detected; Inputting the text description information into a pre-trained scene understanding model, and obtaining algorithm adaptation information corresponding to the shooting point output by the scene understanding model; wherein the algorithm adaptation information at least includes an algorithm type; The target intelligent algorithm is loaded into the video to be detected shot by the shooting subject at the shooting point according to the algorithm adaptation information.
2. The video processing method according to claim 1, characterized in that: The image-text conversion model includes a pre-trained image quality assessment sub-model, an image content extraction sub-model and an image element analysis sub-model; The step of obtaining the text description information of the image to be detected by using the pre-trained image-text conversion model includes: The image to be detected is respectively input into the image quality assessment sub-model, the image content extraction sub-model, and the image element parsing sub-model, and the first text information output by the image quality assessment sub-model, the second text information output by the image content extraction sub-model, and the third text information output by the image element parsing sub-model are respectively obtained; wherein the first text information reflects a text description of the image quality, the second text information reflects a text description of the image content, and the third text information reflects a text description of the image elements.
3. The video processing method according to claim 2, characterized in that: The first text information describes the image quality of the image to be detected from multiple dimensions, and the multiple dimensions at least include clarity, brightness, chroma and occlusion degree; The second text information describes the objects in the image to be detected, their attributes, and the positional relationship between the objects; The third text information describes the object category in the image to be detected, the regional position of each category of objects in the image, and the proportion of each category of objects in the image to be detected.
4. The video processing method according to claim 2, characterized in that: The step of inputting the text description information into a pre-trained scene understanding model and obtaining the algorithm adaptation information corresponding to the shooting point output by the scene understanding model comprises: Inputting the first text information, the second text information and the third text information into the scene understanding model simultaneously; The algorithm adaptation information output by the scene understanding model is obtained, wherein the algorithm adaptation information includes the algorithm type corresponding to the shooting point, the loading area of the algorithm type, and the original parameters of the algorithm rules of the algorithm type.
5. The video processing method according to claim 4, characterized in that: Before the step of obtaining the algorithm adaptation information output by the scene understanding model, the method further includes: Obtaining a quality level of the shooting point output by the scene understanding model based on the first text information; When the quality level is lower than the quality level threshold, the shooting point is reported for maintenance.
6. The video processing method according to claim 4, characterized in that: After the step of loading the target intelligent algorithm into the video to be detected shot by the shooting subject at the shooting point according to the algorithm adaptation information, the video processing method further includes: Obtaining intelligent analysis results of the target intelligent algorithm on the video to be detected; wherein the intelligent analysis results include statistical information of the target object or target event identified by the target intelligent algorithm in different dimensions; Inputting fourth text information corresponding to the intelligent analysis result into the scene understanding model, and obtaining an algorithm rule adjustment parameter corresponding to the algorithm type output by the scene understanding model; The step of loading the target intelligent algorithm into the video to be detected shot by the subject of the shooting point according to the algorithm adaptation information comprises: The target intelligent algorithm is loaded into the video to be detected according to the algorithm type, the loading area of the algorithm type and the algorithm rule adjustment parameters of the algorithm type.
7. The video processing method according to claim 6, characterized in that: After the step of obtaining the intelligent analysis result of the target intelligent algorithm on the video to be detected, the video processing method further includes: Camera parameter adjustment information is generated based on comparisons between the text description information and the statistical information in the intelligent analysis result and preset information, and parameters of the photographed subject are adjusted based on the camera parameter adjustment information.
8. A video processing device based on scene understanding, characterized in that: The video processing device comprises: A video shooting module is used to obtain an image to be detected at a shooting point, where the image to be detected is shot by a shooting subject arranged at the shooting point; An image-text conversion module, used to obtain text description information of the image to be detected by using a pre-trained image-text conversion model; wherein the text description information describes the image to be detected in terms of image quality, image content and image elements of the image to be detected; A scene understanding module, used to input the text description information into a pre-trained scene understanding model, and obtain the algorithm adaptation information corresponding to the shooting point output by the scene understanding model; wherein the algorithm adaptation information at least includes an algorithm type; The algorithm loading module is used to load the target intelligent algorithm into the video to be detected shot by the shooting subject at the shooting point according to the algorithm adaptation information.
9. The video processing device according to claim 8, characterized in that: The image-text conversion model includes a pre-trained image quality assessment sub-model, an image content extraction sub-model and an image element analysis sub-model; The image-text conversion module is specifically used for: The image to be detected is respectively input into the image quality assessment sub-model, the image content extraction sub-model, and the image element parsing sub-model, and the first text information output by the image quality assessment sub-model, the second text information output by the image content extraction sub-model, and the third text information output by the image element parsing sub-model are respectively obtained; wherein the first text information reflects a text description of the image quality, the second text information reflects a text description of the image content, and the third text information reflects a text description of the image elements.
10. The video processing device according to claim 9, characterized in that: The first text information describes the image quality of the image to be detected from multiple dimensions, and the multiple dimensions at least include clarity, brightness, chroma and occlusion degree; The second text information describes the objects in the image to be detected, their attributes, and the positional relationship between the objects; The third text information describes the object category in the image to be detected, the regional position of each category of objects in the image, and the proportion of each category of objects in the image to be detected.
11. The video processing device according to claim 9, characterized in that: The scene understanding module includes: a text input submodule, configured to simultaneously input the first text information, the second text information, and the third text information into the scene understanding model; The algorithm acquisition submodule is used to obtain the algorithm adaptation information output by the scene understanding model, wherein the algorithm adaptation information includes the algorithm type corresponding to the shooting point, the loading area of the algorithm type, and the original parameters of the algorithm rules of the algorithm type.
12. The video processing device according to claim 11, characterized in that: The scene understanding module also includes: A quality level acquisition submodule, used to acquire the quality level of the shooting point output by the scene understanding model based on the first text information; The reporting and maintenance submodule is used to report the shooting point for maintenance when the quality level is lower than the quality level threshold.
13. The video processing device according to claim 11, characterized in that: The video processing device also includes: An intelligent analysis module, used to obtain the intelligent analysis result of the target intelligent algorithm on the video to be detected; wherein the intelligent analysis result includes statistical information of the target object or target event identified by the target intelligent algorithm in different dimensions; An intelligent analysis feedback module, used for inputting fourth text information corresponding to the intelligent analysis result into the scene understanding model, and obtaining an algorithm rule adjustment parameter corresponding to the algorithm type output by the scene understanding model; The algorithm loading module is specifically used for: The target intelligent algorithm is loaded into the video to be detected according to the algorithm type, the loading area of the algorithm type and the algorithm rule adjustment parameters of the algorithm type.
14. The video processing device according to claim 13, characterized in that: The video processing device also includes: The camera control module is used to generate camera parameter adjustment information based on the comparison between the text description information and the statistical information in the intelligent analysis result and the preset information, and adjust the parameters of the photographed subject based on the camera parameter adjustment information.
15. An intelligent analysis system based on scene understanding, characterized in that: The intelligent analysis system comprises: A video acquisition unit, including a plurality of shooting subjects arranged at different shooting points; Scene understanding unit, including pre-trained image-text conversion model and scene understanding model; The image-text conversion model is used to receive the image to be detected photographed by the photographing subject and output text description information of the image to be detected; wherein the text description information describes the image to be detected in terms of image quality, image content and image elements of the image to be detected; The scene understanding model is used to receive the text description information and output algorithm adaptation information corresponding to the shooting point; wherein the algorithm adaptation information at least includes an algorithm type; Intelligent analysis unit, including algorithm loading subunit, intelligent analysis feedback subunit and camera control subunit; The algorithm loading subunit is used to load the target intelligent algorithm to the video to be detected shot by the shooting subject at the shooting point according to the algorithm adaptation information, and obtain the intelligent analysis result of the target intelligent algorithm on the video to be detected; wherein the intelligent analysis result includes the statistical information of the target object or target event identified by the target intelligent algorithm in different dimensions; The intelligent analysis feedback subunit is used to input the fourth text information corresponding to the intelligent analysis result into the scene understanding model; The camera control subunit is used to generate camera parameter adjustment information based on the comparison between the text description information and the statistical information in the intelligent analysis result and preset information, and adjust the parameters of the photographing subject based on the camera parameter adjustment information.
16. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the video processing method according to any one of claims 1 to 7 are implemented.
17. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the video processing method as described in any one of claims 1 to 7 are implemented.
